From 347e5e070592e7517b90160d666ce41ddff10347 Mon Sep 17 00:00:00 2001 From: "Indoteknik ." Date: Tue, 8 Jul 2025 09:14:45 +0700 Subject: (andri) fix --- indoteknik_custom/models/res_partner.py | 8 ++++---- indoteknik_custom/views/res_partner.xml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/indoteknik_custom/models/res_partner.py b/indoteknik_custom/models/res_partner.py index 33c01f37..78fd98ae 100644 --- a/indoteknik_custom/models/res_partner.py +++ b/indoteknik_custom/models/res_partner.py @@ -215,8 +215,8 @@ class ResPartner(models.Model): rec._update_address_from_coords() # Sinkronisasi payment_difficulty ke semua anak jika partner ini adalah parent - if not rec.parent_id and 'payment_diff' in vals: - rec.child_ids.write({'payment_diff': vals['payment_diff']}) + if not rec.parent_id and 'payment_difficulty' in vals: + rec.child_ids.write({'payment_difficulty': vals['payment_difficulty']}) # # # if 'property_payment_term_id' in vals: # # if not self.env.user.is_accounting and vals['property_payment_term_id'] != 26: @@ -235,8 +235,8 @@ class ResPartner(models.Model): for rec in records: if vals.get('latitude') and vals.get('longtitude'): rec._update_address_from_coords() - if rec.parent_id and not vals.get('payment_diff'): - rec.payment_diff = rec.parent_id.payment_diff + if rec.parent_id and not vals.get('payment_difficulty'): + rec.payment_difficulty = rec.parent_id.payment_difficulty return records @api.constrains('name') diff --git a/indoteknik_custom/views/res_partner.xml b/indoteknik_custom/views/res_partner.xml index 0a2c0377..a030a75c 100644 --- a/indoteknik_custom/views/res_partner.xml +++ b/indoteknik_custom/views/res_partner.xml @@ -216,7 +216,7 @@ - + -- cgit v1.2.3 From c667a8699762057c9e6191466a182ebb69cb66c7 Mon Sep 17 00:00:00 2001 From: "Indoteknik ." Date: Tue, 8 Jul 2025 09:16:50 +0700 Subject: (andri) fix --- indoteknik_custom/models/res_partner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indoteknik_custom/models/res_partner.py b/indoteknik_custom/models/res_partner.py index 78fd98ae..52947128 100644 --- a/indoteknik_custom/models/res_partner.py +++ b/indoteknik_custom/models/res_partner.py @@ -169,7 +169,7 @@ class ResPartner(models.Model): payment_history_url = fields.Text(string='Payment History URL') # no compute - payment_diff = fields.Selection([('bermasalah', 'Bermasalah'),('sulit', 'Sulit'),('agak_sulit', 'Agak Sulit'),('normal', 'Normal')], string='Payment Difficulty', tracking=3) + # payment_diff = fields.Selection([('bermasalah', 'Bermasalah'),('sulit', 'Sulit'),('agak_sulit', 'Agak Sulit'),('normal', 'Normal')], string='Payment Difficulty', tracking=3) # tidak terpakai @api.depends('parent_id.payment_difficulty') -- cgit v1.2.3