Merge invoice and credit note

ttps://bugs.tryton.org/issue5225
This commit is contained in:
resteve 2016-03-30 13:00:44 +02:00
parent f3f37687c9
commit ee1f6eee23
1 changed files with 2 additions and 2 deletions

View File

@ -10,8 +10,8 @@ class Sale:
__metaclass__ = PoolMeta
__name__ = 'sale.sale'
def _get_invoice_sale(self, invoice_type):
invoice = super(Sale, self)._get_invoice_sale(invoice_type)
def _get_invoice_sale(self):
invoice = super(Sale, self)._get_invoice_sale()
journal = self.shop and self.shop.journal or False
if journal:
invoice.journal = journal