-
-
Notifications
You must be signed in to change notification settings - Fork 406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[16.0][ADD] crm_partner_contact_role #588
base: 16.0
Are you sure you want to change the base?
Conversation
b5e74ca
to
69bbce7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
|
||
role_ids = fields.Many2many( | ||
comodel_name="res.partner.role", | ||
compute="_compute_role", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would there be an issue if we just made it a related field?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. It will when we want to create new customer with filling role_ids and contact name from pipeline
without assigning partner_id
.
69bbce7
to
6e79b17
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor suggestions, otherwise LGTM.
self.assertTrue(bool(partner), "Partner was not created") | ||
self.assertEqual( | ||
partner.role_ids.ids, | ||
lead.role_ids.ids, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lead.role_ids.ids, | |
[self.role_1.id, self.role_2.id], |
) | ||
self.assertEqual( | ||
lead.role_ids.ids, | ||
partner.role_ids.ids, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
partner.role_ids.ids, | |
[self.role_1.id, self.role_2.id], |
This PR has the |
2 similar comments
This PR has the |
This PR has the |
@oca/crm-maintainers |
This PR adds
role_ids
to thecrm.lead
model and propagates them to theres.partner
record when it is created fromcrm.lead
.Related: OCA/partner-contact#1812
@qrtl QT4695