Odoo Aide

6
2 Answers
5
Pablo Manuel Rizzo
21/02/2013 14:08

Miguel, you should never change an OpenERP source file, you should develop a custom module which inherits and modify the view.

This post is rather old but a simple valid example: https://simahawk.wordpress.com/2010/10/04/openerp-how-to-add-a-custom-field-to-an-object/

Best regards.

1 Commentaires
Miguel Fernández
22/02/2013 05:03

Thank you. I'll try. But I don't changed the source files. I edit the form directly in OpenERP.

0
Avatar

Andreas Brueckl

--Andreas Brueckl--

5436
| 7 8 7
Vienna, Autriche
--Andreas Brueckl--
OpenERP Consulting and Development
Andreas Brueckl
22/02/2013 08:17

If you do not want to write a module for that you can create a new view which inherits the original view.

Here is an example of the XML architecture of a new view if you want to change the field standard_price in product.product:

               <field name="standard_price" position="replace">
                   <field name="standard_price" invisible="1"/>
               </field>
1 Commentaires
Miguel Fernández
22/02/2013 09:16

If when I update modules in OpenERP the view don't reset to default view, maybe it can works for me.

Poser une question
Étiquettes
Keep Informed
2 Abonné(e)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.

Register
Odoo Training Center

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

Test it now