diff --git a/base_partner_always_multi_contacts/__init__.py b/base_partner_always_multi_contacts/__init__.py new file mode 100644 index 0000000..2098639 --- /dev/null +++ b/base_partner_always_multi_contacts/__init__.py @@ -0,0 +1,23 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Base Partner Always Multi Contacts module for OpenERP +# Copyright (C) 2014 Akretion (http://www.akretion.com) +# @author Alexis de Lattre +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## + + diff --git a/base_partner_always_multi_contacts/__openerp__.py b/base_partner_always_multi_contacts/__openerp__.py new file mode 100644 index 0000000..d3b1133 --- /dev/null +++ b/base_partner_always_multi_contacts/__openerp__.py @@ -0,0 +1,42 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Base Partner Always Multi Contacts module for OpenERP +# Copyright (C) 2014 Akretion (http://www.akretion.com) +# @author Alexis de Lattre +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## + + +{ + 'name': 'Base Partner Always Multi Contacts', + 'version': '0.1', + 'category': 'Partner', + 'license': 'AGPL-3', + 'summary': 'Both individuals and companies can have multiple contacts', + 'description': """ +Base Partner Always Multi Contacts +================================== + +By default, you can't enter several addresses for an individual in OpenERP because thee "Contacts" tab is hidden when the field *is Company* is not active. This module solves this. + """, + 'author': 'Akretion', + 'website': 'http://www.akretion.com', + 'depends': ['base'], + 'data': ['partner_view.xml'], + 'installable': True, + 'active': False, +} diff --git a/base_partner_always_multi_contacts/partner_view.xml b/base_partner_always_multi_contacts/partner_view.xml new file mode 100644 index 0000000..95ca885 --- /dev/null +++ b/base_partner_always_multi_contacts/partner_view.xml @@ -0,0 +1,23 @@ + + + + + + + + always.show.contacts.tab.on.partner.form + res.partner + + + + {'invisible': [('parent_id', '!=', False)]} + + + + + +