[IMP] is_product_variant not needed in most views + no delete in stock valuation history
This commit is contained in:
parent
64fde56a54
commit
7191bbfb24
|
@ -15,16 +15,13 @@
|
|||
</group>
|
||||
<group name="properties">
|
||||
<group>
|
||||
<field name="property_account_income" domain="[('type','=','other')]" groups="account.group_account_user"
|
||||
attrs="{'readonly': [('is_product_variant', '=', True)]}"/>
|
||||
<field name="property_account_income" domain="[('type','=','other')]" groups="account.group_account_user"/>
|
||||
<field name="taxes_id" colspan="2" widget="many2many_tags"
|
||||
attrs="{'readonly':[('sale_ok','=',0)]}"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="property_account_expense" domain="[('type','=','other')]" groups="account.group_account_user"
|
||||
attrs="{'readonly': [('is_product_variant', '=', True)]}"/>
|
||||
<field name="supplier_taxes_id" colspan="2" widget="many2many_tags"
|
||||
attrs="{'readonly': [('is_product_variant', '=', True)]}"/>
|
||||
<field name="property_account_expense" domain="[('type','=','other')]" groups="account.group_account_user"/>
|
||||
<field name="supplier_taxes_id" colspan="2" widget="many2many_tags"/>
|
||||
</group>
|
||||
</group>
|
||||
</page>
|
||||
|
|
|
@ -15,7 +15,6 @@
|
|||
'default_subject': name,
|
||||
'default_name': name,
|
||||
}"
|
||||
attrs="{'invisible': [('is_product_variant', '=', False)]}"
|
||||
/>
|
||||
</field>
|
||||
</field>
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
<field name="name">Stock Value At Date</field>
|
||||
<field name="model">stock.history</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Stock Value At Date" create="0">
|
||||
<tree string="Stock Value At Date" create="0" delete="0">
|
||||
<field name="location_id" invisible="1"/>
|
||||
<field name="product_id" invisible="1"/>
|
||||
<field name="move_id"/>
|
||||
|
|
Loading…
Reference in New Issue