Files
app-odoo/app_web_enterprise/static/src/xml/form.xml
2023-04-23 02:37:32 +08:00

22 lines
1000 B
XML

<?xml version="1.0" encoding="UTF-8" ?>
<templates xml:space="preserve">
<!-- tip用 *-->
<t t-name="app_web_enterprise.FormLabel" t-inherit="web.FormLabel" t-inherit-mode="extension">
<xpath expr="//label" position="replace">
<label class="o_form_label" t-att-for="props.id" t-att-class="className" >
<t t-esc="props.string"/>
<sup class="btn-link p-1" t-if="hasTooltip" t-att="{'data-tooltip-template': 'web.FieldTooltip', 'data-tooltip-info': tooltipInfo, 'data-tooltip-touch-tap-to-show': 'true'}">*</sup>
</label>
</xpath>
</t>
<!-- 保存增加字样-->
<t t-name="app_web_enterprise.FormStatusIndicator" t-inherit="web.FormStatusIndicator" t-inherit-mode="extension">
<xpath expr="//i[hasclass('fa-cloud-upload')]" position="after">
Save
</xpath>
<xpath expr="//i[hasclass('fa-undo')]" position="after">
Discard
</xpath>
</t>
</templates>