-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] software_reseller: move Properties to new fields
In this commit we have replaced the task_properties_definition field to new fields that is x_client,x_version,x_license_key,x_users,x_odoo_version,x_hosted,x_environment. Task-3942609
- Loading branch information
Showing
4 changed files
with
73 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<odoo> | ||
<record id="field_x_client" model="ir.model.fields"> | ||
<field name="name">x_client</field> | ||
<field name="field_description">Client</field> | ||
<field name="model_id" ref="project.model_project_task"/> | ||
<field name="relation">res.partner</field> | ||
<field name="ttype">many2one</field> | ||
</record> | ||
<record id="field_x_version" model="ir.model.fields"> | ||
<field name="name">x_version</field> | ||
<field name="field_description">Java Version</field> | ||
<field name="model_id" ref="project.model_project_task"/> | ||
<field name="ttype">char</field> | ||
</record> | ||
<record id="field_x_license_key" model="ir.model.fields"> | ||
<field name="name">x_license_key</field> | ||
<field name="field_description">License Key</field> | ||
<field name="model_id" ref="project.model_project_task"/> | ||
<field name="ttype">char</field> | ||
</record> | ||
<record id="field_x_users" model="ir.model.fields"> | ||
<field name="name">x_users</field> | ||
<field name="field_description">Number of Users</field> | ||
<field name="model_id" ref="project.model_project_task"/> | ||
<field name="ttype">integer</field> | ||
</record> | ||
<record id="field_x_odoo_version" model="ir.model.fields"> | ||
<field name="name">x_odoo_version</field> | ||
<field name="field_description">Odoo Version</field> | ||
<field name="model_id" ref="project.model_project_task"/> | ||
<field name="selection">[('Odoo 14', 'Odoo 14'), ('Odoo 15', 'Odoo 15'), ('Odoo 16', 'Odoo 16'), ('Odoo 17', 'Odoo 17')]</field> | ||
<field name="ttype">selection</field> | ||
</record> | ||
<record id="field_x_hosted" model="ir.model.fields"> | ||
<field name="name">x_hosted</field> | ||
<field name="field_description">Hosted On</field> | ||
<field name="model_id" ref="project.model_project_task"/> | ||
<field name="selection">[('On Premise', 'On Premise'), ('Odoo.sh', 'Odoo.sh'), ('Odoo Online', 'Odoo Online')]</field> | ||
<field name="ttype">selection</field> | ||
</record> | ||
<record id="field_x_environment" model="ir.model.fields"> | ||
<field name="name">x_environment</field> | ||
<field name="field_description">Environment</field> | ||
<field name="model_id" ref="project.model_project_task"/> | ||
<field name="selection">[('Production', 'Production'), ('Test', 'Test'), ('Development', 'Development')]</field> | ||
<field name="ttype">selection</field> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<odoo> | ||
<record id="project_task_customization_software_reseller" model="ir.ui.view"> | ||
<field name="name">project.task.form.customization.software.reseller</field> | ||
<field name="model">project.task</field> | ||
<field name="type">form</field> | ||
<field name="inherit_id" ref="project.view_task_form2"/> | ||
<field name="mode">extension</field> | ||
<field name="priority">1000</field> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//field[@name='tag_ids']" position="after"> | ||
<field name="x_client"/> | ||
<field name="x_version"/> | ||
<field name="x_license_key"/> | ||
<field name="x_users"/> | ||
<field name="x_odoo_version"/> | ||
<field name="x_hosted"/> | ||
<field name="x_environment"/> | ||
</xpath> | ||
</field> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters