[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:
Barad Mahendra
2019-08-19 11:44:10 +00:00
parent 07eaedfd27
commit 684c29f75b
@@ -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}