-
-
Notifications
You must be signed in to change notification settings - Fork 284
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] sale_partner_company #580
base: 16.0
Are you sure you want to change the base?
Conversation
7355262
to
70b8190
Compare
Doesn't really depends on #577 |
70b8190
to
0d5ece9
Compare
class ResPartner(models.Model): | ||
_inherit = "res.partner" | ||
|
||
sale_company_id = fields.Many2one("res.company", string="Selling Company") |
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.
Improvement: that would be interesting to group partners by selling company (search view addition), and so adding an index here.
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.
Group by selling company it can be interesting indeed.
Regarding the index, from my understanding as we have a low cardinality on sale_company_id
we'll not gain in performance.
This PR has the |
0d5ece9
to
79fc9a1
Compare
Pushed improvement to assign default sale company value based on default sale partner => https://github.com/OCA/multi-company/compare/0d5ece9251995ec39d435d6976871a630d4d8d8c..79fc9a1006fc2968cceb7d8208db32cd86a68df0 |
hiii @pedrobaeza can you merge this PR please ? |
Similar to #584, I think the name should be |
It depends on sale and modifies sales order behavior. It's not just a partner attribute. in my opinion, current name is correct |
Hello @pedrobaeza and @jbaudoux , Could you agree on this or on the changes to be made? |
I haven't blocked the PR, so you can go on if you want to. |
79fc9a1
to
1817ecc
Compare
Hi @gurneyalex, could you merge this pr please :) |
/ocabot merge nobump |
What a great day to merge this nice PR. Let's do it! |
@gurneyalex your merge command was aborted due to failed check(s), which you can inspect on this commit of 16.0-ocabot-merge-pr-580-by-gurneyalex-bump-nobump. After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red. |
1817ecc
to
974f82c
Compare
@gurneyalex can you please help me to understand why this build is falling. |
974f82c
to
3f4e7b4
Compare
3f4e7b4
to
488c97a
Compare
Description
Allow to set the default selling company on a partner.
Configure
On the partner, choose the default company.
Create a sale.order with this partner, the sales company will be adapted from the partner.