mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
fix #I7N69Y [app_odoo_customize]开发者模式下增加可查看应用所在目录
This commit is contained in:
79
app_odoo_customize/views/ir_module_addons_path_views.xml
Normal file
79
app_odoo_customize/views/ir_module_addons_path_views.xml
Normal file
@@ -0,0 +1,79 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
<record id="ir_module_addons_path_tree_view" model="ir.ui.view">
|
||||
<field name="name">ir.module.addons.path.tree</field>
|
||||
<field name="model">ir.module.addons.path</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree>
|
||||
<field name="name"/>
|
||||
<field name="path"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="ir_module_addons_path_form_view" model="ir.ui.view">
|
||||
<field name="name">ir.module.addons.path.form</field>
|
||||
<field name="model">ir.module.addons.path</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<sheet>
|
||||
<div class="oe_button_box" name="button_box">
|
||||
<button name="open_apps_view" type="object"
|
||||
class="oe_stat_button" icon="fa-cubes"
|
||||
attrs="{'invisible': [('module_count', '=', 0)]}">
|
||||
<div class="o_stat_info">
|
||||
<field name="module_count" class="o_stat_value"/>
|
||||
<span class="o_stat_text"> Modules </span>
|
||||
</div>
|
||||
</button>
|
||||
</div>
|
||||
<group>
|
||||
<group>
|
||||
<field name="name"/>
|
||||
<field name="path"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="color"/>
|
||||
</group>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="ir_module_addons_path_kanban_view" model="ir.ui.view">
|
||||
<field name="name">ir.module.addons.path.kanban</field>
|
||||
<field name="model">ir.module.addons.path</field>
|
||||
<field name="arch" type="xml">
|
||||
<kanban class="o_kanban_mobile" create="0" edit="0" delete="0">
|
||||
<field name="name"/>
|
||||
<field name="path"/>
|
||||
<field name="path_temp"/>
|
||||
<field name="color"/>
|
||||
<templates>
|
||||
<t t-name="kanban-box">
|
||||
<div t-attf-style="border-left: 3px solid #{record.color.raw_value}" t-attf-class="oe_kanban_global_click">
|
||||
<div class="oe_kanban_details">
|
||||
<strong class="o_kanban_record_title"><field name="name"/></strong>
|
||||
<ul>
|
||||
<li class="text-muted"><field name="path_temp"/></li>
|
||||
<li>
|
||||
<a name="open_apps_view" href="#" type="object"><field name="module_count"/> Modules</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</templates>
|
||||
</kanban>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_ir_module_addons_path" model="ir.actions.act_window">
|
||||
<field name="name">Addons Paths</field>
|
||||
<field name="res_model">ir.module.addons.path</field>
|
||||
<field name="view_mode">kanban,tree,form</field>
|
||||
<field name="context">{}</field>
|
||||
<field name="domain">[]</field>
|
||||
</record>
|
||||
</odoo>
|
||||
@@ -12,6 +12,7 @@
|
||||
<field name="installed_version" position="after">
|
||||
<field name="latest_version" optional="hide"/>
|
||||
<field name="local_updatable" optional="show"/>
|
||||
<field name="addons_path" optional="hide"/>
|
||||
</field>
|
||||
<field name="website" position="attributes">
|
||||
<attribute name="optional">hide</attribute>
|
||||
@@ -27,6 +28,9 @@
|
||||
<filter name="not_installed" position="after">
|
||||
<filter name="is_local_updatable" string="Local updatable" domain="[('local_updatable', '=', True)]"/>
|
||||
</filter>
|
||||
<xpath expr="//search/group" position="inside">
|
||||
<filter string="Addons Path" name="addons_path" domain="[]" context="{'group_by': 'addons_path_id'}"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
<record id="app_module_form" model="ir.ui.view">
|
||||
@@ -40,6 +44,12 @@
|
||||
<field name="website" position="attributes">
|
||||
<attribute name="groups">app_odoo_customize.group_show_author_in_apps</attribute>
|
||||
</field>
|
||||
<xpath expr="//notebook/page/group" position="inside">
|
||||
<group name="module_path">
|
||||
<field name="addons_path_id" invisible="1"/>
|
||||
<field name="addons_path"/>
|
||||
</group>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
<record id="app_module_view_kanban" model="ir.ui.view">
|
||||
|
||||
@@ -54,18 +54,26 @@
|
||||
sequence="91"
|
||||
action="base.ir_cron_act"
|
||||
groups="base.group_system"/>
|
||||
<menuitem
|
||||
id="menu_ir_module_addons_path"
|
||||
name="Addons Paths"
|
||||
parent="menu_app_group"
|
||||
sequence="92"
|
||||
action="action_ir_module_addons_path"
|
||||
groups="base.group_system"/>
|
||||
|
||||
<!--增加导入Demo数据-->
|
||||
<menuitem
|
||||
id="menu_app_demo_data"
|
||||
parent="menu_app_group"
|
||||
sequence="92"
|
||||
sequence="93"
|
||||
action="base.demo_force_install_action"
|
||||
groups="base.group_system"/>
|
||||
<menuitem
|
||||
id="menu_ir_config_list"
|
||||
name="System Parameters"
|
||||
parent="menu_app_group"
|
||||
sequence="93"
|
||||
sequence="94"
|
||||
action="base.ir_config_list_action"
|
||||
groups="base.group_system"/>
|
||||
</data>
|
||||
|
||||
Reference in New Issue
Block a user