[FIX] delivery: display proper error notification instead of dialog
Currently when shipping method is added on the sales order with error message then on update of shipping method it will display the error message in dialog but it will be hidden behind the update shipping method wizard so on update shipping method display notification instead of dialog. Closes: #35808 Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
This commit is contained in:
@@ -45,7 +45,8 @@ class ChooseDeliveryCarrier(models.TransientModel):
|
||||
if vals.get('error_message'):
|
||||
warning = {
|
||||
'title': '%s Error' % self.carrier_id.name,
|
||||
'message': vals.get('error_message')
|
||||
'message': vals.get('error_message'),
|
||||
'type': 'notification',
|
||||
}
|
||||
return {'warning': warning}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user