lost value returned from onchange when readonly field

Bug #1126417 reported by Cristian Salamea
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
New
Critical
Unassigned

Bug Description

Hello,

When a value is returned from on_change method to set in readonly field in UI is showed but when save the record this values are lost.

The only solution is copy and paste the code from onchange method to create method what I consider a bad practice and waste time for developers.

Please fix this, the error comes from v.5, v6 v6.1, v7.0

Regards,

Revision history for this message
Quentin THEURET @Amaris (qtheuret) wrote :

A solution is also to have two fields to do that : one visible to display the value and one with invisible="1" to save the value.

But I'm agree with you, this issue should be fixed.

Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Welcome to lp:378824. Please click 'Yes it affects me' on that bug.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.