diff options
Diffstat (limited to 'fixco_custom/views/account_move.xml')
| -rw-r--r-- | fixco_custom/views/account_move.xml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/fixco_custom/views/account_move.xml b/fixco_custom/views/account_move.xml index daa5707..421dc49 100644 --- a/fixco_custom/views/account_move.xml +++ b/fixco_custom/views/account_move.xml @@ -6,6 +6,11 @@ <field name="model">account.move</field> <field name="inherit_id" ref="account.view_move_form"/> <field name="arch" type="xml"> + + <button name="action_post" position="after"> + <button name="fixco_custom.action_view_invoice_reklas" string="Reklas" + type="action" class="btn-primary" attrs="{'invisible': ['|', ('state', '!=', 'posted'), ('move_type', 'not in', ['out_invoice', 'in_invoice'])]}"/> + </button> <button name="open_reconcile_view" position="after"> <button type="object" name="action_view_related_payment" @@ -27,8 +32,10 @@ </field> <field name="invoice_date" position="after"> - <field name="sale_id" readonly="1" attrs="{'invisible': [('move_type', '!=', 'out_invoice')]}"/> + <field name="sale_id" readonly="1" attrs="{'invisible': [('move_type', 'not in', ('out_invoice','entry'))]}"/> + <field name="purchase_order_id" readonly="1" attrs="{'invisible': [('move_type', 'not in', ('in_invoice','entry'))]}"/> <field name="picking_id" readonly="1" attrs="{'invisible': [('move_type', '!=', 'out_invoice')]}"/> + <field name="bill_id" readonly="1" attrs="{'invisible': [('move_type', '!=', 'in_invoice')]}"/> </field> <!-- ✅ Add the new Many2many field after invoice_vendor_bill_id --> |
