mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[MIG] account_banking_mandate_contact: Migration to 17.0
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
{
|
||||
"name": "Account Banking Mandate Contact",
|
||||
"summary": "Assign specific banking mandates in contact level",
|
||||
"version": "16.0.1.0.1",
|
||||
"version": "17.0.1.0.1",
|
||||
"development_status": "Production/Stable",
|
||||
"category": "Banking addons",
|
||||
"website": "https://github.com/OCA/bank-payment",
|
||||
|
||||
@@ -10,7 +10,7 @@ class AccountMoveLine(models.Model):
|
||||
|
||||
# Extended to use partner_shipping_id mandate if it have set
|
||||
def _prepare_payment_line_vals(self, payment_order):
|
||||
vals = super(AccountMoveLine, self)._prepare_payment_line_vals(payment_order)
|
||||
vals = super()._prepare_payment_line_vals(payment_order)
|
||||
if payment_order.payment_type != "inbound" or self.move_id.mandate_id:
|
||||
return vals
|
||||
mandate = (
|
||||
|
||||
Reference in New Issue
Block a user