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

[18.0][IMP] Remove deprecated is_l10n_ro_record field and cleanup logic #1215

Closed
wants to merge 10 commits into from

Conversation

dhongu
Copy link
Contributor

@dhongu dhongu commented Jan 27, 2025

Eliminated occurrences of the is_l10n_ro_record field across views, models, and XML files as it was no longer in use. Adjusted related logic to rely on alternative methods and cleaned deprecated code comments. This simplifies the codebase and improves maintainability.

Eliminated occurrences of the `is_l10n_ro_record` field across views, models, and XML files as it was no longer in use. Adjusted related logic to rely on alternative methods and cleaned deprecated code comments. This simplifies the codebase and improves maintainability.
@OCA-git-bot
Copy link
Contributor

Hi @feketemihai, @mcojocaru,
some modules you are maintaining are being modified, check this out!

Removed unused `chart_template_ref` parameter in `setUpClass` to clean up the code and align with its intended usage. This change ensures clarity and avoids unnecessary argument passing.
Previously, inconsistent variable naming (`price_unit` vs `price`) caused incorrect behavior in price calculation and updates. This change ensures consistent usage of the `price` variable to avoid potential errors.
Ensure proper handling of products with lot valuation by updating the price unit logic. Introduced conditions to return lot-specific prices and aligned calculation with stock valuation accuracy.
Adjusted the `unit_cost` assignment to ensure it uses the correct value based on the lot ID. This change ensures accurate stock valuation in cases where the average cost method is applied.
Ensure `lot_id` is properly resolved when calculating `unit_cost`. This prevents potential errors caused by incorrect indexing and improves stock valuation accuracy.
Corrected the model name from "stoc.lot" to "stock.lot" in stock move logic. This ensures proper retrieval of stock lot data and avoids potential errors during lot processing.
Corrects the key reference when retrieving lot ID during stock valuation. This ensures accurate mapping of unit costs to specific lots, preventing potential computation
@dhongu dhongu closed this Jan 28, 2025
@dhongu dhongu deleted the 18.0-stock_account branch January 28, 2025 14:22
@dhongu dhongu restored the 18.0-stock_account branch January 28, 2025 14:22
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.

2 participants