Merge pull request #1160 from expsa/fix_total

Update project_invoice.py
This commit is contained in:
zainab2097 2024-09-15 15:02:42 +03:00 committed by GitHub
commit d3ee88bec9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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.onchange("project_invline_ids")
@api.onchange("project_invline_ids.project_invoice_id")
def get_price_unit_value_test(self):
for rec in self.project_invline_ids:
rec.price_unit = rec.project_invoice_id.project_id.contract_value_untaxed