Odoo Help

Welcome!

This community 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.

0

Why doesn't replace of an existing field work?

By
Jos van Reusel
on 7/15/13, 7:45 AM 900 views

I'm having a problem with inherited views in my own environment (but not all of them). I'm trying to replace the field 'street2' on the res.partner.form view with 2 other fields (x_housenumber and x_extension) as was shown in the training 2 weeks ago in Brussels. It seems in versions prior to may 2013 this works fine. In later versions however (like the current SaaS!) this doesn't work. The system gives a Javascript error "Error: NameError: name 'street2' is not defined", coming from "web/webclient/js?db=flussojos:2769". So apparently, even with inherited views it is possible an update ruins things....?

Does anyone have an answer? Or does anyone have the same problem?

Jos van Reusel
on 8/5/13, 5:35 AM
0

patrick

--patrick--
1958
| 5 4 7
Baarn, Netherlands
--patrick--
patrick
On 7/15/13, 11:26 AM

It is still possible to replace fields in a view.

Can you post your XML file (which defines your view)? Probably you have an issue with the coding.

Other thing can be, that another module has removed the field you want to replace, in that case your newly created view cannot hide/replace that field (as it is not existing anymore).

Patrick, thanks for your answer. When I use my same code but subsitute name="street2" for name="website" it works just fine.The street2 field I'm trying to replace is on the view. I checked that both in developer mode and on the res.partner form XML. When I use any fields from the 'div' that street2 is in, the same problem occurs. For fields like website, like I said, my code works just fine.

Jos van Reusel
on 7/16/13, 1:49 PM

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

Question tools

1 follower(s)

Stats

Asked: 7/15/13, 7:45 AM
Seen: 900 times
Last updated: 3/16/15, 8:10 AM