diff --git a/l10n_ro_intrastat_xml/__manifest__.py b/l10n_ro_intrastat_xml/__manifest__.py index 3a18ec0a..28c921e5 100644 --- a/l10n_ro_intrastat_xml/__manifest__.py +++ b/l10n_ro_intrastat_xml/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Romanian Intrastat Declaration XML", "license": "AGPL-3", - "version": "15.0.1.0.3", + "version": "15.0.1.0.4", "author": "Dorin Hongu," "Odoo Community Association (OCA)", "website": "https://github.com/OCA/l10n-romania", "depends": ["product", "sale_stock", "account", "l10n_ro"], diff --git a/l10n_ro_intrastat_xml/wizard/intrastat_xml_declaration.py b/l10n_ro_intrastat_xml/wizard/intrastat_xml_declaration.py index 37d2a68b..263cf0ce 100644 --- a/l10n_ro_intrastat_xml/wizard/intrastat_xml_declaration.py +++ b/l10n_ro_intrastat_xml/wizard/intrastat_xml_declaration.py @@ -117,7 +117,7 @@ def _get_unit_ver(self): "NatureOfTransactionBVer", size=4, required=True, default=_get_nature_of_transaction_b_ver ) county_ver = fields.Char("CountyVer", size=4, required=True, default=_get_county_ver) - locality_ver = fields.Char("LocalityVer", size=4, required=True, default=_get_locality_ver) + locality_ver = fields.Char("LocalityVer", required=True, default=_get_locality_ver) unit_ver = fields.Char("UnitVer", size=4, required=True, default=_get_unit_ver) enterprise = fields.Boolean("Enterprise", default=False, compute="_compute_enterprise") diff --git a/l10n_ro_stock_account_check/report/stock_check_report.py b/l10n_ro_stock_account_check/report/stock_check_report.py index 27f527c1..328e7d4f 100644 --- a/l10n_ro_stock_account_check/report/stock_check_report.py +++ b/l10n_ro_stock_account_check/report/stock_check_report.py @@ -85,7 +85,7 @@ def do_compute_product_aml_details(self): date_trunc('day',sm.date) <= %(date_to)s AND ( %(all_products)s or sm.product_id in %(products)s ) group by sm.product_id) - union + union all select product_id, 0 as svl_value, sum(aml.balance) as aml_value, array[]::integer[] as svl_ids, array_agg(aml.id) as aml_ids @@ -151,7 +151,7 @@ def do_compute_product_no_aml_details(self): date_trunc('day',sm.date) <= %(date_to)s AND ( %(all_products)s or sm.product_id in %(products)s ) group by sm.product_id) - union + union all select product_id, 0 as svl_value, sum(aml.balance) as aml_value, array[]::integer[] as svl_ids, array_agg(aml.id) as aml_ids