Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2338 Zobrazení

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šit
Related Posts Odpovědi Zobrazení Aktivita
2
čvc 24
1452
1
dub 24
2340
2
pro 24
2377
1
dub 23
10439
2
bře 23
9991