Merge pull request #1154 from expsa/fix_total
Update project_invoice.py
This commit is contained in:
commit
fca12c572e
|
|
@ -53,6 +53,11 @@ 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")
|
||||
def get_price_unit_value_test(self):
|
||||
for rec in self:
|
||||
rec.price_unit = rec.project_invoice_id.project_id.contract_value_untaxed
|
||||
|
||||
|
||||
@api.depends('invoice_id','invoice_id.invoice_payments_widget','name')
|
||||
def _compute_indo_invoice_id(self):
|
||||
|
|
|
|||
Loading…
Reference in New Issue