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.xml3
-rwxr-xr-xfixco_custom/views/sale_order.xml9
-rwxr-xr-xfixco_custom/views/stock_picking.xml2
-rw-r--r--fixco_custom/views/upload_bills.xml2
4 files changed, 13 insertions, 3 deletions
diff --git a/fixco_custom/views/account_move.xml b/fixco_custom/views/account_move.xml
index 3615fb7..daa5707 100644
--- a/fixco_custom/views/account_move.xml
+++ b/fixco_custom/views/account_move.xml
@@ -10,7 +10,8 @@
<button name="open_reconcile_view" position="after">
<button type="object" name="action_view_related_payment"
class="oe_stat_button"
- icon="fa-pencil-square-o">
+ icon="fa-pencil-square-o"
+ attrs="{'invisible': [('move_type', '!=', 'in_invoice')]}">
<field name="count_payment" widget="statinfo" string="Payments"/>
</button>
</button>
diff --git a/fixco_custom/views/sale_order.xml b/fixco_custom/views/sale_order.xml
index 137ded1..0dfd9af 100755
--- a/fixco_custom/views/sale_order.xml
+++ b/fixco_custom/views/sale_order.xml
@@ -6,6 +6,15 @@
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
+ <xpath expr="//button[@name='action_view_invoice']" position="before">
+ <button type="object"
+ name="action_view_related_payment"
+ class="oe_stat_button"
+ icon="fa-pencil-square-o"
+ attrs="{'invisible': [('count_payment', '=', 0)]}" groups="base.group_user">
+ <field name="count_payment" widget="statinfo" string="Payments"/>
+ </button>
+ </xpath>
<button id="action_confirm" position="after">
<button name="open_form_uangmuka_penjualan"
string="UangMuka"
diff --git a/fixco_custom/views/stock_picking.xml b/fixco_custom/views/stock_picking.xml
index c7890f7..073cd47 100755
--- a/fixco_custom/views/stock_picking.xml
+++ b/fixco_custom/views/stock_picking.xml
@@ -25,7 +25,7 @@
<button name="action_create_invoice_from_mr"
string="Create Bill"
type="object"
- attrs="{'invisible': [('state', '!=', 'done')]}"
+ attrs="{'invisible': [('state', '!=', 'done'), ('picking_type_code', '!=', 'incoming')]}"
/>
</button>
diff --git a/fixco_custom/views/upload_bills.xml b/fixco_custom/views/upload_bills.xml
index a90546f..472fefc 100644
--- a/fixco_custom/views/upload_bills.xml
+++ b/fixco_custom/views/upload_bills.xml
@@ -52,7 +52,7 @@
<menuitem
id="menu_upload_bills"
name="Upload Bills"
- parent="sale.menu_sale_report"
+ parent="purchase.menu_procurement_management"
sequence="4"
action="upload_bills_action"
/>