summaryrefslogtreecommitdiff
path: root/fixco_custom/views
diff options
context:
space:
mode:
Diffstat (limited to 'fixco_custom/views')
-rw-r--r--fixco_custom/views/account_move.xml24
-rwxr-xr-xfixco_custom/views/sale_order.xml16
2 files changed, 38 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
diff --git a/fixco_custom/views/sale_order.xml b/fixco_custom/views/sale_order.xml
index 48e4a31..00234d9 100755
--- a/fixco_custom/views/sale_order.xml
+++ b/fixco_custom/views/sale_order.xml
@@ -38,6 +38,22 @@
<field name="invoice_mp" required="1"/>
<field name="note_by_buyer" readonly="1"/>
</field>
+ <field name="amount_total" position="after">
+ <field name="remaining_down_payment"/>
+ </field>
+ </field>
+ </record>
+ </data>
+
+ <data>
+ <record id="sale_order_tree_inherit" model="ir.ui.view">
+ <field name="name">Sale Order</field>
+ <field name="model">sale.order</field>
+ <field name="inherit_id" ref="sale.view_order_tree"/>
+ <field name="arch" type="xml">
+ <field name="amount_total" position="after">
+ <field name="remaining_down_payment" optional="hide"/>
+ </field>
</field>
</record>
</data>