Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
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.
Really??, maybe the view change but i don't see that will remove the field
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>
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up