-
-
Notifications
You must be signed in to change notification settings - Fork 344
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
Migration to version 15.0 #328
Comments
My intention for this version is to split the current base module
Then a theoretical What do you think about this? |
@pedrobaeza, we are interested in migrating to v 15.0, we are missing it, if you think we can start by migrating sale_commission to commission, in a first stage. |
Great, go ahead. |
Do you propose changing the name of the tables from "sale.commission" to "commission"? Or is this change going to be very traumatic for migrations from versions prior to 15.0? |
No, let's do it. Migration scripts can handle that. I will take care of it when merged. |
Hi @manuelcalerosolis @pedrobaeza I saw that you proposed a refactor of the sale_commission module for v15. I see that Manuel proposed this PR #343 that brings the base module commission. Then I see the following PR #345 from @slominchar which seems to be a straight port of the v14 module. Do you have any insight on the actual roadmap ? I'll be glad to make the review as soon I'm fixed of the porting roadmap. Thanks ! |
Yes, you can review such PR, but formally there's a problem with git commits. |
is there any plan to merge #363 ? |
Not while the PR is not in good state, and the current diff is not correct. I plan to work on it on August. |
Thanks for the feedback and the estimation :) @BT-fschubert FYI |
Hi @manuelcalerosolis @pedrobaeza @yostashiro @AungKoKoLin1997 exist in this moment 2 MIG PR's for the commission module in v.15 Which one is currently active? what is left to check? Pedro, how do you see that the modules have been separated? We need the modules for clients, we were waiting to see if this migration would be finished in the summer, but since we have seen that it is not... we want to see what remains to be done. |
The problem with both PRs is that they are not doing the split in the best way using correctly |
@pedrobaeza |
@pedrobaeza Sorry for my PR. I didn't fully understand this #328 (comment). Now I try to split the current base module sale_commission into 3 modules as you mentioned.
Could you please tell me my understanding is enough or not? And I don't get the main point of why need to split commission and account_commission. I think we can't do anything only with commission module(just my pov). So, I am not sure but should we combine these two into one module? |
Thinking this twice, I think the
The idea here is to avoid dependency on the invoices lines as the source of the settlements. This way, you can have settlements coming directly from sales orders, purchase orders, or any other kind of code that doesn't depend on invoices. Imagine for example a commission system that comes from the leads. We are not implementing this latter, but this design will fit with such requirement. It's also important to preserve the diffs at minimum for proper commit history and for later investigations on the code history. Let me know if you have doubts about it. If you are going to OCA days at Liége, I will be there, and it's another good occasion to review it together. |
I am thinking about it. Do you mean we create settlement base model like mixin and we inherit this base and create new model and have each settlement menu for other modules like sale_commission, account_commission. I mean we have a sale settlement menu for sale_commission. How about if we split into 4 modules:
|
More than a mixin, I talk about a full model. All settlements, coming from any source, will generate a record of this model. The difference is that a About the fourth module, |
Let me confirm this. When we make commission settlement, we need to choose settlement_type like sale order or account for generating settlement from sources. If we choose settlement_type to sale order when we make commission settlement, system will generate settlement from sale order lines. Is that right? |
Not really, current settlement wizard will directly set the |
So, we have each wizard to settle for each source and we set the settlement_type in the created settlements. I mean if we use sale_commission, there is a wizard to settle sale orders, but the menu to see them will be the same |
Yes, but for now you don't need to create such wizards except the existing one for invoices. |
@pedrobaeza Can you please review this PR #374? We split into three modules as we talked. But we have one concern about sale_commission. Now sale_commission performs the commissions on sales orders and propagate them to customer invoices. In the future, if we want to add directly settlements from sale orders, do we need to create new module for this part? I think we can't add this part in sale_commission module because this module depends on account_commission and may be user don't want to use account_commission. And then, I think we should add the option for transferring commssion from sale to invoice via config option in new module. Now, we can only make settlement from invoice. So, we need to propagate commission on sale orders to customer invoices. What do you think about this? |
As Other option is to create |
I think the first option is good as an interim arrangement. I am not aware of real need of creating settlements directly from sales orders. When such need comes out This second option sounds more reasonable in case the need of direct settlement from sales orders turns out to be material. Maybe this can be considered for future versions. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
Todo
https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-15.0
Modules to migrate
Missing module? Check https://github.com/OCA/maintainer-tools/wiki/%5BFAQ%5D-Missing-modules-in-migration-issue-list
The text was updated successfully, but these errors were encountered: