Merge pull request #234 from OCA/8.0-patch-account_payment_mode_term-sbi

[FIX] account_payment_mode_term new api compatibility
This commit is contained in:
Pedro M. Baeza
2015-12-24 10:39:04 +01:00
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 += [