Browse Source

[FIX] pos_cash_move_reason : date of statement line depends now on the context timezone

pull/531/head
Sylvain LE GAL 4 years ago
parent
commit
f3b8942b51
  1. 2
      pos_cash_move_reason/wizard/wizard_pos_move_reason.py

2
pos_cash_move_reason/wizard/wizard_pos_move_reason.py

@ -90,7 +90,7 @@ class WizardPosMoveReason(models.TransientModel):
account = self.move_reason_id.expense_account_id account = self.move_reason_id.expense_account_id
amount = - self.amount amount = - self.amount
return { return {
'date': fields.Datetime.now(),
'date': fields.Date.context_today(self),
'statement_id': self.statement_id.id, 'statement_id': self.statement_id.id,
'journal_id': self.journal_id.id, 'journal_id': self.journal_id.id,
'amount': amount, 'amount': amount,

Loading…
Cancel
Save