mirror of
https://bitbucket.org/presik/trytonpsk-sale_pos_frontend_rest.git
synced 2023-12-14 06:12:59 +01:00
minor fix
This commit is contained in:
parent
1c1eb17cf1
commit
7aa236808b
1 changed files with 1 additions and 7 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue