-
-
Notifications
You must be signed in to change notification settings - Fork 334
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
sale_commission: propagate agents from company to contacts #197
sale_commission: propagate agents from company to contacts #197
Conversation
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.
We can assign also agents
on create when 'parent_id' in vals and agents
not in vals`
890ae57
to
06493c9
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.
You should increase the module version too.
06493c9
to
74bd9e7
Compare
No problem when you create a contact from * Sales -> Orders -> Customers * and you select the parent company to which it belongs, but, when the contacts are created as part of the insertion of data for the creation of the parent company; From the contact's create method, the agents of the parent company (self.browse (vals ['parent_id']). agents) returns an empty record set, so I can not pass the company's agents to those contacts. |
74bd9e7
to
56f7a44
Compare
@ernestotejeda check last commit. With this, it's working without problems. |
56f7a44
to
4d76205
Compare
I added a known issue and squash |
4d76205
to
ff40bf7
Compare
Cc @Tecnativa