Metadata-Version: 2.1
Name: odoo-addon-l10n_ro_stock_report
Version: 19.0.2.10.0
Requires-Dist: odoo-addon-l10n_ro_stock_account==19.0.*
Requires-Dist: odoo==19.0.*
Summary: =?utf-8?q?Romania_-_Stock_Report_=28Fi=C8=99=C4=83_Magazie=29?=
Home-page: https://github.com/OCA/l10n-romania
License: AGPL-3
Author: Terrabit,NextERP Romania,Odoo Community Association (OCA)
Author-email: support@odoo-community.org
Classifier: Programming Language :: Python
Classifier: Framework :: Odoo
Classifier: Framework :: Odoo :: 19.0
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Classifier: Development Status :: 6 - Mature
Description-Content-Type: text/x-rst

.. image:: https://odoo-community.org/readme-banner-image
   :target: https://odoo-community.org/get-involved?utm_source=readme
   :alt: Odoo Community Association

=====================================
Romania - Stock Report (Fișă Magazie)
=====================================

.. 
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! This file is generated by oca-gen-addon-readme !!
   !! changes will be overwritten.                   !!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! source digest: sha256:6acc36a9fd6532c64e68c40d423b6b959fdd501a56b0c9cd42931ca3b58b2bda
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
    :target: https://odoo-community.org/page/development-status
    :alt: Mature
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
    :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
    :alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--romania-lightgray.png?logo=github
    :target: https://github.com/OCA/l10n-romania/tree/19.0/l10n_ro_stock_report
    :alt: OCA/l10n-romania
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/l10n-romania-19-0/l10n-romania-19-0-l10n_ro_stock_report
    :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
    :target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-romania&target_branch=19.0
    :alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module adds a stock report according to Romanian requirements.

**Table of contents**

.. contents::
   :local:

Installation
============

To install this module, you need to:

- clone the branch 15.0 of the repository
  https://github.com/OCA/l10n-romania
- add the path to this repository in your configuration (addons-path)
- update the module list
- search for "Romania - Stock Report" in your addons
- install the module

Changelog
=========

19.0.2.9.0
----------

- Fix the "Toate locațiile" (all-locations) storage sheet report: the
  printed FINAL row recomputed a running total from the individual
  in/out detail lines instead of using the already-correct
  ``quantity_final``/``amount_final`` stored on the FINAL line. The
  ``t-if`` meant to branch on the FINAL row
  (``product!=line_product.product_id``) is always false, since the
  lines it iterates are already filtered to a single product, so every
  row, FINAL included, went through the running-sum branch instead.
  Ported from the 18.0 fix, where a manual correction layer with no
  valued type was silently dropped from the in/out detail queries and so
  was missing from the running total while still counted in the
  correctly-computed final sum. The in/out queries were rewritten for
  19.0 (stock.valuation.layer removed) and no longer have that specific
  exclusion, but the template still recomputes instead of trusting the
  stored final value, which stays fragile to any future gap between the
  detail and final queries. The single-product report
  (``report_storage_sheet``) was not affected, it already reads the
  final line separately.

19.0.2.6.0
----------

- Give the opening and closing balance rows a valued type of their own,
  ``initial`` and ``final``. This changes the behaviour deliberately
  kept in 19.0.2.4.1 ("balance rows keep no valued type, as in 18.0,
  since a balance aggregates several move types"), and the reasoning
  behind it is worth restating: a balance does aggregate several move
  types, which is exactly why it should not share a group with the
  movements whose type could not be determined. Left untyped, both
  balances fall into the same empty-type bucket as those movements, and
  grouping by valued type then produces a row showing an opening balance
  differing from the closing balance with no movement in between - the
  movements being on the typed rows. Every figure in that row is
  correct, but accountants read it as a broken sheet and open tickets
  against it. Typing the balances keeps them legible as balances and
  leaves the empty-type bucket to mean only what it says.

19.0.2.4.1
----------

- Fix the storage sheet no longer splitting by valued type. Up to 18.0
  the valued type of a line came from the valuation layer
  (``svl.l10n_ro_valued_type``); Odoo 19 removed
  ``stock.valuation.layer`` and moved the valuation onto ``stock.move``,
  so the report hardcoded ``'indefinite'`` on every movement row and
  grouping by "Valued Type" collapsed into a single group. The in/out
  queries now read the stored ``stock_move.l10n_ro_move_type`` column
  and group by it, and the line's selection lists every move type again
  so the values are groupable and readable. Balance rows keep no valued
  type, as in 18.0, since a balance aggregates several move types.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-romania/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 <https://github.com/OCA/l10n-romania/issues/new?body=module:%20l10n_ro_stock_report%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
-------

* Terrabit
* NextERP Romania

Contributors
------------

- `Terrabit <https://www.terrabit.ro>`__:

  - Dorin Hongu <dhongu@gmail.com>

- `NextERP Romania <https://www.nexterp.ro>`__:

  - Fekete Mihai <feketemihai@nexterp.ro>
  - Alexandru Teodor <teodoralexandru@nexterp.ro>
  - Musat Natanaela <musatnatanaela@nexterp.ro>

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

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

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.

.. |maintainer-dhongu| image:: https://github.com/dhongu.png?size=40px
    :target: https://github.com/dhongu
    :alt: dhongu
.. |maintainer-feketemihai| image:: https://github.com/feketemihai.png?size=40px
    :target: https://github.com/feketemihai
    :alt: feketemihai

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-dhongu| |maintainer-feketemihai| 

This module is part of the `OCA/l10n-romania <https://github.com/OCA/l10n-romania/tree/19.0/l10n_ro_stock_report>`_ project on GitHub.

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