diff options
| -rw-r--r-- | indoteknik_custom/views/account_move.xml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/indoteknik_custom/views/account_move.xml b/indoteknik_custom/views/account_move.xml index c315bb1c..6bdc16d0 100644 --- a/indoteknik_custom/views/account_move.xml +++ b/indoteknik_custom/views/account_move.xml @@ -18,6 +18,7 @@ </field> </field> </record> + <record id="account_move_tree_inherit" model="ir.ui.view"> <field name="name">Account Move</field> <field name="model">account.move</field> @@ -32,5 +33,20 @@ </field> </field> </record> + + <record id="account_move_inherit_purchase_inherit" model="ir.ui.view"> + <field name="name">Account Move</field> + <field name="model">account.move</field> + <field name="inherit_id" ref="purchase.view_move_form_inherit_purchase"/> + <field name="arch" type="xml"> + <field name="purchase_line_id" position="attributes"> + <attribute name="invisible">0</attribute> + <attribute name="optional">hide</attribute> + <attribute name="attrs"> + {'column_invisible': [('parent.move_type', '!=', 'in_invoice')]} + </attribute> + </field> + </field> + </record> </data> </odoo>
\ No newline at end of file |
