Add sale_product_tree_default module

This commit is contained in:
Florian da Costa
2019-03-31 15:22:50 +02:00
parent 08fde42217
commit bebc328a7b
3 changed files with 32 additions and 0 deletions

View File

View File

@@ -0,0 +1,22 @@
# © 2019 Akretion (http://www.akretion.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'Sale Product Tree Default',
'version': '12.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 sale
main menu
""",
'author': 'Akretion',
'website': 'http://www.akretion.com',
'depends': ['sale'],
'data': [
'views/product_template.xml'
],
'installable': True,
}

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="sale.product_template_action" model="ir.actions.act_window">
<field name="view_mode">tree,form,kanban,activity</field>
<field name="view_id" ref="product.product_template_tree_view"/>
</record>
</odoo>