Merge lp:~openerp-dev/openobject-addons/6.1-opw-573096-ira into lp:openobject-addons/6.1
Proposed by
Ila Rana(Open ERP)
Status: | Approved |
---|---|
Approved by: | Naresh(OpenERP) |
Approved revision: | 6708 |
Proposed branch: | lp:~openerp-dev/openobject-addons/6.1-opw-573096-ira |
Merge into: | lp:openobject-addons/6.1 |
Diff against target: |
28 lines (+11/-1) 1 file modified
base_contact/base_contact.py (+11/-1) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-573096-ira |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael (OpenERP) (community) | Approve | ||
Julien Thewys (community) | Approve | ||
Naresh(OpenERP) (community) | Approve | ||
Xavier ALT | Pending | ||
Review via email: mp+99300@code.launchpad.net |
Description of the change
Hello Naresh,
I have fixed the problem of "base_contact does not support lead_to_partner conversion".
At the time of partner creation the contact_id is not created. I have made changes in base_contact for same.
Thanks,
Ila Rana(ira)
To post a comment you must log in.
Unmerged revisions
- 6708. By Julien Thewys
-
[FIX] base_contact: last_name is required, must be non blank
When creating an address/job, you create a referenced contact only if a contact_id is not already provided AND last_name is provided.
- 6707. By Ila Rana(Open ERP)
-
[FIX]base_
contact: base_contact does not support lead_to_partner conversion(573096) - 6706. By Ila Rana(Open ERP)
-
[FIX]base_
contact: base_contact does not support lead_to_partner conversion(573096)
Hello,
Thanks for the patch but it does not work for me: tools.yaml_ import: Assertion "NONAME" FAILED
1. the contact is still not created
2. it breaks a test:
openerp.
test: len(job_ids) == 2
values: ! 0 == 2
3. the title cannot be saved on the crm.lead form (so it cannot be converted either)
4. base_contact uses both firstname and lastname instead of name, so converting to partner should also copy the firstname. It means that the crm.lead form view must be adapted to display a firstname and a lastname field.
5. the email and the phone should not be saved on the contact but rather on the address (= on the job).
Could you fix that also please?
Also, as a good practice for readability, it is recommended to write 'contact_ id', False):
if 'contact_id' in data:
instead of
if not data.get(
I just also saw that the create method you modified had an error prone signature:
context={}
instead of the idiom
context=None
You can fix all that in a raw.
Thank you.