mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Port SEPA modules to new API
Fix an important regression in account_banking_sepa_direct_debit: "Date of Last Debit" was not set any more Proper write of date_done with account_banking_payment_export is installed without account_banking_payment_transfer Add post-install script for date_sent on payment.order
This commit is contained in:
@@ -73,3 +73,11 @@ class PaymentOrder(models.Model):
|
||||
workflow.trg_validate(self.env.uid, 'payment.order',
|
||||
order_id, 'done', self.env.cr)
|
||||
return {}
|
||||
|
||||
@api.multi
|
||||
def action_done(self):
|
||||
self.write({
|
||||
'date_done': fields.Date.context_today(self),
|
||||
'state': 'done',
|
||||
})
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user