Browse Source

Merge PR #531 into 12.0

Signed-off-by legalsylvain
pull/537/head
OCA-git-bot 4 years ago
parent
commit
f5cdc1a41e
  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