Merge pull request #912 from expsa/project_test

Update project_invoice.py
This commit is contained in:
zainab2097 2024-08-29 11:20:45 +03:00 committed by GitHub
commit b296cab516
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -289,7 +289,7 @@ class ProjectInvoiceLine(models.Model):
is_downpayment = fields.Boolean(related="order_line_id.is_downpayment", string="Is a down payment", store=True)
qty_invoiced = fields.Float(string='Invoiced Quantity', readonly=True, digits='Product Unit of Measure')
name = fields.Char()
account_id = fields.Many2one(comodel_name='account.account')
account_id = fields.Many2one(comodel_name='account.account',related='project_invoice_id.project_id.category_id.account_id')
@api.depends("project_invoice_id")
def get_price_unit_value(self):