Web-Client 7.0 calls write with blank vals, when you click on any buton in form
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP R&D Web Team |
Bug Description
Hello,
Steps :- Open any form view which contains buttons, now without making form dirty just click on button so now according to architecture web-client will first saves the form(calls create/write based on whether form contains id or not),, reload the record and then will load action but here we have not touched a field still web-client will call write with vals={}, this should not happen as there is no value to write than why it should call write.
Reason :- when one click on button we did form force fully dirty by setting force_dirty=true, so it will forcefully call write whether form is dirty or not.
After analysis I found that the logic of force_dirty is for reloading one2many record when buttons is clicked, but this is not a proper logic to forcefully reload record for one2many, please refer revision 2341 of Web-Client 6.1 where same thing did to reload record on button click.
Thanks.
Related branches
Changed in openerp-web: | |
status: | New → Confirmed |
Changed in openerp-web: | |
assignee: | nobody → OpenERP R&D Web Team (openerp-dev-web) |
importance: | Undecided → Medium |
Changed in openerp-web: | |
status: | In Progress → Fix Released |
I was very close to mark this report as invalid, because you don't really report a bug, just a behavior that doesn't seem to please you. There is a really problem reported here: https:/ /bugs.launchpad .net/openerp- web/+bug/ 965326 .