Odoo Help

1

How does odoo decide if a field is importable

By
Justin Lessard
on 8/27/15, 10:40 AM 725 views


I have the following field that I added to the model

import_action = fields.Selection([('none','None'),('confirm','Confirm'),('ship','Ship')],
               'Import Action',
               default='none', 
               required=False, 
               readonly=True,
               select=False,
               selectable=False, 
               invisible=True)

I need to be able to import this field. Or, for some reasons, odoo consider it as not-importable.

Can someone explain on what criteria odoo based itself to decide if a field is importable or not?

2
Justin Lessard
On 8/27/15, 11:09 AM


I did some tests, and here are my conclusions.

You can only import fields which are not readonly.

All readonly="True" fields are automaticaly set to non-importable.

Isn't there any other criteria that prevents a field from being imported ?

Tarek Mohamed Ibrahim
on 9/10/15, 12:39 PM

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

Question tools

1 follower(s)

Stats

Asked: 8/27/15, 10:40 AM
Seen: 725 times
Last updated: 11/12/15, 9:37 AM