But it does not copy views properly. For example tree view only shows name field, when in original view it has four fields. In form view, it seems to show all fields, but those fields are in some random position, without any formatting (that was in old view).

P.S. I also asked this in github (https://github.com/odoo/odoo/issues/4966). Also there are screenshots where you could see how looks original form and the one that made copy from it.

I guess you didn't understand my issue. Rename string in tree or form works fine. I don't need xpath for that. The problem is with the rest of the fields and their styles that should be copied, but its not. This is not standard inheritance. I'm inheriting from another model that copy was made from.

Found what was missing. It seems, you need to specify which view to open for which view mode. Because when you copy another model view, it seems it does not find correct view automatically (even if only one is defined for each mode)

Your Answer

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 community is for professionals and enthusiasts of our products and services. Read Guidelines