Merge PR #299 into 14.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2024-02-14 15:48:05 +00:00
28 changed files with 2847 additions and 0 deletions

View File

@@ -0,0 +1 @@
../../../../stock_inventory_valuation_report

View File

@@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

View File

@@ -0,0 +1,91 @@
================================
Stock Inventory Valuation Report
================================
..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:7e81cc55bfaa7140318103e270fb5e41e7ee0ab5c82d8ce7ae587f6586adafa0
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-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%2Fstock--logistics--reporting-lightgray.png?logo=github
:target: https://github.com/OCA/stock-logistics-reporting/tree/14.0/stock_inventory_valuation_report
:alt: OCA/stock-logistics-reporting
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/stock-logistics-reporting-14-0/stock-logistics-reporting-14-0-stock_inventory_valuation_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/stock-logistics-reporting&target_branch=14.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
Stock Inventory Valuation Report is the report that display value of all products in internal location.
**Table of contents**
.. contents::
:local:
Usage
=====
To use this module, you need to:
#. Go to Inventory > Reporting > Inventory Valuation.
#. Select Inventory At Date.
#. You can now choose a few additional options: "View report", "Export PDF" and "Export XLSX".
Bug Tracker
===========
Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-reporting/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/stock-logistics-reporting/issues/new?body=module:%20stock_inventory_valuation_report%0Aversion:%2014.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
~~~~~~~
* Ecosoft
Contributors
~~~~~~~~~~~~
* `Pimolnat Suntian <pimolnats@ecosoft.co.th>`_
* `Ooops404 <https://ooops404.com>`_
* `Francesco Foresti <francesco.foresti@ooops404.com>`_
* `Cetmix <https://cetmix.com>`_
* `Andrey Solodovnikov <andrejsolodovnikov@gmail.com>`_
* `PyTech SRL <https://www.pytech.it>`_
* `Alessandro Uffreduzzi <alessandro.uffreduzzi@pytech.it>`_
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.
This module is part of the `OCA/stock-logistics-reporting <https://github.com/OCA/stock-logistics-reporting/tree/14.0/stock_inventory_valuation_report>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View File

@@ -0,0 +1,5 @@
# Copyright 2019 Ecosoft Co., Ltd. (http://ecosoft.co.th)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import wizard
from . import reports

View File

@@ -0,0 +1,23 @@
# Copyright 2019 Ecosoft Co., Ltd. (http://ecosoft.co.th)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Stock Inventory Valuation Report",
"summary": "Add report button on Inventory Valuation.",
"version": "14.0.1.0.0",
"category": "Warehouse",
"website": "https://github.com/OCA/stock-logistics-reporting",
"author": "Ecosoft,Odoo Community Association (OCA)",
"license": "AGPL-3",
"depends": [
"stock_account",
"report_xlsx_helper",
],
"data": [
"data/paperformat_data.xml",
"security/ir.model.access.csv",
"reports/stock_inventory_valuation_report.xml",
"wizard/stock_quantity_history_view.xml",
],
"installable": True,
}

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="paperformat_inventory_valuation_report" model="report.paperformat">
<field name="name">Inventory Valuation Report A4</field>
<field name="default" eval="True" />
<field name="format">A4</field>
<field name="page_height">0</field>
<field name="page_width">0</field>
<field name="orientation">Portrait</field>
<field name="margin_top">28</field>
<field name="margin_bottom">28</field>
<field name="margin_left">7</field>
<field name="margin_right">7</field>
<field name="header_line" eval="False" />
<field name="header_spacing">24</field>
<field name="dpi">90</field>
</record>
</odoo>

View File

@@ -0,0 +1,233 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_inventory_valuation_report
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2021-01-22 15:46+0000\n"
"Last-Translator: Yann Papouin <y.papouin@dec-industrie.com>\n"
"Language-Team: none\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 4.3.2\n"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_buttons
msgid "<span class=\"fa fa-download\"/>Export"
msgstr "<span class=\"fa fa-download\"/>Exporter"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_buttons
msgid "<span class=\"fa fa-print\"/>Print"
msgstr "<span class=\"fa fa-print\"/>Imprimer"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__barcode
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_lines_header
msgid "Barcode"
msgstr "Code Barre"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__company_id
msgid "Company"
msgstr "Société"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__compute_at_date
msgid "Compute At Date"
msgstr "Calculer à la date"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_lines_header
msgid "Cost"
msgstr "Coût"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__cost_currency_id
msgid "Cost Currency"
msgstr "Devise de coût"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__cost_method
msgid "Cost Method"
msgstr "Méthode de détermination du coût des stocks"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx__create_uid
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__create_uid
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__create_uid
msgid "Created by"
msgstr "Créé par"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx__create_date
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__create_date
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__create_date
msgid "Created on"
msgstr "Créé le"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__currency_id
msgid "Currency"
msgstr "Devise"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__date
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_report_filters
msgid "Date"
msgstr "Date"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx__display_name
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__display_name
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__display_name
msgid "Display Name"
msgstr "Nom affiché"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.view_stock_quantity_history_inherit
msgid "Export PDF"
msgstr "Exporter en PDF"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.view_stock_quantity_history_inherit
msgid "Export XLSX"
msgstr "Exporter en XLSX"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx__id
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__id
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__id
msgid "ID"
msgstr "ID"
#. module: stock_inventory_valuation_report
#: model:ir.actions.client,name:stock_inventory_valuation_report.action_stock_inventory_valuation_report_html
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_report_base
msgid "Inventory Valuation Report"
msgstr "Rapport de valorisation d'inventaire"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx____last_update
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report____last_update
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view____last_update
msgid "Last Modified on"
msgstr "Dernière modification le"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx__write_uid
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__write_uid
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__write_uid
msgid "Last Updated by"
msgstr "Dernière mise à jour par"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx__write_date
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__write_date
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__write_date
msgid "Last Updated on"
msgstr "Dernière mise à jour le"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__name
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_lines_header
msgid "Name"
msgstr "Nom"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_report_filters
msgid "Partner"
msgstr "Partenaire"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__qty_at_date
msgid "Qty At Date"
msgstr "Qté à la date"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_lines_header
msgid "Quantity"
msgstr "Quantité"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__reference
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_lines_header
msgid "Reference"
msgstr "Référence"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__results
msgid "Results"
msgstr "Résultats"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__standard_price
msgid "Standard Price"
msgstr "Prix standard"
#. module: stock_inventory_valuation_report
#: model:ir.model,name:stock_inventory_valuation_report.model_report_stock_inventory_valuation_report
msgid "Stock Inventory Valuation Report"
msgstr "Rapport de valorisation d'inventaire de stock"
#. module: stock_inventory_valuation_report
#: model:ir.actions.report,name:stock_inventory_valuation_report.action_stock_inventory_valuation_report_pdf
msgid "Stock Inventory Valuation Report PDF"
msgstr "Rapport PDF de valorisation d'inventaire de stock"
#. module: stock_inventory_valuation_report
#: model:ir.actions.report,name:stock_inventory_valuation_report.action_stock_inventory_valuation_report_xlsx
msgid "Stock Inventory Valuation Report XLSX"
msgstr "Rapport XLSX de valorisation d'inventaire de stock"
#. module: stock_inventory_valuation_report
#: model:ir.model,name:stock_inventory_valuation_report.model_stock_inventory_valuation_view
msgid "Stock Inventory Valuation View"
msgstr "Vue de la valorisation d'inventaire de stock"
#. module: stock_inventory_valuation_report
#: model:ir.model,name:stock_inventory_valuation_report.model_stock_quantity_history
msgid "Stock Quantity History"
msgstr "Historique des quantités en stock"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__stock_value
msgid "Stock Value"
msgstr "Valeur du stock"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_report_filters
msgid "Tax ID"
msgstr "N° TVA"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__uom_id
msgid "Uom"
msgstr "UdM"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,help:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__results
msgid "Use compute fields, so there is nothing store in database"
msgstr ""
"Utilise des champs calculés, il n'y a donc rien de stocké dans la base de "
"données"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_lines_header
msgid "Value"
msgstr "Valeur"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.view_stock_quantity_history_inherit
msgid "View report"
msgstr "Voir le rapport"
#. module: stock_inventory_valuation_report
#: model:ir.model,name:stock_inventory_valuation_report.model_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx
msgid "report.s_i_v_r.report_stock_inventory_valuation_report_xlsx"
msgstr "report.s_i_v_r.report_stock_inventory_valuation_report_xlsx"

View File

@@ -0,0 +1,231 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_inventory_valuation_report
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-09-20 17:51+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_buttons
msgid "<span class=\"fa fa-download\"/>Export"
msgstr "<span class=\"fa fa-download\"/>Esporta"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_buttons
msgid "<span class=\"fa fa-print\"/>Print"
msgstr "<span class=\"fa fa-print\"/>Stampa"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__barcode
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_lines_header
msgid "Barcode"
msgstr "Codice a barre"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__company_id
msgid "Company"
msgstr "Azienda"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__compute_at_date
msgid "Compute At Date"
msgstr "Calcola alla data"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_lines_header
msgid "Cost"
msgstr "Costo"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__cost_currency_id
msgid "Cost Currency"
msgstr "Valuta costo"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__cost_method
msgid "Cost Method"
msgstr "Metodo costo"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx__create_uid
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__create_uid
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__create_uid
msgid "Created by"
msgstr "Creato da"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx__create_date
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__create_date
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__create_date
msgid "Created on"
msgstr "Creato il"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__currency_id
msgid "Currency"
msgstr "Valuta"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__date
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_report_filters
msgid "Date"
msgstr "Data"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx__display_name
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__display_name
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__display_name
msgid "Display Name"
msgstr "Nome visualizzato"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.view_stock_quantity_history_inherit
msgid "Export PDF"
msgstr "Esporta PDF"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.view_stock_quantity_history_inherit
msgid "Export XLSX"
msgstr "Esporta XLSX"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx__id
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__id
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__id
msgid "ID"
msgstr "ID"
#. module: stock_inventory_valuation_report
#: model:ir.actions.client,name:stock_inventory_valuation_report.action_stock_inventory_valuation_report_html
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_report_base
msgid "Inventory Valuation Report"
msgstr "Stampa valorizzazione magazzino"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx____last_update
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report____last_update
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view____last_update
msgid "Last Modified on"
msgstr "Ultima modifica il"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx__write_uid
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__write_uid
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__write_uid
msgid "Last Updated by"
msgstr "Ultimo aggiornamento di"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx__write_date
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__write_date
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__write_date
msgid "Last Updated on"
msgstr "Ultimo aggiornamento il"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__name
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_lines_header
msgid "Name"
msgstr "Nome"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_report_filters
msgid "Partner"
msgstr "Partner"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__qty_at_date
msgid "Qty At Date"
msgstr "Qtà alla data"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_lines_header
msgid "Quantity"
msgstr "Quantità"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__reference
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_lines_header
msgid "Reference"
msgstr "Riferimento"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__results
msgid "Results"
msgstr "Risultati"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__standard_price
msgid "Standard Price"
msgstr "Prezzo standard"
#. module: stock_inventory_valuation_report
#: model:ir.model,name:stock_inventory_valuation_report.model_report_stock_inventory_valuation_report
msgid "Stock Inventory Valuation Report"
msgstr "Stampa valorizzazione magazzino"
#. module: stock_inventory_valuation_report
#: model:ir.actions.report,name:stock_inventory_valuation_report.action_stock_inventory_valuation_report_pdf
msgid "Stock Inventory Valuation Report PDF"
msgstr "Stampa PDF valorizzazione magazzino"
#. module: stock_inventory_valuation_report
#: model:ir.actions.report,name:stock_inventory_valuation_report.action_stock_inventory_valuation_report_xlsx
msgid "Stock Inventory Valuation Report XLSX"
msgstr "Stampa XLSX valorizzazione magazzino"
#. module: stock_inventory_valuation_report
#: model:ir.model,name:stock_inventory_valuation_report.model_stock_inventory_valuation_view
msgid "Stock Inventory Valuation View"
msgstr "Vista valorizzazione magazzino"
#. module: stock_inventory_valuation_report
#: model:ir.model,name:stock_inventory_valuation_report.model_stock_quantity_history
msgid "Stock Quantity History"
msgstr "Storico quantità di magazzino"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__stock_value
msgid "Stock Value"
msgstr "Valore inventario"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_report_filters
msgid "Tax ID"
msgstr "Partita IVA"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__uom_id
msgid "Uom"
msgstr "UdM"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,help:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__results
msgid "Use compute fields, so there is nothing store in database"
msgstr "Usa campi calcolati, così non viene conservato nulla nel database"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_lines_header
msgid "Value"
msgstr "Valore"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.view_stock_quantity_history_inherit
msgid "View report"
msgstr "Vedi resoconto"
#. module: stock_inventory_valuation_report
#: model:ir.model,name:stock_inventory_valuation_report.model_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx
msgid "report.s_i_v_r.report_stock_inventory_valuation_report_xlsx"
msgstr "report.s_i_v_r.report_stock_inventory_valuation_report_xlsx"

View File

@@ -0,0 +1,232 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_inventory_valuation_report
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-11-06 13:08+0000\n"
"Last-Translator: Pedro Castro Silva <pedrocs@exo.pt>\n"
"Language-Team: none\n"
"Language: pt\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 3.10\n"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_buttons
msgid "<span class=\"fa fa-download\"/>Export"
msgstr "<span class=\"fa fa-download\"/>Exportar"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_buttons
msgid "<span class=\"fa fa-print\"/>Print"
msgstr "<span class=\"fa fa-print\"/>Imprimir"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__barcode
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_lines_header
msgid "Barcode"
msgstr "Código de barras"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__company_id
msgid "Company"
msgstr "Empresa"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__compute_at_date
msgid "Compute At Date"
msgstr "Calcular à Data"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_lines_header
msgid "Cost"
msgstr "Custo"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__cost_currency_id
msgid "Cost Currency"
msgstr "Moeda do Custo"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__cost_method
msgid "Cost Method"
msgstr "Método de Custeio"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx__create_uid
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__create_uid
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__create_uid
msgid "Created by"
msgstr "Criado por"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx__create_date
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__create_date
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__create_date
msgid "Created on"
msgstr "Criado em"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__currency_id
msgid "Currency"
msgstr "Moeda"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__date
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_report_filters
msgid "Date"
msgstr "Data"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx__display_name
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__display_name
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__display_name
msgid "Display Name"
msgstr "Nome a Apresentar"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.view_stock_quantity_history_inherit
msgid "Export PDF"
msgstr "Exportar PDF"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.view_stock_quantity_history_inherit
msgid "Export XLSX"
msgstr "Exportar XLSX"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx__id
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__id
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__id
msgid "ID"
msgstr "Id"
#. module: stock_inventory_valuation_report
#: model:ir.actions.client,name:stock_inventory_valuation_report.action_stock_inventory_valuation_report_html
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_report_base
msgid "Inventory Valuation Report"
msgstr "Relatório de Avaliação de Inventário"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx____last_update
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report____last_update
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view____last_update
msgid "Last Modified on"
msgstr "Última Modificação em"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx__write_uid
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__write_uid
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__write_uid
msgid "Last Updated by"
msgstr "Última Atualização por"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx__write_date
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__write_date
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__write_date
msgid "Last Updated on"
msgstr "Última Atualização em"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__name
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_lines_header
msgid "Name"
msgstr "Nome"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_report_filters
msgid "Partner"
msgstr "Parceiro"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__qty_at_date
msgid "Qty At Date"
msgstr "Qtd. na Data"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_lines_header
msgid "Quantity"
msgstr "Quantidade"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__reference
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_lines_header
msgid "Reference"
msgstr "Referência"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__results
msgid "Results"
msgstr "Resultados"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__standard_price
msgid "Standard Price"
msgstr "Custo Padrão"
#. module: stock_inventory_valuation_report
#: model:ir.model,name:stock_inventory_valuation_report.model_report_stock_inventory_valuation_report
msgid "Stock Inventory Valuation Report"
msgstr "Relatório de Avaliação de Inventário"
#. module: stock_inventory_valuation_report
#: model:ir.actions.report,name:stock_inventory_valuation_report.action_stock_inventory_valuation_report_pdf
msgid "Stock Inventory Valuation Report PDF"
msgstr "Relatório de Avaliação de Inventário PDF"
#. module: stock_inventory_valuation_report
#: model:ir.actions.report,name:stock_inventory_valuation_report.action_stock_inventory_valuation_report_xlsx
msgid "Stock Inventory Valuation Report XLSX"
msgstr "Relatório de Avaliação de Inventário XLSX"
#. module: stock_inventory_valuation_report
#: model:ir.model,name:stock_inventory_valuation_report.model_stock_inventory_valuation_view
msgid "Stock Inventory Valuation View"
msgstr "Vista de Avaliação do Inventário"
#. module: stock_inventory_valuation_report
#: model:ir.model,name:stock_inventory_valuation_report.model_stock_quantity_history
msgid "Stock Quantity History"
msgstr "Histórico da Quantidade em Stock"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__stock_value
msgid "Stock Value"
msgstr "Valor do Stock"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_report_filters
msgid "Tax ID"
msgstr "NIF"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__uom_id
msgid "Uom"
msgstr "UdM"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,help:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__results
msgid "Use compute fields, so there is nothing store in database"
msgstr ""
"Usar campos calculados para que não haja nada armazenado na base de dados"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_lines_header
msgid "Value"
msgstr "Valor"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.view_stock_quantity_history_inherit
msgid "View report"
msgstr "Exibir relatório"
#. module: stock_inventory_valuation_report
#: model:ir.model,name:stock_inventory_valuation_report.model_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx
msgid "report.s_i_v_r.report_stock_inventory_valuation_report_xlsx"
msgstr ""

View File

@@ -0,0 +1,232 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_inventory_valuation_report
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-08-13 19:59+0000\n"
"Last-Translator: Matjaz Mozetic <matjaz@matmoz.si>\n"
"Language-Team: none\n"
"Language: sl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=4; plural=n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || "
"n%100==4 ? 2 : 3;\n"
"X-Generator: Weblate 3.10\n"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_buttons
msgid "<span class=\"fa fa-download\"/>Export"
msgstr "<span class=\"fa fa-download\"/>Izvoz"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_buttons
msgid "<span class=\"fa fa-print\"/>Print"
msgstr "<span class=\"fa fa-print\"/>Natisni"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__barcode
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_lines_header
msgid "Barcode"
msgstr "Črtna koda"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__company_id
msgid "Company"
msgstr "Družba"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__compute_at_date
msgid "Compute At Date"
msgstr "Obdelaj na datum"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_lines_header
msgid "Cost"
msgstr "Lastna cena"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__cost_currency_id
msgid "Cost Currency"
msgstr "Valuta lastne cene"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__cost_method
msgid "Cost Method"
msgstr "Metoda vrednotenja"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx__create_uid
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__create_uid
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__create_uid
msgid "Created by"
msgstr "Ustvaril"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx__create_date
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__create_date
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__create_date
msgid "Created on"
msgstr "Ustvarjeno"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__currency_id
msgid "Currency"
msgstr "Valuta"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__date
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_report_filters
msgid "Date"
msgstr "Datum"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx__display_name
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__display_name
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__display_name
msgid "Display Name"
msgstr "Prikazani naziv"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.view_stock_quantity_history_inherit
msgid "Export PDF"
msgstr "Izvoz v PDF"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.view_stock_quantity_history_inherit
msgid "Export XLSX"
msgstr "Izvoz v XLSX"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx__id
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__id
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__id
msgid "ID"
msgstr "ID"
#. module: stock_inventory_valuation_report
#: model:ir.actions.client,name:stock_inventory_valuation_report.action_stock_inventory_valuation_report_html
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_report_base
msgid "Inventory Valuation Report"
msgstr "Poročilo o vrednotenju zalog"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx____last_update
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report____last_update
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view____last_update
msgid "Last Modified on"
msgstr "Zadnjič spremenjeno"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx__write_uid
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__write_uid
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__write_uid
msgid "Last Updated by"
msgstr "Zadnji posodobil"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx__write_date
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__write_date
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__write_date
msgid "Last Updated on"
msgstr "Zadnjič posodobljeno"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__name
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_lines_header
msgid "Name"
msgstr "Naziv"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_report_filters
msgid "Partner"
msgstr "Partner"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__qty_at_date
msgid "Qty At Date"
msgstr "Kol na datum"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_lines_header
msgid "Quantity"
msgstr "Količina"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__reference
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_lines_header
msgid "Reference"
msgstr "Sklic"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__results
msgid "Results"
msgstr "Rezultati"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__standard_price
msgid "Standard Price"
msgstr "Standardna cena"
#. module: stock_inventory_valuation_report
#: model:ir.model,name:stock_inventory_valuation_report.model_report_stock_inventory_valuation_report
msgid "Stock Inventory Valuation Report"
msgstr "Poročilo o vrednotenju zalog"
#. module: stock_inventory_valuation_report
#: model:ir.actions.report,name:stock_inventory_valuation_report.action_stock_inventory_valuation_report_pdf
msgid "Stock Inventory Valuation Report PDF"
msgstr "Poročilo o vrednotenju zalog PDF"
#. module: stock_inventory_valuation_report
#: model:ir.actions.report,name:stock_inventory_valuation_report.action_stock_inventory_valuation_report_xlsx
msgid "Stock Inventory Valuation Report XLSX"
msgstr "Poročilo o vrednotenju zalog XLSX"
#. module: stock_inventory_valuation_report
#: model:ir.model,name:stock_inventory_valuation_report.model_stock_inventory_valuation_view
msgid "Stock Inventory Valuation View"
msgstr "Prikaz vrednotenja zalog"
#. module: stock_inventory_valuation_report
#: model:ir.model,name:stock_inventory_valuation_report.model_stock_quantity_history
msgid "Stock Quantity History"
msgstr "Zgodovina količin zalog"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__stock_value
msgid "Stock Value"
msgstr "Vrednost zaloge"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_report_filters
msgid "Tax ID"
msgstr "Davčna ID"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__uom_id
msgid "Uom"
msgstr "EM"
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,help:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__results
msgid "Use compute fields, so there is nothing store in database"
msgstr ""
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_lines_header
msgid "Value"
msgstr "Vrednost"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.view_stock_quantity_history_inherit
msgid "View report"
msgstr "Prikaz poročila"
#. module: stock_inventory_valuation_report
#: model:ir.model,name:stock_inventory_valuation_report.model_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx
msgid "report.s_i_v_r.report_stock_inventory_valuation_report_xlsx"
msgstr "report.s_i_v_r.report_stock_inventory_valuation_report_xlsx"

View File

@@ -0,0 +1,229 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * stock_inventory_valuation_report
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_buttons
msgid "<span class=\"fa fa-download\"/>Export"
msgstr ""
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_buttons
msgid "<span class=\"fa fa-print\"/>Print"
msgstr ""
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__barcode
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_lines_header
msgid "Barcode"
msgstr ""
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__company_id
msgid "Company"
msgstr ""
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__compute_at_date
msgid "Compute At Date"
msgstr ""
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_lines_header
msgid "Cost"
msgstr ""
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__cost_currency_id
msgid "Cost Currency"
msgstr ""
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__cost_method
msgid "Cost Method"
msgstr ""
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx__create_uid
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__create_uid
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__create_uid
msgid "Created by"
msgstr ""
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx__create_date
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__create_date
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__create_date
msgid "Created on"
msgstr ""
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__currency_id
msgid "Currency"
msgstr ""
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__date
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_report_filters
msgid "Date"
msgstr ""
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx__display_name
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__display_name
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__display_name
msgid "Display Name"
msgstr ""
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.view_stock_quantity_history_inherit
msgid "Export PDF"
msgstr ""
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.view_stock_quantity_history_inherit
msgid "Export XLSX"
msgstr ""
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx__id
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__id
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__id
msgid "ID"
msgstr ""
#. module: stock_inventory_valuation_report
#: model:ir.actions.client,name:stock_inventory_valuation_report.action_stock_inventory_valuation_report_html
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_report_base
msgid "Inventory Valuation Report"
msgstr ""
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx____last_update
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report____last_update
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view____last_update
msgid "Last Modified on"
msgstr ""
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx__write_uid
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__write_uid
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__write_uid
msgid "Last Updated by"
msgstr ""
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx__write_date
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__write_date
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__write_date
msgid "Last Updated on"
msgstr ""
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__name
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_lines_header
msgid "Name"
msgstr ""
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_report_filters
msgid "Partner"
msgstr ""
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__qty_at_date
msgid "Qty At Date"
msgstr ""
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_lines_header
msgid "Quantity"
msgstr ""
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__reference
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_lines_header
msgid "Reference"
msgstr ""
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__results
msgid "Results"
msgstr ""
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__standard_price
msgid "Standard Price"
msgstr ""
#. module: stock_inventory_valuation_report
#: model:ir.model,name:stock_inventory_valuation_report.model_report_stock_inventory_valuation_report
msgid "Stock Inventory Valuation Report"
msgstr ""
#. module: stock_inventory_valuation_report
#: model:ir.actions.report,name:stock_inventory_valuation_report.action_stock_inventory_valuation_report_pdf
msgid "Stock Inventory Valuation Report PDF"
msgstr ""
#. module: stock_inventory_valuation_report
#: model:ir.actions.report,name:stock_inventory_valuation_report.action_stock_inventory_valuation_report_xlsx
msgid "Stock Inventory Valuation Report XLSX"
msgstr ""
#. module: stock_inventory_valuation_report
#: model:ir.model,name:stock_inventory_valuation_report.model_stock_inventory_valuation_view
msgid "Stock Inventory Valuation View"
msgstr ""
#. module: stock_inventory_valuation_report
#: model:ir.model,name:stock_inventory_valuation_report.model_stock_quantity_history
msgid "Stock Quantity History"
msgstr ""
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__stock_value
msgid "Stock Value"
msgstr ""
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_report_filters
msgid "Tax ID"
msgstr ""
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,field_description:stock_inventory_valuation_report.field_stock_inventory_valuation_view__uom_id
msgid "Uom"
msgstr ""
#. module: stock_inventory_valuation_report
#: model:ir.model.fields,help:stock_inventory_valuation_report.field_report_stock_inventory_valuation_report__results
msgid "Use compute fields, so there is nothing store in database"
msgstr ""
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_lines_header
msgid "Value"
msgstr ""
#. module: stock_inventory_valuation_report
#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.view_stock_quantity_history_inherit
msgid "View report"
msgstr ""
#. module: stock_inventory_valuation_report
#: model:ir.model,name:stock_inventory_valuation_report.model_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx
msgid "report.s_i_v_r.report_stock_inventory_valuation_report_xlsx"
msgstr ""

View File

@@ -0,0 +1,7 @@
* `Pimolnat Suntian <pimolnats@ecosoft.co.th>`_
* `Ooops404 <https://ooops404.com>`_
* `Francesco Foresti <francesco.foresti@ooops404.com>`_
* `Cetmix <https://cetmix.com>`_
* `Andrey Solodovnikov <andrejsolodovnikov@gmail.com>`_
* `PyTech SRL <https://www.pytech.it>`_
* `Alessandro Uffreduzzi <alessandro.uffreduzzi@pytech.it>`_

View File

@@ -0,0 +1 @@
Stock Inventory Valuation Report is the report that display value of all products in internal location.

View File

@@ -0,0 +1,5 @@
To use this module, you need to:
#. Go to Inventory > Reporting > Inventory Valuation.
#. Select Inventory At Date.
#. You can now choose a few additional options: "View report", "Export PDF" and "Export XLSX".

View File

@@ -0,0 +1,5 @@
# Copyright 2019 Ecosoft Co., Ltd. (http://ecosoft.co.th)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import stock_inventory_valuation_report
from . import stock_inventory_valuation_report_xlsx

View File

@@ -0,0 +1,125 @@
# Copyright 2019 Ecosoft Co., Ltd. (http://ecosoft.co.th)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
from odoo.osv import expression
class StockInventoryValuationView(models.TransientModel):
_name = "stock.inventory.valuation.view"
_description = "Stock Inventory Valuation View"
report_id = fields.Many2one("report.stock.inventory.valuation.report")
name = fields.Char()
reference = fields.Char()
barcode = fields.Char()
qty_at_date = fields.Float()
uom_id = fields.Many2one(
comodel_name="uom.uom",
)
currency_id = fields.Many2one(
comodel_name="res.currency",
)
cost_currency_id = fields.Many2one(
comodel_name="res.currency",
)
standard_price = fields.Float()
stock_value = fields.Float()
cost_method = fields.Char()
class StockInventoryValuationReport(models.TransientModel):
_name = "report.stock.inventory.valuation.report"
_description = "Stock Inventory Valuation Report"
# Filters fields, used for data computation
company_id = fields.Many2one(
comodel_name="res.company",
)
inventory_datetime = fields.Datetime(required=True, default=fields.Datetime.now)
results = fields.One2many(
comodel_name="stock.inventory.valuation.view",
inverse_name="report_id",
compute="_compute_results",
)
@api.depends("inventory_datetime")
def _compute_results(self):
"""
Generate report lines, one per product present at the time
"""
self.ensure_one()
domain = [("type", "=", "product")]
product_id = self.env.context.get("product_id")
product_tmpl_id = self.env.context.get("product_tmpl_id")
if product_id:
domain = expression.AND([domain, [("id", "=", product_id)]])
elif product_tmpl_id:
domain = expression.AND(
[domain, [("product_tmpl_id", "=", product_tmpl_id)]]
)
products = (
self.env["product.product"]
.with_context(
to_date=self.inventory_datetime,
company_owned=True,
create=False,
edit=False,
)
.search(domain)
# 'quantity_svl' is not stored, can't be used in search
).filtered(lambda pp: pp.quantity_svl != 0)
results = self.env["stock.inventory.valuation.view"]
if products:
for product in products:
vals = {
"name": product.with_context(
display_default_code=False
).display_name,
"reference": product.default_code,
"barcode": product.barcode,
"qty_at_date": product.quantity_svl,
"uom_id": product.uom_id,
"currency_id": product.currency_id,
"cost_currency_id": product.cost_currency_id,
"standard_price": product.standard_price,
"stock_value": product.value_svl,
"cost_method": product.cost_method,
}
results |= results.new(vals)
self.results = results
def print_report(self, report_type="qweb"):
self.ensure_one()
action = (
report_type == "xlsx"
and self.env.ref(
"stock_inventory_valuation_report."
"action_stock_inventory_valuation_report_xlsx",
raise_if_not_found=False,
)
or self.env.ref(
"stock_inventory_valuation_report."
"action_stock_inventory_valuation_report_pdf",
raise_if_not_found=False,
)
)
return action.report_action(self, config=False)
def _get_html(self):
result = {}
rcontext = {}
report = self.browse(self._context.get("active_id"))
if report:
rcontext["o"] = report
result["html"] = self.env.ref(
"stock_inventory_valuation_report."
"report_stock_inventory_valuation_report_html"
)._render(rcontext)
return result
@api.model
def get_html(self, given_context=None):
return self.with_context(given_context)._get_html()

View File

@@ -0,0 +1,249 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="action_stock_inventory_valuation_report_html" model="ir.actions.client">
<field name="name">Inventory Valuation Report</field>
<field name="tag">stock_inventory_valuation_report_backend</field>
<field
name="context"
eval="{'active_model': 'report.stock.inventory.valuation.report'}"
/>
</record>
<record id="action_stock_inventory_valuation_report_pdf" model="ir.actions.report">
<field name="name">Stock Inventory Valuation Report PDF</field>
<field name="model">report.stock.inventory.valuation.report</field>
<field name="report_type">qweb-pdf</field>
<field
name="report_name"
>stock_inventory_valuation_report.report_stock_inventory_valuation_report_pdf</field>
<field
name="report_file"
>stock_inventory_valuation_report.report_stock_inventory_valuation_report_pdf</field>
<field
name="print_report_name"
>'Inventory Valuation Report - [%s]' % object.inventory_datetime</field>
<field
name="binding_model_id"
ref="model_report_stock_inventory_valuation_report"
/>
<field name="binding_type">report</field>
<field
name="paperformat_id"
ref="stock_inventory_valuation_report.paperformat_inventory_valuation_report"
/>
</record>
<record id="action_stock_inventory_valuation_report_xlsx" model="ir.actions.report">
<field name="name">Stock Inventory Valuation Report XLSX</field>
<field name="model">report.stock.inventory.valuation.report</field>
<field name="report_type">xlsx</field>
<field
name="report_name"
>s_i_v_r.report_stock_inventory_valuation_report_xlsx</field>
<field name="report_file">Inventory Valuation Report</field>
<field
name="binding_model_id"
ref="model_report_stock_inventory_valuation_report"
/>
<field name="binding_type">report</field>
<field name="attachment_use">False</field>
</record>
<template
id="assets_backend"
name="stock_inventory_valuation_report assets"
inherit_id="web.assets_backend"
>
<xpath expr="." position="inside">
<link
href="/stock_inventory_valuation_report/static/src/css/report.css"
rel="stylesheet"
/>
<script
type="text/javascript"
src="/stock_inventory_valuation_report/static/src/js/stock_inventory_valuation_report_backend.js"
/>
</xpath>
</template>
<template id="stock_inventory_valuation_report.internal_layout">
<div class="article">
<link
href="/stock_inventory_valuation_report/static/src/css/report.css"
rel="stylesheet"
/>
<t t-raw="0" />
</div>
<div class="footer">
<div class="row">
<div class="col-6 custom_footer" />
<div class="col-6 text-right custom_footer">
<span class="page" />/<span class="topage" />
</div>
</div>
</div>
</template>
<template id="report_buttons">
<div class="button_row">
<button
class="o_stock_inventory_valuation_report_print btn btn-sm oe_button"
><span class="fa fa-print" />Print</button>
<button
class="o_stock_inventory_valuation_report_export btn btn-sm oe_button"
><span class="fa fa-download" />Export</button>
</div>
</template>
<template id="report_stock_inventory_valuation_report_html">
<div class="o_stock_inventory_valuation_report_page">
<t t-call="stock_inventory_valuation_report.report_buttons" />
<t
t-call="stock_inventory_valuation_report.report_stock_inventory_valuation_report_base"
/>
</div>
</template>
<template
id="stock_inventory_valuation_report.report_stock_inventory_valuation_report_pdf"
>
<t t-call="web.html_container">
<t t-foreach="docs" t-as="o">
<t t-call="stock_inventory_valuation_report.internal_layout">
<t
t-call="stock_inventory_valuation_report.report_stock_inventory_valuation_report_base"
/>
</t>
</t>
</t>
</template>
<template
id="stock_inventory_valuation_report.report_stock_inventory_valuation_report_base"
>
<div class="page">
<div class="row">
<t t-set="title">Inventory Valuation Report</t>
<h4 class="mt0" t-esc="title" style="text-align: center;" />
</div>
<!-- Display filters -->
<t
t-call="stock_inventory_valuation_report.report_stock_inventory_valuation_report_filters"
/>
<!-- Display stock card table -->
<div class="act_as_table data_table mt4" style="width: 100%;">
<!-- Display header line-->
<t
t-call="stock_inventory_valuation_report.report_stock_inventory_valuation_lines_header"
/>
<!-- Display each lines -->
<t t-set="n" t-value="1" />
<t t-set="total" t-value="0.00" />
<t t-foreach="o.results" t-as="line">
<t
t-call="stock_inventory_valuation_report.report_stock_inventory_valuation_lines"
/>
<t t-set="n" t-value="n+1" />
<t t-set="total" t-value="total+line.stock_value" />
</t>
</div>
<!-- Display total lines -->
<t
t-call="stock_inventory_valuation_report.report_stock_inventory_valuation_total_lines"
/>
</div>
</template>
<template
id="stock_inventory_valuation_report.report_stock_inventory_valuation_report_filters"
>
<div class="act_as_table data_table" style="width: 100%;">
<div class="act_as_row labels">
<div class="act_as_cell">Date</div>
<div class="act_as_cell">Partner</div>
<div class="act_as_cell">Tax ID</div>
</div>
<div class="act_as_row">
<div class="act_as_cell">
<span t-esc="o.inventory_datetime.strftime('%Y-%m-%d')" />
</div>
<div class="act_as_cell">
<span t-field='o.company_id.name' />
</div>
<div class="act_as_cell">
<span t-field='o.company_id.vat' />
</div>
</div>
</div>
</template>
<template
id="stock_inventory_valuation_report.report_stock_inventory_valuation_lines_header"
>
<div class="act_as_thead">
<div class="act_as_row labels">
<div class="act_as_cell">#</div>
<div class="act_as_cell">Reference</div>
<div class="act_as_cell">Name</div>
<div class="act_as_cell">Barcode</div>
<div class="act_as_cell">Quantity</div>
<div class="act_as_cell">UoM</div>
<div class="act_as_cell">Cost</div>
<div class="act_as_cell">Value</div>
</div>
</div>
</template>
<template
id="stock_inventory_valuation_report.report_stock_inventory_valuation_lines"
>
<div class="act_as_row lines">
<div class="act_as_cell left">
<t t-esc="n" />
</div>
<div class="act_as_cell left">
<t t-esc="line.reference" />
</div>
<div class="act_as_cell left">
<t t-esc="line.name" />
</div>
<div class="act_as_cell left">
<t t-esc="line.barcode" />
</div>
<div class="act_as_cell right">
<t t-esc="'{0:,.3f}'.format(line.qty_at_date)" />
</div>
<div class="act_as_cell left">
<t t-esc="line.uom_id.name" />
</div>
<div class="act_as_cell amount">
<t
t-esc="line.standard_price"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</div>
<div class="act_as_cell amount">
<t
t-esc="line.stock_value"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</div>
</div>
</template>
<template
id="stock_inventory_valuation_report.report_stock_inventory_valuation_total_lines"
>
<div class="act_as_table data_table mt0" style="width: 100%;">
<div class="total_row">
<t
t-esc="total"
t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
/>
</div>
</div>
</template>
</odoo>

View File

@@ -0,0 +1,169 @@
# Copyright 2019 Ecosoft Co., Ltd. (http://ecosoft.co.th)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import models
from odoo.addons.report_xlsx_helper.report.report_xlsx_format import (
FORMATS,
XLS_HEADERS,
)
class ReportStockInventoryValuationReportXlsx(models.TransientModel):
_name = "report.s_i_v_r.report_stock_inventory_valuation_report_xlsx"
_description = "Report Stock Inventory Valuation xlsx"
_inherit = "report.report_xlsx.abstract"
def _get_ws_params(self, wb, data, objects):
stock_inventory_valuation_template = {
"1_number": {
"header": {
"value": "#",
},
"data": {
"value": self._render("n"),
},
"width": 12,
},
"2_reference": {
"header": {
"value": "Reference",
},
"data": {
"value": self._render("reference"),
},
"width": 15,
},
"3_name": {
"header": {
"value": "Name",
},
"data": {
"value": self._render("name"),
},
"width": 36,
},
"4_barcode": {
"header": {
"value": "Barcode",
},
"data": {
"value": self._render("barcode"),
},
"width": 15,
},
"5_qty_at_date": {
"header": {
"value": "Quantity",
},
"data": {
"value": self._render("qty_at_date"),
"format": FORMATS["format_tcell_amount_conditional_right"],
},
"width": 18,
},
"6_uom": {
"header": {
"value": "UoM",
},
"data": {
"value": self._render("uom"),
},
"width": 11,
},
"7_standard_price": {
"header": {
"value": "Cost",
},
"data": {
"value": self._render("standard_price"),
"format": FORMATS["format_tcell_amount_conditional_right"],
},
"width": 18,
},
"8_stock_value": {
"header": {
"value": "Value",
},
"data": {
"value": self._render("stock_value"),
"format": FORMATS["format_tcell_amount_conditional_right"],
},
"width": 18,
},
}
ws_params = {
"ws_name": "Inventory Valuation Report",
"generate_ws_method": "_inventory_valuation_report",
"title": "Inventory Valuation Report",
"wanted_list": [
k for k in sorted(stock_inventory_valuation_template.keys())
],
"col_specs": stock_inventory_valuation_template,
}
return [ws_params]
def _inventory_valuation_report(self, wb, ws, ws_params, data, objects):
ws.set_portrait()
ws.fit_to_pages(1, 0)
ws.set_header(XLS_HEADERS["xls_headers"]["standard"])
ws.set_footer(XLS_HEADERS["xls_footers"]["standard"])
self._set_column_width(ws, ws_params)
row_pos = 0
row_pos = self._write_ws_title(ws, row_pos, ws_params, True)
for o in objects:
ws.write_row(
row_pos,
0,
["Date", "Partner", "Tax ID"],
FORMATS["format_theader_blue_center"],
)
ws.write_row(
row_pos + 1,
0,
[o.inventory_datetime or ""],
FORMATS["format_tcell_date_center"],
)
ws.write_row(
row_pos + 1,
1,
[o.company_id.name or "", o.company_id.vat or ""],
FORMATS["format_tcell_center"],
)
row_pos += 3
row_pos = self._write_line(
ws,
row_pos,
ws_params,
col_specs_section="header",
default_format=FORMATS["format_theader_blue_center"],
)
ws.freeze_panes(row_pos, 0)
total = 0.00
for line in o.results:
row_pos = self._write_line(
ws,
row_pos,
ws_params,
col_specs_section="data",
render_space={
"n": row_pos - 5,
"name": line.name or "",
"reference": line.reference or "",
"barcode": line.barcode or "",
"qty_at_date": line.qty_at_date or 0.000,
"uom": line.uom_id.name or "",
"standard_price": line.standard_price or 0.00,
"stock_value": line.stock_value or 0.00,
},
default_format=FORMATS["format_tcell_left"],
)
total += line.stock_value
ws.write(row_pos, 6, total, FORMATS["format_theader_blue_amount_right"])

View File

@@ -0,0 +1,4 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_report_stock_inventory_valuation_report,report.stock.inventory.valuation.report,model_report_stock_inventory_valuation_report,stock.group_stock_user,1,1,1,1
access_stock_inventory_valuation_view,stock_inventory_valuation_view,model_stock_inventory_valuation_view,stock.group_stock_user,1,1,1,1
access_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx,report.s_i_v_r.report_stock_inventory_valuation_report_xlsx,model_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx,stock.group_stock_user,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_report_stock_inventory_valuation_report report.stock.inventory.valuation.report model_report_stock_inventory_valuation_report stock.group_stock_user 1 1 1 1
3 access_stock_inventory_valuation_view stock_inventory_valuation_view model_stock_inventory_valuation_view stock.group_stock_user 1 1 1 1
4 access_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx report.s_i_v_r.report_stock_inventory_valuation_report_xlsx model_report_s_i_v_r_report_stock_inventory_valuation_report_xlsx stock.group_stock_user 1 1 1 1

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

View File

@@ -0,0 +1,455 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
<title>Stock Inventory Valuation Report</title>
<style type="text/css">
/*
:Author: David Goodger (goodger@python.org)
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
:Copyright: This stylesheet has been placed in the public domain.
Default cascading style sheet for the HTML output of Docutils.
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
*/
/* used to remove borders from tables and images */
.borderless, table.borderless td, table.borderless th {
border: 0 }
table.borderless td, table.borderless th {
/* Override padding for "table.docutils td" with "! important".
The right padding separates the table cells. */
padding: 0 0.5em 0 0 ! important }
.first {
/* Override more specific margin styles with "! important". */
margin-top: 0 ! important }
.last, .with-subtitle {
margin-bottom: 0 ! important }
.hidden {
display: none }
.subscript {
vertical-align: sub;
font-size: smaller }
.superscript {
vertical-align: super;
font-size: smaller }
a.toc-backref {
text-decoration: none ;
color: black }
blockquote.epigraph {
margin: 2em 5em ; }
dl.docutils dd {
margin-bottom: 0.5em }
object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
overflow: hidden;
}
/* Uncomment (and remove this text!) to get bold-faced definition list terms
dl.docutils dt {
font-weight: bold }
*/
div.abstract {
margin: 2em 5em }
div.abstract p.topic-title {
font-weight: bold ;
text-align: center }
div.admonition, div.attention, div.caution, div.danger, div.error,
div.hint, div.important, div.note, div.tip, div.warning {
margin: 2em ;
border: medium outset ;
padding: 1em }
div.admonition p.admonition-title, div.hint p.admonition-title,
div.important p.admonition-title, div.note p.admonition-title,
div.tip p.admonition-title {
font-weight: bold ;
font-family: sans-serif }
div.attention p.admonition-title, div.caution p.admonition-title,
div.danger p.admonition-title, div.error p.admonition-title,
div.warning p.admonition-title, .code .error {
color: red ;
font-weight: bold ;
font-family: sans-serif }
/* Uncomment (and remove this text!) to get reduced vertical space in
compound paragraphs.
div.compound .compound-first, div.compound .compound-middle {
margin-bottom: 0.5em }
div.compound .compound-last, div.compound .compound-middle {
margin-top: 0.5em }
*/
div.dedication {
margin: 2em 5em ;
text-align: center ;
font-style: italic }
div.dedication p.topic-title {
font-weight: bold ;
font-style: normal }
div.figure {
margin-left: 2em ;
margin-right: 2em }
div.footer, div.header {
clear: both;
font-size: smaller }
div.line-block {
display: block ;
margin-top: 1em ;
margin-bottom: 1em }
div.line-block div.line-block {
margin-top: 0 ;
margin-bottom: 0 ;
margin-left: 1.5em }
div.sidebar {
margin: 0 0 0.5em 1em ;
border: medium outset ;
padding: 1em ;
background-color: #ffffee ;
width: 40% ;
float: right ;
clear: right }
div.sidebar p.rubric {
font-family: sans-serif ;
font-size: medium }
div.system-messages {
margin: 5em }
div.system-messages h1 {
color: red }
div.system-message {
border: medium outset ;
padding: 1em }
div.system-message p.system-message-title {
color: red ;
font-weight: bold }
div.topic {
margin: 2em }
h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
margin-top: 0.4em }
h1.title {
text-align: center }
h2.subtitle {
text-align: center }
hr.docutils {
width: 75% }
img.align-left, .figure.align-left, object.align-left, table.align-left {
clear: left ;
float: left ;
margin-right: 1em }
img.align-right, .figure.align-right, object.align-right, table.align-right {
clear: right ;
float: right ;
margin-left: 1em }
img.align-center, .figure.align-center, object.align-center {
display: block;
margin-left: auto;
margin-right: auto;
}
table.align-center {
margin-left: auto;
margin-right: auto;
}
.align-left {
text-align: left }
.align-center {
clear: both ;
text-align: center }
.align-right {
text-align: right }
/* reset inner alignment in figures */
div.align-right {
text-align: inherit }
/* div.align-center * { */
/* text-align: left } */
.align-top {
vertical-align: top }
.align-middle {
vertical-align: middle }
.align-bottom {
vertical-align: bottom }
ol.simple, ul.simple {
margin-bottom: 1em }
ol.arabic {
list-style: decimal }
ol.loweralpha {
list-style: lower-alpha }
ol.upperalpha {
list-style: upper-alpha }
ol.lowerroman {
list-style: lower-roman }
ol.upperroman {
list-style: upper-roman }
p.attribution {
text-align: right ;
margin-left: 50% }
p.caption {
font-style: italic }
p.credits {
font-style: italic ;
font-size: smaller }
p.label {
white-space: nowrap }
p.rubric {
font-weight: bold ;
font-size: larger ;
color: maroon ;
text-align: center }
p.sidebar-title {
font-family: sans-serif ;
font-weight: bold ;
font-size: larger }
p.sidebar-subtitle {
font-family: sans-serif ;
font-weight: bold }
p.topic-title {
font-weight: bold }
pre.address {
margin-bottom: 0 ;
margin-top: 0 ;
font: inherit }
pre.literal-block, pre.doctest-block, pre.math, pre.code {
margin-left: 2em ;
margin-right: 2em }
pre.code .ln { color: grey; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
pre.code .literal.string, code .literal.string { color: #0C5404 }
pre.code .name.builtin, code .name.builtin { color: #352B84 }
pre.code .deleted, code .deleted { background-color: #DEB0A1}
pre.code .inserted, code .inserted { background-color: #A3D289}
span.classifier {
font-family: sans-serif ;
font-style: oblique }
span.classifier-delimiter {
font-family: sans-serif ;
font-weight: bold }
span.interpreted {
font-family: sans-serif }
span.option {
white-space: nowrap }
span.pre {
white-space: pre }
span.problematic {
color: red }
span.section-subtitle {
/* font-size relative to parent (h1..h6 element) */
font-size: 80% }
table.citation {
border-left: solid 1px gray;
margin-left: 1px }
table.docinfo {
margin: 2em 4em }
table.docutils {
margin-top: 0.5em ;
margin-bottom: 0.5em }
table.footnote {
border-left: solid 1px black;
margin-left: 1px }
table.docutils td, table.docutils th,
table.docinfo td, table.docinfo th {
padding-left: 0.5em ;
padding-right: 0.5em ;
vertical-align: top }
table.docutils th.field-name, table.docinfo th.docinfo-name {
font-weight: bold ;
text-align: left ;
white-space: nowrap ;
padding-left: 0 }
/* "booktabs" style (no vertical lines) */
table.docutils.booktabs {
border: 0px;
border-top: 2px solid;
border-bottom: 2px solid;
border-collapse: collapse;
}
table.docutils.booktabs * {
border: 0px;
}
table.docutils.booktabs th {
border-bottom: thin solid;
text-align: left;
}
h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
font-size: 100% }
ul.auto-toc {
list-style-type: none }
</style>
</head>
<body>
<div class="document" id="stock-inventory-valuation-report">
<h1 class="title">Stock Inventory Valuation Report</h1>
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:7e81cc55bfaa7140318103e270fb5e41e7ee0ab5c82d8ce7ae587f6586adafa0
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/stock-logistics-reporting/tree/14.0/stock_inventory_valuation_report"><img alt="OCA/stock-logistics-reporting" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--reporting-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/stock-logistics-reporting-14-0/stock-logistics-reporting-14-0-stock_inventory_valuation_report"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-reporting&amp;target_branch=14.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>Stock Inventory Valuation Report is the report that display value of all products in internal location.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><a class="reference internal" href="#usage" id="toc-entry-1">Usage</a></li>
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-2">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="toc-entry-3">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="toc-entry-4">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="toc-entry-5">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="toc-entry-6">Maintainers</a></li>
</ul>
</li>
</ul>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
<p>To use this module, you need to:</p>
<ol class="arabic simple">
<li>Go to Inventory &gt; Reporting &gt; Inventory Valuation.</li>
<li>Select Inventory At Date.</li>
<li>You can now choose a few additional options: “View report”, “Export PDF” and “Export XLSX”.</li>
</ol>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/stock-logistics-reporting/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/stock-logistics-reporting/issues/new?body=module:%20stock_inventory_valuation_report%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
<h1><a class="toc-backref" href="#toc-entry-3">Credits</a></h1>
<div class="section" id="authors">
<h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
<ul class="simple">
<li>Ecosoft</li>
</ul>
</div>
<div class="section" id="contributors">
<h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
<ul class="simple">
<li><a class="reference external" href="mailto:pimolnats&#64;ecosoft.co.th">Pimolnat Suntian</a></li>
<li><dl class="first docutils">
<dt><a class="reference external" href="https://ooops404.com">Ooops404</a></dt>
<dd><ul class="first last">
<li><a class="reference external" href="mailto:francesco.foresti&#64;ooops404.com">Francesco Foresti</a></li>
</ul>
</dd>
</dl>
</li>
<li><dl class="first docutils">
<dt><a class="reference external" href="https://cetmix.com">Cetmix</a></dt>
<dd><ul class="first last">
<li><a class="reference external" href="mailto:andrejsolodovnikov&#64;gmail.com">Andrey Solodovnikov</a></li>
</ul>
</dd>
</dl>
</li>
<li><dl class="first docutils">
<dt><a class="reference external" href="https://www.pytech.it">PyTech SRL</a></dt>
<dd><ul class="first last">
<li><a class="reference external" href="mailto:alessandro.uffreduzzi&#64;pytech.it">Alessandro Uffreduzzi</a></li>
</ul>
</dd>
</dl>
</li>
</ul>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-reporting/tree/14.0/stock_inventory_valuation_report">OCA/stock-logistics-reporting</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
</div>
</body>
</html>

View File

@@ -0,0 +1,75 @@
.act_as_table {
display: table !important;
background-color: white;
}
.act_as_row {
display: table-row !important;
page-break-inside: avoid;
}
.act_as_cell {
display: table-cell !important;
page-break-inside: avoid;
}
.act_as_thead {
display: table-header-group !important;
}
.data_table {
width: 100% !important;
}
.act_as_row.labels {
background-color: #f0f0f0 !important;
}
.data_table,
.total_row,
.act_as_row {
border-left: 0px;
border-right: 0px;
text-align: center;
font-size: 10px;
padding-right: 3px;
padding-left: 3px;
padding-top: 2px;
padding-bottom: 2px;
border-collapse: collapse;
}
.data_table .act_as_cell {
border: 1px solid lightGrey;
text-align: center;
}
.data_table .act_as_cell {
word-wrap: break-word;
}
.data_table .act_as_row.labels {
font-weight: bold;
}
.data_table .total_row {
background-color: #f0f0f0 !important;
border-left: 1px solid lightGrey;
border-right: 1px solid lightGrey;
border-bottom: 1px solid lightGrey;
text-align: right;
font-weight: bold;
}
.act_as_cell.amount {
word-wrap: normal;
text-align: right;
}
.act_as_cell.left {
text-align: left;
}
.act_as_cell.right {
text-align: right;
}
.custom_footer {
font-size: 7px !important;
}
.button_row {
padding-bottom: 10px;
}
.o_stock_inventory_valuation_report_page {
padding-top: 10px;
width: 90%;
margin-right: auto;
margin-left: auto;
font-family: Helvetica, Arial;
}

View File

@@ -0,0 +1,116 @@
odoo.define(
"stock_inventory_valuation_report.stock_inventory_valuation_report_backend",
function (require) {
"use strict";
var core = require("web.core");
var AbstractAction = require("web.AbstractAction");
var ReportWidget = require("web.Widget");
var report_backend = AbstractAction.extend({
hasControlPanel: true,
// Stores all the parameters of the action.
events: {
"click .o_stock_inventory_valuation_report_print": "print",
"click .o_stock_inventory_valuation_report_export": "export",
},
init: function (parent, action) {
this._super.apply(this, arguments);
this.actionManager = parent;
this.given_context = {};
this.odoo_context = action.context;
this.controller_url = action.context.url;
if (action.context.context) {
this.given_context = action.context.context;
}
this.given_context.active_id =
action.context.active_id || action.params.active_id;
this.given_context.model = action.context.active_model || false;
this.given_context.ttype = action.context.ttype || false;
},
willStart: function () {
return Promise.all([
this._super.apply(this, arguments),
this.get_html(),
]);
},
set_html: function () {
const self = this;
var def = Promise.resolve();
if (!self.report_widget) {
self.report_widget = new ReportWidget(self, self.given_context);
def = self.report_widget.appendTo(self.$(".o_content"));
}
def.then(function () {
self.report_widget.$el.html(self.html);
});
},
start: function () {
this.set_html();
return this._super();
},
// Fetches the html and is previous report.context if any,
// else create it
get_html: function () {
var self = this;
var defs = [];
return this._rpc({
model: this.given_context.model,
method: "get_html",
args: [self.given_context],
context: self.odoo_context,
}).then(function (result) {
self.html = result.html;
defs.push(self.update_cp());
return Promise.all(defs);
});
},
// Updates the control panel and render the elements that have yet
// to be rendered
update_cp: function () {
if (this.$buttons) {
var status = {
breadcrumbs: this.actionManager.get_breadcrumbs(),
cp_content: {$buttons: this.$buttons},
};
return this.update_control_panel(status);
}
},
do_show: function () {
this._super();
this.update_cp();
},
print: function () {
var self = this;
this._rpc({
model: this.given_context.model,
method: "print_report",
args: [this.given_context.active_id, "qweb-pdf"],
context: self.odoo_context,
}).then(function (result) {
self.do_action(result);
});
},
export: function () {
var self = this;
this._rpc({
model: this.given_context.model,
method: "print_report",
args: [this.given_context.active_id, "xlsx"],
context: self.odoo_context,
}).then(function (result) {
self.do_action(result);
});
},
canBeRemoved: function () {
return Promise.resolve();
},
});
core.action_registry.add(
"stock_inventory_valuation_report_backend",
report_backend
);
return report_backend;
}
);

View File

@@ -0,0 +1,4 @@
# Copyright 2019 Ecosoft Co., Ltd. (http://ecosoft.co.th)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import test_stock_inventory_valuation_report

View File

@@ -0,0 +1,249 @@
# Copyright 2019 Ecosoft Co., Ltd. (http://ecosoft.co.th)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import datetime
from dateutil.relativedelta import relativedelta
from odoo.tests import common
from odoo.tools import test_reports
class TestStockInventoryValuation(common.SavepointCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True))
cls.inv_valuation_report_model = cls.env[
"report.stock.inventory.valuation.report"
]
cls.qweb_report_name = (
"stock_inventory_valuation_report."
"report_stock_inventory_valuation_report_pdf"
)
cls.xlsx_report_name = "s_i_v_r.report_stock_inventory_valuation_report_xlsx"
cls.xlsx_action_name = (
"stock_inventory_valuation_report."
"action_stock_inventory_valuation_report_xlsx"
)
cls.report_title = "Inventory Valuation Report"
cls.base_filters = {
"company_id": cls.env.user.company_id.id,
}
cls.report = cls.inv_valuation_report_model.create(cls.base_filters)
def test_html(self):
test_reports.try_report(
self.env.cr,
self.env.uid,
self.qweb_report_name,
[self.report.id],
report_type="qweb-html",
)
def test_qweb(self):
test_reports.try_report(
self.env.cr,
self.env.uid,
self.qweb_report_name,
[self.report.id],
report_type="qweb-pdf",
)
def test_xlsx(self):
test_reports.try_report(
self.env.cr,
self.env.uid,
self.xlsx_report_name,
[self.report.id],
report_type="xlsx",
)
def test_print(self):
self.report.print_report("qweb")
self.report.print_report("xlsx")
class TestStockInventoryValuationReport(common.SavepointCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True))
cls.company_id = cls.env.ref("base.main_company")
cls.date = datetime.datetime.now()
cls.location_stock_id = cls.env.ref("stock.stock_location_stock")
cls.location_customers_id = cls.env.ref("stock.stock_location_customers")
cls.location_suppliers_id = cls.env.ref("stock.stock_location_suppliers")
cls.picking_type_in_id = cls.env.ref("stock.picking_type_in")
cls.picking_type_out_id = cls.env.ref("stock.picking_type_out")
cls.product_category_all = cls.env.ref("product.product_category_all")
def test_get_report_html(self):
report = self.env["report.stock.inventory.valuation.report"].create(
{
"company_id": self.company_id.id,
"inventory_datetime": self.date,
}
)
report._compute_results()
report.get_html(given_context={"active_id": report.id})
def test_wizard(self):
wizard = self.env["stock.quantity.history"].create({})
wizard._export("qweb-pdf")
wizard.button_export_html()
wizard.button_export_pdf()
wizard.button_export_xlsx()
def test_date_report_result(self):
"""
Check that report shows the correct product quantity
when specifying a date in the past.
"""
product = self.env["product.product"].create(
{
"name": "test valuation report date",
"type": "product",
"company_id": self.company_id.id,
"categ_id": self.product_category_all.id,
}
)
partner_id = self.env.ref("base.res_partner_4")
product_qty = 100
date_with_stock = self.date + relativedelta(days=-1)
# Receive the product
receipt = self.env["stock.picking"].create(
{
"location_id": self.location_suppliers_id.id,
"location_dest_id": self.location_stock_id.id,
"picking_type_id": self.picking_type_in_id.id,
"partner_id": partner_id.id,
"company_id": self.company_id.id,
"move_lines": [
(
0,
0,
{
"name": "Receive product",
"product_id": product.id,
"product_uom": product.uom_id.id,
"product_uom_qty": product_qty,
"quantity_done": product_qty,
},
)
],
}
)
receipt.action_confirm()
receipt.button_validate()
move = receipt.move_lines
move.date = date_with_stock
move.stock_valuation_layer_ids._write({"create_date": date_with_stock})
self.assertEqual(
product.with_context(to_date=date_with_stock).quantity_svl,
product_qty,
msg="Product should be present in stock at this date",
)
self.assertEqual(
product.quantity_svl,
product_qty,
msg="Product should be present in stock at this date",
)
# Report should have a line with the product and its quantity
report = self.env["report.stock.inventory.valuation.report"].create(
{
"company_id": self.company_id.id,
}
)
product_row = report.results.filtered(lambda r: r.name == product.name)
self.assertEqual(
len(product_row),
1,
msg="There should be one line for this produce in the report",
)
self.assertEqual(
product_row.qty_at_date,
product_qty,
msg="The product should have full quantity",
)
# Deliver the product
delivery = self.env["stock.picking"].create(
{
"location_id": self.location_stock_id.id,
"location_dest_id": self.location_customers_id.id,
"partner_id": partner_id.id,
"company_id": self.company_id.id,
"picking_type_id": self.picking_type_out_id.id,
"move_lines": [
(
0,
0,
{
"name": "Deliver product",
"product_id": product.id,
"product_uom": product.uom_id.id,
"product_uom_qty": product_qty,
"quantity_done": product_qty,
},
)
],
}
)
delivery.action_confirm()
delivery.button_validate()
date_no_stock = self.date + relativedelta(hours=-6)
move = delivery.move_lines
move.date = date_no_stock
move.stock_valuation_layer_ids._write({"create_date": date_no_stock})
self.assertEqual(
product.with_context(to_date=date_with_stock).quantity_svl,
product_qty,
msg="The product should have full quantity at this date.",
)
self.assertEqual(
product.with_context(to_date=self.date).quantity_svl,
0,
msg="The product should not be present at this date.",
)
report = self.env["report.stock.inventory.valuation.report"].create(
{
"company_id": self.company_id.id,
"inventory_datetime": date_no_stock,
}
)
product_row = report.results.filtered(lambda r: r.name == product.name)
self.assertFalse(
product_row,
msg="Product should not be present in this report "
"for this date, because it was delivered.",
)
report = self.env["report.stock.inventory.valuation.report"].create(
{
"company_id": self.company_id.id,
"inventory_datetime": date_with_stock,
}
)
product_row = report.results.filtered(lambda r: r.name == product.name)
self.assertEqual(
len(product_row),
1,
msg="Report for this date should have one line for the product.",
)
self.assertEqual(
product_row.qty_at_date,
product_qty,
msg="Report for this date should show full quantity for the product",
)

View File

@@ -0,0 +1,4 @@
# Copyright 2019 Ecosoft Co., Ltd. (http://ecosoft.co.th)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from . import stock_quantity_history

View File

@@ -0,0 +1,56 @@
# Copyright 2019 Ecosoft Co., Ltd. (http://ecosoft.co.th)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import logging
from odoo import _, models
from odoo.tools.safe_eval import safe_eval
_logger = logging.getLogger(__name__)
class StockQuantityHistory(models.TransientModel):
_inherit = "stock.quantity.history"
def button_export_html(self):
self.ensure_one()
action = self.env.ref(
"stock_inventory_valuation_report."
"action_stock_inventory_valuation_report_html"
)
vals = action.read()[0]
new_context = vals.get("context", {})
if isinstance(new_context, str):
try:
new_context = safe_eval(new_context)
except (TypeError, SyntaxError, NameError, ValueError):
_logger.warning(
_("Failed context evaluation: %(context)s", context=new_context)
)
new_context = {}
model = self.env["report.stock.inventory.valuation.report"]
report = model.create(self._prepare_stock_inventory_valuation_report())
new_context.update(active_id=report.id, active_ids=report.ids)
vals["context"] = new_context
return vals
def button_export_pdf(self):
self.ensure_one()
return self._export(report_type="qweb-pdf")
def button_export_xlsx(self):
self.ensure_one()
return self._export(report_type="xlsx")
def _prepare_stock_inventory_valuation_report(self):
self.ensure_one()
vals = {
"company_id": self.env.user.company_id.id,
}
if self.inventory_datetime:
vals["inventory_datetime"] = self.inventory_datetime
return vals
def _export(self, report_type):
model = self.env["report.stock.inventory.valuation.report"]
report = model.create(self._prepare_stock_inventory_valuation_report())
return report.print_report(report_type)

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="view_stock_valuation_quantity_history" model="ir.ui.view">
<field name="name">Valuation Report</field>
<field name="model">stock.quantity.history</field>
<field name="inherit_id" ref="stock.view_stock_quantity_history" />
<field name="arch" type="xml">
<button name="open_at_date" position="attributes">
<!-- Restoring v12 button name, to differentiate from other buttons -->
<attribute name="string">Retrieve the Inventory Quantities</attribute>
</button>
<button name="open_at_date" position="after">
<button name="button_export_html" string="View report" type="object" />
<button name="button_export_pdf" string="Export PDF" type="object" />
<button name="button_export_xlsx" string="Export XLSX" type="object" />
</button>
</field>
</record>
</odoo>