Update project_invoice.py
This commit is contained in:
parent
4fa89867c5
commit
4200a16d79
|
|
@ -159,7 +159,7 @@ class ProjectInvoice(models.Model):
|
|||
'move_type': 'out_invoice',
|
||||
'currency_id': self.currency_id.id,
|
||||
'ref': self.project_id.project_no,
|
||||
'note': self.project_id.name,
|
||||
'invoice_origin': self.project_id.name,
|
||||
'partner_id': self.invoice_type == 'consultant' and self.project_id.consultant_id.id or self.project_id.partner_id.id ,
|
||||
'partner_shipping_id': self.project_id.partner_id.id,
|
||||
'partner_bank_id': self.company_id.partner_id.bank_ids.filtered(
|
||||
|
|
@ -175,7 +175,7 @@ class ProjectInvoice(models.Model):
|
|||
'move_type': 'in_invoice',
|
||||
'currency_id': self.currency_id.id,
|
||||
'ref': self.project_id.project_no,
|
||||
'note': self.project_id.name,
|
||||
'invoice_origin': self.project_id.name,
|
||||
'partner_id': self.invoice_type == 'consultant' and self.project_id.consultant_id.id or self.project_id.partner_id.id ,
|
||||
'partner_shipping_id': self.project_id.partner_id.id,
|
||||
'partner_bank_id': self.company_id.partner_id.bank_ids.filtered(
|
||||
|
|
|
|||
Loading…
Reference in New Issue