diff --git a/stock_inventory_valuation_report/__manifest__.py b/stock_inventory_valuation_report/__manifest__.py index 77d4387..d9c3c01 100644 --- a/stock_inventory_valuation_report/__manifest__.py +++ b/stock_inventory_valuation_report/__manifest__.py @@ -4,7 +4,7 @@ { 'name': 'Stock Inventory Valuation Report', 'summary': 'Add report button on Inventory Valuation.', - 'version': '12.0.1.0.0', + 'version': '12.0.1.1.1', 'category': 'Warehouse', 'website': 'https://github.com/OCA/stock-logistics-reporting', 'author': 'Ecosoft,Odoo Community Association (OCA)', diff --git a/stock_inventory_valuation_report/i18n/stock_inventory_valuation_report.pot b/stock_inventory_valuation_report/i18n/stock_inventory_valuation_report.pot index 5b8ac8a..fff9049 100644 --- a/stock_inventory_valuation_report/i18n/stock_inventory_valuation_report.pot +++ b/stock_inventory_valuation_report/i18n/stock_inventory_valuation_report.pot @@ -23,6 +23,12 @@ msgstr "" msgid "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" @@ -77,7 +83,6 @@ msgstr "" #: 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 -#: model_terms:ir.ui.view,arch_db:stock_inventory_valuation_report.report_stock_inventory_valuation_lines_header msgid "Display Name" msgstr "" @@ -125,6 +130,12 @@ msgstr "" 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" @@ -140,6 +151,12 @@ msgstr "" 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" diff --git a/stock_inventory_valuation_report/reports/stock_inventory_valuation_report.py b/stock_inventory_valuation_report/reports/stock_inventory_valuation_report.py index e4c4e08..768206c 100644 --- a/stock_inventory_valuation_report/reports/stock_inventory_valuation_report.py +++ b/stock_inventory_valuation_report/reports/stock_inventory_valuation_report.py @@ -8,7 +8,9 @@ class StockInventoryValuationView(models.TransientModel): _name = 'stock.inventory.valuation.view' _description = 'Stock Inventory Valuation View' - display_name = fields.Char() + name = fields.Char() + reference = fields.Char() + barcode = fields.Char() qty_at_date = fields.Float() uom_id = fields.Many2one( comodel_name='uom.uom', @@ -59,7 +61,9 @@ class StockInventoryValuationReport(models.TransientModel): self.env.user.company_id.id, date=self.date) line = { - 'display_name': product.display_name, + 'name': product.name, + 'reference': product.default_code, + 'barcode': product.barcode, 'qty_at_date': product.qty_at_date, 'uom_id': product.uom_id, 'currency_id': product.currency_id, diff --git a/stock_inventory_valuation_report/reports/stock_inventory_valuation_report.xml b/stock_inventory_valuation_report/reports/stock_inventory_valuation_report.xml index 6f5fdb7..c927aba 100644 --- a/stock_inventory_valuation_report/reports/stock_inventory_valuation_report.xml +++ b/stock_inventory_valuation_report/reports/stock_inventory_valuation_report.xml @@ -99,7 +99,9 @@