mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
s/oe_link_class/classes s/oe_highlight/btn-default and add it to readme * In v9.0 odoo uses classes for dialog buttons instead of oe_link_class
This commit is contained in:
committed by
Jasmin Solanki
parent
07e9f67424
commit
ff4d835f6d
@@ -41,6 +41,8 @@ Depend on this module and return
|
|||||||
'args': [self.ids],
|
'args': [self.ids],
|
||||||
# dictionary of keyword arguments
|
# dictionary of keyword arguments
|
||||||
'kwargs': {'force': True},
|
'kwargs': {'force': True},
|
||||||
|
# button style
|
||||||
|
'classes': 'btn-primary',
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ odoo.define('web.web_ir_actions_act_window_message', function(require)
|
|||||||
.controller.recursive_reload();
|
.controller.recursive_reload();
|
||||||
dialog.close()
|
dialog.close()
|
||||||
},
|
},
|
||||||
oe_link_class: 'oe_highlight',
|
classes: 'btn-default',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -61,8 +61,7 @@ odoo.define('web.web_ir_actions_act_window_message', function(require)
|
|||||||
{
|
{
|
||||||
return {
|
return {
|
||||||
text: button_definition.name || 'No name set',
|
text: button_definition.name || 'No name set',
|
||||||
oe_link_class: button_definition.oe_link_class ||
|
classes: button_definition.classes || 'btn-default',
|
||||||
'oe_highlight',
|
|
||||||
click: function() {
|
click: function() {
|
||||||
if(button_definition.type == 'method')
|
if(button_definition.type == 'method')
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user