summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indoteknik_custom/views/unpaid_invoice_view.xml18
1 files changed, 14 insertions, 4 deletions
diff --git a/indoteknik_custom/views/unpaid_invoice_view.xml b/indoteknik_custom/views/unpaid_invoice_view.xml
index e56bbee7..6d052eee 100644
--- a/indoteknik_custom/views/unpaid_invoice_view.xml
+++ b/indoteknik_custom/views/unpaid_invoice_view.xml
@@ -35,6 +35,12 @@
<field name="model">unpaid.invoice.view</field>
<field name="arch" type="xml">
<form string="Unpaid Invoice Detail" create="false" edit="false" delete="false">
+ <header>
+ <button name="action_create_surat_piutang"
+ type="object"
+ string="Create Surat Piutang"
+ class="oe_highlight"/>
+ </header>
<sheet>
<group>
<group>
@@ -46,6 +52,10 @@
<field name="date_kirim_tukar_faktur"/>
<field name="date_terima_tukar_faktur"/>
<field name="payment_term_id"/>
+ <button name="action_create_surat_piutang"
+ type="object"
+ string="Create Surat Piutang"
+ class="oe_highlight"/>
</group>
<group>
<field name="sale_id"/>
@@ -57,10 +67,10 @@
decoration-warning="payment_state == 'partial'"/>
<field name="amount_total"/>
<field name="amount_residual"/>
- <button name="action_create_surat_piutang"
- type="object"
- string="Create Surat Piutang"
- class="oe_highlight"/>
+ <field name="payment_difficulty" widget="badge"
+ decoration-info="payment_difficulty == 'normal'"
+ decoration-warning="payment_difficulty in ('agak_sulit', 'sulit')"
+ decoration-danger="payment_difficulty == 'bermasalah'"/>
</group>
</group>
</sheet>