summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--indoteknik_custom/models/res_partner.py15
1 files changed, 1 insertions, 14 deletions
diff --git a/indoteknik_custom/models/res_partner.py b/indoteknik_custom/models/res_partner.py
index 52947128..236df16f 100644
--- a/indoteknik_custom/models/res_partner.py
+++ b/indoteknik_custom/models/res_partner.py
@@ -165,26 +165,13 @@ class ResPartner(models.Model):
"this feature", tracking=3)
telegram_id = fields.Char(string="Telegram")
avg_aging= fields.Float(string='Average Aging')
- payment_difficulty = fields.Selection([('bermasalah', 'Bermasalah'),('sulit', 'Sulit'),('agak_sulit', 'Agak Sulit'),('normal', 'Normal')], string='Payment Difficulty', compute="_compute_payment_difficulty", inverse = "_inverse_payment_difficulty", tracking=3)
+ payment_difficulty = fields.Selection([('bermasalah', 'Bermasalah'),('sulit', 'Sulit'),('agak_sulit', 'Agak Sulit'),('normal', 'Normal')], string='Payment Difficulty', tracking=3)
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)
# tidak terpakai
- @api.depends('parent_id.payment_difficulty')
- def _compute_payment_difficulty(self):
- for partner in self:
- if partner.parent_id:
- partner.payment_difficulty = partner.parent_id.payment_difficulty
-
- # tidak terpakai
- def _inverse_payment_difficulty(self):
- for partner in self:
- if not partner.parent_id:
- partner.child_ids.write({
- 'payment_difficulty': partner.payment_difficulty
- })
@api.model
def _default_payment_term(self):