MIG *_product_tree_default to v14

Add module pos_product_tree_default
Improve orderpoint views
This commit is contained in:
Alexis de Lattre
2021-02-02 18:33:03 +01:00
parent 183bba3752
commit b2ce8f0aca
10 changed files with 84 additions and 9 deletions

View File

View File

@@ -0,0 +1,22 @@
# Copyright 2021 Akretion (http://www.akretion.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'POS Product Tree Default',
'version': '14.0.1.0.0',
'category': 'Product',
'license': 'AGPL-3',
'summary': 'Tree view by default instead of kanban for Products',
'description': """
Replace default kanban view by tree view for product menu in Point of Sale
main menu
""",
'author': 'Akretion',
'website': 'http://www.akretion.com',
'depends': ['point_of_sale'],
'data': [
'views/product_template.xml'
],
'installable': True,
}

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="point_of_sale.product_template_action_pos_product" model="ir.actions.act_window">
<field name="view_mode">tree,form,kanban,activity</field>
</record>
</odoo>

View File

@@ -4,7 +4,7 @@
{ {
'name': 'Purchase Product Tree Default', 'name': 'Purchase Product Tree Default',
'version': '12.0.1.0.0', 'version': '14.0.1.0.0',
'category': 'Product', 'category': 'Product',
'license': 'AGPL-3', 'license': 'AGPL-3',
'summary': 'Tree view by default instead of kanban for Products', 'summary': 'Tree view by default instead of kanban for Products',
@@ -18,5 +18,5 @@
'data': [ 'data': [
'views/product_template.xml' 'views/product_template.xml'
], ],
'installable': False, 'installable': True,
} }

View File

@@ -4,7 +4,7 @@
{ {
'name': 'Sale Product Tree Default', 'name': 'Sale Product Tree Default',
'version': '12.0.1.0.0', 'version': '14.0.1.0.0',
'category': 'Product', 'category': 'Product',
'license': 'AGPL-3', 'license': 'AGPL-3',
'summary': 'Tree view by default instead of kanban for Products', 'summary': 'Tree view by default instead of kanban for Products',
@@ -18,5 +18,5 @@
'data': [ 'data': [
'views/product_template.xml' 'views/product_template.xml'
], ],
'installable': False, 'installable': True,
} }

View File

@@ -4,7 +4,7 @@
<record id="sale.product_template_action" model="ir.actions.act_window"> <record id="sale.product_template_action" model="ir.actions.act_window">
<field name="view_mode">tree,form,kanban,activity</field> <field name="view_mode">tree,form,kanban,activity</field>
<field name="view_id" ref="product.product_template_tree_view"/> <field name="view_id" eval="False"/>
</record> </record>
</odoo> </odoo>

View File

@@ -1,10 +1,10 @@
# © 2019 Akretion (http://www.akretion.com) # Copyright 2019-2021 Akretion (http://www.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).
{ {
'name': 'Stock Product Tree Default', 'name': 'Stock Product Tree Default',
'version': '12.0.1.0.0', 'version': '14.0.1.0.0',
'category': 'Product', 'category': 'Product',
'license': 'AGPL-3', 'license': 'AGPL-3',
'summary': 'Tree view by default instead of kanban for Products', 'summary': 'Tree view by default instead of kanban for Products',
@@ -18,5 +18,5 @@
'data': [ 'data': [
'views/product_template.xml' 'views/product_template.xml'
], ],
'installable': False, 'installable': True,
} }

View File

@@ -4,7 +4,7 @@
<record id="stock.product_template_action_product" model="ir.actions.act_window"> <record id="stock.product_template_action_product" model="ir.actions.act_window">
<field name="view_mode">tree,form,kanban,activity</field> <field name="view_mode">tree,form,kanban,activity</field>
<field name="view_id" ref="product.product_template_tree_view"/> <field name="view_id" eval="False"/>
</record> </record>
</odoo> </odoo>

View File

@@ -32,6 +32,7 @@ This module has been written by Alexis de Lattre from Akretion <alexis.delattre@
'views/stock_move.xml', 'views/stock_move.xml',
'views/stock_picking.xml', 'views/stock_picking.xml',
'views/stock_warehouse.xml', 'views/stock_warehouse.xml',
'views/stock_warehouse_orderpoint.xml',
'views/procurement_group.xml', 'views/procurement_group.xml',
'views/procurement_scheduler_log.xml', 'views/procurement_scheduler_log.xml',
'security/ir.model.access.csv', 'security/ir.model.access.csv',

View File

@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2014-2020 Akretion (http://www.akretion.com/)
@author Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="view_warehouse_orderpoint_form" model="ir.ui.view">
<field name="model">stock.warehouse.orderpoint</field>
<field name="inherit_id" ref="stock.view_warehouse_orderpoint_form" />
<field name="arch" type="xml">
<field name="product_id" position="after">
<field name="trigger"/>
</field>
</field>
</record>
<record id="view_warehouse_orderpoint_tree_editable" model="ir.ui.view">
<field name="model">stock.warehouse.orderpoint</field>
<field name="inherit_id" ref="stock.view_warehouse_orderpoint_tree_editable" />
<field name="arch" type="xml">
<field name="trigger" position="attributes">
<attribute name="optional">show</attribute>
</field>
</field>
</record>
<record id="view_warehouse_orderpoint_tree_editable_config" model="ir.ui.view">
<field name="model">stock.warehouse.orderpoint</field>
<field name="inherit_id" ref="stock.view_warehouse_orderpoint_tree_editable_config" />
<field name="arch" type="xml">
<field name="trigger" position="attributes">
<attribute name="optional">show</attribute>
</field>
</field>
</record>
</odoo>