Update project_invoice.py
This commit is contained in:
parent
06dc2493b9
commit
c72e2ffa17
|
|
@ -52,6 +52,11 @@ class ProjectInvoice(models.Model):
|
|||
allowed_internal_user_ids = fields.Many2many('res.users', 'project_invoice_allowed_internal_users_rel',
|
||||
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')
|
||||
|
|
|
|||
Loading…
Reference in New Issue