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:
Alexis de Lattre
2015-06-06 00:20:41 +02:00
parent 7089fc150e
commit 3781f37bcb
19 changed files with 379 additions and 428 deletions

View File

@@ -98,9 +98,7 @@ class PaymentOrder(models.Model):
def action_done(self):
for line in self.line_ids:
line.date_done = fields.Date.context_today(self)
self.date_done = fields.Date.context_today(self)
# state is written in workflow definition
return True
return super(PaymentOrder, self).action_done()
@api.multi
def _get_transfer_move_lines(self):