From 736f20ff61f251beda4a7f714ed9fb0550fe88f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dar=C3=ADo=20Lodeiros?= Date: Fri, 23 Oct 2020 12:27:06 +0200 Subject: [PATCH] [IMP] Warning string labels --- pms/models/account_payment.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pms/models/account_payment.py b/pms/models/account_payment.py index ca7f2f06f..76742d9f3 100644 --- a/pms/models/account_payment.py +++ b/pms/models/account_payment.py @@ -8,7 +8,7 @@ class AccountPayment(models.Model): _inherit = "account.payment" # Fields declaration - folio_id = fields.Many2one("pms.folio", string="Folio") + folio_id = fields.Many2one("pms.folio", string="Folio Reference") amount_total_folio = fields.Float( compute="_compute_folio_amount", store=True, @@ -47,12 +47,12 @@ class AccountPayment(models.Model): return res # Constraints and onchanges - @api.onchange("amount", "payment_date", "journal_id") - def onchange_amount(self): - if self._origin: - self.save_amount = self._origin.amount - self.save_journal_id = self._origin.journal_id.id - self.save_date = self._origin.payment_date + # @api.onchange("amount", "payment_date", "journal_id") + # def onchange_amount(self): + # if self._origin: + # self.save_amount = self._origin.amount + # self.save_journal_id = self._origin.journal_id.id + # self.save_date = self._origin.payment_date # Action methods # def return_payment_folio(self):