Comments (15)
If I understand correctly, odoo don't save readonly attributes after this commit
2328040
from odoo.
Hello,
Thanks for your good explanation, I have reproduce same at my end.
So I am confirming this issue. Regarding your fix i am not agree with you as you cannot remove readonly, instead we have to improve code so we can save it.
Thanks,
Pinakin
from odoo.
Hello Yelizariev,
This does not looks an issue at all, this is the desired behavior of Odoo web-client that it does not send values of readonly field.
"Its design decision"
If you want to save readonly field's value forcefully then you can achieve logically in your module(there are many ways), like you can override create method and apply the logic which adds readonly field and its value(may be by recalling onchange method from create in your case) in vals which going to save.
Readonly fields are for informative purpose.
For further information you can go through comment : https://bugs.launchpad.net/openobject-client/+bug/378824/comments/18
Hope this will help.
Thanks,
Mohammed
from odoo.
Mohammed, this is issue about company_id field, is not about design decision. I only need company_id corresponded to warehouse_id. I agree with any solution on this.
Another solution is as Fabien commented https://bugs.launchpad.net/openobject-client/+bug/378824/comments/2
May be you can do what you need with a hidden but not readonly field.
from odoo.
No, the solution is to change the field "company_id" to be a stored related field.
from odoo.
cc @pedrobaeza @antespi @yajo @sergio-incaser @carlos-incaser
from odoo.
@yelizariev it's much more effective if you make a PR to Odoo fixing it.
Also you can make a PR to https://github.com/OCA/OCB fixing the problem and have it solve it
from odoo.
@rafaelbn, @yelizariev it's not an issue for Odoo... so don't need to be fixed. Odoo don't save the readonly field, it is by design.
Confirmed by @KangOl (#171 (comment)) and https://bugs.launchpad.net/openobject-client/+bug/378824/comments/2
from odoo.
@JKE-be, so storing Warehouse with company_id from another Company is not a problem?
from odoo.
@andreinl not exactly. The fact that field readonly is not saved is not an issue. The fact that you can store "Warehouse with company_id from another Company" yes. But the discuss was confusing. The fix as suggest @KangOl will be to change the field "company_id" to be a stored related field. or keep the onchange but remove the readonly and add the invisibility.
from odoo.
@JKE-be The other solution can be intercept create() and write() and write company_id from warehouse. Users will always see the right company as onchange works fine. It seems to me that this is less intrusive solution.
from odoo.
Dear @yelizariev,
Thank you for reporting this issue!
At this point Odoo 6.0, 6.1 and 7.0 are no longer supported for bugsfixes anymore, which means we will no longer handle these bugs.
If you still face this issue on Odoo 8, 9 or 10 we'd like to ask you to create a new issue on how to reproduce this.
Our apologies.
Regards,
Yenthe
from odoo.
@Yenthe666
this issue is for 8.0 and need updates mentioned here #171 (comment)
from odoo.
@JKE-be and @KangOl could you guys give feedback on this and get this going?
from odoo.
Hi @yelizariev ,
Again a bit thank you for the report.
At this point Odoo 8 is no longer supported as Odoo only supports three versions (9.0, 10.0, 11.0 at the moment).
If you can still reproduce this issue on Odoo 9, Odoo 10 or Odoo 11 we encourage you to create a new bug report.
Regards,
Yenthe
from odoo.
Related Issues (20)
- [17.0] module: description
- [17.0] module: kanban, seem the kanban view does not work on <field name="handler_ids" ' mode="kanban" > that contains in form
- [16.0] stock_account: optional attribute is not working in SVL tree view
- [17.0]🛑 ⛔ Inconsistent Float Field Rounding in Odoo ⛔ 🛑 HOT 15
- [17.0] l10n_es_edi_sii: When Vendor Invoice with DUA, field name ['Contraparte']['NombreRazon'] is wrong
- [17.0] report without theme / style / header / footer HOT 2
- [17.0] base: issue with record in cache `virtual_` while saving ir.actions.sever with child_ids
- [14.0] product_margin: sale_avg_price and purchase_avg_price HOT 1
- Odoo 17 - Source install - 404 error when querying bootstrap .map files HOT 1
- [16.0] problem with commit 2dbfdc141aaffc26a01dd0f5a2ffe85f401ce849 HOT 2
- [17.4] module: Project When select Assignees it repeat same selection again
- [17.0] module: appointment
- [17.0] mail: Error when creating tracking message in certain models
- [17.0] Accounting: Total cost is wrong if unit is "day"
- [17.0] module: contact : Incompatibility Error When Changing Contact Company with Existing Invoices/Subcriptions
- TypeError: MailController.mail_action_unfollow() missing 4 required positional arguments: 'model', 'res_id', 'pid', and 'token' HOT 2
- [16.0] website_sale_comparison: disable or hide add to cart button on comparison page if product is not in stock
- [16.0] module: website builder - cannot find templates
- [16.0] module: product.template - product.product cursor already closed HOT 1
- [15/16/17/master] ORM: KeyError when updating module after removing model with selection field HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from odoo.