How can modify a base field?

Asked by Francisco Martinez on 2013-03-01

Hi all,
(related to OpenERP v7)

I want to change the pos_reference base field to searchable, but when I try to modify through:

Configuration -> Database structure -> Fields

and the system says:

Properties of base fields cannot be altered in this manner! Please modify
them through Python code, preferably through a custom addon!

How can I do that? Any clues?

Thanks in advance.
Fran

Question information

Language:
English Edit question
Status:
Answered
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Last query:
2013-03-01
Last reply:
2013-03-04
Andrew (aes) said : #1

You have to create a custom module. There are many tutorials out there if you Google openerp custom module.

The basic answer is create a new directory in the addons directory and create the files _init_.py _openerp_.py and yourmodule.py

The code inside those files is dependent on what you want to do.

Can you help with this problem?

Provide an answer of your own, or ask Francisco Martinez for more information if necessary.

To post a message you must log in.