Reputation: 11
In mris i have to pick values from project_bom_line all quantities are implied to line item fields.I does but when i save it the value disappeared and not saved in database also.I have to achieve this in Draft state.
Thank u in Advance.
Upvotes: 1
Views: 595
Reputation: 5044
I think its a bug in openerp. I have created a patch for that. In the openerp addons, web module, goto static/src/js/view_form.js.
Index: view_form.js
===================================================================
--- openerp/addons/web/static/src/js/view_form.js
+++ openerp/addons/web/static/src/js/view_form.js
@@ -833,11 +833,9 @@
// Special case 'id' field, do not save this field
// on 'create' : save all non readonly fields
// on 'edit' : save non readonly modified fields
- if (!f.get("readonly")) {
- values[f.name] = f.get_value();
- } else {
- readonly_values[f.name] = f.get_value();
- }
+ values[f.name] = f.get_value();
+ if (f.get("readonly"))
+ readonly_values[f.name] = f.get_value();
}
}
if (form_invalid) {
Upvotes: 1