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
Maurice Agée
On 10/12/15, 12:07 PM

For exemple insert a new field in product.template

class product_template(osv.osv):

_name = 'product.template'
_inherit = 'product.template'

_columns = {
'my_field_id': fields.char('Title"',size=64),

and in the view

   <record id="product_template_form_view" model="ir.ui.view">

<field name="name">product.template.common.form</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_form_view" />
<field eval="25" name="priority"/>
<field name="arch" type="xml">
<field name="uom_id" position="after">
<field name="my_field_id"/>
</field>
</field>
</record>
0

Axel Mendoza

--Axel Mendoza--
10205
| 7 7 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full time employee trying to understand what to do an how

Reach me at aekroft@gmail.com

Axel Mendoza
On 10/12/15, 11:23 AM

You can go to the menu /Settings/Technical/Database Structure/Models

Search for your module and add a field to the list, the field name need to be saved with prefix 'x_' because it's a custom one. Next you may need to add it to a view, search for the needed one at menu /Settings/Technical/User Interface/Views.

All of this need to be done using the group "Technical Features" to be able to see those menus

This method is not correct since the future updates modules will destroy your change. It is best to create your own personal inheriting the standard module to complete module. See several examples on the forum.

Maurice Agée
on 10/12/15, 11:59 AM

Really??, maybe the view change but i don't see that will remove the field

Axel Mendoza
on 10/12/15, 12:03 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

2 follower(s)

Stats

Asked: 10/12/15, 9:48 AM
Seen: 467 times
Last updated: 10/12/15, 12:07 PM