Initial commit: Odoo 18.0-20251222 extra-addons
This commit is contained in:
25
web_save_discard_button/static/src/xml/template.xml
Executable file
25
web_save_discard_button/static/src/xml/template.xml
Executable file
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!-- Save and Discard Button-->
|
||||
<templates>
|
||||
<t
|
||||
t-name="web_save_discard_button.FormStatusIndicator"
|
||||
t-inherit="web.FormStatusIndicator"
|
||||
t-inherit-mode="extension"
|
||||
>
|
||||
<xpath
|
||||
expr="//div[(hasclass('o_form_status_indicator_buttons'))]"
|
||||
position="attributes"
|
||||
>
|
||||
<attribute name="class" add="gap-1" separator=" " />
|
||||
</xpath>
|
||||
<xpath expr="//button[(hasclass('o_form_button_save'))]" position="attributes">
|
||||
<attribute name="class">o_form_button_save btn btn-primary</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//button/i[(hasclass('fa-cloud-upload'))]" position="replace">
|
||||
<span>Save</span>
|
||||
</xpath>
|
||||
<xpath expr="//button/i[(hasclass('fa-times'))]" position="replace">
|
||||
<span>Discard</span>
|
||||
</xpath>
|
||||
</t>
|
||||
</templates>
|
||||
Reference in New Issue
Block a user