summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/views')
-rw-r--r--indoteknik_custom/views/letter_receivable.xml5
-rw-r--r--indoteknik_custom/views/unpaid_invoice_view.xml4
2 files changed, 7 insertions, 2 deletions
diff --git a/indoteknik_custom/views/letter_receivable.xml b/indoteknik_custom/views/letter_receivable.xml
index 3a7c2c65..f55d84e8 100644
--- a/indoteknik_custom/views/letter_receivable.xml
+++ b/indoteknik_custom/views/letter_receivable.xml
@@ -10,7 +10,7 @@
<field name="perihal"/>
<field name="state" widget="badge"
decoration-danger="state == 'draft'"
- decoration-warning="state == 'waiting_approval'"
+ decoration-warning="state in ('waiting_approval_sales', 'waiting_approval_pimpinan')"
decoration-success="state == 'sent'"/>
<field name="send_date"/>
<!-- <field name="line_ids" widget="one2many_list"/> -->
@@ -25,7 +25,7 @@
<field name="arch" type="xml">
<form string="Surat Piutang">
<header>
- <field name="state" widget="statusbar" statusbar_visible="draft,waiting_approval,sent"/>
+ <field name="state" widget="statusbar" statusbar_visible="draft,waiting_approval_sales,waiting_approval_pimpinan,sent"/>
<button name="action_approve" type="object" string="Approve &amp; Send" class="btn-primary"/>
<!-- <button name="action_send_letter" type="object" string="Email Send" class="btn-primary"/> -->
</header>
@@ -58,6 +58,7 @@
<field name="tujuan_email"/>
<field name="perihal"/>
<field name="partner_id" options="{'no_create': True}"/>
+ <field name="payment_difficulty"/>
<field name="send_date" readonly="1"/>
</group>
<group>
diff --git a/indoteknik_custom/views/unpaid_invoice_view.xml b/indoteknik_custom/views/unpaid_invoice_view.xml
index 20145a46..e56bbee7 100644
--- a/indoteknik_custom/views/unpaid_invoice_view.xml
+++ b/indoteknik_custom/views/unpaid_invoice_view.xml
@@ -21,6 +21,10 @@
decoration-danger="payment_state == 'not_paid'"
decoration-warning="payment_state == 'partial'"/>
<field name="invoice_user_id"/>
+ <field name="payment_difficulty" widget="badge"
+ decoration-info="payment_difficulty == 'normal'"
+ decoration-warning="payment_difficulty in ('agak_sulit', 'sulit')"
+ decoration-danger="payment_difficulty == 'bermasalah'"/>
</tree>
</field>
</record>