cannot add a record if using _inherits field in form view
Bug #590410 reported by
Adrien Guichard
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I use _inherits on product.product in my custom object. If I add the inherited field in the form view, I cannot save it anymore.
I attach a test-case to this bug report.
How to reproduce:
0 - install the attached module,
1 - go to Testcase Aliasing/My Base Product,
2 - press CTRL + L,
3 - Choose a "Base Product",
4 - Click on save!
Thanks for your support,
Adrien
affects: | openobject-client-web → openobject-server |
Changed in openobject-server: | |
milestone: | none → 5.0.12 |
To post a comment you must log in.
Hello Andrien,
When you are using _inherits, you cannot have the field in the view by which you have inherited. As its a link to the inherited class and which is by default saved. Its giving such error as its getting two values for the same field. you can have any other field in the view except it. It is not a bug at all.
i.e. in your case
'product. product' : 'product_ inherited_ id' inherited_ id'" in the view.
'_inherits = {
}
You can not keep "'product_
And "product_id" field is not found either in your given module or in the product module so we can not keep a field which is not found in any of the module.
Thanks.