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
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 4/3/13, 9:00 AM|
|Seen: 899 times|
|Last updated: 3/16/15, 8:10 AM|