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've been developing a custom module which allows you to store data on multiple sites a company owns, and gas/electric meters installed at that location. When I try and save a new site record it throws the error. Not sure what I've done wrong.
error here pastebin.com/UzSGZmVG
code here pastebin.com/5MNMuBrF (I commented out the required=True to see if that was causing the issue).
view here pastebin.com/H7sSrQat
There is an issue with one2many/many2one definition of meter/site. site --> one2many --> meter meter --> many2one --> site
means in site object, meter_ref should be many2one of meter but it is defined as text field and that's why its throwing an error. You may also get the same for site --> partner relationship.
Hope it will help you.
Thanks, Priyesh Solanki
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: 4/3/13, 9:00 AM|
|Seen: 1214 times|
|Last updated: 3/16/15, 8:10 AM|