mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[FIX] account_payment_mode_term new api compatibility
Without this patch we have `TypeError: extend_payment_order_domain() takes exactly 3 arguments (2 given)` when adding an invoice to a payment order.
This commit is contained in:
committed by
Stéphane Bidoul
parent
565cb64e82
commit
795228087e
@@ -26,7 +26,7 @@
|
||||
|
||||
{
|
||||
'name': 'Account Banking - Payments Term Filter',
|
||||
'version': '8.0.0.1.1',
|
||||
'version': '8.0.0.1.2',
|
||||
'license': 'AGPL-3',
|
||||
'author': "Banking addons community,Odoo Community Association (OCA)",
|
||||
'website': 'https://github.com/OCA/banking',
|
||||
|
||||
@@ -24,16 +24,16 @@
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
from openerp.osv import orm
|
||||
from openerp import api, models
|
||||
|
||||
|
||||
class payment_order_create(orm.TransientModel):
|
||||
class payment_order_create(models.TransientModel):
|
||||
_inherit = 'payment.order.create'
|
||||
|
||||
def extend_payment_order_domain(
|
||||
self, cr, uid, ids, payment_order, domain, context=None):
|
||||
@api.multi
|
||||
def extend_payment_order_domain(self, payment_order, domain):
|
||||
super(payment_order_create, self).extend_payment_order_domain(
|
||||
cr, uid, ids, payment_order, domain, context=context)
|
||||
payment_order, domain)
|
||||
# apply payment term filter
|
||||
if payment_order.mode.payment_term_ids:
|
||||
domain += [
|
||||
|
||||
Reference in New Issue
Block a user