Odoo Community Association

Romania - Stock Accounting

Mature License: AGPL-3 OCA/l10n-romania Translate me on Weblate Try me on Runboat

Stock accounting determination for receptions, deliveries, consume, usage_giving, inventory and production.

Table of contents

Changelog

18.0.1.32.0

  • Keep the standard valuation for an internal transfer whose source valuation account (gestiune) holds value and quantity of opposite signs, a state left behind by earlier mis-valuations. The per account cost is value / quantity, so such an account yields a negative cost; valuing the outgoing leg at it flipped the sign of its value, both legs came out positive, the transfer created value out of nothing and no accounting entry was written at all, because the entry branches on the sign of the cost. Also applies to l10n_ro_stock_account_tracking, which shares the same helper.

18.0.1.29.0

  • Fix the valuation of an internal transfer between two valuation accounts (gestiuni). The outgoing leg was valued at product.standard_price, i.e. the average cost over ALL the valuation accounts of the product, so whenever the source account held the goods at a different cost the transfer took out more (or less) than that account owned. The source account was left with value and no quantity, the accounting entry (which follows the outgoing leg) moved the wrong amount, and the discrepancy showed up both in the storage sheet and in the trial balance. Both legs are now valued at the cost the source account actually holds for the transferred goods, so a transfer neither creates nor destroys value. FIFO products are unaffected: they already consume the real layers.

18.0.1.25.1

  • Fix TypeError: '<' not supported between instances of 'bool' and 'str' in stock_valuation_layer._compute_account when sorting the account move lines. A journal item without an account (or whose account has no code) returns False for account_id.code, which cannot be compared against the string codes of the other lines. The sort key now falls back to an empty string, and the subsequent code[0] check guards against an empty/falsy code.

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • NextERP Romania
  • Dorin Hongu
  • Forest and Biomass Romania

Contributors

Do not contact contributors directly about support or help with technical issues.

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainers:

dhongu feketemihai

This module is part of the OCA/l10n-romania project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.