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.
By developing a custom module, I extended partner model and view with some more fields. Inside view, I added a notebook page containing all these additional fields. So far, so good. What I still need to do is to change location of partner.ref field. I do not want it to be shown at sale & purchase notebook page, but on my own page.
I tried the example code of the OEP documentation by putting it within the section of my new notebook page (see code section below). This shows partner.ref at the location I want, but it is not deleted from its old location and values entered to new location are not persisted. That means, this way it is completely useless. Can you tell me, what I did wrong?
<page string="Internal Notes" position="before">
<page string="Additional Information" colspan="4">
<group> <!--additional fields --> <field name="ref" position="replace"/> <field name="cust_category" label="Customer category" select="1" position="before"> <field name="ref" select="1"/> </field>`
The code you posted is not well displayed so it could be difficult to really understand what's going wrong there. Anyway, most of time when I have this kind of issue (things not displaying correctly) I make some additionnal tests :
- Pass in developper mode and use the form view display item to chek that all your work has been correctly used
- Change the priority of the views so that your is surely the first to be used
- Create a new view with all my stuff and place it with the max priority
Thanks to that you'll be sure that your view is the appropriate one.
Then, modifying the order of fileds in inherited view is not really easy for maintenance cause, any time you'll have to change/add/delete a module option, you could lost some reference fields you use in your view.
personnaly, I used to recrete my owns view and use them in actions, views etc... so that I'm sure that :
- I'm not depending on another view
- I'm able to change the priority and still have the possibility to display either mine or openerp's one wherever I'm working
- I'm able to deliver my view and use it in other project more easily
Hope it could help
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
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: 12/22/13, 9:11 AM|
|Seen: 2785 times|
|Last updated: 3/16/15, 8:10 AM|