summaryrefslogtreecommitdiff
path: root/indoteknik_custom/views
diff options
context:
space:
mode:
authorunknown <it@fixcomart.co.id>2025-09-16 15:01:02 +0700
committerunknown <it@fixcomart.co.id>2025-09-16 15:01:02 +0700
commit540136f8096f090b481d139c58c3f36c28aa69bb (patch)
tree564e27b879251c961afe6550058e9f47a1744bd0 /indoteknik_custom/views
parent462fb823c79d8652a6a08e267b00b13c7bbe5df0 (diff)
(andri) add payment diff + fix onchange ketika pilih partner
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>