summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFIN-IT_AndriFP <it@fixcomart.co.id>2025-10-28 11:08:55 +0700
committerFIN-IT_AndriFP <it@fixcomart.co.id>2025-10-28 11:08:55 +0700
commit2600c00e6944fd3d594fc0bd3a5a7d1e581d7b91 (patch)
tree9e61cd389cef412c6a7479020a4e9c5c166f0423
parent13a84728c8aae076f2d10c77a8ba5aead789a47b (diff)
(andri) show internal notes by contact di view SO dan Inv
-rw-r--r--indoteknik_custom/models/account_move.py1
-rwxr-xr-xindoteknik_custom/models/sale_order.py1
-rw-r--r--indoteknik_custom/views/account_move.xml1
-rwxr-xr-xindoteknik_custom/views/sale_order.xml1
4 files changed, 4 insertions, 0 deletions
diff --git a/indoteknik_custom/models/account_move.py b/indoteknik_custom/models/account_move.py
index 44b3cb76..684ef335 100644
--- a/indoteknik_custom/models/account_move.py
+++ b/indoteknik_custom/models/account_move.py
@@ -106,6 +106,7 @@ class AccountMove(models.Model):
help="Tanggal janji bayar dari customer setelah reminder dikirim.",
tracking=True
)
+ internal_notes_contact = fields.Text(related='partner_id.comment', string="Internal Notes", readonly=True, help="Internal Notes dari contact utama customer.")
# def _check_and_lock_cbd(self):
# cbd_term = self.env['account.payment.term'].browse(26)
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py
index e254ef41..e1fcb88a 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -397,6 +397,7 @@ class SaleOrder(models.Model):
string="Partner Locked CBD",
compute="_compute_partner_is_cbd_locked"
)
+ internal_notes_contact = fields.Text(related='partner_id.comment', string="Internal Notes", readonly=True)
def action_open_partial_delivery_wizard(self):
# raise UserError("Fitur ini sedang dalam pengembangan")
diff --git a/indoteknik_custom/views/account_move.xml b/indoteknik_custom/views/account_move.xml
index ba86277a..fd59f9f6 100644
--- a/indoteknik_custom/views/account_move.xml
+++ b/indoteknik_custom/views/account_move.xml
@@ -80,6 +80,7 @@
type="object"
class="btn-primary"
help="Sync Janji Bayar Customer ke Invoices dengan jumlah Due Date yang sama"/>
+ <field name="internal_notes_contact" readonly="1"/>
</field>
<field name="to_check" position="after">
<field name="already_paid"/>
diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml
index 82daa36f..eb40b0c3 100755
--- a/indoteknik_custom/views/sale_order.xml
+++ b/indoteknik_custom/views/sale_order.xml
@@ -152,6 +152,7 @@
<field name="percent_margin_after_delivery_purchase"/>
<field name="total_weight"/>
<field name="pareto_status"/>
+ <field name="internal_notes_contact" readonly="1"/>
</field>
<field name="analytic_account_id" position="after">
<field name="customer_type"/>