fix form
This commit is contained in:
parent
39eb9608dc
commit
69917d1ec2
1 changed files with 11 additions and 10 deletions
|
|
@ -11,16 +11,17 @@
|
||||||
<field name="standard_price" position="attributes">
|
<field name="standard_price" position="attributes">
|
||||||
<attribute name="readonly">last_purchase_price_compute_type != 'manual_update'</attribute>
|
<attribute name="readonly">last_purchase_price_compute_type != 'manual_update'</attribute>
|
||||||
</field>
|
</field>
|
||||||
<field name="list_price" position="after">
|
<field name="standard_price" position="before">
|
||||||
<separator string="Label Info" colspan="2"/>
|
<group string="Automatic Price Update" colspan="2" attrs="{'invisible': [('last_purchase_price_compute_type', '!=', 'automatic_update')]}">
|
||||||
<field name="last_purchase_price_compute_type" />
|
<field name="last_purchase_price_compute_type" readonly="1"/>
|
||||||
<field name="last_purchase_price_received"
|
<field name="last_purchase_price_received"
|
||||||
widget="monetary"
|
widget="monetary"
|
||||||
options="{'currency_field': 'currency_id', 'field_digits': True}"
|
options="{'currency_field': 'currency_id', 'field_digits': True}"
|
||||||
readonly="1"
|
readonly="1"
|
||||||
/>
|
/>
|
||||||
<field name="list_price_theoritical" readonly="1" />
|
<field name="list_price_theoritical" readonly="1" />
|
||||||
<field name="last_purchase_price_updated" readonly="1" />
|
<field name="last_purchase_price_updated" readonly="1" />
|
||||||
|
</group>
|
||||||
</field>
|
</field>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue