diff options
| author | Nikunj Ladava <nla@odoo.com> | 2018-03-20 11:36:35 +0530 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2018-03-20 16:16:27 +0100 |
| commit | cbd395ec365f5f2f484d7137559a62a135bda5fa (patch) | |
| tree | ebfc4475ad5ffbe04c3b8c5031b35e031149540b /addons/payment/models | |
| parent | b6e0f1ad59e8a6b1b5a2b3a899466fafd8c339dc (diff) | |
[IMP] payment, sale_payment: set invoice id in payment transaction form after payment being done from sale order.
Until now invoice_id is filled on the transaction only when we make
payments through invoice. However if we make payments through sale order
then invoice_id is not filled.
This commit fixes that issue. As there is no common point between
sale_payment and account_payment except payment, a void method is added
in payment and an override done in account_payment. That was when both
modules are installed code is correctly triggered.
This commit is related to task ID 1813602. Closes #22746 .
Diffstat (limited to 'addons/payment/models')
| -rw-r--r-- | addons/payment/models/payment_acquirer.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/payment/models/payment_acquirer.py b/addons/payment/models/payment_acquirer.py index 343e7ebd116..691de438072 100644 --- a/addons/payment/models/payment_acquirer.py +++ b/addons/payment/models/payment_acquirer.py @@ -684,6 +684,10 @@ class PaymentTransaction(models.Model): return True + @api.multi + def _post_process_after_done(self, **kwargs): + return True + # -------------------------------------------------- # SERVER2SERVER RELATED METHODS # -------------------------------------------------- |
