[6.1] RO field in a class linked by a many2one doesn't refresh after clicking on a button

Bug #965326 reported by Samus CTO (OpenERP)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Web Team

Bug Description

So, this is 2 classes linked.

The second has a readonly field that changes on click on the button on the page.

If you go through the First class, the changes doesn't show even if it happens.

Related branches

Revision history for this message
Samus CTO (OpenERP) (cto-openerp) wrote :
Revision history for this message
tfr (Openerp) (tfr) wrote :

When you click on the button, the usual behavior is
Save the record
Execute the button method
Read the record and refresh the page

but since we are in a popup of a one2many this doesn't happens

on the execution of the button method is done

Changed in openerp-web:
status: New → Confirmed
assignee: nobody → OpenERP R&D Web Team (openerp-dev-web)
importance: Undecided → Medium
Revision history for this message
Nicolas Vanhoren (OpenERP) (niv-openerp) wrote :

Fixed in trunk.

Changed in openerp-web:
status: Confirmed → Fix Released
Revision history for this message
Florent (florent.x) wrote :

This fix introduces a regression:

If the user is watching a record of a model where he does not have "write" access, and he clicks the button, he receives an AccessError because of the forced write.

(In my use case, the button has type="object" and calls a method which redirects the user to another view on a different object.)

Revision history for this message
Mohammed Shekha(Open ERP) (msh-openerp) wrote :

Hello Florent,

I have removed the logic of forced write in http://bazaar.launchpad.net/~openerp-dev/openerp-web/6.1-opw-583265-msh/revision/2500.

The issue described above is already fixed with latest code, the issue was that record was not reloaded in o2m on button click which is already fixed in revision 2341.

So with above branch there will not be any regression faced due forced write.

Thanks.

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.