mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[IMP] account_banking_payment_transfer: Restore entry_posted check
This commit is contained in:
@@ -245,9 +245,9 @@ class PaymentOrder(models.Model):
|
||||
total_amount, move, blines, labels)
|
||||
aml_obj.create(trf_ml_vals)
|
||||
self._reconcile_payment_lines(blines)
|
||||
|
||||
# post account move
|
||||
move.post()
|
||||
# consider entry_posted on account_journal
|
||||
if move.journal_id.entry_posted:
|
||||
move.post()
|
||||
|
||||
# State field is written by act_sent_wait
|
||||
self.write({'date_sent': fields.Date.context_today(self)})
|
||||
|
||||
Reference in New Issue
Block a user