warning module doesn't propagate warnings

Bug #454536 reported by Albert Cervera i Areny - http://www.NaN-tic.com
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

If module 'X' overrides sale_order.onchange_partner_id() function to send a warning to the client and the 'warning' module is installed, depending on the order of execution the warning sent by 'X' may not reach the client because 'warning' doesn't propagate it properly.

Related branches

Revision history for this message
Albert Cervera i Areny - http://www.NaN-tic.com (albert-nan) wrote :

This patch fixes the bug.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Albert,

Thank you for reporting.

Would you please go for this patch and notify us?

Thanks.

Changed in openobject-addons:
status: New → Confirmed
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Albert,

Any updates on this?

Thank you.

Revision history for this message
Albert Cervera i Areny - http://www.NaN-tic.com (albert-nan) wrote :

Sorry. Yes, it seems to work for me, but taking a look at your patch and the original code, I see that text is not marked for translation. Maybe we should add the _("Warning for %s") (please, do not concatenate strings which wouldn't work for translations in some languages). The context is missing in some of the onchange calls the module overrides, but given that should be responsability of the original module I wouldn't change that here.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Yes Albert,

Thank you for pointing this out.

We appreciate this initiative.

Fixed by revision 2454 <email address hidden>.

Changed in openobject-addons:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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