[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>
|
||||||
<group name="properties">
|
<group name="properties">
|
||||||
<group>
|
<group>
|
||||||
<field name="property_account_income" domain="[('type','=','other')]" groups="account.group_account_user"
|
<field name="property_account_income" domain="[('type','=','other')]" groups="account.group_account_user"/>
|
||||||
attrs="{'readonly': [('is_product_variant', '=', True)]}"/>
|
|
||||||
<field name="taxes_id" colspan="2" widget="many2many_tags"
|
<field name="taxes_id" colspan="2" widget="many2many_tags"
|
||||||
attrs="{'readonly':[('sale_ok','=',0)]}"/>
|
attrs="{'readonly':[('sale_ok','=',0)]}"/>
|
||||||
</group>
|
</group>
|
||||||
<group>
|
<group>
|
||||||
<field name="property_account_expense" domain="[('type','=','other')]" groups="account.group_account_user"
|
<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"/>
|
||||||
<field name="supplier_taxes_id" colspan="2" widget="many2many_tags"
|
|
||||||
attrs="{'readonly': [('is_product_variant', '=', True)]}"/>
|
|
||||||
</group>
|
</group>
|
||||||
</group>
|
</group>
|
||||||
</page>
|
</page>
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
'default_subject': name,
|
'default_subject': name,
|
||||||
'default_name': name,
|
'default_name': name,
|
||||||
}"
|
}"
|
||||||
attrs="{'invisible': [('is_product_variant', '=', False)]}"
|
|
||||||
/>
|
/>
|
||||||
</field>
|
</field>
|
||||||
</field>
|
</field>
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
<field name="name">Stock Value At Date</field>
|
<field name="name">Stock Value At Date</field>
|
||||||
<field name="model">stock.history</field>
|
<field name="model">stock.history</field>
|
||||||
<field name="arch" type="xml">
|
<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="location_id" invisible="1"/>
|
||||||
<field name="product_id" invisible="1"/>
|
<field name="product_id" invisible="1"/>
|
||||||
<field name="move_id"/>
|
<field name="move_id"/>
|
||||||
|
|
Loading…
Reference in New Issue