Browse Source

[9.0][IMP] contract: Get default invoice contact. (#32)

13.0-mig-contract
carlosdauden 9 years ago
committed by Administrator
parent
commit
241996d7f3
  1. 3
      contract/models/contract.py

3
contract/models/contract.py

@ -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,

Loading…
Cancel
Save