diff --git a/odex25_project/project_base/models/project_invoice.py b/odex25_project/project_base/models/project_invoice.py index ad4d67a83..8cc3d327c 100644 --- a/odex25_project/project_base/models/project_invoice.py +++ b/odex25_project/project_base/models/project_invoice.py @@ -53,7 +53,7 @@ class ProjectInvoice(models.Model): string="Allowed Internal Users", default=lambda self: self.env.user, domain=[('share', '=', False)]) allowed_portal_user_ids = fields.Many2many('res.users', 'project_invoice_allowed_portal_users_rel', string="Allowed Portal Users", domain=[('share', '=', True)]) - @api.depends('invoice_id') + @api.depends('invoice_id','invoice_id.invoice_payments_widget','name') def _compute_indo_invoice_id(self): for record in self: record.actual_date = record.invoice_id.invoice_date @@ -102,7 +102,7 @@ class ProjectInvoice(models.Model): else: rec.actual_payment_date = False - @api.depends('invoice_id', 'invoice_id.amount_residual', 'invoice_id.invoice_payments_widget') + @api.depends('invoice_id', 'invoice_id.amount_residual', 'invoice_id.invoice_payments_widget',) def _compute_payment_amount(self): for rec in self: rec.payment_amount = rec.invoice_id.amount_total - rec.residual_amount