Merge lp:~openerp-dev/openobject-addons/6.1-fix-anonymization-mobile-field-issue-mma into lp:openobject-addons/6.1

Proposed by Mayur Maheshwari(OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/6.1-fix-anonymization-mobile-field-issue-mma
Merge into: lp:openobject-addons/6.1
Diff against target: 12 lines (+1/-1)
1 file modified
base_contact/base_contact.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.1-fix-anonymization-mobile-field-issue-mma
Reviewer Review Type Date Requested Status
Olivier Laurent (Open ERP) Pending
Review via email: mp+163094@code.launchpad.net

Description of the change

Hello,

Issue: Mobile field is not de-anonymized in the migrated database v6.1 to v7.0

This issue is raised from v6.1 itself. In base_contact module, most fields of res.partner.address become related (to either res.partner.location or res.partner.contact) and they have property store=True. But only 'mobile' field is not store=True so it is not stored in res_partner_address table. Our migration script handles data in res_partner_address table, we inserting those values in ir_model_fields_anonymization_migration_fix table and here mobile field is not in res_partner_address table. So at the end that field will be not anonymized properly .

For fix this issue I have to set a mobile field [store=True].

Would you please review it.

Thanks,
Mayur Maheshwari.

To post a comment you must log in.

Unmerged revisions

7208. By Mayur Maheshwari(OpenERP)

[FIX]base_contact: Fix issue of Mobile field can not de-anonymization when migrate database v_6_1 to v7_0

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'base_contact/base_contact.py'
2--- base_contact/base_contact.py 2012-02-15 13:22:13 +0000
3+++ base_contact/base_contact.py 2013-05-09 06:38:30 +0000
4@@ -205,7 +205,7 @@
5 'email': fields.char('E-Mail', size=240),
6
7 # fields from contact
8- 'mobile' : fields.related('contact_id', 'mobile', type='char', size=64, string='Mobile'),
9+ 'mobile' : fields.related('contact_id', 'mobile', type='char', size=64, string='Mobile', store=True),
10 'name' : fields.related('contact_id', 'name', type='char', size=64, string="Contact Name", store=True),
11 'title' : fields.related('contact_id', 'title', type='many2one', relation='res.partner.title', string="Title", store=True),
12 }