mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[9.0][IMP] contract: Get default invoice contact. (#32)
This commit is contained in:
committed by
Francisco Ivan Anton Prieto
parent
f1c3987ae2
commit
f3dfaed337
@@ -204,7 +204,8 @@ class AccountAnalyticAccount(models.Model):
|
||||
invoice = self.env['account.invoice'].new({
|
||||
'reference': contract.code,
|
||||
'type': 'out_invoice',
|
||||
'partner_id': contract.partner_id,
|
||||
'partner_id': contract.partner_id.address_get(
|
||||
['invoice'])['invoice'],
|
||||
'currency_id': currency.id,
|
||||
'journal_id': journal.id,
|
||||
'date_invoice': contract.recurring_next_date,
|
||||
|
||||
Reference in New Issue
Block a user