[17.0][MIG] purchase_sale_stock_inter_company#605
[17.0][MIG] purchase_sale_stock_inter_company#605
Conversation
e88c4c7 to
7db17e9
Compare
|
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
|
/ocabot migration purchase_sale_stock_inter_company |
|
Sorry @pomazanbohdan you are not allowed to mark the addon tobe migrated. To do so you must either have push permissions on the repository, or be a declared maintainer of all modified addons. If you wish to adopt an addon and become it's maintainer, open a pull request to add your GitHub login to the |
|
@cuongnmtm Would you be so kind as to repeat the note to the bot?
|
|
/ocabot migration purchase_sale_stock_inter_company |
|
Sorry @cuongnmtm you are not allowed to mark the addon tobe migrated. To do so you must either have push permissions on the repository, or be a declared maintainer of all modified addons. If you wish to adopt an addon and become it's maintainer, open a pull request to add your GitHub login to the |
|
I don't have permission, but I believe the maintainer will somehow receive a notification about this :D |
e6ead00 to
2417f1f
Compare
2417f1f to
5f52035
Compare
|
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
carlos-lopez-tecnativa
left a comment
There was a problem hiding this comment.
Please rebase the branch
TT54931
| from odoo.addons.purchase_sale_inter_company.tests import ( | ||
| test_inter_company_purchase_sale as test_icps, | ||
| ) | ||
|
|
||
| TestPurchaseSaleInterCompany = test_icps.TestPurchaseSaleInterCompany | ||
|
|
There was a problem hiding this comment.
Pre-commit auto fixes I guess
It just refactors the code.
ad3db76 to
3c75251
Compare
carlos-lopez-tecnativa
left a comment
There was a problem hiding this comment.
Please include and adapt #733
ping @cuongnmtm And remove the last commit, the dependency has already been merged. |
|
Hello @carlos-lopez-tecnativa , I plan to allocate time to work on this later this week. If it's urgent on your end, please feel free to continue from where I left off. Thank you. |
|
#804 should be included here. |
36086cb to
9e327cb
Compare
|
I cherry-picked the related commits from:
and adapted the migration code with the refactored code. |
|
Something went wrong. I tried to solve conflicts, and the migration changes were moved to the conflicted commit. I will need to redo it. |
9e327cb to
41ec8f4
Compare
abd8287 to
18331ba
Compare
|
There are two issues when process the backorder wizard:
I am checking it |
5edc793 to
a09943f
Compare
|
Need to remove the extra moves in case: # remove the extra move lines in the receipt of lot tracking product
# example: In the receipt, we have 3 move lines for 3 different serials,
# in the delivery we specify 2 serials. When validating the delivery and
# creating back order, Odoo generates 3 move lines in the receipt, so
# we need to remove 1 different move line in the receipt, otherwise it
# will cause an error saying that we need to assign a lot or serial
# for the remaining move line |
purchase_sale_stock_inter_company/tests/test_inter_company_purchase_sale_stock.py
Outdated
Show resolved
Hide resolved
purchase_sale_stock_inter_company/tests/test_inter_company_purchase_sale_stock.py
Outdated
Show resolved
Hide resolved
a09943f to
d26d93e
Compare
d26d93e to
6e4966a
Compare
|
Thanks @carlos-lopez-tecnativa for your review. |
e9147a4 to
455abe0
Compare
This commit includes not only the module migration but also additional logic to handle the synchronization of stock.move.line quantities and lots, inspired by this commit OCA@5118408 from the OCA multi-company repository. Although best practices suggest that a migration commit should focus solely on the migration, separating the sync logic into a different commit before or after the migration was not appropriate in this case, as the migration alone does not address all the necessary scenarios.
455abe0 to
a9f124e
Compare
From that PR, I noticed that this commit bc478bf which synchronizes Additionally, this module has a strange history. In v14, it existed as a single module: |
carlos-lopez-tecnativa
left a comment
There was a problem hiding this comment.
Additionally, I noticed that commit 8e705ae (for pre-commit autofixes) should only contain automatic formatting changes. However, it includes functional/code changes that shouldn't be in that type of commit.
These extra changes should be moved to the migration commit in order to keep a clean and accurate Git history.
The logic is handled in stock.picking. All tests are passed.
I will have a look on Friday |
|
Hello @cuongnmtm and @carlos-lopez-tecnativa As mentioned in previous comments, the history of the module is quite a mess... There were only one module purchase_sale_inter_company in 14.0 with maintainers : @aleuffre and @renda-dev It has been split in purchase_sale_inter_company and purchase_sale_stock_inter_company from 14.0 to 15.0 (see #370 and #371 by @JasminSForgeFlow) But a lot of improvements were added to 14.0 after that and never ported to 15.0 because it's harder to forward port due to the split. Then, original module was split in 13.0 also... And now, some PRs were merged to 16.0, adding features already present in 14.0, and facing same problems with different ways to fix... I'm trying to migrate modules purchase_sale_stock_inter_company to 18.0 and purchase_sale_stock_inter_company_mrp to 17.0 and 18.0... I'd like to use this PR has base for the migrations, but I feel @cuongnmtm is a bit lonely here, right ? @OCA/intercompany-maintainers Can we gather efforts to clean all that mess ? I'm trying to get the full history of issues and PRs for each version from 13.0 to 16.0, i'll try to post it here (or in another PR...) Any thoughts everyone ? |
|
I understand your pain, and there has been conflicting interests with some people only working on 14.0 while others working on upper versions. We can try to gather everything together through @carlos-lopez-tecnativa if you agree. |
Sure, what would be the better way ? I think porting tests from 14.0 to 16.0 one by one with code making each test pass in each commit would be easier for review... |
I'm working on this PR to forward-port all features from V13 and V14. Please review this PR and let me know if you have any questions. Superseded by #856 |
|
Let's close this one then. Do you agree, @cuongnmtm ? |



Depends on: