[MIG] commission_simple_agent : technical migration to 18

This commit is contained in:
Florian da Costa
2025-09-02 16:02:40 +02:00
parent e0e3b601e5
commit faea568a6d
3 changed files with 5 additions and 5 deletions

View File

@@ -4,7 +4,7 @@
{
'name': 'Commission Simple Agent',
'version': '16.0.1.0.0',
'version': '18.0.1.0.0',
'category': 'Sales',
'license': 'AGPL-3',
'summary': 'Glue module between commission_simple and sale_agent',

View File

@@ -11,8 +11,8 @@
<field name="model">commission.profile</field>
<field name="inherit_id" ref="commission_simple.commission_profile_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='assign_ids']/tree/field[@name='user_id']" position="after">
<field name="agent_id" attrs="{'required': [('assign_type', '=', 'agent')], 'readonly': [('assign_type', '!=', 'agent')]}"/>
<xpath expr="//field[@name='assign_ids']/list/field[@name='user_id']" position="after">
<field name="agent_id" required="assign_type == 'agent'" readonly="assign_type != 'agent'"/>
</xpath>
</field>
</record>

View File

@@ -7,9 +7,9 @@
<odoo>
<record id="commission_result_tree" model="ir.ui.view">
<record id="commission_result_list" model="ir.ui.view">
<field name="model">commission.result</field>
<field name="inherit_id" ref="commission_simple.commission_result_tree"/>
<field name="inherit_id" ref="commission_simple.commission_result_list"/>
<field name="arch" type="xml">
<field name="assign_type" position="attributes">
<attribute name="decoration-danger">assign_type == 'agent'</attribute>