[MIG] commission_simple_agent_purchase to 18
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'name': 'Commission Simple Agent Purchase',
|
'name': 'Commission Simple Agent Purchase',
|
||||||
'version': '16.0.1.0.0',
|
'version': '18.0.1.0.0',
|
||||||
'category': 'Sales',
|
'category': 'Sales',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
'summary': 'Glue module between commission_simple_agent and purchase',
|
'summary': 'Glue module between commission_simple_agent and purchase',
|
||||||
@@ -18,5 +18,5 @@
|
|||||||
'views/commission_result.xml',
|
'views/commission_result.xml',
|
||||||
'wizards/res_config_settings.xml',
|
'wizards/res_config_settings.xml',
|
||||||
],
|
],
|
||||||
'installable': False,
|
'installable': True,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<field name="inherit_id" ref="commission_simple.commission_result_form"/>
|
<field name="inherit_id" ref="commission_simple.commission_result_form"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<group name="main-right" position="inside">
|
<group name="main-right" position="inside">
|
||||||
<field name="purchase_id" attrs="{'invisible': [('assign_type', '!=', 'agent')]}"/>
|
<field name="purchase_id" invisible="assign_type != 'agent'"/>
|
||||||
</group>
|
</group>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|||||||
@@ -13,11 +13,10 @@
|
|||||||
<field name="model">res.config.settings</field>
|
<field name="model">res.config.settings</field>
|
||||||
<field name="inherit_id" ref="commission_simple.res_config_settings_view_form" />
|
<field name="inherit_id" ref="commission_simple.res_config_settings_view_form" />
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<xpath expr="//div[@id='commission_simple-settings']/div[hasclass('o_setting_right_pane')]" position="inside">
|
<xpath expr="//block[@id='commission_simple']" position="inside">
|
||||||
<div class="row" id="commission_product_id">
|
<setting id="commission_product" title="Commission Product">
|
||||||
<label for="commission_product_id" class="col-md-5" />
|
<field name="commission_product_id" context="{'default_type': 'service', 'default_purchase_ok': True, 'default_sale_ok': False, 'default_available_in_pos': False, 'default_purchase_method': 'purchase'}"/>
|
||||||
<field name="commission_product_id" context="{'default_detailed_type': 'service', 'default_purchase_ok': True, 'default_sale_ok': False, 'default_available_in_pos': False, 'default_purchase_method': 'purchase'}"/>
|
</setting>
|
||||||
</div>
|
|
||||||
</xpath>
|
</xpath>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|||||||
Reference in New Issue
Block a user