Skip to Content
Menu
This question has been flagged
2387 Zobrazenia

Hi everyone!

I know how to do customisation for buttons "Save" and "Discard", it works good when I open file "form_status_indicator.xml" and change buttons' style in the file. 

But I want to do these changes by custom addon, installing this changes. There is a trouble with inheriting template of base style button.

Here is my code of .xml file which should do changes with buttons, it installs successfully, but do nothing.

https://imgur com/a/PLxFaKo (put "." between "imgur" and "com" to see the screenshot)

An important detail, that I need __manifest__ py file to inherit these changes successfully.

Here is an example of my manifest file which I used before:

{
'name': "Custom Form Status Indicator Styles",
'version': "1.0",
'summary': "Customizes the form status indicator buttons in Odoo",
'license': "AGPL-3",
'description': """This module replaces the default save and cancel buttons in the form status indicator with customized versions.""",
'category': 'Custom Development',
'author': 'vova9199',
'website': 't.me/vova9199',
'depends': ['base_setup', 'web'],
# 'data': [
# 'views/form_status_indicator.xml',
# ],
'data': [],
'demo': [],
'assets': {
'web.assets_backend': [
'custom_change_buttons/static/src/views/form/form_status_indicator/form_status_indicator.xml',
],
},
'installable': True,
'application': False,
'auto_install': False,
'sequence': 10100,
}

 When I use my .xml file in "data" odoo says that "incorrect schema" or something like that.

Please, share your way to install button customization by addon.

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
2
júl 24
1486
1
apr 24
2385
2
dec 24
2430
1
apr 23
10521
2
mar 23
10060