优化chatgpt,中文翻译

This commit is contained in:
ivan deng
2023-04-23 02:37:32 +08:00
parent 163f5ed1d5
commit 0ecd7ce6b2
8 changed files with 91 additions and 39 deletions

View File

@@ -1,3 +1,7 @@
// 不显示 tooltip
.o_tooltip.o_tooltip_visible {
display: none;
}
// 上方菜单下拉group 也有箭头
.o_main_navbar {
.o-dropdown {

View File

@@ -0,0 +1,21 @@
<?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>

View File

@@ -1,10 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<templates xml:space="preserve">
<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>
</templates>