[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:
@@ -1 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
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>
|
||||
0
partner_tree_default_base/__init__.py
Normal file
0
partner_tree_default_base/__init__.py
Normal file
@@ -1,26 +1,25 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# © 2016 Akretion (http://www.akretion.com)
|
||||
# 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',
|
||||
'version': '12.0.1.0.0',
|
||||
'name': 'Partner Tree Default - Base',
|
||||
'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
|
||||
====================
|
||||
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.
|
||||
""",
|
||||
'author': 'Akretion',
|
||||
'website': 'http://www.akretion.com',
|
||||
'depends': ['base'],
|
||||
'data': ['views/partner_view.xml'],
|
||||
'installable': False,
|
||||
'data': ['views/res_partner.xml'],
|
||||
'installable': True,
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
<?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>
|
||||
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">
|
||||
<field name="view_mode">tree,form,kanban</field>
|
||||
</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">
|
||||
<field name="view_mode">tree,form,kanban</field>
|
||||
</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">
|
||||
<field name="view_mode">tree,form,kanban</field>
|
||||
</record>
|
||||
|
||||
<record id="base.action_partner_form_view1" model="ir.actions.act_window.view">
|
||||
<field eval="3" name="sequence"/>
|
||||
<record id="base.action_partner_vendor_form_view2" model="ir.actions.act_window.view"> <!-- Stupid XMLID, it's a tree -->
|
||||
<field name="sequence" eval="0"/>
|
||||
</record>
|
||||
|
||||
|
||||
</odoo>
|
||||
0
partner_tree_default_contacts/__init__.py
Normal file
0
partner_tree_default_contacts/__init__.py
Normal file
25
partner_tree_default_contacts/__manifest__.py
Normal file
25
partner_tree_default_contacts/__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 - 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,
|
||||
}
|
||||
18
partner_tree_default_contacts/views/res_partner.xml
Normal file
18
partner_tree_default_contacts/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="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>
|
||||
Reference in New Issue
Block a user