Update project_invoice.py
This commit is contained in:
parent
b887d2d495
commit
d808bf7bbf
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue