Odoo Help

2 Answers

Hardikgiri Goswami

--Hardikgiri Goswami--
| 2 2 5
Rajkot, India
--Hardikgiri Goswami--

OpenERP/Odoo Customization/Integration Expert / Python Programmer

Email : hardikgiri.goswami@gmail.com

Skype ID : hardikgiri.goswami

Hardikgiri Goswami
1/23/15, 12:07 AM

Hello John,

There are many ways to apply the string for a field.

The string for "is_company" is applied from the xml file from the view side. You can search in xml like "Is a Company?"

You metioned you want to change string of "is_company" right ?

John Baldwin
1/23/15, 12:29 AM

Thanks for answering Hardikgiri. I want to be able to override the string in my inherited model inside my class, not in the xml view. My reason is that you are supposed to be able to do that and I would like to know how to do it properly in the new API. I already know I can do it in individual views and is_company really only shows up in one view but I would like to be able to do it in a module so that other fields that I use in multiple views can have their sting changed in the one file not multiple files. Do you understand?

John Baldwin
1/23/15, 12:33 AM

Sorry, now I see what you are saying, in the ORIGINAL res.partner view the string is defined inside the label tag! That's why I can't get it to override! Thanks! I completely overlooked that.

John Baldwin
1/23/15, 4:45 AM

Field inheritance is still not working for me! I've tried it again and can't figure it out. See:

for my detailed experience and frustration with this problem. Hardikgiri's advice for xml views containing string overrides was helpful in that instance but in the link above you will see that I'm not dealing with that; just pure fied inheritance and it's buggy. Please help if you can.

1 Comment
John Baldwin
1/30/15, 10:52 PM

It was acting buggy because I did not import my .py file in init but had imported other where it was working... DOH!

Ask a Question
Keep Informed
2 follower(s)
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.

Odoo Training Center

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

Test it now