adding an existing fileds to a new window
i want to add a new field called 'Notes' to the point of sale window
i have modified the pos.order form to add the line
<field name="notes"/> as shown below
Also modified the pos.py file located in /usr/src/
with the following changes
_columns = {
'name': fields.char('Line Description', size=512),
'qty': fields.
'discount': fields.
'notes': fields.
'order_id': fields.
}
The other file which i modifed is pos_view.xml located in /usr/src/
Now when i tried to click the point of sale window link, am getting the
below error
View error
Can't find field 'notes' in the following view parts composing the view of object model 'pos.order':
* pos.order
Either you wrongly customised this view, or some modules bringing those views are not compatible with your current data model
It looks like this issue is since i havent compiled the
.python file .
How can i compile and build the pos.py file located in /usr/src/
Where the compiled files will get stored?
Do i need to modify any other xml fils for this change to occur?
can anyone tell me the step by step procedure to add an existing
field like "notes" to a new window?
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Bushair
- Solved:
- Last query:
- Last reply: