~openerp-commiter/openobject-addons/trunk-extra-addons

3895 by mra (Open ERP)
[ADD] base_partner_merge: add module which merge two partners and create new partner and deactivate old partners
1
# -*- encoding: utf-8 -*-
2
##############################################################################
3
#
4
#    OpenERP, Open Source Management Solution
5
#    Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
6
#    $Id$
7
#
8
#    This program is free software: you can redistribute it and/or modify
9
#    it under the terms of the GNU General Public License as published by
10
#    the Free Software Foundation, either version 3 of the License, or
11
#    (at your option) any later version.
12
#
13
#    This program is distributed in the hope that it will be useful,
14
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
15
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
#    GNU General Public License for more details.
17
#
18
#    You should have received a copy of the GNU General Public License
19
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
#
21
##############################################################################
5708 by Guewen Baconnier @ Camptocamp
[IMP] base_partner_merge: 6.1 compatibility
22
# Fixes, improvements and V6 adaptation by Guewen Baconnier - Camptocamp 2011
3895 by mra (Open ERP)
[ADD] base_partner_merge: add module which merge two partners and create new partner and deactivate old partners
23
24
{
25
    'name': 'Partner Merger',
26
    'version': '1.0',
27
    'category': 'Generic Modules/Base',
28
    'description': """
5708 by Guewen Baconnier @ Camptocamp
[IMP] base_partner_merge: 6.1 compatibility
29
To merge 2 partners, select them in the list view and execute the Action "Merge Partners".
30
To merge 2 addresses, select them in the list view and execute the Action "Merge Partner Addresses" or use the menu item :
31
 Partners / Configuration / Merge Partner Addresses
3902 by mra (Open ERP)
[IMP] base_partner_merge: modify wizards open created partner and address
32
5708 by Guewen Baconnier @ Camptocamp
[IMP] base_partner_merge: 6.1 compatibility
33
The selected addresses/partners are deactivated and a new one is created with :
34
 - When a value is the same on each resources : the value
35
 - When a value is different between the resources : you can choose the value to keep in a selection list
36
 - When a value is set on a resource and is empty on the second one : the value set on the resource
37
 - All many2many relations of the 2 resources are created on the new resource.
38
 - All the one2many relations (invoices, sale_orders, ...) are updated in order to link to the new resource.
3902 by mra (Open ERP)
[IMP] base_partner_merge: modify wizards open created partner and address
39
3895 by mra (Open ERP)
[ADD] base_partner_merge: add module which merge two partners and create new partner and deactivate old partners
40
    """,
41
    'author': 'Tiny',
42
    'website': 'http://www.openerp.com',
43
    'depends': ['base'],
44
    'init_xml': [],
5017 by rpa (Open ERP)
[IMP,ADD]: base_partner_merge: Improvement in code of merge partner + Converted wizard to merge partner address into osv_memory
45
    'update_xml': [
46
                    "wizard/base_partner_merge_view.xml", 
47
                    "wizard/base_partner_merge_address_view.xml"
5013 by rpa (Open ERP)
[IMP,ADD]: base_partner_merge: Converted wizard to merge partner into osv_memory + Code Improvements
48
                   ],
3895 by mra (Open ERP)
[ADD] base_partner_merge: add module which merge two partners and create new partner and deactivate old partners
49
    'demo_xml': [],
50
    'installable': True,
51
    "active": False,
52
}
5017 by rpa (Open ERP)
[IMP,ADD]: base_partner_merge: Improvement in code of merge partner + Converted wizard to merge partner address into osv_memory
53
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: