Fix TypeError: _get_invoice_sale() takes exactly 2 arguments (1 given)

This commit is contained in:
Jes?s Mart?n Jim?nez 2016-07-20 14:13:37 +02:00
parent 2a8f961c08
commit 705673d090
1 changed files with 2 additions and 2 deletions

View File

@ -14,8 +14,8 @@ __metaclass__ = PoolMeta
class Sale:
__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()
invoice.shop = self.shop
return invoice