Better display of technical name of module in kanban view

Small improvements in stock_usability, sale_purchase_no_product_template_menu and mrp_no_product_template_menu
This commit is contained in:
Alexis de Lattre
2019-07-10 10:45:14 +02:00
parent 06e0617026
commit 60a5fa7a33
6 changed files with 38 additions and 8 deletions

View File

@@ -1,12 +1,23 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!--
© 2015-2016 Akretion (http://www.akretion.com/) Copyright 2015-2019 Akretion France (http://www.akretion.com/)
@author: Alexis de Lattre <alexis.delattre@akretion.com> @author: Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
--> -->
<odoo> <odoo>
<record id="module_view_kanban" model="ir.ui.view">
<field name="name">Better display of module technical name</field>
<field name="model">ir.module.module</field>
<field name="inherit_id" ref="base.module_view_kanban"/>
<field name="arch" type="xml">
<xpath expr="//h4[@class='o_kanban_record_title']/code[@groups='base.group_no_one']" position="before">
<br/>
</xpath>
</field>
</record>
<record id="view_module_filter" model="ir.ui.view"> <record id="view_module_filter" model="ir.ui.view">
<field name="model">ir.module.module</field> <field name="model">ir.module.module</field>
<field name="inherit_id" ref="base.view_module_filter"/> <field name="inherit_id" ref="base.view_module_filter"/>
@@ -24,4 +35,5 @@
<field name="context">{'search_default_installable': 1}</field> <field name="context">{'search_default_installable': 1}</field>
</record> </record>
</odoo> </odoo>

View File

@@ -1,4 +1,5 @@
# © 2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>) # Copyright 2016-2019 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{ {

View File

@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!--
© 2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>) Copyright 2016-2019 Akretion France (http://www.akretion.com/)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
--> -->

View File

@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*- # Copyright 2015-2019 Akretion France (http://www.akretion.com/)
# © 2015-2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>) # @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{ {

View File

@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!--
© 2015-2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>) Copyright 2015-2019 Akretion France (http://www.akretion.com/)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
--> -->

View File

@@ -27,6 +27,18 @@
<xpath expr="//field[@name='move_ids_without_package']/tree/field[@name='product_uom_qty']" position="attributes"> <xpath expr="//field[@name='move_ids_without_package']/tree/field[@name='product_uom_qty']" position="attributes">
<attribute name="sum">1</attribute> <attribute name="sum">1</attribute>
</xpath> </xpath>
<xpath expr="//field[@name='move_ids_without_package']/tree/field[@name='location_id']" position="replace"/>
<xpath expr="//field[@name='move_ids_without_package']/tree/field[@name='location_dest_id']" position="replace"/>
<xpath expr="//field[@name='move_ids_without_package']/tree/field[@name='product_id']" position="after">
<field name="location_id" groups="stock.group_stock_multi_locations" readonly="1"/>
<field name="location_dest_id" groups="stock.group_stock_multi_locations" readonly="1"/>
</xpath>
<xpath expr="//field[@name='move_line_ids_without_package']/tree/field[@name='location_id']" position="attributes">
<attribute name="attrs">{}</attribute>
</xpath>
<xpath expr="//field[@name='move_line_ids_without_package']/tree/field[@name='location_dest_id']" position="attributes">
<attribute name="attrs">{}</attribute>
</xpath>
</field> </field>
</record> </record>
@@ -145,12 +157,12 @@
</record> </record>
--> -->
<!--
<record id="view_move_picking_form" model="ir.ui.view"> <record id="view_move_picking_form" model="ir.ui.view">
<field name="name">stock.usability.stock.move.picking.form</field> <field name="name">stock.usability.stock.move.picking.form</field>
<field name="model">stock.move</field> <field name="model">stock.move</field>
<field name="inherit_id" ref="stock.view_move_picking_form" /> <field name="inherit_id" ref="stock.view_move_picking_form" />
<field name="arch" type="xml"> <field name="arch" type="xml">
<!--
<field name="state" position="before"> <field name="state" position="before">
<button type="object" name="button_do_unreserve" string="Unreserve" <button type="object" name="button_do_unreserve" string="Unreserve"
groups="stock.group_stock_user" groups="stock.group_stock_user"
@@ -177,9 +189,12 @@
</page> </page>
</notebook> </notebook>
</group> </group>
-->
<field name="move_dest_ids" position="before">
<field name="rule_id" readonly="1"/>
</field>
</field> </field>
</record> </record>
-->
<record id="view_move_picking_tree" model="ir.ui.view"> <record id="view_move_picking_tree" model="ir.ui.view">
<field name="name">stock_usability.src_location.in.picking.form</field> <field name="name">stock_usability.src_location.in.picking.form</field>