minor fix

This commit is contained in:
wilsongomez 2022-05-03 08:38:28 -05:00
parent 311b73c287
commit dc11444a7a
4 changed files with 8 additions and 2 deletions

View File

@ -1 +0,0 @@
,developer,developer-UX430UA,29.04.2022 14:53,file:///home/developer/.config/libreoffice/4;

View File

@ -40,6 +40,7 @@ def register():
payroll.PayrollByPeriodDynamic,
account.SeverancePayClearingStart,
account.SeverancePayClearingDone,
account.Move,
payroll.Exo2276Start,
payroll.IncomeWithholdingsStart,
payroll.PayrollExportStart,

View File

@ -14,6 +14,12 @@ from trytond.modules.staff_payroll.exceptions import MissingPartyWageType
_ZERO = Decimal('0.0')
class Move(metaclass=PoolMeta):
__name__ = 'account.move'
@classmethod
def _get_origin(cls):
return super(Move, cls)._get_origin() + ['staff.liquidation']
class SeverancePayClearingStart(ModelView):
'Severance Pay Clearing Start'

View File

@ -329,7 +329,7 @@ class Liquidation(Workflow, ModelSQL, ModelView):
period_id = Period.find(self.company.id, date=self.liquidation_date)
move, = Move.create([{
'journal': self.journal.id,
#'origin': str(self),
'origin': str(self),
'period': period_id,
'date': self.liquidation_date,
'description': self.description,