Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
lip 24
1437
1
kwi 24
2323
2
gru 24
2357
1
kwi 23
10429
2
mar 23
9967