[MIG] partner_tree_default to 3 modules: partner_tree_default_base, partner_tree_default_account and partner_tree_default_contacts

This commit is contained in:
Alexis de Lattre
2020-12-03 23:48:14 +01:00
parent 86ec56b610
commit d72872eb90
10 changed files with 109 additions and 13 deletions

View File

@@ -1 +0,0 @@
# -*- coding: utf-8 -*-

View File

View File

@@ -0,0 +1,25 @@
# Copyright 2016-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).
{
'name': 'Partner Tree Default - Account',
'version': '14.0.1.0.0',
'category': 'Partner',
'license': 'AGPL-3',
'summary': 'Tree view by default instead of kanban for partners',
'description': """
Partner Tree Default - Account
===============================
With this module, when you select a *Customer* or *Vendors* menu entry, you will see the list view by default instead of the kanban view.
This module has been written by Alexis de Lattre <alexis.delattre@akretion.com> from Akretion.
""",
'author': 'Akretion',
'website': 'http://www.akretion.com',
'depends': ['base'],
'data': ['views/res_partner.xml'],
'installable': True,
}

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2016-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="account.res_partner_action_customer" model="ir.actions.act_window">
<field name="view_mode">tree,form,kanban</field>
</record>
<record id="account.res_partner_action_supplier" model="ir.actions.act_window">
<field name="view_mode">tree,form,kanban</field>
</record>
</odoo>

View File

View File

@@ -1,26 +1,25 @@
# -*- coding: utf-8 -*- # Copyright 2016-2020 Akretion (http://www.akretion.com)
# © 2016 Akretion (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).
{ {
'name': 'Partner Tree Default', 'name': 'Partner Tree Default - Base',
'version': '12.0.1.0.0', 'version': '14.0.1.0.0',
'category': 'Partner', 'category': 'Partner',
'license': 'AGPL-3', 'license': 'AGPL-3',
'summary': 'Tree view by default instead of kanban for partners', 'summary': 'Tree view by default instead of kanban for partners',
'description': """ 'description': """
Partner Tree Default Partner Tree Default - Base
==================== ===========================
With this module, when you select a *Customer* or *Supplier* menu entry, you will see the list view by default instead of the kanban view. With this module, when you select a *Customer* or *Vendors* menu entry, you will see the list view by default instead of the kanban view.
This module has been written by Alexis de Lattre <alexis.delattre@akretion.com> from Akretion. This module has been written by Alexis de Lattre <alexis.delattre@akretion.com> from Akretion.
""", """,
'author': 'Akretion', 'author': 'Akretion',
'website': 'http://www.akretion.com', 'website': 'http://www.akretion.com',
'depends': ['base'], 'depends': ['base'],
'data': ['views/partner_view.xml'], 'data': ['views/res_partner.xml'],
'installable': False, 'installable': True,
} }

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- <!--
© 2016 Akretion (http://www.akretion.com/) Copyright 2016-2020 Akretion (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).
--> -->
@@ -10,15 +10,27 @@
<record id="base.action_partner_form" model="ir.actions.act_window"> <record id="base.action_partner_form" model="ir.actions.act_window">
<field name="view_mode">tree,form,kanban</field> <field name="view_mode">tree,form,kanban</field>
</record> </record>
<record id="base.action_partner_tree_view1" model="ir.actions.act_window.view">
<field name="sequence" eval="-1"/>
</record>
<record id="base.action_partner_customer_form" model="ir.actions.act_window"> <record id="base.action_partner_customer_form" model="ir.actions.act_window">
<field name="view_mode">tree,form,kanban</field> <field name="view_mode">tree,form,kanban</field>
</record> </record>
<record id="base.action_partner_customer_form_view2" model="ir.actions.act_window.view"> <!-- Stupid XMLID, it's a tree -->
<field name="sequence" eval="-1"/>
</record>
<record id="base.action_partner_supplier_form" model="ir.actions.act_window"> <record id="base.action_partner_supplier_form" model="ir.actions.act_window">
<field name="view_mode">tree,form,kanban</field> <field name="view_mode">tree,form,kanban</field>
</record> </record>
<record id="base.action_partner_form_view1" model="ir.actions.act_window.view"> <record id="base.action_partner_vendor_form_view2" model="ir.actions.act_window.view"> <!-- Stupid XMLID, it's a tree -->
<field eval="3" name="sequence"/> <field name="sequence" eval="0"/>
</record> </record>
</odoo> </odoo>

View File

@@ -0,0 +1,25 @@
# Copyright 2016-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).
{
'name': 'Partner Tree Default - Contacts',
'version': '14.0.1.0.0',
'category': 'Partner',
'license': 'AGPL-3',
'summary': 'Tree view by default instead of kanban for partners',
'description': """
Partner Tree Default - Contacts
===============================
With this module, when you select a *Customer* or *Vendors* menu entry, you will see the list view by default instead of the kanban view.
This module has been written by Alexis de Lattre <alexis.delattre@akretion.com> from Akretion.
""",
'author': 'Akretion',
'website': 'http://www.akretion.com',
'depends': ['base'],
'data': ['views/res_partner.xml'],
'installable': True,
}

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2016-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="contacts.action_contacts" model="ir.actions.act_window">
<field name="view_mode">tree,form,kanban</field>
</record>
<record id="contacts.action_contacts_view_tree" model="ir.actions.act_window.view">
<field name="sequence" eval="-1"/>
</record>
</odoo>