İçereği Atla
Menü
Bu soru işaretlendi
2328 Görünümler

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Tem 24
1442
1
Nis 24
2328
2
Ara 24
2367
1
Nis 23
10435
2
Mar 23
9980