Odoo Help

0
0
Mind And Go
On 12/22/13, 10:25 AM

Hy,

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 :

  1. Pass in developper mode and use the form view display item to chek that all your work has been correctly used
  2. Change the priority of the views so that your is surely the first to be used
  3. 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 :

  1. I'm not depending on another view
  2. I'm able to change the priority and still have the possibility to display either mine or openerp's one wherever I'm working
  3. I'm able to deliver my view and use it in other project more easily

Hope it could help

Hi, thank you for your information. Immediately before reading your post, I found the solution by myself: This issue can not be solved in one single inheritance class. I had to 1.) Inherit partner_form to remove (replace) the field, 2.) Inherit it another time to create additional fields and 3.) Inherit the class creating additional fields to re-add the field removed in step 1. This way it works as I like. But your proposal to duplicate all the view to be completely independent of internal structures seems to me very reasonable, too. But how to replace existing partner view without inheritance

NSC
on 12/22/13, 10:28 AM

Hy, using priority in view, configuring actions for using the proper view is efficient for solving your issue

Mind & Go, Mind And Go
on 12/22/13, 4:20 PM

here is the doc : https://doc.openerp.com/6.0/developer/2_6_views_events/views/specify_view_to_use/

Mind & Go, Mind And Go
on 12/22/13, 4:21 PM

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)

Stats

Asked: 12/22/13, 9:11 AM
Seen: 4558 times
Last updated: 3/16/15, 8:10 AM