Hi all,
I am trying to make a v7 module to work on v8.
It's almost everything ready except that I get an error when the system reads a specific class.
The error is:
File "/home/odoo/custom/addons/account_mode/__init__.py", line 29, in <module> import account_invoice
File "/home/odoo/custom/addons/account_mode/account_invoice.py", line 48, in <module> class account_payment_mode(osv.osv):
File "/home/odoo/custom/addons/account_mode/account_invoice.py", line 56, in account_payment_mode string='Money Sale Account', method=True, view_load=True),
TypeError: __init__() takes exactly 1 argument (7 given)
The code for the class:
class account_payment_mode(osv.osv):
_name = 'account.payment.mode'
_description = 'Payment Mode'
_columns = {
'name': fields.char('Payment Mode', size=32, required=True, translate=True),
'description': fields.text('Description'),
'property_account_money_sale': fields.property('account.account',
type='many2one', relation='account.account',
string='Money Sale Account', method=True, view_load=True),
}
Anyone can help?
Thank you all
Paulo
Did you get sorted wit this issue ?