can't translate on_change warning message
Bug #686051 reported by
Paulius Sladkevičius @ hbee
This bug report is a duplicate of:
Bug #900861: on_change doesn't pass context, no translations on exceptions.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I found that e.g. in the stock module onchange_lot_id function warning message translation don't work. If you translate this entry, in the warning will show English one, not translated.
Addons revno: 2886
Server revno: 2156
To post a comment you must log in.
same here (openacademy training):
def onchange_ remaining_ seats(self, cr, uid, ids, seats, attendee_ids):
'value' :{
'remaining_ seats_percent' : self._get_ remaining_ seats_percent( seats, attendee_ids)
res[ 'warning' ] = {
'title' : _('Warning'),
'message' : _('You cannot have negative seats'),
res = {
}
}
if seats < 0:
}
return res
This is not translated, although the exported PO file is translated correctly in the meantime.