minor fix

This commit is contained in:
Camilo Sarmiento 2020-06-10 15:26:41 -05:00
parent 1c1eb17cf1
commit 7aa236808b

View file

@ -15,15 +15,9 @@ class InvoiceLine(metaclass=PoolMeta):
def __setup__(cls):
super(InvoiceLine, cls).__setup__()
# def _get_latin_move_lines(self, amount, type_, account_stock_method):
# if type_.endswith('customer'):
# return []
#
# return super(InvoiceLine, self)._get_latin_move_lines(amount, type_, account_stock_method)
def get_move_lines(self):
Sale = Pool().get('sale.sale')
if self.origin:
if self.origin and self.invoice.type == 'out':
Sale._create_productions([self.origin])
result = super(InvoiceLine, self).get_move_lines()