Browse Source

Complete the create_invoice method

pull/284/head
Florent THOMAS 7 years ago
parent
commit
135638d96a
  1. 2
      contract_sale_generation/models/account_analytic_account.py

2
contract_sale_generation/models/account_analytic_account.py

@ -68,7 +68,7 @@ class AccountAnalyticAccount(models.Model):
if self.type == 'invoice':
return super(AccountAnalyticAccount, self)._create_invoice()
else:
return self.env['account.invoice']
return self.env['account.invoice']._create_sale()
@api.multi
def _create_sale(self):

Loading…
Cancel
Save