[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:
0
partner_tree_default_account/__init__.py
Normal file
0
partner_tree_default_account/__init__.py
Normal file
25
partner_tree_default_account/__manifest__.py
Normal file
25
partner_tree_default_account/__manifest__.py
Normal 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,
|
||||
}
|
||||
18
partner_tree_default_account/views/res_partner.xml
Normal file
18
partner_tree_default_account/views/res_partner.xml
Normal 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>
|
||||
Reference in New Issue
Block a user