Merge invoice and credit note

issue5225
review18921002
This commit is contained in:
Cédric Krier
2016-03-20 22:59:32 +01:00
parent b2f203fce5
commit fb202e8ec1
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -37,9 +37,9 @@ class Sale:
)
return invoice_domain
def _get_invoice_sale(self, invoice_type):
def _get_invoice_sale(self):
Invoice = Pool().get('account.invoice')
invoice = super(Sale, self)._get_invoice_sale(invoice_type)
invoice = super(Sale, self)._get_invoice_sale()
if self.invoice_grouping_method:
domain = self._get_grouped_invoice_domain(invoice)
order = self._get_grouped_invoice_order()
+1 -1
View File
@@ -144,7 +144,7 @@ Check the invoices::
2
>>> invoice = invoices[0]
>>> invoice.type
u'out_invoice'
u'out'
>>> invoice.click('post')
>>> invoice.state
u'posted'