init app-odoo 15 from 13

This commit is contained in:
ivan deng
2021-10-01 18:54:20 +08:00
parent e346c360a2
commit 990e5a557b
291 changed files with 3014 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<template id="assets_backend" name="app_odoo_customize assets" inherit_id="web.assets_backend">
<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/ribbon.scss"/>
<link rel="stylesheet" type="text/scss" href="/app_odoo_customize/static/src/scss/dialog.scss"/>
</xpath>
<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/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/dialog.js"></script>
</xpath>
</template>
<!-- some odoo version not support, please remove this if you are using odoo9 -->
<template id="replace_login" name="Login Layout" inherit_id="web.login_layout">
<xpath expr="//a[@target='_blank']" position="replace">
<a href="https://www.sunpop.cn" target="_blank">Powered by <span>odooApp</span></a>
</xpath>
</template>
</odoo>

View File

@@ -0,0 +1,231 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="view_app_theme_config_settings" model="ir.ui.view">
<field name="name">Odoo Customize Settings</field>
<field name="model">res.config.settings</field>
<field name="priority">20</field>
<field name="arch" type="xml">
<form string="odooApp Customize Settings" class="oe_form_configuration">
<header>
<button string="Apply" type="object" name="execute" class="oe_highlight"/>
<button string="Cancel" type="object" name="cancel" class="oe_link" special="cancel"/>
</header>
<h2>Odoo Customize Setting</h2>
<group string="System Name">
<label for="app_system_name"/>
<div>
<field name="app_system_name"/>
<div>
<a href="https://www.sunpop.cn" target="_blank">Visit our website for more apps and Support. https://www.sunpop.cn</a>
</div>
</div>
</group>
<group string="User Menu">
<div class="row mt16 o_settings_container" name="user_menu_show_hide">
<div class="col-12 col-lg-6 o_setting_box">
<div>
<field name="app_show_lang"/>
<label for="app_show_lang"/>
</div>
<div>
<field name="app_show_debug"/>
<label for="app_show_debug"/>
</div>
<div>
<field name="app_show_documentation"/>
<label for="app_show_documentation"/>
</div>
<div>
<field name="app_show_documentation_dev"/>
<label for="app_show_documentation_dev"/>
</div>
</div>
<div class="col-12 col-lg-6 o_setting_box">
<div>
<field name="app_show_support"/>
<label for="app_show_support"/>
</div>
<div>
<field name="app_show_account"/>
<label for="app_show_account"/>
</div>
<div invisible="1">
<field name="app_show_enterprise"/>
<label for="app_show_enterprise"/>
</div>
<div invisible="1">
<field name="app_show_share"/>
<label for="app_show_share"/>
</div>
<div>
<field name="app_show_poweredby"/>
<label for="app_show_poweredby"/>
</div>
<div>
<field name="group_show_author_in_apps"/>
<label for="group_show_author_in_apps"/>
</div>
<div>
<field name="module_odoo_referral"/>
<label for="module_odoo_referral"/>
</div>
</div>
</div>
</group>
<group string="User Menu Content">
<label for="app_documentation_url"/>
<div>
<field name="app_documentation_url"/>
</div>
<label for="app_documentation_dev_url"/>
<div>
<field name="app_documentation_dev_url"/>
</div>
<label for="app_support_url"/>
<div>
<field name="app_support_url"/>
</div>
<label for="app_account_title"/>
<div>
<field name="app_account_title"/>
</div>
<label for="app_account_url"/>
<div>
<field name="app_account_url"/>
</div>
<label for="app_ribbon_name"/>
<div>
<field name="app_ribbon_name"/>
<div>
<span>Set to False to hide</span>
</div>
</div>
<label for="app_enterprise_url"/>
<div>
<field name="app_enterprise_url" class="oe_inline"/>
<button string="Click to set" type="object" name="set_module_url" class="ml8 oe_highlight"/>
</div>
</group>
<div class="mt16 o_settings_container" name="data-clean">
<h2 name="data-clean" class="o_horizontal_separator">Data Cleaning (Be careful to do that!)</h2>
<div class="col-12 col-lg-12 mb4">
<span class="col-3 col-lg-2 text-left">Sale</span>
<button string="Delete All Sales Order" type="object" name="remove_sales"
confirm="Please confirm to delete the select data?" class="oe_highlight"/>
</div>
<div class="col-12 col-lg-12 mb4">
<span class="col-3 col-lg-2 text-left">POS</span>
<button string="Delete All POS Order" type="object" name="remove_pos" confirm="Please confirm to delete the select data?"
class="oe_highlight"/>
</div>
<div class="col-12 col-lg-12 mb4">
<span class="col-3 col-lg-2 text-left">Purchase</span>
<button string="Delete All Purchase Order and Requisition" type="object" name="remove_purchase"
confirm="Please confirm to delete the select data?" class="oe_highlight"/>
</div>
<div class="col-12 col-lg-12 mb4">
<span class="col-3 col-lg-2 text-left">Expense</span>
<button string="Delete All Expense and Sheet" type="object" name="remove_expense"
confirm="Please confirm to delete the select data?" class="oe_highlight"/>
</div>
<div class="col-12 col-lg-12 mb4">
<span class="col-3 col-lg-2 text-left">MRP</span>
<button string="Delete All Manufacturing Order" type="object" name="remove_mrp"
confirm="Please confirm to delete the select data?" class="oe_highlight"/>
|
<button string="Delete All BOM" type="object" name="remove_mrp_bom"
confirm="Please confirm to delete the select data?" class="oe_highlight"/>
</div>
<div class="col-12 col-lg-12 mb4">
<span class="col-3 col-lg-2 text-left">Inventory</span>
<button string="Delete All Move/Picking/Package/Lot" type="object" name="remove_inventory"
confirm="Please confirm to delete the select data?" class="oe_highlight"/>
</div>
<div class="col-12 col-lg-12 mb4">
<span class="col-3 col-lg-2 text-left">
Accounting <span class="fa fa-lg fa-building-o" title="Values set here are company-specific." groups="base.group_multi_company"/>
</span>
<button string="Delete All Voucher/Invoice/Bill" type="object" name="remove_account"
confirm="Please confirm to delete the select data?" class="oe_highlight"/>
|
<button string="Clean and reset Account Chart" type="object" name="remove_account_chart"
confirm="Please confirm to delete the select data?" class="oe_highlight"/>
</div>
<div class="col-12 col-lg-12 mb4">
<span class="col-3 col-lg-2 text-left">Project</span>
<button string="Delete All Project/Task/Forecast" type="object" name="remove_project"
confirm="Please confirm to delete the select data?" class="oe_highlight"/>
</div>
<div class="col-12 col-lg-12 mb4">
<span class="col-3 col-lg-2 text-left">Quality</span>
<button string="Delete All Quality" type="object" name="remove_quality"
confirm="Please confirm to delete the select data?" class="oe_highlight"/>
|
<button string="Delete All Quality Setting" type="object" name="remove_quality_setting"
confirm="Please confirm to delete the select data?" class="oe_highlight"/>
</div>
<div class="col-12 col-lg-12 mb4">
<span class="col-3 col-lg-2 text-left">Website And Blog</span>
<button string="Delete All Website/Blog" type="object" name="remove_website"
confirm="Please confirm to delete the select data?" class="oe_highlight"/>
</div>
<div class="col-12 col-lg-12 mb4">
<span class="col-3 col-lg-2 text-left">Base Models</span>
<button string="Delete All Product" type="object" name="remove_product"
confirm="Please confirm to delete the select data?" class="oe_highlight"/>
|
<button string="Delete All Product Attribute" type="object" name="remove_product_attribute"
confirm="Please confirm to delete the select data?" class="oe_highlight"/>
|
<button string="Delete All Message" type="object" name="remove_message"
confirm="Please confirm to delete the select data?" class="oe_highlight"/>
|
<button string="Delete All Workflow" type="object" name="remove_workflow"
confirm="Please confirm to delete the select data?" class="oe_highlight"/>
|
<button string="Reset Category And Location Complete Name" type="object" name="reset_cat_loc_name" class="oe_highlight"/>
</div>
<div class="col-12 col-lg-12 mb4">
<span class="col-3 col-lg-2 text-left">All Business</span>
<button string="Delete All MRP/Sale/Purchase/Account/MRP/Inventory/Project/Message/Workflow" type="object" name="remove_all_biz"
confirm="Please confirm to delete the select data?" class="oe_highlight"/>
</div>
</div>
</form>
</field>
</record>
<record id="action_app_theme_config" model="ir.actions.act_window">
<field name="name">Customize Debrand</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">res.config.settings</field>
<field name="view_mode">form</field>
<field name="view_id" ref="view_app_theme_config_settings"/>
<field name="target">inline</field>
</record>
<menuitem
id="menu_app_group"
name="odooApp"
parent="base.menu_administration"
sequence="1"
groups="base.group_system"/>
<menuitem
id="menu_app_theme_config"
parent="menu_app_group"
sequence="1"
action="action_app_theme_config"/>
<menuitem
id="menu_ir_cron"
parent="menu_app_group"
sequence="98"
action="base.ir_cron_act"/>
<!--增加导入Demo数据-->
<menuitem
id="menu_app_demo_data"
parent="menu_app_group"
sequence="99"
action="base.demo_force_install_action"/>
</data>
</odoo>

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="app_view_model_data_list" model="ir.ui.view">
<field name="name">app.ir.model.data.tree</field>
<field name="model">ir.model.data</field>
<field name="inherit_id" ref="base.view_model_data_list"/>
<field name="arch" type="xml">
<field name="res_id" position="after">
<field name="noupdate"/>
</field>
</field>
</record>
<record id="app_view_model_data_search" model="ir.ui.view">
<field name="name">app.ir.model.data.search</field>
<field name="model">ir.model.data</field>
<field name="inherit_id" ref="base.view_model_data_search"/>
<field name="arch" type="xml">
<filter name="updatable" position="after">
<filter string="No Updatable" name="noupdatable" domain="[('noupdate', '=', True)]"/>
</filter>
</field>
</record>
</odoo>

View File

@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="app_view_model_fields_tree" model="ir.ui.view">
<field name="name">app.ir.model.fields tree</field>
<field name="model">ir.model.fields</field>
<field name="inherit_id" ref="base.view_model_fields_tree"/>
<field name="arch" type="xml">
<field name="readonly" position="before">
<field name="required"/>
</field>
<field name="readonly" position="after">
<field name="index"/>
<field name="copied"/>
<field name="tracking"/>
</field>
</field>
</record>
<record id="app_view_model_fields_search" model="ir.ui.view">
<field name="name">app.ir.ui.view search</field>
<field name="model">ir.model.fields</field>
<field name="inherit_id" ref="base.view_model_fields_search"/>
<field name="arch" type="xml">
<field name="name" position="after">
<field name="ttype"/>
<field name="relation"/>
</field>
</field>
</record>
</odoo>

View File

@@ -0,0 +1,76 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Modules list -->
<record id="app_module_tree" model="ir.ui.view">
<field name="name">app.ir.module.module.tree</field>
<field name="model">ir.module.module</field>
<field name="inherit_id" ref="base.module_tree"/>
<field name="arch" type="xml">
<field name="name" position="attributes">
<attribute name="groups"/>
</field>
<field name="installed_version" position="after">
<field name="latest_version" optional="hide"/>
<field name="local_updatable" optional="show"/>
</field>
<field name="website" position="attributes">
<attribute name="optional">hide</attribute>
</field>
</field>
</record>
<!-- Modules search-->
<record id="app_view_module_filter" model="ir.ui.view">
<field name="name">app.ir.module.module.list.select</field>
<field name="model">ir.module.module</field>
<field name="inherit_id" ref="base.view_module_filter" />
<field name="arch" type="xml">
<filter name="not_installed" position="after">
<filter name="is_local_updatable" string="Local updatable" domain="[('local_updatable', '=', True)]"/>
</filter>
</field>
</record>
<record id="app_module_form" model="ir.ui.view">
<field name="name">app.ir.module.module.form</field>
<field name="model">ir.module.module</field>
<field name="inherit_id" ref="base.module_form" />
<field name="arch" type="xml">
<h3 class="oe_fade" position="attributes">
<attribute name="groups">app_odoo_customize.group_show_author_in_apps</attribute>
</h3>
<field name="website" position="attributes">
<attribute name="groups">app_odoo_customize.group_show_author_in_apps</attribute>
</field>
</field>
</record>
<record id="app_module_view_kanban" model="ir.ui.view">
<field name="name">ir.module.module.kanban.inherit.base</field>
<field name="model">ir.module.module</field>
<field name="inherit_id" ref="base.module_view_kanban"/>
<field name="arch" type="xml">
<!--点击模块看详情-->
<xpath expr="//div[hasclass('oe_module_vignette')]" position="attributes" groups="app_odoo_customize.group_show_quick_upgrade">
<attribute name="class">oe_module_vignette oe_kanban_global_click</attribute>
</xpath>
<!--让模块名更显眼-->
<xpath expr="//div[hasclass('oe_module_desc')]//code" position="replace"/>
<xpath expr="//div[hasclass('oe_module_desc')]//h4" position="after">
<code><field name="name"/></code>
</xpath>
<!--显示快速升级-->
<xpath expr="//div[hasclass('oe_module_action')]" position="inside" groups="app_odoo_customize.group_show_quick_upgrade">
<button type="object" class="btn btn-default btn-sm float-right" name="button_uninstall_wizard" states="installed">Uninstall</button>
<button type="object" class="btn btn-success btn-sm float-right" name="button_immediate_upgrade" states="installed">Upgrade</button>
</xpath>
<!--显示导出翻译-->
<xpath expr="//div[hasclass('dropdown-menu')]" position="inside">
<a t-if="installed" name="%(app_odoo_customize.action_server_module_multi_get_po)d" type="action" role="menuitem" class="dropdown-item">Export Translation</a>
<a t-if="installed" name="%(app_odoo_customize.action_server_module_multi_refresh_po)d" type="action" role="menuitem" class="dropdown-item">Refresh Translation</a>
</xpath>
<xpath expr="//div[hasclass('oe_module_action')]/a[@target='_blank']" position="replace" groups="app_odoo_customize.group_show_quick_upgrade"/>
</field>
</record>
<!--默认打开可更新模块-->
<!--<record id="base.open_module_tree" model="ir.actions.act_window">-->
<!--<field name="context">{'search_default_is_local_updatable':1}</field>-->
<!--</record>-->
</odoo>

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="app_view_translation_tree" model="ir.ui.view">
<field name="name">app.ir.translation.tree</field>
<field name="model">ir.translation</field>
<field name="inherit_id" ref="base.view_translation_tree"/>
<field name="arch" type="xml">
<field name="value" position="after">
<field name="module" readonly="1"/>
</field>
</field>
</record>
<record id="app_view_translation_search" model="ir.ui.view">
<field name="name">app.ir.translation.search</field>
<field name="model">ir.translation</field>
<field name="inherit_id" ref="base.view_translation_search"/>
<field name="arch" type="xml">
<field name="value" position="after">
<field name="module"/>
</field>
</field>
</record>
</odoo>

View File

@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="0">
<!-- 将菜单管理在设置中提前-->
<record id="base.menu_grant_menu_access" model="ir.ui.menu">
<field name="parent_id" ref="base.menu_administration"/>
</record>
<record id="app_edit_menu" model="ir.ui.view">
<field name="name">app.ir.ui.menu.tree</field>
<field name="model">ir.ui.menu</field>
<field name="inherit_id" ref="base.edit_menu"/>
<field name="arch" type="xml">
<xpath expr="//tree" position="attributes">
<multi_edit eval="True"/>
</xpath>
<field name="complete_name" position="after">
<field name="name"/>
<field name="parent_id"/>
</field>
</field>
</record>
<record id="app_edit_menu_access_search" model="ir.ui.view">
<field name="name">app.ir.ui.menu.search</field>
<field name="model">ir.ui.menu</field>
<field name="inherit_id" ref="base.edit_menu_access_search"/>
<field name="arch" type="xml">
<filter name="inactive" position="before">
<filter string="Top Menu" name="top_menu" domain="[('parent_id','=', False)]"/>
</filter>
</field>
</record>
<!-- <record id="base.grant_menu_access" model="ir.actions.act_window">-->
<!-- <field name="context">{'ir.ui.menu.full_list': True, 'search_default_top_menu': 1}</field>-->
<!-- </record>-->
</data>
</odoo>

View File

@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="app_view_view_tree" model="ir.ui.view">
<field name="name">app.ir.ui.view tree</field>
<field name="model">ir.ui.view</field>
<field name="inherit_id" ref="base.view_view_tree"/>
<field name="arch" type="xml">
<field name="model" position="after">
<field name="priority"/>
<field name="mode"/>
</field>
</field>
</record>
</odoo>

View File

@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data>
<record id="action_server_module_multi_uninstall" model="ir.actions.server">
<field name="name">Uninstall Modules</field>
<field name="type">ir.actions.server</field>
<field name="binding_model_id" ref="base.model_ir_module_module" />
<field name="model_id" ref="base.model_ir_module_module" />
<field name="state">code</field>
<field name="code">
if records:
records.module_multi_uninstall()
</field>
</record>
<record id="action_server_module_multi_refresh_po" model="ir.actions.server">
<field name="name">Refresh Translation</field>
<field name="type">ir.actions.server</field>
<field name="binding_model_id" ref="base.model_ir_module_module" />
<field name="model_id" ref="base.model_ir_module_module" />
<field name="state">code</field>
<field name="code">
if records:
records.module_multi_refresh_po()
</field>
</record>
<record id="action_server_module_multi_get_po" model="ir.actions.act_window">
<field name="name">Export Translation</field>
<field name="type">ir.actions.act_window</field>
<field name="binding_model_id" ref="base.model_ir_module_module" />
<field name="res_model">base.language.export</field>
<field name="view_id" ref="base.wizard_lang_export"/>
<field name="target">new</field>
<field name="context">{
'default_format': 'po',
'default_modules': active_ids,
}
</field>
</record>
</data>
</odoo>

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="app_res_config_settings_view_form" model="ir.ui.view">
<field name="name">app.res.config.settings.view.form</field>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="base_setup.res_config_settings_view_form" />
<field name="arch" type="xml">
<div id="appstore" position="attributes">
<attribute name="class">o_hidden</attribute>
</div>
</field>
</record>
</data>
</odoo>