mirror of
https://bitbucket.org/presik/trytonpsk-sale_pos.git
synced 2023-12-14 07:13:02 +01:00
minor fix
This commit is contained in:
parent
61bc966e54
commit
8b21f0e2cf
2 changed files with 3 additions and 2 deletions
|
@ -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):
|
||||
|
|
1
sale.py
1
sale.py
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue