move and update gpt

This commit is contained in:
ivan deng
2023-02-16 22:37:14 +08:00
parent 9752fd7f6d
commit 3477d98a53
32 changed files with 554 additions and 18 deletions

View File

@@ -0,0 +1,12 @@
//list 改标头背景
.o_list_renderer {
.o_list_table {
:not(.o_field_x2many_list) > & thead, tfoot {
tr > :not(:empty) {
padding-top: var(--ListRenderer-thead-padding-v);
padding-bottom: var(--ListRenderer-thead-padding-v);
background-color: $o-gray-100;
}
}
}
}

View File

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8" ?>
<templates xml:space="preserve">
<t t-name="app_web_enterprise.EnterpriseNavBar" t-inherit="web_enterprise.EnterpriseNavBar" t-inherit-mode="extension">
<!-- todo: 以下主要是测试,改这个主图标为 O -->
<xpath expr="//a[hasclass('o_menu_toggle')]" position="replace">
<a href="#" class="o_menu_toggle fa fa-2x fa-opera" style="font-size: 2em;" accesskey="h" t-ref="menuApps" t-on-click.prevent="() => this.hm.toggle()">
<!-- <svg width="14px" height="14px" viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" >-->
<!-- <g t-foreach="[0, 5, 10]" t-as="Y" t-att-id="'o_menu_toggle_row_' + Y_index" fill="currentColor" t-key="'o_menu_toggle_row_' + Y_index">-->
<!-- <rect t-foreach="[0, 5, 10]" t-as="X" width="4" height="4" t-att-x="X" t-att-y="Y" t-key="'o_menu_toggle_cell_' + X_index"/>-->
<!-- </g>-->
<!-- </svg>-->
</a>
</xpath>
</t>
<!-- web.NavBar.SectionsMenu-->
<!-- 没有子菜单时调用web.DropdownItem-->
<!-- web.UserMenu-->
</templates>

View File

@@ -1,15 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-extend="HomeMenu.Content">
<t t-jquery=".o_home_menu_footer" t-operation="inner">
<img src='/web/binary/company_logo' alt="Logo"/>
</t>
</t>
<!-- 菜单有下拉箭头-->
<t t-inherit="web.Dropdown" t-inherit-mode="extension">
<!-- <t t-extend="HomeMenu.Content">-->
<!-- <t t-jquery=".o_home_menu_footer" t-operation="inner">-->
<!-- <img src='/web/binary/company_logo' alt="Logo"/>-->
<!-- </t>-->
<!-- </t>-->
<!-- 菜单有下拉箭头 owl的在 web.NavBar.SectionsMenu 有group的用 MenuDropdown 直接操作的用 DropdownItem -->
<t t-name="app_web_enterprise.Dropdown" t-inherit="web.Dropdown">
<xpath expr="//div[hasclass('o-dropdown')]" position="attributes">
<attribute name="t-att-class">{show: state.open}</attribute>
<attribute name="t-att-class">
{{ directionCaretClass || ''}}
{{ state.open ? 'show' : ''}}</attribute>
</xpath>
</t>

View File

@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">
<t t-extend="res_config_edition">
<t t-jquery=".user-heading h3" t-operation="replace">
<h3>
odooApp <t t-esc="widget.server_version"/> (Sunpop.cn Edition)
</h3>
</t>
<t t-jquery=".user-o_web_settings_compact_subtitle small" t-operation="replace">
<small><a target="_blank" href="http://www.gnu.org/licenses/lgpl.html" style="text-decoration: underline;">GNU LGPL Licensed</a></small>
</t>
</t>
<!-- <t t-extend="res_config_edition">-->
<!-- <t t-jquery=".user-heading h3" t-operation="replace">-->
<!-- <h3>-->
<!-- odooApp <t t-esc="widget.server_version"/> (Sunpop.cn Edition)-->
<!-- </h3>-->
<!-- </t>-->
<!-- <t t-jquery=".user-o_web_settings_compact_subtitle small" t-operation="replace">-->
<!-- <small><a target="_blank" href="http://www.gnu.org/licenses/lgpl.html" style="text-decoration: underline;">GNU LGPL Licensed</a></small>-->
<!-- </t>-->
<!-- </t>-->
</templates>