Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I have written this button which does a simple operation, but Odoo says my arguments are wrong. Its an 'object' type button. Can you help me out?
Here's my code:
from openerp.osv import fields, osv
from openerp import api
import openerp.addons.decimal_precision as dp
from openerp.osv import orm
from calendar import monthrange
from datetime import datetime, timedelta
from dateutil import relativedelta
print 'hello Odoo'
def button_monthly_interest(self, cr, uid, ids, context=None):
<button name="button_calculate_monthly_interest" string="Calculate Monthly Interest" type="object"/>
When I use the old API, I get AttributeError: 'record' object has no attribute 'button_monthly_interest'
When I use new API, I get the error: 1 exact field expected, 5 given.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 3/24/15, 2:24 AM|
|Seen: 4111 times|
|Last updated: 3/24/17, 9:41 AM|