mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
update common
This commit is contained in:
@@ -8,7 +8,6 @@
|
|||||||
<xpath expr="//search">
|
<xpath expr="//search">
|
||||||
<searchpanel view_types="kanban,tree">
|
<searchpanel view_types="kanban,tree">
|
||||||
<field name="type"/>
|
<field name="type"/>
|
||||||
<field name="model_data_id"/>
|
|
||||||
</searchpanel>
|
</searchpanel>
|
||||||
</xpath>
|
</xpath>
|
||||||
</field>
|
</field>
|
||||||
|
|||||||
@@ -8,11 +8,11 @@
|
|||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<xpath expr="//search" position="inside">
|
<xpath expr="//search" position="inside">
|
||||||
<searchpanel view_types="tree,kanban,pivot,graph">
|
<searchpanel view_types="tree,kanban,pivot,graph">
|
||||||
<field name="company_id" groups="base.group_multi_company" icon="fa-building"/>
|
|
||||||
<field name="priority"/>
|
<field name="priority"/>
|
||||||
<field name="reservation_state"/>
|
<field name="reservation_state"/>
|
||||||
<field name="state"/>
|
<field name="state"/>
|
||||||
<field name="routing_id" groups="mrp.group_mrp_routings"/>
|
<field name="routing_id" groups="mrp.group_mrp_routings"/>
|
||||||
|
<field name="company_id" groups="base.group_multi_company" icon="fa-building"/>
|
||||||
</searchpanel>
|
</searchpanel>
|
||||||
</xpath>
|
</xpath>
|
||||||
</field>
|
</field>
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'name': "MRP Workcenter zChart Parent Child Hierarchy,工作中心分级",
|
'name': "MRP Workcenter zChart Parent Child Hierarchy,工作中心分级",
|
||||||
'version': '13.20.08.20',
|
'version': '13.20.11.10',
|
||||||
'author': 'Sunpop.cn',
|
'author': 'Sunpop.cn',
|
||||||
'category': 'Base',
|
'category': 'Base',
|
||||||
'website': 'https://www.sunpop.cn',
|
'website': 'https://www.sunpop.cn',
|
||||||
@@ -44,7 +44,6 @@
|
|||||||
'images': ['static/description/banner.png'],
|
'images': ['static/description/banner.png'],
|
||||||
'depends': [
|
'depends': [
|
||||||
'mrp_workorder',
|
'mrp_workorder',
|
||||||
'app_mrp_superbar',
|
|
||||||
],
|
],
|
||||||
# 不要误装别的,避免冲突
|
# 不要误装别的,避免冲突
|
||||||
'excludes': [
|
'excludes': [
|
||||||
@@ -70,7 +69,6 @@
|
|||||||
# 'security/ir.model.access.csv.csv',
|
# 'security/ir.model.access.csv.csv',
|
||||||
# 'data/*.xml',
|
# 'data/*.xml',
|
||||||
'views/mrp_workcenter_views.xml',
|
'views/mrp_workcenter_views.xml',
|
||||||
'views/mrp_workorder_views.xml',
|
|
||||||
],
|
],
|
||||||
'qweb': [
|
'qweb': [
|
||||||
'static/src/xml/*.xml',
|
'static/src/xml/*.xml',
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<odoo>
|
|
||||||
<!--搜索加 superbar-->
|
|
||||||
<record model="ir.ui.view" id="app_view_mrp_production_workorder_form_view_filter">
|
|
||||||
<field name="name">app.mrp.production.work.order.select</field>
|
|
||||||
<field name="model">mrp.workorder</field>
|
|
||||||
<field name="inherit_id" ref="app_mrp_superbar.app_view_mrp_production_workorder_form_view_filter"/>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<xpath expr="//searchpanel//field[@name='workcenter_id']" position="replace">
|
|
||||||
<field name="workcenter_id"/>
|
|
||||||
</xpath>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
</odoo>
|
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'name': 'odoo 14,13 Customize OEM(Boost, Data reset)',
|
'name': 'odoo 14,13 Customize OEM(Boost, Data reset)',
|
||||||
'version': '13.20.11.06',
|
'version': '13.20.11.10',
|
||||||
'author': 'Sunpop.cn',
|
'author': 'Sunpop.cn',
|
||||||
'category': 'Productivity',
|
'category': 'Productivity',
|
||||||
'website': 'https://www.sunpop.cn',
|
'website': 'https://www.sunpop.cn',
|
||||||
@@ -78,6 +78,7 @@
|
|||||||
35. Fixed for odoo 14.
|
35. Fixed for odoo 14.
|
||||||
36. Add refresh translate for multi module.
|
36. Add refresh translate for multi module.
|
||||||
37. Easy noupdate manage for External Identifiers(xml_id)
|
37. Easy noupdate manage for External Identifiers(xml_id)
|
||||||
|
38. Add Draggable Dialog enable.
|
||||||
|
|
||||||
This module can help to white label the Odoo.
|
This module can help to white label the Odoo.
|
||||||
Also helpful for training and support for your odoo end-user.
|
Also helpful for training and support for your odoo end-user.
|
||||||
@@ -122,6 +123,7 @@
|
|||||||
35. 优化至odoo14适用
|
35. 优化至odoo14适用
|
||||||
36. 可为多个模块强制更新翻译
|
36. 可为多个模块强制更新翻译
|
||||||
37. noupdate字段的快速管理,主要针对 xml_id
|
37. noupdate字段的快速管理,主要针对 xml_id
|
||||||
|
38. 对话框可拖拽
|
||||||
""",
|
""",
|
||||||
'images': ['static/description/banner.gif'],
|
'images': ['static/description/banner.gif'],
|
||||||
'depends': [
|
'depends': [
|
||||||
@@ -134,6 +136,8 @@
|
|||||||
# 'web_mobile'
|
# 'web_mobile'
|
||||||
],
|
],
|
||||||
'data': [
|
'data': [
|
||||||
|
'security/res_groups.xml',
|
||||||
|
'security/ir.model.access.csv',
|
||||||
'views/app_odoo_customize_views.xml',
|
'views/app_odoo_customize_views.xml',
|
||||||
'views/app_theme_config_settings_views.xml',
|
'views/app_theme_config_settings_views.xml',
|
||||||
'views/res_config_settings_views.xml',
|
'views/res_config_settings_views.xml',
|
||||||
@@ -149,8 +153,6 @@
|
|||||||
'data/ir_module_module_data.xml',
|
'data/ir_module_module_data.xml',
|
||||||
# 'data/digest_template_data.xml',
|
# 'data/digest_template_data.xml',
|
||||||
'data/res_company_data.xml',
|
'data/res_company_data.xml',
|
||||||
'security/res_groups.xml',
|
|
||||||
'security/ir.model.access.csv',
|
|
||||||
],
|
],
|
||||||
'qweb': [
|
'qweb': [
|
||||||
'static/src/xml/*.xml',
|
'static/src/xml/*.xml',
|
||||||
|
|||||||
@@ -47,6 +47,9 @@
|
|||||||
<div class="oe_span12">
|
<div class="oe_span12">
|
||||||
<h2 class="oe_slogan">This is a Long Term Support Apps.</h2>
|
<h2 class="oe_slogan">This is a Long Term Support Apps.</h2>
|
||||||
<div class="oe_demo" style=" margin: 30px auto 0; padding: 0 15px 0 0; border:none; width: 96%;">
|
<div class="oe_demo" style=" margin: 30px auto 0; padding: 0 15px 0 0; border:none; width: 96%;">
|
||||||
|
<h3>Update: v13.20.11.09</h3>
|
||||||
|
<p>38. Add Draggable Dialog enable.</p>
|
||||||
|
<p>37. Easy noupdate manage for External Identifiers(xml_id).</p>
|
||||||
<h3>Update: v13.20.08.29</h3>
|
<h3>Update: v13.20.08.29</h3>
|
||||||
<p>36. Add odoo 14 support.</p>
|
<p>36. Add odoo 14 support.</p>
|
||||||
<h3>Update: v13.20.04.12</h3>
|
<h3>Update: v13.20.04.12</h3>
|
||||||
|
|||||||
17
app_odoo_customize/static/src/js/dialog.js
Normal file
17
app_odoo_customize/static/src/js/dialog.js
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
odoo.define('app_odoo_customize.dialog', function (require) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var Dialog = require('web.Dialog');
|
||||||
|
|
||||||
|
Dialog.include({
|
||||||
|
open: function () {
|
||||||
|
this._super.apply(this, arguments);
|
||||||
|
this._opened.then(function(){
|
||||||
|
$(".modal-content").draggable({
|
||||||
|
handle: ".modal-header"
|
||||||
|
});
|
||||||
|
});
|
||||||
|
return this;
|
||||||
|
},
|
||||||
|
});
|
||||||
|
});
|
||||||
7
app_odoo_customize/static/src/scss/dialog.scss
Normal file
7
app_odoo_customize/static/src/scss/dialog.scss
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
.modal {
|
||||||
|
.modal-content {
|
||||||
|
.modal-header.ui-draggable-handle {
|
||||||
|
cursor: move;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -4,11 +4,13 @@
|
|||||||
<xpath expr="//link[last()]" position="after">
|
<xpath expr="//link[last()]" position="after">
|
||||||
<link rel="stylesheet" type="text/scss" href="/app_odoo_customize/static/src/scss/app.scss"/>
|
<link rel="stylesheet" type="text/scss" href="/app_odoo_customize/static/src/scss/app.scss"/>
|
||||||
<link rel="stylesheet" type="text/scss" href="/app_odoo_customize/static/src/scss/ribbon.scss"/>
|
<link rel="stylesheet" type="text/scss" href="/app_odoo_customize/static/src/scss/ribbon.scss"/>
|
||||||
|
<link rel="stylesheet" type="text/scss" href="/app_odoo_customize/static/src/scss/dialog.scss"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="script[last()]" position="after">
|
<xpath expr="script[last()]" position="after">
|
||||||
<script type="text/javascript" src="/app_odoo_customize/static/src/js/app_window_title.js"></script>
|
<script type="text/javascript" src="/app_odoo_customize/static/src/js/app_window_title.js"></script>
|
||||||
<script type="text/javascript" src="/app_odoo_customize/static/src/js/customize_user_menu.js"></script>
|
<script type="text/javascript" src="/app_odoo_customize/static/src/js/customize_user_menu.js"></script>
|
||||||
<script type="text/javascript" src="/app_odoo_customize/static/src/js/ribbon.js"></script>
|
<script type="text/javascript" src="/app_odoo_customize/static/src/js/ribbon.js"></script>
|
||||||
|
<script type="text/javascript" src="/app_odoo_customize/static/src/js/dialog.js"></script>
|
||||||
</xpath>
|
</xpath>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//span[@id='add_title']" position="after">
|
<xpath expr="//span[@id='add_title']" position="after">
|
||||||
<xpath expr="//div[@class='oe_title']" position="move"/>
|
<xpath expr="//div[hasclass('oe_title')]" position="move"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//span[@id='add_group']" position="after">
|
<xpath expr="//span[@id='add_group']" position="after">
|
||||||
<xpath expr="//group[1]" position="move"/>
|
<xpath expr="//group[1]" position="move"/>
|
||||||
|
|||||||
@@ -54,36 +54,32 @@
|
|||||||
overflow: unset;
|
overflow: unset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Notebooks ,form_view,移动端优化
|
// Notebooks ,form_view,pc端优化
|
||||||
.o_form_view {
|
.o_form_view .o_notebook > .o_notebook_headers > .nav.nav-tabs > .nav-item > .nav-link {
|
||||||
.o_notebook {
|
background-color: #f9f9f9;
|
||||||
> .nav.nav-tabs {
|
&.active {
|
||||||
> .nav-item {
|
background-color: white;
|
||||||
> .nav-link {
|
border-top-width: 2px;
|
||||||
//border-left-width: 0!important;
|
margin-top: -1px;
|
||||||
background-color: #fafafa;
|
border-left-color: $o-enterprise-color;
|
||||||
|
border-left-width: 1px !important;
|
||||||
&:hover, &:focus, &:active {
|
border-right-color: $o-enterprise-color;
|
||||||
background-color: white;
|
border-right-width: 1px !important;
|
||||||
}
|
border-top-left-radius: 1px;
|
||||||
|
border-top-right-radius: 1px;
|
||||||
&.active {
|
|
||||||
border-top-width: 2px;
|
|
||||||
//border-left-width: 1px!important;
|
|
||||||
//border-right-width: 1px!important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&:first-child > .nav-link {
|
|
||||||
//border-left-width: 1px!important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
&:hover, &:focus, &:active {
|
||||||
// 列表自定义显示调整
|
background-color: white;
|
||||||
.o_content > .o_list_view > .table-responsive > .table .o_optional_columns_dropdown_toggle {
|
}
|
||||||
margin-right: 16px;
|
}
|
||||||
|
// Notebooks ,form_view,移动端优化
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.o_form_view .o_notebook > .o_notebook_headers > .nav.nav-tabs > .nav-item > .nav-link {
|
||||||
|
&.active {
|
||||||
|
margin-top: 0px;
|
||||||
|
margin-bottom: -1px;
|
||||||
|
padding-bottom: 0px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user