summaryrefslogtreecommitdiff
path: root/fixco_custom/views/account_move.xml
diff options
context:
space:
mode:
Diffstat (limited to 'fixco_custom/views/account_move.xml')
-rw-r--r--fixco_custom/views/account_move.xml24
1 files changed, 22 insertions, 2 deletions
diff --git a/fixco_custom/views/account_move.xml b/fixco_custom/views/account_move.xml
index 0e0b381..88d3b46 100644
--- a/fixco_custom/views/account_move.xml
+++ b/fixco_custom/views/account_move.xml
@@ -9,7 +9,7 @@
<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'])]}"/>
+ type="action" class="btn-primary" attrs="{'invisible': [('state', '!=', 'posted')]}"/>
</button>
<button name="open_reconcile_view" position="after">
@@ -40,7 +40,13 @@
<field name="partner_id" position="after">
<field name="address" readonly="1" attrs="{'invisible': [('move_type', '!=', 'out_invoice')]}"/>
</field>
-
+
+ <field name="reversed_entry_id" position="before">
+ <field name="uangmuka" readonly="1" attrs="{'invisible': [('move_type', '!=', 'entry')]}"/>
+ <field name="reklas" readonly="1" attrs="{'invisible': [('move_type', '!=', 'entry')]}"/>
+ <field name="reklas_used" readonly="1" attrs="{'invisible': [('move_type', '!=', 'entry')]}"/>
+ <field name="reklas_used_by" readonly="1" attrs="{'invisible': [('move_type', '!=', 'entry')]}"/>
+ </field>
<field name="invoice_date" position="after">
<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'))]}"/>
@@ -95,5 +101,19 @@
</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>
+ <field name="inherit_id" ref="account.view_invoice_tree"/>
+ <field name="arch" type="xml">
+ <field name="state" position="after">
+ <field name="uangmuka" optional="hide"/>
+ <field name="reklas" optional="hide"/>
+ <field name="reklas_used" optional="hide"/>
+ <field name="reklas_used_by" optional="hide"/>
+ </field>
+ </field>
+ </record>
</data>
</odoo> \ No newline at end of file