Skip to content
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

[MIG] stock_account_operating_unit: Migration to 17.0 #725

Open
wants to merge 20 commits into
base: 17.0
Choose a base branch
from

Conversation

BT-dherreros
Copy link

No description provided.

serpentcs-dev1 and others added 19 commits January 3, 2025 13:28
Added Test Cases.

Improved code for test cases

Migrated Valuation method of quants.

Migrated Valuation method _account_entry_move of quants.

Completed test cases and modified valuation method
Currently translated at 100.0% (3 of 3 strings)

Translation: operating-unit-13.0/operating-unit-13.0-stock_account_operating_unit
Translate-URL: https://translation.odoo-community.org/projects/operating-unit-13-0/operating-unit-13-0-stock_account_operating_unit/es/
@BT-dherreros BT-dherreros force-pushed the 17.0-mig-stock-account-operating-unit branch from e6fc13f to fb9abce Compare January 3, 2025 14:26
Copy link

@BT-rmartin BT-rmartin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -0,0 +1,2 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong header, should be LGPL

@BT-dherreros BT-dherreros force-pushed the 17.0-mig-stock-account-operating-unit branch from fb9abce to 3938389 Compare January 7, 2025 08:20
Copy link
Contributor

@AaronHForgeFlow AaronHForgeFlow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Functional review LGTM

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@BT-dherreros
Copy link
Author

Functional review LGTM

I had another functional look at this code and it seems to be creating 2 journal entries, one that seems to be correct and comes form Odoo's core and the other one coming from this migrated module with an incorrect ref field. Could you confirm this? maybe this migration is not needed anymore

Copy link
Contributor

@AaronHForgeFlow AaronHForgeFlow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. I think it is a past improvement done in a previous version:

Create stock moves between internal locations within the same company, but
different OU’s. The journal entries are created and they are self-balanced
within the OU when the journal entries are posted

This may be creating double JE when the products are actually moved out of the company. In my opinion, it is best to remove the action_done method, or at least, check if the products are move between internal locations of different OUs for doing the change.

I've some issues with moving products between different OU. That is why I have forbidden this action in my instances and I force to move first out of the company from OU1 and then move into the company using OU2. So, I am ok with removing the overwrite in the action_done method of stock.move

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants