minor fix

This commit is contained in:
wilson gomez 2022-01-22 11:52:40 -05:00
parent 61bc966e54
commit 8b21f0e2cf
2 changed files with 3 additions and 2 deletions

View file

@ -7,8 +7,8 @@ from trytond.pyson import Eval, Bool
class Invoice(metaclass=PoolMeta):
__name__ = 'account.invoice'
position = fields.Char('Position')
turn = fields.Integer('Turn')
position = fields.Char('Position', states={'invisible': Eval('type') != 'in'})
turn = fields.Integer('Turn', states={'invisible': Eval('type') != 'in'})
@classmethod
def __setup__(cls):

View file

@ -311,6 +311,7 @@ class Sale(metaclass=PoolMeta):
invoice.turn = self._get_turn()
invoice.save()
Invoice.update_taxes([invoice])
print('ingresa a sale_pos')
return invoice
def _get_authorization(self, sale):