[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:
Stéphane Bidoul (ACSONE)
2015-12-18 17:29:43 +01:00
committed by Stéphane Bidoul
parent 565cb64e82
commit 795228087e
2 changed files with 6 additions and 6 deletions

View File

@@ -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',

View File

@@ -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 += [