From 685022f1e72a8362b4bdadfaec7984a459d96529 Mon Sep 17 00:00:00 2001
From: Debora7
Date: Wed, 17 Dec 2025 13:23:07 +0200
Subject: [PATCH 01/54] [MIG] l10n_ro_nondeductible_vat: Migration to 19.0
---
l10n_ro_nondeductible_vat/README.rst | 120 ++++
l10n_ro_nondeductible_vat/__init__.py | 1 +
l10n_ro_nondeductible_vat/__manifest__.py | 22 +
.../i18n/l10n_ro_nondeductible_vat.pot | 143 ++++
l10n_ro_nondeductible_vat/i18n/ro.po | 119 ++++
l10n_ro_nondeductible_vat/models/__init__.py | 7 +
.../models/account_account.py | 14 +
.../models/account_move.py | 22 +
.../models/account_move_line.py | 50 ++
.../models/account_partial_reconcile.py | 35 +
.../models/account_tax.py | 284 ++++++++
.../models/account_tax_repartition_line.py | 36 +
.../models/stock_move.py | 66 ++
.../models/stock_quant.py | 53 ++
l10n_ro_nondeductible_vat/pyproject.toml | 3 +
.../readme/CONTRIBUTORS.md | 7 +
.../readme/DESCRIPTION.md | 2 +
l10n_ro_nondeductible_vat/readme/INSTALL.md | 8 +
l10n_ro_nondeductible_vat/readme/USAGE.md | 2 +
.../static/description/icon.png | Bin 0 -> 566 bytes
.../static/description/index.html | 461 +++++++++++++
l10n_ro_nondeductible_vat/tests/__init__.py | 5 +
l10n_ro_nondeductible_vat/tests/common.py | 634 ++++++++++++++++++
.../tests/test_consum.py | 29 +
.../tests/test_inventory.py | 29 +
.../tests/test_invoice.py | 44 ++
.../views/account_account_view.xml | 13 +
.../views/account_tax_view.xml | 47 ++
.../views/stock_picking_view.xml | 19 +
.../views/stock_quant_view.xml | 16 +
30 files changed, 2291 insertions(+)
create mode 100644 l10n_ro_nondeductible_vat/README.rst
create mode 100644 l10n_ro_nondeductible_vat/__init__.py
create mode 100644 l10n_ro_nondeductible_vat/__manifest__.py
create mode 100644 l10n_ro_nondeductible_vat/i18n/l10n_ro_nondeductible_vat.pot
create mode 100644 l10n_ro_nondeductible_vat/i18n/ro.po
create mode 100644 l10n_ro_nondeductible_vat/models/__init__.py
create mode 100644 l10n_ro_nondeductible_vat/models/account_account.py
create mode 100644 l10n_ro_nondeductible_vat/models/account_move.py
create mode 100644 l10n_ro_nondeductible_vat/models/account_move_line.py
create mode 100644 l10n_ro_nondeductible_vat/models/account_partial_reconcile.py
create mode 100644 l10n_ro_nondeductible_vat/models/account_tax.py
create mode 100644 l10n_ro_nondeductible_vat/models/account_tax_repartition_line.py
create mode 100644 l10n_ro_nondeductible_vat/models/stock_move.py
create mode 100644 l10n_ro_nondeductible_vat/models/stock_quant.py
create mode 100644 l10n_ro_nondeductible_vat/pyproject.toml
create mode 100644 l10n_ro_nondeductible_vat/readme/CONTRIBUTORS.md
create mode 100644 l10n_ro_nondeductible_vat/readme/DESCRIPTION.md
create mode 100644 l10n_ro_nondeductible_vat/readme/INSTALL.md
create mode 100644 l10n_ro_nondeductible_vat/readme/USAGE.md
create mode 100644 l10n_ro_nondeductible_vat/static/description/icon.png
create mode 100644 l10n_ro_nondeductible_vat/static/description/index.html
create mode 100644 l10n_ro_nondeductible_vat/tests/__init__.py
create mode 100644 l10n_ro_nondeductible_vat/tests/common.py
create mode 100644 l10n_ro_nondeductible_vat/tests/test_consum.py
create mode 100644 l10n_ro_nondeductible_vat/tests/test_inventory.py
create mode 100644 l10n_ro_nondeductible_vat/tests/test_invoice.py
create mode 100644 l10n_ro_nondeductible_vat/views/account_account_view.xml
create mode 100644 l10n_ro_nondeductible_vat/views/account_tax_view.xml
create mode 100644 l10n_ro_nondeductible_vat/views/stock_picking_view.xml
create mode 100644 l10n_ro_nondeductible_vat/views/stock_quant_view.xml
diff --git a/l10n_ro_nondeductible_vat/README.rst b/l10n_ro_nondeductible_vat/README.rst
new file mode 100644
index 0000000000..071328e663
--- /dev/null
+++ b/l10n_ro_nondeductible_vat/README.rst
@@ -0,0 +1,120 @@
+.. image:: https://odoo-community.org/readme-banner-image
+ :target: https://odoo-community.org/get-involved?utm_source=readme
+ :alt: Odoo Community Association
+
+===========================
+Romania - Nondeductible VAT
+===========================
+
+..
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ !! This file is generated by oca-gen-addon-readme !!
+ !! changes will be overwritten. !!
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ !! source digest: sha256:4402f05686762b75f1e60c132ad76253b87eeb751d80542498dd32abf644595b
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+
+.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
+ :target: https://odoo-community.org/page/development-status
+ :alt: Mature
+.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
+ :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
+ :alt: License: AGPL-3
+.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--romania-lightgray.png?logo=github
+ :target: https://github.com/OCA/l10n-romania/tree/19.0/l10n_ro_nondeductible_vat
+ :alt: OCA/l10n-romania
+.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
+ :target: https://translation.odoo-community.org/projects/l10n-romania-19-0/l10n-romania-19-0-l10n_ro_nondeductible_vat
+ :alt: Translate me on Weblate
+.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-romania&target_branch=19.0
+ :alt: Try me on Runboat
+
+|badge1| |badge2| |badge3| |badge4| |badge5|
+
+This module allows you to register non deductible VAT from Invoices or
+Stock Operations.
+
+**Table of contents**
+
+.. contents::
+ :local:
+
+Installation
+============
+
+To install this module, you need to:
+
+- clone the branch 17.0 of the repository
+ https://github.com/OCA/l10n-romania
+- add the path to this repository in your configuration (addons-path)
+- update the module list
+- search for "Romania - Nondeductible VAT" in your addons
+- install the module
+
+Usage
+=====
+
+Select the nondeductible tax on invoice line, consume stock move or
+minus inventory.
+
+Bug Tracker
+===========
+
+Bugs are tracked on `GitHub Issues `_.
+In case of trouble, please check there if your issue has already been reported.
+If you spotted it first, help us to smash it by providing a detailed and welcomed
+`feedback `_.
+
+Do not contact contributors directly about support or help with technical issues.
+
+Credits
+=======
+
+Authors
+-------
+
+* Dakai Soft SRL
+* NextERP Romania
+
+Contributors
+------------
+
+- `Dakai Soft SRL `__:
+
+ - Adrian Vacaru
+
+- `NextERP Romania `__:
+
+ - Fekete Mihai
+
+Do not contact contributors directly about support or help with
+technical issues.
+
+Maintainers
+-----------
+
+This module is maintained by the OCA.
+
+.. image:: https://odoo-community.org/logo.png
+ :alt: Odoo Community Association
+ :target: https://odoo-community.org
+
+OCA, or the Odoo Community Association, is a nonprofit organization whose
+mission is to support the collaborative development of Odoo features and
+promote its widespread use.
+
+.. |maintainer-adrian-dks| image:: https://github.com/adrian-dks.png?size=40px
+ :target: https://github.com/adrian-dks
+ :alt: adrian-dks
+.. |maintainer-feketemihai| image:: https://github.com/feketemihai.png?size=40px
+ :target: https://github.com/feketemihai
+ :alt: feketemihai
+
+Current `maintainers `__:
+
+|maintainer-adrian-dks| |maintainer-feketemihai|
+
+This module is part of the `OCA/l10n-romania `_ project on GitHub.
+
+You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/l10n_ro_nondeductible_vat/__init__.py b/l10n_ro_nondeductible_vat/__init__.py
new file mode 100644
index 0000000000..0650744f6b
--- /dev/null
+++ b/l10n_ro_nondeductible_vat/__init__.py
@@ -0,0 +1 @@
+from . import models
diff --git a/l10n_ro_nondeductible_vat/__manifest__.py b/l10n_ro_nondeductible_vat/__manifest__.py
new file mode 100644
index 0000000000..5b1a6b1ca4
--- /dev/null
+++ b/l10n_ro_nondeductible_vat/__manifest__.py
@@ -0,0 +1,22 @@
+# Copyright (C) 2021 Dakai Soft SRL
+# Copyright (C) 2021 NextERP Romania
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
+{
+ "name": "Romania - Nondeductible VAT",
+ "category": "Localization",
+ "summary": "Romania - Nondeductible VAT",
+ "license": "AGPL-3",
+ "version": "19.0.1.0.0",
+ "data": [
+ "views/account_account_view.xml",
+ "views/account_tax_view.xml",
+ "views/stock_quant_view.xml",
+ "views/stock_picking_view.xml",
+ ],
+ "depends": ["l10n_ro_stock_account", "l10n_ro_vat_on_payment"],
+ "author": "Dakai Soft SRL,NextERP Romania,Odoo Community Association (OCA)",
+ "website": "https://github.com/OCA/l10n-romania",
+ "installable": True,
+ "development_status": "Mature",
+ "maintainers": ["adrian-dks", "feketemihai"],
+}
diff --git a/l10n_ro_nondeductible_vat/i18n/l10n_ro_nondeductible_vat.pot b/l10n_ro_nondeductible_vat/i18n/l10n_ro_nondeductible_vat.pot
new file mode 100644
index 0000000000..a0cad36f84
--- /dev/null
+++ b/l10n_ro_nondeductible_vat/i18n/l10n_ro_nondeductible_vat.pot
@@ -0,0 +1,143 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * l10n_ro_nondeductible_vat
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 18.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: l10n_ro_nondeductible_vat
+#: model:ir.model,name:l10n_ro_nondeductible_vat.model_account_account
+msgid "Account"
+msgstr ""
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_tax__l10n_ro_negative_allow
+msgid "Allow negative tax"
+msgstr ""
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model.fields,help:l10n_ro_nondeductible_vat.field_account_tax__l10n_ro_negative_allow
+msgid "Allows negative tax repartition in tax per account."
+msgstr ""
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model.fields,help:l10n_ro_nondeductible_vat.field_account_tax_repartition_line__l10n_ro_skip_cash_basis_account_switch
+msgid ""
+"If checked, then it doesn't change expense account in the tax line for "
+"invoices, and it set 44283 instead of expense account for the journal entry "
+"created at payment reconciliation"
+msgstr ""
+
+#. module: l10n_ro_nondeductible_vat
+#. odoo-python
+#: code:addons/l10n_ro_nondeductible_vat/models/account_tax.py:0
+msgid ""
+"Invoice and credit note distribution should have the same number of lines."
+msgstr ""
+
+#. module: l10n_ro_nondeductible_vat
+#. odoo-python
+#: code:addons/l10n_ro_nondeductible_vat/models/account_tax.py:0
+msgid "Invoice and credit note distribution should matchsame percentages."
+msgstr ""
+
+#. module: l10n_ro_nondeductible_vat
+#. odoo-python
+#: code:addons/l10n_ro_nondeductible_vat/models/account_tax.py:0
+msgid ""
+"Invoice and credit note repartition should have at least one tax repartition"
+" line."
+msgstr ""
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_account__is_l10n_ro_record
+#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_move_line__is_l10n_ro_record
+#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_tax__is_l10n_ro_record
+#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_tax_repartition_line__is_l10n_ro_record
+#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_stock_move__is_l10n_ro_record
+#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_stock_quant__is_l10n_ro_record
+msgid "Is Romanian Record"
+msgstr ""
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model,name:l10n_ro_nondeductible_vat.model_account_move_line
+msgid "Journal Item"
+msgstr ""
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_stock_quant__l10n_ro_nondeductible_tax_id
+msgid "L10N Ro Nondeductible Tax"
+msgstr ""
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model,name:l10n_ro_nondeductible_vat.model_account_partial_reconcile
+msgid "Partial Reconcile"
+msgstr ""
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model,name:l10n_ro_nondeductible_vat.model_stock_quant
+msgid "Quants"
+msgstr ""
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_stock_move__l10n_ro_nondeductible_usage
+msgid "Romania - Allow Non Deductible"
+msgstr ""
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_tax_repartition_line__l10n_ro_exclude_from_stock
+msgid "Romania - Exclude From Stock"
+msgstr ""
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_tax__l10n_ro_is_nondeductible
+msgid "Romania - Is Nondeductible"
+msgstr ""
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_stock_move__l10n_ro_nondeductible_tax_id
+msgid "Romania - Non Deductible Tax"
+msgstr ""
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_tax_repartition_line__l10n_ro_nondeductible
+msgid "Romania - Nondeductible"
+msgstr ""
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_account__l10n_ro_nondeductible_account_id
+msgid "Romania - Nondeductible Account"
+msgstr ""
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_tax__l10n_ro_nondeductible_tax_id
+msgid "Romania - Nondeductible Tax"
+msgstr ""
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_tax_repartition_line__l10n_ro_skip_cash_basis_account_switch
+msgid "Romania - Skip Account Switch (Cash Basis)"
+msgstr ""
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model,name:l10n_ro_nondeductible_vat.model_stock_move
+msgid "Stock Move"
+msgstr ""
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model,name:l10n_ro_nondeductible_vat.model_account_tax
+msgid "Tax"
+msgstr ""
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model,name:l10n_ro_nondeductible_vat.model_account_tax_repartition_line
+msgid "Tax Repartition Line"
+msgstr ""
diff --git a/l10n_ro_nondeductible_vat/i18n/ro.po b/l10n_ro_nondeductible_vat/i18n/ro.po
new file mode 100644
index 0000000000..8242b1a129
--- /dev/null
+++ b/l10n_ro_nondeductible_vat/i18n/ro.po
@@ -0,0 +1,119 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * l10n_ro_nondeductible_vat
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 16.0+e\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2024-05-22 09:42+0000\n"
+"PO-Revision-Date: 2024-05-22 12:46+0300\n"
+"Last-Translator: \n"
+"Language-Team: \n"
+"Language: ro\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: \n"
+"X-Generator: Poedit 3.0.1\n"
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model,name:l10n_ro_nondeductible_vat.model_account_account
+msgid "Account"
+msgstr "Cont"
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model.fields,help:l10n_ro_nondeductible_vat.field_account_tax_repartition_line__l10n_ro_skip_cash_basis_account_switch
+msgid ""
+"If checked, then it doesn't change expense account in the tax line for "
+"invoices, and it set 44283 instead of expense account for the journal entry "
+"created at payment reconciliation"
+msgstr ""
+"Dacă este bifat, atunci nu modifică contul de cheltuieli în linia fiscală "
+"pentru facturi și setează 44283 în loc de contul de cheltuieli pentru "
+"înregistrarea de jurnal creată la reconcilierea plăților"
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_account__is_l10n_ro_record
+#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_move_line__is_l10n_ro_record
+#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_tax__is_l10n_ro_record
+#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_tax_repartition_line__is_l10n_ro_record
+#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_stock_move__is_l10n_ro_record
+#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_stock_quant__is_l10n_ro_record
+msgid "Is Romanian Record"
+msgstr "Inregistrare Romania"
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model,name:l10n_ro_nondeductible_vat.model_account_move_line
+msgid "Journal Item"
+msgstr "Element jurnal"
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_stock_quant__l10n_ro_nondeductible_tax_id
+msgid "L10N Ro Nondeductible Tax"
+msgstr "L10N Ro Taxă Nedeductibilă"
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model,name:l10n_ro_nondeductible_vat.model_account_partial_reconcile
+msgid "Partial Reconcile"
+msgstr "Reconciliere parțială"
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model,name:l10n_ro_nondeductible_vat.model_stock_quant
+msgid "Quants"
+msgstr "Poziții de stoc"
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_stock_move__l10n_ro_nondeductible_usage
+msgid "Romania - Allow Non Deductible"
+msgstr "România - Permite nedeductibil"
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_tax_repartition_line__l10n_ro_exclude_from_stock
+msgid "Romania - Exclude From Stock"
+msgstr "România - Excludeți din stoc"
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_tax__l10n_ro_is_nondeductible
+msgid "Romania - Is Nondeductible"
+msgstr "România - Este Nedeductibilă"
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_stock_move__l10n_ro_nondeductible_tax_id
+msgid "Romania - Non Deductible Tax"
+msgstr "România - Taxa Nedeductibila"
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_tax_repartition_line__l10n_ro_nondeductible
+msgid "Romania - Nondeductible"
+msgstr "România - Nedeductibil"
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_account__l10n_ro_nondeductible_account_id
+msgid "Romania - Nondeductible Account"
+msgstr "România - Cont nedeductibil"
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_tax__l10n_ro_nondeductible_tax_id
+msgid "Romania - Nondeductible Tax"
+msgstr "România - Impozit nedeductibil"
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_tax_repartition_line__l10n_ro_skip_cash_basis_account_switch
+msgid "Romania - Skip Account Switch (Cash Basis)"
+msgstr "România - Omite schimbarea contului (bază de numerar)"
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model,name:l10n_ro_nondeductible_vat.model_stock_move
+msgid "Stock Move"
+msgstr "Mișcare stoc"
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model,name:l10n_ro_nondeductible_vat.model_account_tax
+msgid "Tax"
+msgstr "Taxă"
+
+#. module: l10n_ro_nondeductible_vat
+#: model:ir.model,name:l10n_ro_nondeductible_vat.model_account_tax_repartition_line
+msgid "Tax Repartition Line"
+msgstr "Linie de repartizare a taxei"
diff --git a/l10n_ro_nondeductible_vat/models/__init__.py b/l10n_ro_nondeductible_vat/models/__init__.py
new file mode 100644
index 0000000000..7c93061cef
--- /dev/null
+++ b/l10n_ro_nondeductible_vat/models/__init__.py
@@ -0,0 +1,7 @@
+from . import account_account
+from . import account_move_line
+from . import account_tax
+from . import account_tax_repartition_line
+from . import stock_quant
+from . import stock_move
+from . import account_partial_reconcile
diff --git a/l10n_ro_nondeductible_vat/models/account_account.py b/l10n_ro_nondeductible_vat/models/account_account.py
new file mode 100644
index 0000000000..3582e1a27f
--- /dev/null
+++ b/l10n_ro_nondeductible_vat/models/account_account.py
@@ -0,0 +1,14 @@
+# Copyright (C) 2021 Dakai Soft SRL
+# Copyright (C) 2021 NextERP Romania
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
+
+from odoo import fields, models
+
+
+class AccountTaxExtend(models.Model):
+ _name = "account.account"
+ _inherit = ["account.account", "l10n.ro.mixin"]
+
+ l10n_ro_nondeductible_account_id = fields.Many2one(
+ "account.account", string="Romania - Nondeductible Account"
+ )
diff --git a/l10n_ro_nondeductible_vat/models/account_move.py b/l10n_ro_nondeductible_vat/models/account_move.py
new file mode 100644
index 0000000000..e3e048d607
--- /dev/null
+++ b/l10n_ro_nondeductible_vat/models/account_move.py
@@ -0,0 +1,22 @@
+# Copyright (C) 2021 Dakai Soft SRL
+# Copyright (C) 2021 NextERP Romania
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
+
+
+from odoo import models
+
+
+class AccountMove(models.Model):
+ _name = "account.move"
+ _inherit = ["account.move", "l10n.ro.mixin"]
+
+ def _compute_is_storno(self):
+ res = super()._compute_is_storno()
+ moves = self.filtered(
+ lambda m: m.company_id.l10n_ro_accounting
+ and m.company_id.account_storno
+ and m.move_type == "entry"
+ and self.env.context.get("default_move_type") == "entry"
+ )
+ moves.is_storno = True
+ return res
diff --git a/l10n_ro_nondeductible_vat/models/account_move_line.py b/l10n_ro_nondeductible_vat/models/account_move_line.py
new file mode 100644
index 0000000000..17489b415e
--- /dev/null
+++ b/l10n_ro_nondeductible_vat/models/account_move_line.py
@@ -0,0 +1,50 @@
+# Copyright (C) 2021 Dakai Soft SRL
+# Copyright (C) 2021 NextERP Romania
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
+
+
+from odoo import api, models
+
+
+class AccountMoveLine(models.Model):
+ _name = "account.move.line"
+ _inherit = ["account.move.line", "l10n.ro.mixin"]
+
+ @api.model_create_multi
+ def create(self, vals_list):
+ lines = super().create(vals_list)
+ moves = self.env["account.move"]
+ to_remove_lines = self.env["account.move.line"]
+ for line in lines.filtered(lambda aml: aml.company_id.l10n_ro_accounting):
+ move = line.move_id
+ company = line.company_id
+ tax_rep_line = line.tax_repartition_line_id
+ new_account = line.account_id
+ # Set the account to the non deductible account or the
+ # company non deductible account
+ if tax_rep_line.l10n_ro_nondeductible:
+ if company.l10n_ro_nondeductible_account_id:
+ new_account = company.l10n_ro_nondeductible_account_id
+ if line.account_id.l10n_ro_nondeductible_account_id:
+ new_account = line.account_id.l10n_ro_nondeductible_account_id
+ # Use company cash basis base account not to increase balances
+ # of invoice accounts
+ if (
+ move.move_type == "entry"
+ and tax_rep_line.l10n_ro_skip_cash_basis_account_switch
+ and company.account_cash_basis_base_account_id
+ ):
+ new_account = company.account_cash_basis_base_account_id
+ if line.account_id != new_account:
+ line.account_id = new_account
+ # Remove the lines marked to be removed from stock non deductible
+ if (
+ line.display_type == "tax"
+ and move.stock_move_id.l10n_ro_nondeductible_tax_id
+ and tax_rep_line.l10n_ro_exclude_from_stock
+ ):
+ moves |= line.move_id
+ to_remove_lines |= line
+ to_remove_lines.with_context(dynamic_unlink=True).sudo().unlink()
+ moves._sync_dynamic_lines(container={"records": moves, "self": moves})
+ return lines - to_remove_lines
diff --git a/l10n_ro_nondeductible_vat/models/account_partial_reconcile.py b/l10n_ro_nondeductible_vat/models/account_partial_reconcile.py
new file mode 100644
index 0000000000..4f467d9a39
--- /dev/null
+++ b/l10n_ro_nondeductible_vat/models/account_partial_reconcile.py
@@ -0,0 +1,35 @@
+from odoo import api, models
+
+
+class AccountPartialReconcile(models.Model):
+ _inherit = "account.partial.reconcile"
+
+ @api.model
+ def _prepare_cash_basis_tax_line_vals(self, tax_line, balance, amount_currency):
+ vals = super()._prepare_cash_basis_tax_line_vals(
+ tax_line, balance, amount_currency
+ )
+ if tax_line.company_id.l10n_ro_accounting:
+ if (
+ tax_line.tax_repartition_line_id.l10n_ro_skip_cash_basis_account_switch
+ and tax_line.company_id.account_cash_basis_base_account_id
+ ):
+ vals["account_id"] = (
+ tax_line.company_id.account_cash_basis_base_account_id.id
+ )
+ return vals
+
+ @api.model
+ def _prepare_cash_basis_counterpart_tax_line_vals(self, tax_line, cb_tax_line_vals):
+ vals = super()._prepare_cash_basis_counterpart_tax_line_vals(
+ tax_line, cb_tax_line_vals
+ )
+ if tax_line.company_id.l10n_ro_accounting:
+ if (
+ tax_line.tax_repartition_line_id.l10n_ro_skip_cash_basis_account_switch
+ and tax_line.company_id.account_cash_basis_base_account_id
+ ):
+ vals["account_id"] = (
+ tax_line.company_id.account_cash_basis_base_account_id.id
+ )
+ return vals
diff --git a/l10n_ro_nondeductible_vat/models/account_tax.py b/l10n_ro_nondeductible_vat/models/account_tax.py
new file mode 100644
index 0000000000..187398321c
--- /dev/null
+++ b/l10n_ro_nondeductible_vat/models/account_tax.py
@@ -0,0 +1,284 @@
+# Copyright (C) 2021 Dakai Soft SRL
+# Copyright (C) 2021 NextERP Romania
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
+
+from collections import defaultdict
+
+from odoo import _, api, fields, models
+from odoo.exceptions import ValidationError
+
+
+class AccountTaxExtend(models.Model):
+ _name = "account.tax"
+ _inherit = ["account.tax", "l10n.ro.mixin"]
+
+ l10n_ro_nondeductible_tax_id = fields.Many2one(
+ "account.tax", copy=False, string="Romania - Nondeductible Tax"
+ )
+ l10n_ro_is_nondeductible = fields.Boolean(
+ string="Romania - Is Nondeductible",
+ compute="_compute_boolean_l10n_ro_nondeductible",
+ store=True,
+ )
+
+ l10n_ro_negative_allow = fields.Boolean(
+ string="Allow negative tax",
+ help="Allows negative tax repartition in tax per account.",
+ default=False,
+ )
+
+ @api.depends("invoice_repartition_line_ids", "refund_repartition_line_ids")
+ def _compute_boolean_l10n_ro_nondeductible(self):
+ for record in self:
+ if record.is_l10n_ro_record:
+ record.l10n_ro_is_nondeductible = any(
+ record.invoice_repartition_line_ids.mapped("l10n_ro_nondeductible")
+ + record.refund_repartition_line_ids.mapped("l10n_ro_nondeductible")
+ )
+ else:
+ record.l10n_ro_is_nondeductible = False
+
+ @api.depends(
+ "invoice_repartition_line_ids.factor",
+ "invoice_repartition_line_ids.repartition_type",
+ )
+ def _compute_has_negative_factor(self):
+ for tax in self:
+ if tax.l10n_ro_negative_allow is False:
+ tax_reps = tax.invoice_repartition_line_ids.filtered(
+ lambda x: x.repartition_type == "tax"
+ )
+ tax.has_negative_factor = bool(
+ tax_reps.filtered(lambda tax_rep: tax_rep.factor < 0.0)
+ )
+ else:
+ tax.has_negative_factor = False
+
+ # pylint: disable=W8110
+ @api.constrains(
+ "invoice_repartition_line_ids",
+ "refund_repartition_line_ids",
+ "repartition_line_ids",
+ )
+ def _validate_repartition_lines(self):
+ if self.env.company.l10n_ro_accounting:
+ for record in self:
+ # if the tax is an aggregation of its sub-taxes (group) it can
+ # have no repartition lines
+ if (
+ record.amount_type == "group"
+ and not record.invoice_repartition_line_ids
+ and not record.refund_repartition_line_ids
+ ):
+ continue
+
+ invoice_repartition_line_ids = (
+ record.invoice_repartition_line_ids.sorted(
+ lambda line: (line.sequence, line.id)
+ )
+ )
+ refund_repartition_line_ids = record.refund_repartition_line_ids.sorted(
+ lambda line: (line.sequence, line.id)
+ )
+ record._check_repartition_lines(invoice_repartition_line_ids)
+ record._check_repartition_lines(refund_repartition_line_ids)
+
+ if len(invoice_repartition_line_ids) != len(
+ refund_repartition_line_ids
+ ):
+ raise ValidationError(
+ _(
+ "Invoice and credit note distribution should have the"
+ " same number of lines."
+ )
+ )
+
+ if not invoice_repartition_line_ids.filtered(
+ lambda x: x.repartition_type == "tax"
+ ) or not refund_repartition_line_ids.filtered(
+ lambda x: x.repartition_type == "tax"
+ ):
+ raise ValidationError(
+ _(
+ "Invoice and credit note repartition should have at least"
+ " one tax repartition line."
+ )
+ )
+
+ index = 0
+ while index < len(invoice_repartition_line_ids):
+ inv_rep_ln = invoice_repartition_line_ids[index]
+ ref_rep_ln = refund_repartition_line_ids[index]
+ if (
+ inv_rep_ln.repartition_type != ref_rep_ln.repartition_type
+ or inv_rep_ln.factor_percent != ref_rep_ln.factor_percent
+ ):
+ raise ValidationError(
+ _(
+ "Invoice and credit note distribution should match"
+ "same percentages."
+ )
+ )
+ index += 1
+
+ else:
+ super()._validate_repartition_lines()
+
+ # flake8: noqa: C901
+ @api.model
+ def _add_accounting_data_to_base_line_tax_details(
+ self, base_line, company, include_caba_tags=False
+ ):
+ if self.env.company.l10n_ro_accounting:
+ is_refund = base_line["is_refund"]
+ currency = base_line["currency_id"] or company.currency_id
+ product = base_line["product_id"]
+ company_currency = company.currency_id
+ if is_refund:
+ repartition_lines_field = "refund_repartition_line_ids"
+ else:
+ repartition_lines_field = "invoice_repartition_line_ids"
+
+ # Tags on the base line.
+ taxes_data = base_line["tax_details"]["taxes_data"]
+ base_line["tax_tag_ids"] = self.env["account.account.tag"]
+ if product:
+ countries = {tax_data["tax"].country_id for tax_data in taxes_data}
+ countries.add(False)
+ base_line["tax_tag_ids"] |= product.sudo().account_tag_ids
+
+ for tax_data in taxes_data:
+ tax = tax_data["tax"]
+
+ # Tags on the base line.
+ if not tax_data["is_reverse_charge"] and (
+ include_caba_tags or tax.tax_exigibility == "on_invoice"
+ ):
+ base_line["tax_tag_ids"] |= (
+ tax[repartition_lines_field]
+ .filtered(lambda x: x.repartition_type == "base")
+ .tag_ids
+ )
+
+ # Compute repartition lines amounts.
+ if tax.l10n_ro_negative_allow:
+ tax_reps = tax[repartition_lines_field].filtered(
+ lambda x: x.repartition_type == "tax"
+ )
+ tax_rep_sign = 1.0
+ else:
+ if tax_data["is_reverse_charge"]:
+ tax_reps = tax[repartition_lines_field].filtered(
+ lambda x: x.repartition_type == "tax" and x.factor < 0.0
+ )
+ tax_rep_sign = -1.0
+ else:
+ tax_reps = tax[repartition_lines_field].filtered(
+ lambda x: x.repartition_type == "tax" and x.factor >= 0.0
+ )
+ tax_rep_sign = 1.0
+
+ total_tax_rep_amounts = {
+ "tax_amount_currency": 0.0,
+ "tax_amount": 0.0,
+ }
+ tax_reps_data = tax_data["tax_reps_data"] = []
+ for tax_rep in tax_reps:
+ tax_amount_currency = tax_data.get("tax_amount_currency")
+
+ if self.env.context.get("compute_all_use_raw_base_lines"):
+ tax_amount_currency = tax_data.get("raw_tax_amount_currency")
+
+ tax_rep_data = {
+ "tax_rep": tax_rep,
+ "tax_amount_currency": currency.round(
+ tax_amount_currency * tax_rep.factor * tax_rep_sign
+ ),
+ "tax_amount": currency.round(
+ tax_data["tax_amount"] * tax_rep.factor * tax_rep_sign
+ ),
+ "account": tax_rep._get_aml_target_tax_account(
+ force_caba_exigibility=include_caba_tags
+ )
+ or base_line["account_id"],
+ }
+ total_tax_rep_amounts["tax_amount_currency"] += tax_rep_data[
+ "tax_amount_currency"
+ ]
+ total_tax_rep_amounts["tax_amount"] += tax_rep_data["tax_amount"]
+ tax_reps_data.append(tax_rep_data)
+
+ # Distribute the delta on the repartition lines.
+ sorted_tax_reps_data = sorted(
+ tax_reps_data,
+ key=lambda tax_rep: (
+ -abs(tax_rep["tax_amount_currency"]),
+ -abs(tax_rep["tax_amount"]),
+ ),
+ )
+ for field, field_currency in (
+ ("tax_amount_currency", currency),
+ ("tax_amount", company_currency),
+ ):
+ tax_amount = tax_data.get(field)
+ if self.env.context.get("compute_all_use_raw_base_lines"):
+ tax_amount = tax_data.get(f"raw_{field}")
+ total_error = tax_amount - total_tax_rep_amounts[field]
+ nb_of_errors = round(abs(total_error / field_currency.rounding))
+ if not nb_of_errors:
+ continue
+
+ amount_to_distribute = total_error / nb_of_errors
+ index = 0
+ while nb_of_errors:
+ tax_rep = sorted_tax_reps_data[index]
+ tax_rep[field] += amount_to_distribute
+ nb_of_errors -= 1
+ index = (index + 1) % len(sorted_tax_reps_data)
+
+ subsequent_taxes = self.env["account.tax"]
+ subsequent_tags_per_tax = defaultdict(
+ lambda: self.env["account.account.tag"]
+ )
+ for tax_data in reversed(taxes_data):
+ tax = tax_data["tax"]
+
+ for tax_rep_data in tax_data["tax_reps_data"]:
+ tax_rep = tax_rep_data["tax_rep"]
+
+ # Compute subsequent taxes/tags.
+ tax_rep_data["taxes"] = self.env["account.tax"]
+ tax_rep_data["tax_tags"] = self.env["account.account.tag"]
+ if include_caba_tags or tax.tax_exigibility == "on_invoice":
+ tax_rep_data["tax_tags"] = tax_rep.tag_ids
+ if tax.include_base_amount:
+ tax_rep_data["taxes"] |= subsequent_taxes
+ for other_tax, tags in subsequent_tags_per_tax.items():
+ if tax != other_tax:
+ tax_rep_data["tax_tags"] |= tags
+
+ # Add the accounting grouping_key to create the tax lines.
+ base_line_grouping_key = self._prepare_base_line_grouping_key(
+ base_line
+ )
+ tax_rep_data["grouping_key"] = (
+ self._prepare_base_line_tax_repartition_grouping_key(
+ base_line,
+ base_line_grouping_key,
+ tax_data,
+ tax_rep_data,
+ )
+ )
+
+ if tax.is_base_affected:
+ subsequent_taxes |= tax
+ if include_caba_tags or tax.tax_exigibility == "on_invoice":
+ subsequent_tags_per_tax[tax] |= (
+ tax[repartition_lines_field]
+ .filtered(lambda x: x.repartition_type == "base")
+ .tag_ids
+ )
+ else:
+ super()._add_accounting_data_to_base_line_tax_details(
+ base_line, company, include_caba_tags=False
+ )
diff --git a/l10n_ro_nondeductible_vat/models/account_tax_repartition_line.py b/l10n_ro_nondeductible_vat/models/account_tax_repartition_line.py
new file mode 100644
index 0000000000..bbac210785
--- /dev/null
+++ b/l10n_ro_nondeductible_vat/models/account_tax_repartition_line.py
@@ -0,0 +1,36 @@
+# Copyright (C) 2021 Dakai Soft SRL
+# Copyright (C) 2021 NextERP Romania
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
+
+from odoo import fields, models
+
+
+class AccountTaxRepartitionLineExtend(models.Model):
+ _name = "account.tax.repartition.line"
+ _inherit = ["account.tax.repartition.line", "l10n.ro.mixin"]
+
+ l10n_ro_nondeductible = fields.Boolean(string="Romania - Nondeductible")
+ l10n_ro_exclude_from_stock = fields.Boolean(string="Romania - Exclude From Stock")
+ l10n_ro_skip_cash_basis_account_switch = fields.Boolean(
+ string="Romania - Skip Account Switch (Cash Basis)",
+ help="If checked, then it doesn't change expense account"
+ " in the tax line for invoices, and it set 44283 instead of expense"
+ " account for the journal entry created at payment reconciliation",
+ )
+
+ def _get_aml_target_tax_account(self, force_caba_exigibility=False):
+ account = super()._get_aml_target_tax_account(
+ force_caba_exigibility=force_caba_exigibility
+ )
+ if (
+ self.tax_id.tax_exigibility == "on_payment"
+ and not self._context.get("caba_no_transition_account")
+ and not self.l10n_ro_skip_cash_basis_account_switch
+ and self.tax_id.is_l10n_ro_record
+ ):
+ account = self.tax_id.cash_basis_transition_account_id
+ if self.tax_id.is_l10n_ro_record and (
+ not account or self.l10n_ro_skip_cash_basis_account_switch
+ ):
+ account = self.account_id
+ return account
diff --git a/l10n_ro_nondeductible_vat/models/stock_move.py b/l10n_ro_nondeductible_vat/models/stock_move.py
new file mode 100644
index 0000000000..773f05acba
--- /dev/null
+++ b/l10n_ro_nondeductible_vat/models/stock_move.py
@@ -0,0 +1,66 @@
+# Copyright (C) 2021 Dakai Soft SRL
+# Copyright (C) 2021 NextERP Romania
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
+
+from odoo import api, fields, models
+
+
+class StockMove(models.Model):
+ _name = "stock.move"
+ _inherit = ["stock.move", "l10n.ro.mixin"]
+
+ l10n_ro_nondeductible_tax_id = fields.Many2one(
+ "account.tax",
+ string="Romania - Non Deductible Tax",
+ domain=[("l10n_ro_is_nondeductible", "=", True)],
+ copy=False,
+ )
+ l10n_ro_nondeductible_usage = fields.Boolean(
+ compute="_compute_l10n_ro_nondeductible_usage",
+ string="Romania - Allow Non Deductible",
+ )
+
+ def _l10n_ro_checkUsageLocation(self, listUsageLocation):
+ permit_location_usage = ["usage_giving", "consume", "inventory"]
+ return any([u in permit_location_usage for u in listUsageLocation])
+
+ @api.depends("location_dest_id", "location_id")
+ def _compute_l10n_ro_nondeductible_usage(self):
+ for s in self:
+ if s.is_l10n_ro_record:
+ s.l10n_ro_nondeductible_usage = self._l10n_ro_checkUsageLocation(
+ [s.location_dest_id.usage, s.location_id.usage]
+ )
+ else:
+ s.l10n_ro_nondeductible_usage = False
+
+ def _generate_valuation_lines_data(
+ self,
+ partner_id,
+ qty,
+ debit_value,
+ credit_value,
+ debit_account_id,
+ credit_account_id,
+ svl_id,
+ description,
+ ):
+ res = super()._generate_valuation_lines_data(
+ partner_id,
+ qty,
+ debit_value,
+ credit_value,
+ debit_account_id,
+ credit_account_id,
+ svl_id,
+ description,
+ )
+ if self.is_l10n_ro_record:
+ if self.l10n_ro_nondeductible_tax_id:
+ if res.get("debit_line_vals"):
+ res["debit_line_vals"].update(
+ {
+ "tax_ids": [(6, 0, [self.l10n_ro_nondeductible_tax_id.id])],
+ }
+ )
+ return res
diff --git a/l10n_ro_nondeductible_vat/models/stock_quant.py b/l10n_ro_nondeductible_vat/models/stock_quant.py
new file mode 100644
index 0000000000..ae52820d12
--- /dev/null
+++ b/l10n_ro_nondeductible_vat/models/stock_quant.py
@@ -0,0 +1,53 @@
+# Copyright (C) 2021 Dakai Soft SRL
+# Copyright (C) 2021 NextERP Romania
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
+
+from odoo import api, fields, models
+
+
+class StockQuant(models.Model):
+ _name = "stock.quant"
+ _inherit = ["stock.quant", "l10n.ro.mixin"]
+
+ l10n_ro_nondeductible_tax_id = fields.Many2one(
+ "account.tax", domain=[("l10n_ro_is_nondeductible", "=", True)], copy=False
+ )
+
+ def _get_inventory_move_values(
+ self,
+ qty,
+ location_id,
+ location_dest_id,
+ package_id=False,
+ package_dest_id=False,
+ ):
+ res = super()._get_inventory_move_values(
+ qty, location_id, location_dest_id, package_id, package_dest_id
+ )
+ res["l10n_ro_nondeductible_tax_id"] = (
+ self.l10n_ro_nondeductible_tax_id
+ and self.l10n_ro_nondeductible_tax_id.id
+ or None
+ )
+ return res
+
+ @api.model
+ def _get_inventory_fields_create(self):
+ """Returns a list of fields user can edit when he want
+ to create a quant in `inventory_mode`."""
+ res = super()._get_inventory_fields_create()
+ res += ["l10n_ro_nondeductible_tax_id", "is_l10n_ro_record"]
+ return res
+
+ @api.model
+ def _get_inventory_fields_write(self):
+ """Returns a list of fields user can edit when he want
+ to edit a quant in `inventory_mode`."""
+ res = super()._get_inventory_fields_write()
+ res += ["l10n_ro_nondeductible_tax_id", "is_l10n_ro_record"]
+ return res
+
+ def _apply_inventory(self):
+ res = super()._apply_inventory()
+ self.l10n_ro_nondeductible_tax_id = False
+ return res
diff --git a/l10n_ro_nondeductible_vat/pyproject.toml b/l10n_ro_nondeductible_vat/pyproject.toml
new file mode 100644
index 0000000000..4231d0cccb
--- /dev/null
+++ b/l10n_ro_nondeductible_vat/pyproject.toml
@@ -0,0 +1,3 @@
+[build-system]
+requires = ["whool"]
+build-backend = "whool.buildapi"
diff --git a/l10n_ro_nondeductible_vat/readme/CONTRIBUTORS.md b/l10n_ro_nondeductible_vat/readme/CONTRIBUTORS.md
new file mode 100644
index 0000000000..4a2dce0b79
--- /dev/null
+++ b/l10n_ro_nondeductible_vat/readme/CONTRIBUTORS.md
@@ -0,0 +1,7 @@
+- [Dakai Soft SRL](https://www.dakai.ro):
+ - Adrian Vacaru \<\>
+- [NextERP Romania](https://www.nexterp.ro):
+ - Fekete Mihai \<\>
+
+Do not contact contributors directly about support or help with
+technical issues.
diff --git a/l10n_ro_nondeductible_vat/readme/DESCRIPTION.md b/l10n_ro_nondeductible_vat/readme/DESCRIPTION.md
new file mode 100644
index 0000000000..989ad71ab6
--- /dev/null
+++ b/l10n_ro_nondeductible_vat/readme/DESCRIPTION.md
@@ -0,0 +1,2 @@
+This module allows you to register non deductible VAT from Invoices or
+Stock Operations.
diff --git a/l10n_ro_nondeductible_vat/readme/INSTALL.md b/l10n_ro_nondeductible_vat/readme/INSTALL.md
new file mode 100644
index 0000000000..8222561976
--- /dev/null
+++ b/l10n_ro_nondeductible_vat/readme/INSTALL.md
@@ -0,0 +1,8 @@
+To install this module, you need to:
+
+- clone the branch 17.0 of the repository
+
+- add the path to this repository in your configuration (addons-path)
+- update the module list
+- search for "Romania - Nondeductible VAT" in your addons
+- install the module
diff --git a/l10n_ro_nondeductible_vat/readme/USAGE.md b/l10n_ro_nondeductible_vat/readme/USAGE.md
new file mode 100644
index 0000000000..34f3ab24c1
--- /dev/null
+++ b/l10n_ro_nondeductible_vat/readme/USAGE.md
@@ -0,0 +1,2 @@
+Select the nondeductible tax on invoice line, consume stock move or
+minus inventory.
diff --git a/l10n_ro_nondeductible_vat/static/description/icon.png b/l10n_ro_nondeductible_vat/static/description/icon.png
new file mode 100644
index 0000000000000000000000000000000000000000..7ba9c1019cd79fba46148ad7c5deb9917b98888f
GIT binary patch
literal 566
zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H1|$#LC7uRSY)RhkEJY5_^DsH{Kw9(gzQN-aQds|CO;G9FQ
zYi=Gg=$yTQ%~blvj2ktH%sTs@%ricy`;G^w845n!G5h?hFxvW&|LL-O_x0}2KmPfj
z+2>7V=bZO%j`44wzy9;P4L|QMH8$QHYu!*Psc?>=kgdbmVGiRX9)a`*3+5w3P6+06
zU>K&Cv+tk8x6V~C_7PB2wZt`|BqgyV)hf9t6-Y4{85kPr8kp!B7=;*`SQ#5z8JTJu
z7+Dz@te?hFi=rVnKP5A*5>11F1zf}ale*?W4U!-mg7ec#$`gxH8OqDc^)mCai<1)z
YQuXqS(r3T3kpel+)78&qol`;+0JR&lX#fBK
literal 0
HcmV?d00001
diff --git a/l10n_ro_nondeductible_vat/static/description/index.html b/l10n_ro_nondeductible_vat/static/description/index.html
new file mode 100644
index 0000000000..a596f4a9e5
--- /dev/null
+++ b/l10n_ro_nondeductible_vat/static/description/index.html
@@ -0,0 +1,461 @@
+
+
+
+
+
+README.rst
+
+
+
+
+
+
+
+
+
+
+
Romania - Nondeductible VAT
+
+
+
This module allows you to register non deductible VAT from Invoices or
+Stock Operations.
+
Table of contents
+
+
+
+
To install this module, you need to:
+
+clone the branch 17.0 of the repository
+https://github.com/OCA/l10n-romania
+add the path to this repository in your configuration (addons-path)
+update the module list
+search for “Romania - Nondeductible VAT” in your addons
+install the module
+
+
+
+
+
Select the nondeductible tax on invoice line, consume stock move or
+minus inventory.
+
+
+
+
Bugs are tracked on GitHub Issues .
+In case of trouble, please check there if your issue has already been reported.
+If you spotted it first, help us to smash it by providing a detailed and welcomed
+feedback .
+
Do not contact contributors directly about support or help with technical issues.
+
+
+
+
+
+
+Dakai Soft SRL
+NextERP Romania
+
+
+
+
+
+
Do not contact contributors directly about support or help with
+technical issues.
+
+
+
+
This module is maintained by the OCA.
+
+
+
+
OCA, or the Odoo Community Association, is a nonprofit organization whose
+mission is to support the collaborative development of Odoo features and
+promote its widespread use.
+
Current maintainers :
+
+
This module is part of the OCA/l10n-romania project on GitHub.
+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute .
+
+
+
+
+
+
diff --git a/l10n_ro_nondeductible_vat/tests/__init__.py b/l10n_ro_nondeductible_vat/tests/__init__.py
new file mode 100644
index 0000000000..c6ba9319e5
--- /dev/null
+++ b/l10n_ro_nondeductible_vat/tests/__init__.py
@@ -0,0 +1,5 @@
+from . import common
+
+from . import test_inventory
+from . import test_consum
+from . import test_invoice
diff --git a/l10n_ro_nondeductible_vat/tests/common.py b/l10n_ro_nondeductible_vat/tests/common.py
new file mode 100644
index 0000000000..3a11b85714
--- /dev/null
+++ b/l10n_ro_nondeductible_vat/tests/common.py
@@ -0,0 +1,634 @@
+# Copyright (C) 2020 Terrabit
+# Copyright (C) 2021 NextERP Romania
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
+
+
+import logging
+
+from odoo import fields
+from odoo.tests import Form, tagged
+
+from odoo.addons.account.tests.common import AccountTestInvoicingCommon
+from odoo.addons.stock_account.tests.test_anglo_saxon_valuation_reconciliation_common import ( # noqa E501
+ ValuationReconciliationTestCommon,
+)
+
+_logger = logging.getLogger(__name__)
+
+
+@tagged("post_install", "-at_install")
+class TestNondeductibleCommon(ValuationReconciliationTestCommon):
+ @classmethod
+ def setUpTax(cls):
+ def get_account(code):
+ account = cls.env["account.account"].search([("code", "=", code)], limit=1)
+ return account
+
+ def get_account_tag(name):
+ account = cls.env["account.account.tag"].search(
+ [("name", "=", name)], limit=1
+ )
+ if not account:
+ # Ensure the tag exists for tests: create if missing
+ account = cls.env["account.account.tag"].create({"name": name})
+ return account
+
+ cls.account_vat_deductible = get_account("442600")
+ cls.account_income = get_account("707000")
+ cls.account_valuation = get_account("371000")
+ cls.account_difference = get_account("378000")
+ cls.account_expense_vat_nondeductible = get_account("635200")
+ if not cls.account_expense_vat_nondeductible:
+ cls.account_expense_vat_nondeductible = get_account("635100")
+ cls.env.company.l10n_ro_property_uneligible_tax_account_id = (
+ cls.account_expense_vat_nondeductible
+ )
+ cls.account_expense = get_account("607000")
+ cls.account_expense_nondeductible = cls.account_expense.copy(
+ {
+ "name": "Cheltuieli cu marfurile nedeductibile",
+ "code": "607001",
+ }
+ )
+
+ cls.account_expense.l10n_ro_nondeductible_account_id = (
+ cls.account_expense_nondeductible
+ )
+ cls.tag_base = get_account_tag("+24_1 - TAX BASE")
+ cls.tag_base_nondeductible = get_account_tag("+24_2 - TAX BASE")
+ cls.tag_vat = get_account_tag("+24_1 - VAT")
+ cls.tag_vat_nondeductible = get_account_tag("+24_2 - VAT")
+ cls.minus_tag_base = get_account_tag("-24_1 - TAX BASE")
+ cls.minus_tag_base_nondeductible = get_account_tag("-24_2 - TAX BASE")
+ cls.minus_tag_vat = get_account_tag("-24_1 - VAT")
+ cls.minus_tag_vat_nondeductible = get_account_tag("-24_2 - VAT")
+
+ cls.uneligible_deductible_tax_account_id = get_account("442820")
+ cls.account_cash_basis_base_account_id = (
+ cls.uneligible_deductible_tax_account_id.copy(
+ {
+ "name": "Baza TVA neexigibila",
+ "code": "442830",
+ }
+ )
+ )
+ cls.env.company.account_cash_basis_base_account_id = (
+ cls.account_cash_basis_base_account_id
+ )
+
+ invoice_rep_lines = [
+ (
+ 0,
+ 0,
+ {
+ "factor_percent": 100,
+ "repartition_type": "base",
+ "tag_ids": [(6, 0, [cls.tag_base.id])],
+ },
+ ),
+ (
+ 0,
+ 0,
+ {
+ "factor_percent": 100,
+ "repartition_type": "tax",
+ "account_id": cls.account_vat_deductible.id,
+ "tag_ids": [(6, 0, [cls.tag_vat.id])],
+ "l10n_ro_exclude_from_stock": True,
+ },
+ ),
+ (
+ 0,
+ 0,
+ {
+ "factor_percent": 50,
+ "repartition_type": "tax",
+ "account_id": cls.account_expense_vat_nondeductible.id,
+ "tag_ids": [(6, 0, [cls.tag_vat_nondeductible.id])],
+ },
+ ),
+ (
+ 0,
+ 0,
+ {
+ "factor_percent": -50,
+ "repartition_type": "tax",
+ "account_id": cls.account_vat_deductible.id,
+ "tag_ids": [(6, 0, [cls.tag_vat.id])],
+ },
+ ),
+ (
+ 0,
+ 0,
+ {
+ "factor_percent": 500,
+ "repartition_type": "tax",
+ "tag_ids": [(6, 0, [cls.tag_base_nondeductible.id])],
+ "l10n_ro_nondeductible": True,
+ },
+ ),
+ (
+ 0,
+ 0,
+ {
+ "factor_percent": -500,
+ "repartition_type": "tax",
+ "tag_ids": [(6, 0, [cls.tag_base.id])],
+ },
+ ),
+ ]
+
+ refund_rep_lines = [
+ (
+ 0,
+ 0,
+ {
+ "factor_percent": 100,
+ "repartition_type": "base",
+ "tag_ids": [(6, 0, [cls.minus_tag_base.id])],
+ },
+ ),
+ (
+ 0,
+ 0,
+ {
+ "factor_percent": 100,
+ "repartition_type": "tax",
+ "account_id": cls.account_vat_deductible.id,
+ "tag_ids": [(6, 0, [cls.minus_tag_vat.id])],
+ "l10n_ro_exclude_from_stock": True,
+ },
+ ),
+ (
+ 0,
+ 0,
+ {
+ "factor_percent": 50,
+ "repartition_type": "tax",
+ "account_id": cls.account_expense_vat_nondeductible.id,
+ "tag_ids": [(6, 0, [cls.minus_tag_vat_nondeductible.id])],
+ },
+ ),
+ (
+ 0,
+ 0,
+ {
+ "factor_percent": -50,
+ "repartition_type": "tax",
+ "account_id": cls.account_vat_deductible.id,
+ "tag_ids": [(6, 0, [cls.minus_tag_vat.id])],
+ },
+ ),
+ (
+ 0,
+ 0,
+ {
+ "factor_percent": 500,
+ "repartition_type": "tax",
+ "tag_ids": [(6, 0, [cls.minus_tag_base_nondeductible.id])],
+ "l10n_ro_nondeductible": True,
+ },
+ ),
+ (
+ 0,
+ 0,
+ {
+ "factor_percent": -500,
+ "repartition_type": "tax",
+ "tag_ids": [(6, 0, [cls.minus_tag_base.id])],
+ },
+ ),
+ ]
+ cls.tax_10_nondeductible = cls.env["account.tax"].create(
+ {
+ "name": "Tax 10% Non Deductible 50%",
+ "amount": 10.0,
+ "amount_type": "percent",
+ "type_tax_use": "purchase",
+ "l10n_ro_negative_allow": True,
+ "company_id": cls.env.company.id,
+ "invoice_repartition_line_ids": invoice_rep_lines,
+ "refund_repartition_line_ids": refund_rep_lines,
+ }
+ )
+
+ # CASH BASIS
+ invoice_rep_lines_cash_basis = [
+ (
+ 0,
+ 0,
+ {
+ "factor_percent": 100,
+ "repartition_type": "base",
+ "tag_ids": [(6, 0, [cls.tag_base.id])],
+ },
+ ),
+ (
+ 0,
+ 0,
+ {
+ "factor_percent": 100,
+ "repartition_type": "tax",
+ "account_id": cls.account_vat_deductible.id,
+ "tag_ids": [(6, 0, [cls.tag_vat.id])],
+ "l10n_ro_exclude_from_stock": True,
+ },
+ ),
+ (
+ 0,
+ 0,
+ {
+ "factor_percent": 50,
+ "repartition_type": "tax",
+ "account_id": cls.account_expense_vat_nondeductible.id,
+ "tag_ids": [(6, 0, [cls.tag_vat_nondeductible.id])],
+ },
+ ),
+ (
+ 0,
+ 0,
+ {
+ "factor_percent": -50,
+ "repartition_type": "tax",
+ "account_id": cls.account_vat_deductible.id,
+ "tag_ids": [(6, 0, [cls.tag_vat.id])],
+ },
+ ),
+ (
+ 0,
+ 0,
+ {
+ "factor_percent": 500,
+ "repartition_type": "tax",
+ "tag_ids": [(6, 0, [cls.tag_base_nondeductible.id])],
+ "l10n_ro_nondeductible": True,
+ "l10n_ro_skip_cash_basis_account_switch": True,
+ },
+ ),
+ (
+ 0,
+ 0,
+ {
+ "factor_percent": -500,
+ "repartition_type": "tax",
+ "tag_ids": [(6, 0, [cls.tag_base.id])],
+ "l10n_ro_skip_cash_basis_account_switch": True,
+ },
+ ),
+ ]
+
+ refund_rep_lines_cash_basis = [
+ (
+ 0,
+ 0,
+ {
+ "factor_percent": 100,
+ "repartition_type": "base",
+ "tag_ids": [(6, 0, [cls.minus_tag_base.id])],
+ },
+ ),
+ (
+ 0,
+ 0,
+ {
+ "factor_percent": 100,
+ "repartition_type": "tax",
+ "account_id": cls.account_vat_deductible.id,
+ "tag_ids": [(6, 0, [cls.minus_tag_vat.id])],
+ "l10n_ro_exclude_from_stock": True,
+ },
+ ),
+ (
+ 0,
+ 0,
+ {
+ "factor_percent": 50,
+ "repartition_type": "tax",
+ "account_id": cls.account_expense_vat_nondeductible.id,
+ "tag_ids": [(6, 0, [cls.minus_tag_vat_nondeductible.id])],
+ },
+ ),
+ (
+ 0,
+ 0,
+ {
+ "factor_percent": -50,
+ "repartition_type": "tax",
+ "account_id": cls.account_vat_deductible.id,
+ "tag_ids": [(6, 0, [cls.minus_tag_vat.id])],
+ },
+ ),
+ (
+ 0,
+ 0,
+ {
+ "factor_percent": 500,
+ "repartition_type": "tax",
+ "tag_ids": [(6, 0, [cls.minus_tag_base_nondeductible.id])],
+ "l10n_ro_nondeductible": True,
+ "l10n_ro_skip_cash_basis_account_switch": True,
+ },
+ ),
+ (
+ 0,
+ 0,
+ {
+ "factor_percent": -500,
+ "repartition_type": "tax",
+ "tag_ids": [(6, 0, [cls.minus_tag_base.id])],
+ "l10n_ro_skip_cash_basis_account_switch": True,
+ },
+ ),
+ ]
+ unelig_ded_tax_acc = cls.uneligible_deductible_tax_account_id.id
+ cls.tax_10_nondeductible_cash_basis = cls.env["account.tax"].create(
+ {
+ "name": "Tax 10% Non Deductible Cash Basis 50% ",
+ "amount": 10.0,
+ "amount_type": "percent",
+ "type_tax_use": "purchase",
+ "company_id": cls.env.company.id,
+ "l10n_ro_negative_allow": True,
+ "invoice_repartition_line_ids": invoice_rep_lines_cash_basis,
+ "refund_repartition_line_ids": refund_rep_lines_cash_basis,
+ "tax_exigibility": "on_payment",
+ "cash_basis_transition_account_id": unelig_ded_tax_acc,
+ }
+ )
+
+ cls.fp_model = cls.env["account.fiscal.position"]
+ cls.fptvainc = cls.fp_model.search(
+ [
+ ("name", "ilike", "VAT collection system"),
+ ("company_id", "=", cls.env.company.id),
+ ]
+ )
+ cls.env["account.fiscal.position.tax"].create(
+ {
+ "position_id": cls.fptvainc.id,
+ "tax_src_id": cls.tax_10_nondeductible.id,
+ "tax_dest_id": cls.tax_10_nondeductible_cash_basis.id,
+ }
+ )
+ # cls.fptvainc.write(
+ # {
+ # "tax_ids": [Command.create({
+ # "tax_src_id": cls.tax_10_nondeductible.id,
+ # "tax_dest_id": cls.tax_10_nondeductible_cash_basis.id,
+ # },
+ # )
+ # ]
+ # }
+ # )
+
+ @classmethod
+ @AccountTestInvoicingCommon.setup_country("ro")
+ def setUpClass(cls):
+ super().setUpClass()
+
+ cls.env.user.group_ids += cls.env.ref("stock_account.group_lot_on_invoice")
+
+ cls.env.company.anglo_saxon_accounting = True
+ cls.env.company.l10n_ro_accounting = True
+ cls.env.company.l10n_ro_stock_acc_price_diff = True
+
+ cls.setUpTax()
+
+ stock_journal = cls.env["account.journal"].search(
+ [("code", "=", "STJ"), ("company_id", "=", cls.env.company.id)],
+ limit=1,
+ )
+ if not stock_journal:
+ stock_journal = cls.env["account.journal"].create(
+ {"name": "Stock Journal", "code": "STJ", "type": "general"}
+ )
+
+ acc_diff_id = cls.account_difference.id
+
+ category_value = {
+ "name": "TEST Marfa",
+ "property_cost_method": "fifo",
+ "property_valuation": "real_time",
+ "property_account_creditor_price_difference_categ": acc_diff_id,
+ "property_account_income_categ_id": cls.account_income.id,
+ "property_account_expense_categ_id": cls.account_expense.id,
+ "property_stock_account_input_categ_id": cls.account_valuation.id,
+ "property_stock_account_output_categ_id": cls.account_valuation.id,
+ "property_stock_valuation_account_id": cls.account_valuation.id,
+ "property_stock_journal": stock_journal.id,
+ "l10n_ro_stock_account_change": True,
+ }
+
+ cls.category = cls.env["product.category"].search(
+ [("name", "=", "TEST Marfa")], limit=1
+ )
+ if not cls.category:
+ cls.category = cls.env["product.category"].create(category_value)
+ else:
+ cls.category.write(category_value)
+
+ cls.product_1 = cls.env["product.product"].create(
+ {
+ "name": "Product A",
+ "type": "consu",
+ "is_storable": True,
+ "categ_id": cls.category.id,
+ "invoice_policy": "delivery",
+ "purchase_method": "receive",
+ "list_price": 150,
+ "standard_price": 100,
+ }
+ )
+
+ cls.vendor = cls.env["res.partner"].search(
+ [("name", "=", "TEST Vendor")], limit=1
+ )
+ if not cls.vendor:
+ cls.vendor = cls.env["res.partner"].create({"name": "TEST Vendor"})
+
+ cls.warehouse = cls.env["stock.warehouse"].create(
+ {
+ "name": "Warehouse Romania",
+ "code": "ROW1",
+ "company_id": cls.env.company.id,
+ }
+ )
+ cls.category.property_valuation = "real_time"
+
+ @classmethod
+ def setup_company_data(cls, company_name, chart_template=None, **kwargs):
+ company_data = super().setup_company_data(
+ company_name, chart_template=chart_template, **kwargs
+ )
+ acc_371 = cls.env["account.account"].search([("code", "=", "371000")], limit=1)
+ company_data["default_account_stock_valuation"] = acc_371
+ # if acc_371:
+ # company_data.update(
+ # {
+ # "default_account_stock_valuation": acc_371,
+ # "default_account_stock_in": acc_371,
+ # "default_account_stock_out": acc_371,
+ # }
+ # )
+ company_data["default_account_stock_in"] = company_data[
+ "default_account_stock_valuation"
+ ]
+ company_data["default_account_stock_out"] = company_data[
+ "default_account_stock_valuation"
+ ]
+
+ return company_data
+
+ @classmethod
+ def collect_company_accounting_data(cls, company):
+ company_data = super().collect_company_accounting_data(company)
+ acc_371 = cls.env["account.account"].search([("code", "=", "371000")], limit=1)
+ company_data["default_account_stock_valuation"] = acc_371
+ company_data["default_account_stock_in"] = company_data[
+ "default_account_stock_valuation"
+ ]
+ company_data["default_account_stock_out"] = company_data[
+ "default_account_stock_valuation"
+ ]
+ return company_data
+
+ def create_po(self, picking_type_in=None):
+ if not picking_type_in:
+ picking_type_in = self.warehouse.in_type_id
+
+ po = Form(self.env["purchase.order"])
+ po.partner_id = self.vendor
+ po.picking_type_id = picking_type_in
+
+ with po.order_line.new() as po_line:
+ po_line.product_id = self.product_1
+ po_line.product_qty = 100
+ po_line.price_unit = 1
+ po = po.save()
+ po.button_confirm()
+ self.picking = po.picking_ids[0]
+ for move in self.picking.move_ids:
+ if move.product_id == self.product_1:
+ move._set_quantity_done(100)
+
+ self.picking.button_validate()
+ self.picking._action_done()
+ _logger.info("Receptie facuta")
+
+ self.po = po
+ return po
+
+ def create_invoice_notdeductible(self, fiscal_position=False):
+ PurchaseBillUnion = self.env["purchase.bill.union"]
+ invoice = Form(
+ self.env["account.move"].with_context(
+ default_move_type="in_invoice", default_invoice_date=fields.Date.today()
+ )
+ )
+ invoice.partner_id = self.vendor
+ invoice.purchase_vendor_bill_id = PurchaseBillUnion.browse(-self.po.id)
+ if fiscal_position:
+ self.env["l10n.ro.res.partner.anaf"].create(
+ {
+ "anaf_id": "1",
+ "vat": "RO39187746",
+ "start_date": fields.Date.today(),
+ "publish_date": fields.Date.today(),
+ "operation_date": fields.Date.today(),
+ "operation_type": "I",
+ }
+ )
+ self.vendor.l10n_ro_vat_number = "RO39187746"
+ invoice.fiscal_position_id = fiscal_position
+ with invoice.invoice_line_ids.edit(0) as invoice_line_form:
+ invoice_line_form.account_id = self.account_expense
+ invoice_line_form.tax_ids.clear()
+ invoice_line_form.tax_ids.add(self.tax_10_nondeductible)
+ if fiscal_position == self.fptvainc:
+ invoice_line_form.tax_ids.clear()
+ invoice_line_form.tax_ids.add(self.tax_10_nondeductible_cash_basis)
+
+ invoice = invoice.save()
+ invoice.action_post()
+ self.invoice = invoice
+
+ _logger.info("Factura introdusa")
+
+ def create_invoice(self):
+ PurchaseBillUnion = self.env["purchase.bill.union"]
+ invoice = Form(
+ self.env["account.move"].with_context(
+ default_move_type="in_invoice", default_invoice_date=fields.Date.today()
+ )
+ )
+ invoice.partner_id = self.vendor
+ invoice.purchase_vendor_bill_id = PurchaseBillUnion.browse(-self.po.id)
+ invoice = invoice.save()
+ invoice.action_post()
+
+ _logger.info("Factura introdusa")
+
+ def make_purchase(self):
+ self.create_po()
+ self.create_invoice()
+
+ def make_purchase_notdeductible(self, fiscal_position=False):
+ self.create_po()
+ self.create_invoice_notdeductible(fiscal_position=fiscal_position)
+
+ def make_consume(self):
+ consume_type = self.warehouse.l10n_ro_consume_type_id
+ stock_picking_form = Form(self.env["stock.picking"])
+ stock_picking_form.picking_type_id = consume_type
+ with stock_picking_form.move_ids_without_package.new() as line:
+ line.product_id = self.product_1
+ line.product_uom_qty = 10
+ line.l10n_ro_nondeductible_tax_id = self.tax_10_nondeductible
+ stock_picking = stock_picking_form.save()
+ stock_picking.action_confirm()
+ stock_picking.action_assign()
+ for line in stock_picking.move_ids_without_package:
+ line.quantity = 10
+ stock_picking.button_validate()
+
+ def make_inventory(self):
+ stock_quant = self.env["stock.quant"].search(
+ [
+ ("product_id", "=", self.product_1.id),
+ ("location_id", "=", self.warehouse.lot_stock_id.id),
+ ]
+ )
+ stock_quant = stock_quant.with_context(inventory_mode=True)
+ stock_quant.write(
+ {
+ "inventory_quantity": 50,
+ "l10n_ro_nondeductible_tax_id": self.tax_10_nondeductible.id,
+ }
+ )
+ stock_quant.action_apply_inventory()
+
+ def check_account_valuation(self, balance, account=None):
+ balance = round(balance, 2)
+ if not account:
+ account = self.account_valuation
+
+ domain = [("account_id", "=", account.id)]
+ account_valuations = self.env["account.move.line"].read_group(
+ domain, ["debit:sum", "credit:sum"], ["account_id"]
+ )
+ self.assertNotEqual(account_valuations, [])
+ for valuation in account_valuations:
+ val = round(valuation["debit"] - valuation["credit"], 2)
+ if valuation["account_id"][0] == account.id:
+ _logger.info(f"Check account {val} = {balance}")
+ self.assertAlmostEqual(val, balance)
+
+ def check_no_move_lines(self, account=None):
+ if not account:
+ account = self.account_valuation
+
+ domain = [("account_id", "=", account.id)]
+ account_valuations = self.env["account.move.line"].read_group(
+ domain, ["debit:sum", "credit:sum"], ["account_id"]
+ )
+ self.assertEqual(account_valuations, [])
diff --git a/l10n_ro_nondeductible_vat/tests/test_consum.py b/l10n_ro_nondeductible_vat/tests/test_consum.py
new file mode 100644
index 0000000000..4409aa8352
--- /dev/null
+++ b/l10n_ro_nondeductible_vat/tests/test_consum.py
@@ -0,0 +1,29 @@
+# Copyright (C) 2021 NextERP Romania
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
+
+import logging
+
+from odoo.tests import tagged
+
+from .common import TestNondeductibleCommon
+
+_logger = logging.getLogger(__name__)
+
+
+@tagged("post_install", "-at_install")
+class TestStockConsumNondeductible(TestNondeductibleCommon):
+ def test_consume(self):
+ self.make_purchase()
+ self.check_account_valuation(21, self.account_vat_deductible)
+ self.check_account_valuation(100, self.account_valuation)
+
+ _logger.info("Start consum produse")
+ self.make_consume()
+ _logger.info("Consum facut")
+
+ _logger.info("Start verificare balanta consum")
+ self.check_account_valuation(20.5, self.account_vat_deductible)
+ self.check_account_valuation(90, self.account_valuation)
+ self.check_account_valuation(5, self.account_expense)
+ self.check_account_valuation(5, self.account_expense_nondeductible)
+ self.check_account_valuation(0.5, self.account_expense_vat_nondeductible)
diff --git a/l10n_ro_nondeductible_vat/tests/test_inventory.py b/l10n_ro_nondeductible_vat/tests/test_inventory.py
new file mode 100644
index 0000000000..362bf2910c
--- /dev/null
+++ b/l10n_ro_nondeductible_vat/tests/test_inventory.py
@@ -0,0 +1,29 @@
+# Copyright (C) 2021 NextERP Romania
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
+
+import logging
+
+from odoo.tests import tagged
+
+from .common import TestNondeductibleCommon
+
+_logger = logging.getLogger(__name__)
+
+
+@tagged("post_install", "-at_install")
+class TestStockInventoryNondeductible(TestNondeductibleCommon):
+ def test_minus_inventory(self):
+ self.make_purchase()
+ self.check_account_valuation(21.0, self.account_vat_deductible)
+ self.check_account_valuation(100, self.account_valuation)
+
+ _logger.info("Start inventar produse")
+ self.make_inventory()
+ _logger.info("Inventar facut")
+
+ _logger.info("Start verificare balanta consum")
+ self.check_account_valuation(18.5, self.account_vat_deductible)
+ self.check_account_valuation(50, self.account_valuation)
+ self.check_account_valuation(25, self.account_expense)
+ self.check_account_valuation(25, self.account_expense_nondeductible)
+ self.check_account_valuation(2.5, self.account_expense_vat_nondeductible)
diff --git a/l10n_ro_nondeductible_vat/tests/test_invoice.py b/l10n_ro_nondeductible_vat/tests/test_invoice.py
new file mode 100644
index 0000000000..128f6124d6
--- /dev/null
+++ b/l10n_ro_nondeductible_vat/tests/test_invoice.py
@@ -0,0 +1,44 @@
+# Copyright (C) 2021 NextERP Romania
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
+
+import logging
+
+from odoo.tests import tagged
+
+from .common import TestNondeductibleCommon
+
+_logger = logging.getLogger(__name__)
+
+
+@tagged("post_install", "-at_install")
+class TestNonDeductibleInvoice(TestNondeductibleCommon):
+ def test_invoice(self):
+ self.make_purchase_notdeductible()
+ self.check_account_valuation(5, self.account_vat_deductible)
+ self.check_account_valuation(50, self.account_expense)
+ self.check_account_valuation(50, self.account_expense_nondeductible)
+ self.check_account_valuation(5, self.account_expense_vat_nondeductible)
+
+ def test_invoice_cash_basis(self):
+ self.make_purchase_notdeductible(fiscal_position=self.fptvainc)
+ line = self.invoice.invoice_line_ids[0]
+ self.assertEqual(line.tax_ids, self.tax_10_nondeductible_cash_basis)
+ self.check_no_move_lines(self.account_vat_deductible)
+ self.check_account_valuation(50, self.account_expense)
+ self.check_account_valuation(50, self.account_expense_nondeductible)
+ self.check_no_move_lines(self.account_expense_vat_nondeductible)
+ self.check_account_valuation(10, self.uneligible_deductible_tax_account_id)
+
+ self.env["account.payment.register"].with_context(
+ active_model="account.move", active_ids=self.invoice.ids
+ ).create(
+ {
+ "payment_date": self.invoice.date,
+ }
+ )._create_payments()
+ _logger.info("Factura platita")
+ self.check_account_valuation(5, self.account_vat_deductible)
+ self.check_account_valuation(50, self.account_expense)
+ self.check_account_valuation(50, self.account_expense_nondeductible)
+ self.check_account_valuation(5, self.account_expense_vat_nondeductible)
+ self.check_account_valuation(0, self.uneligible_deductible_tax_account_id)
diff --git a/l10n_ro_nondeductible_vat/views/account_account_view.xml b/l10n_ro_nondeductible_vat/views/account_account_view.xml
new file mode 100644
index 0000000000..285d55298f
--- /dev/null
+++ b/l10n_ro_nondeductible_vat/views/account_account_view.xml
@@ -0,0 +1,13 @@
+
+
+
+ account.account.form
+ account.account
+
+
+
+
+
+
+
+
diff --git a/l10n_ro_nondeductible_vat/views/account_tax_view.xml b/l10n_ro_nondeductible_vat/views/account_tax_view.xml
new file mode 100644
index 0000000000..d46a0ef835
--- /dev/null
+++ b/l10n_ro_nondeductible_vat/views/account_tax_view.xml
@@ -0,0 +1,47 @@
+
+
+
+ account.tax Form
+ account.tax
+ form
+
+
+
+
+
+
+
+
+
+
+
+
+ account.tax.repartition.line Tree
+ account.tax.repartition.line
+ list
+
+
+
+
+
+
+
+
+
+
diff --git a/l10n_ro_nondeductible_vat/views/stock_picking_view.xml b/l10n_ro_nondeductible_vat/views/stock_picking_view.xml
new file mode 100644
index 0000000000..37cb4d6605
--- /dev/null
+++ b/l10n_ro_nondeductible_vat/views/stock_picking_view.xml
@@ -0,0 +1,19 @@
+
+
+
+ view_picking_add_nondeductible_vat_form
+ stock.picking
+
+
+
+
+
+
+
+
+
+
diff --git a/l10n_ro_nondeductible_vat/views/stock_quant_view.xml b/l10n_ro_nondeductible_vat/views/stock_quant_view.xml
new file mode 100644
index 0000000000..1e6eb9cbbd
--- /dev/null
+++ b/l10n_ro_nondeductible_vat/views/stock_quant_view.xml
@@ -0,0 +1,16 @@
+
+
+
+ view_inventory_line_add_nondeductible_vat_tree
+ stock.quant
+
+
+
+
+
+
+
+
From 01893db4a8f8d92238de43497aca628b0cd1e1a4 Mon Sep 17 00:00:00 2001
From: Debora7 <37011779+Debora7@users.noreply.github.com>
Date: Wed, 17 Dec 2025 16:59:51 +0200
Subject: [PATCH 02/54] Revert "[MIG] l10n_ro_nondeductible_vat: Migration to
19.0"
---
l10n_ro_nondeductible_vat/README.rst | 120 ----
l10n_ro_nondeductible_vat/__init__.py | 1 -
l10n_ro_nondeductible_vat/__manifest__.py | 22 -
.../i18n/l10n_ro_nondeductible_vat.pot | 143 ----
l10n_ro_nondeductible_vat/i18n/ro.po | 119 ----
l10n_ro_nondeductible_vat/models/__init__.py | 7 -
.../models/account_account.py | 14 -
.../models/account_move.py | 22 -
.../models/account_move_line.py | 50 --
.../models/account_partial_reconcile.py | 35 -
.../models/account_tax.py | 284 --------
.../models/account_tax_repartition_line.py | 36 -
.../models/stock_move.py | 66 --
.../models/stock_quant.py | 53 --
l10n_ro_nondeductible_vat/pyproject.toml | 3 -
.../readme/CONTRIBUTORS.md | 7 -
.../readme/DESCRIPTION.md | 2 -
l10n_ro_nondeductible_vat/readme/INSTALL.md | 8 -
l10n_ro_nondeductible_vat/readme/USAGE.md | 2 -
.../static/description/icon.png | Bin 566 -> 0 bytes
.../static/description/index.html | 461 -------------
l10n_ro_nondeductible_vat/tests/__init__.py | 5 -
l10n_ro_nondeductible_vat/tests/common.py | 634 ------------------
.../tests/test_consum.py | 29 -
.../tests/test_inventory.py | 29 -
.../tests/test_invoice.py | 44 --
.../views/account_account_view.xml | 13 -
.../views/account_tax_view.xml | 47 --
.../views/stock_picking_view.xml | 19 -
.../views/stock_quant_view.xml | 16 -
30 files changed, 2291 deletions(-)
delete mode 100644 l10n_ro_nondeductible_vat/README.rst
delete mode 100644 l10n_ro_nondeductible_vat/__init__.py
delete mode 100644 l10n_ro_nondeductible_vat/__manifest__.py
delete mode 100644 l10n_ro_nondeductible_vat/i18n/l10n_ro_nondeductible_vat.pot
delete mode 100644 l10n_ro_nondeductible_vat/i18n/ro.po
delete mode 100644 l10n_ro_nondeductible_vat/models/__init__.py
delete mode 100644 l10n_ro_nondeductible_vat/models/account_account.py
delete mode 100644 l10n_ro_nondeductible_vat/models/account_move.py
delete mode 100644 l10n_ro_nondeductible_vat/models/account_move_line.py
delete mode 100644 l10n_ro_nondeductible_vat/models/account_partial_reconcile.py
delete mode 100644 l10n_ro_nondeductible_vat/models/account_tax.py
delete mode 100644 l10n_ro_nondeductible_vat/models/account_tax_repartition_line.py
delete mode 100644 l10n_ro_nondeductible_vat/models/stock_move.py
delete mode 100644 l10n_ro_nondeductible_vat/models/stock_quant.py
delete mode 100644 l10n_ro_nondeductible_vat/pyproject.toml
delete mode 100644 l10n_ro_nondeductible_vat/readme/CONTRIBUTORS.md
delete mode 100644 l10n_ro_nondeductible_vat/readme/DESCRIPTION.md
delete mode 100644 l10n_ro_nondeductible_vat/readme/INSTALL.md
delete mode 100644 l10n_ro_nondeductible_vat/readme/USAGE.md
delete mode 100644 l10n_ro_nondeductible_vat/static/description/icon.png
delete mode 100644 l10n_ro_nondeductible_vat/static/description/index.html
delete mode 100644 l10n_ro_nondeductible_vat/tests/__init__.py
delete mode 100644 l10n_ro_nondeductible_vat/tests/common.py
delete mode 100644 l10n_ro_nondeductible_vat/tests/test_consum.py
delete mode 100644 l10n_ro_nondeductible_vat/tests/test_inventory.py
delete mode 100644 l10n_ro_nondeductible_vat/tests/test_invoice.py
delete mode 100644 l10n_ro_nondeductible_vat/views/account_account_view.xml
delete mode 100644 l10n_ro_nondeductible_vat/views/account_tax_view.xml
delete mode 100644 l10n_ro_nondeductible_vat/views/stock_picking_view.xml
delete mode 100644 l10n_ro_nondeductible_vat/views/stock_quant_view.xml
diff --git a/l10n_ro_nondeductible_vat/README.rst b/l10n_ro_nondeductible_vat/README.rst
deleted file mode 100644
index 071328e663..0000000000
--- a/l10n_ro_nondeductible_vat/README.rst
+++ /dev/null
@@ -1,120 +0,0 @@
-.. image:: https://odoo-community.org/readme-banner-image
- :target: https://odoo-community.org/get-involved?utm_source=readme
- :alt: Odoo Community Association
-
-===========================
-Romania - Nondeductible VAT
-===========================
-
-..
- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- !! This file is generated by oca-gen-addon-readme !!
- !! changes will be overwritten. !!
- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- !! source digest: sha256:4402f05686762b75f1e60c132ad76253b87eeb751d80542498dd32abf644595b
- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-
-.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
- :target: https://odoo-community.org/page/development-status
- :alt: Mature
-.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
- :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
- :alt: License: AGPL-3
-.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--romania-lightgray.png?logo=github
- :target: https://github.com/OCA/l10n-romania/tree/19.0/l10n_ro_nondeductible_vat
- :alt: OCA/l10n-romania
-.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/l10n-romania-19-0/l10n-romania-19-0-l10n_ro_nondeductible_vat
- :alt: Translate me on Weblate
-.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
- :target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-romania&target_branch=19.0
- :alt: Try me on Runboat
-
-|badge1| |badge2| |badge3| |badge4| |badge5|
-
-This module allows you to register non deductible VAT from Invoices or
-Stock Operations.
-
-**Table of contents**
-
-.. contents::
- :local:
-
-Installation
-============
-
-To install this module, you need to:
-
-- clone the branch 17.0 of the repository
- https://github.com/OCA/l10n-romania
-- add the path to this repository in your configuration (addons-path)
-- update the module list
-- search for "Romania - Nondeductible VAT" in your addons
-- install the module
-
-Usage
-=====
-
-Select the nondeductible tax on invoice line, consume stock move or
-minus inventory.
-
-Bug Tracker
-===========
-
-Bugs are tracked on `GitHub Issues `_.
-In case of trouble, please check there if your issue has already been reported.
-If you spotted it first, help us to smash it by providing a detailed and welcomed
-`feedback `_.
-
-Do not contact contributors directly about support or help with technical issues.
-
-Credits
-=======
-
-Authors
--------
-
-* Dakai Soft SRL
-* NextERP Romania
-
-Contributors
-------------
-
-- `Dakai Soft SRL `__:
-
- - Adrian Vacaru
-
-- `NextERP Romania `__:
-
- - Fekete Mihai
-
-Do not contact contributors directly about support or help with
-technical issues.
-
-Maintainers
------------
-
-This module is maintained by the OCA.
-
-.. image:: https://odoo-community.org/logo.png
- :alt: Odoo Community Association
- :target: https://odoo-community.org
-
-OCA, or the Odoo Community Association, is a nonprofit organization whose
-mission is to support the collaborative development of Odoo features and
-promote its widespread use.
-
-.. |maintainer-adrian-dks| image:: https://github.com/adrian-dks.png?size=40px
- :target: https://github.com/adrian-dks
- :alt: adrian-dks
-.. |maintainer-feketemihai| image:: https://github.com/feketemihai.png?size=40px
- :target: https://github.com/feketemihai
- :alt: feketemihai
-
-Current `maintainers `__:
-
-|maintainer-adrian-dks| |maintainer-feketemihai|
-
-This module is part of the `OCA/l10n-romania `_ project on GitHub.
-
-You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/l10n_ro_nondeductible_vat/__init__.py b/l10n_ro_nondeductible_vat/__init__.py
deleted file mode 100644
index 0650744f6b..0000000000
--- a/l10n_ro_nondeductible_vat/__init__.py
+++ /dev/null
@@ -1 +0,0 @@
-from . import models
diff --git a/l10n_ro_nondeductible_vat/__manifest__.py b/l10n_ro_nondeductible_vat/__manifest__.py
deleted file mode 100644
index 5b1a6b1ca4..0000000000
--- a/l10n_ro_nondeductible_vat/__manifest__.py
+++ /dev/null
@@ -1,22 +0,0 @@
-# Copyright (C) 2021 Dakai Soft SRL
-# Copyright (C) 2021 NextERP Romania
-# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-{
- "name": "Romania - Nondeductible VAT",
- "category": "Localization",
- "summary": "Romania - Nondeductible VAT",
- "license": "AGPL-3",
- "version": "19.0.1.0.0",
- "data": [
- "views/account_account_view.xml",
- "views/account_tax_view.xml",
- "views/stock_quant_view.xml",
- "views/stock_picking_view.xml",
- ],
- "depends": ["l10n_ro_stock_account", "l10n_ro_vat_on_payment"],
- "author": "Dakai Soft SRL,NextERP Romania,Odoo Community Association (OCA)",
- "website": "https://github.com/OCA/l10n-romania",
- "installable": True,
- "development_status": "Mature",
- "maintainers": ["adrian-dks", "feketemihai"],
-}
diff --git a/l10n_ro_nondeductible_vat/i18n/l10n_ro_nondeductible_vat.pot b/l10n_ro_nondeductible_vat/i18n/l10n_ro_nondeductible_vat.pot
deleted file mode 100644
index a0cad36f84..0000000000
--- a/l10n_ro_nondeductible_vat/i18n/l10n_ro_nondeductible_vat.pot
+++ /dev/null
@@ -1,143 +0,0 @@
-# Translation of Odoo Server.
-# This file contains the translation of the following modules:
-# * l10n_ro_nondeductible_vat
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: Odoo Server 18.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: l10n_ro_nondeductible_vat
-#: model:ir.model,name:l10n_ro_nondeductible_vat.model_account_account
-msgid "Account"
-msgstr ""
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_tax__l10n_ro_negative_allow
-msgid "Allow negative tax"
-msgstr ""
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model.fields,help:l10n_ro_nondeductible_vat.field_account_tax__l10n_ro_negative_allow
-msgid "Allows negative tax repartition in tax per account."
-msgstr ""
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model.fields,help:l10n_ro_nondeductible_vat.field_account_tax_repartition_line__l10n_ro_skip_cash_basis_account_switch
-msgid ""
-"If checked, then it doesn't change expense account in the tax line for "
-"invoices, and it set 44283 instead of expense account for the journal entry "
-"created at payment reconciliation"
-msgstr ""
-
-#. module: l10n_ro_nondeductible_vat
-#. odoo-python
-#: code:addons/l10n_ro_nondeductible_vat/models/account_tax.py:0
-msgid ""
-"Invoice and credit note distribution should have the same number of lines."
-msgstr ""
-
-#. module: l10n_ro_nondeductible_vat
-#. odoo-python
-#: code:addons/l10n_ro_nondeductible_vat/models/account_tax.py:0
-msgid "Invoice and credit note distribution should matchsame percentages."
-msgstr ""
-
-#. module: l10n_ro_nondeductible_vat
-#. odoo-python
-#: code:addons/l10n_ro_nondeductible_vat/models/account_tax.py:0
-msgid ""
-"Invoice and credit note repartition should have at least one tax repartition"
-" line."
-msgstr ""
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_account__is_l10n_ro_record
-#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_move_line__is_l10n_ro_record
-#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_tax__is_l10n_ro_record
-#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_tax_repartition_line__is_l10n_ro_record
-#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_stock_move__is_l10n_ro_record
-#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_stock_quant__is_l10n_ro_record
-msgid "Is Romanian Record"
-msgstr ""
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model,name:l10n_ro_nondeductible_vat.model_account_move_line
-msgid "Journal Item"
-msgstr ""
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_stock_quant__l10n_ro_nondeductible_tax_id
-msgid "L10N Ro Nondeductible Tax"
-msgstr ""
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model,name:l10n_ro_nondeductible_vat.model_account_partial_reconcile
-msgid "Partial Reconcile"
-msgstr ""
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model,name:l10n_ro_nondeductible_vat.model_stock_quant
-msgid "Quants"
-msgstr ""
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_stock_move__l10n_ro_nondeductible_usage
-msgid "Romania - Allow Non Deductible"
-msgstr ""
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_tax_repartition_line__l10n_ro_exclude_from_stock
-msgid "Romania - Exclude From Stock"
-msgstr ""
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_tax__l10n_ro_is_nondeductible
-msgid "Romania - Is Nondeductible"
-msgstr ""
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_stock_move__l10n_ro_nondeductible_tax_id
-msgid "Romania - Non Deductible Tax"
-msgstr ""
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_tax_repartition_line__l10n_ro_nondeductible
-msgid "Romania - Nondeductible"
-msgstr ""
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_account__l10n_ro_nondeductible_account_id
-msgid "Romania - Nondeductible Account"
-msgstr ""
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_tax__l10n_ro_nondeductible_tax_id
-msgid "Romania - Nondeductible Tax"
-msgstr ""
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_tax_repartition_line__l10n_ro_skip_cash_basis_account_switch
-msgid "Romania - Skip Account Switch (Cash Basis)"
-msgstr ""
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model,name:l10n_ro_nondeductible_vat.model_stock_move
-msgid "Stock Move"
-msgstr ""
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model,name:l10n_ro_nondeductible_vat.model_account_tax
-msgid "Tax"
-msgstr ""
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model,name:l10n_ro_nondeductible_vat.model_account_tax_repartition_line
-msgid "Tax Repartition Line"
-msgstr ""
diff --git a/l10n_ro_nondeductible_vat/i18n/ro.po b/l10n_ro_nondeductible_vat/i18n/ro.po
deleted file mode 100644
index 8242b1a129..0000000000
--- a/l10n_ro_nondeductible_vat/i18n/ro.po
+++ /dev/null
@@ -1,119 +0,0 @@
-# Translation of Odoo Server.
-# This file contains the translation of the following modules:
-# * l10n_ro_nondeductible_vat
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: Odoo Server 16.0+e\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2024-05-22 09:42+0000\n"
-"PO-Revision-Date: 2024-05-22 12:46+0300\n"
-"Last-Translator: \n"
-"Language-Team: \n"
-"Language: ro\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: \n"
-"X-Generator: Poedit 3.0.1\n"
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model,name:l10n_ro_nondeductible_vat.model_account_account
-msgid "Account"
-msgstr "Cont"
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model.fields,help:l10n_ro_nondeductible_vat.field_account_tax_repartition_line__l10n_ro_skip_cash_basis_account_switch
-msgid ""
-"If checked, then it doesn't change expense account in the tax line for "
-"invoices, and it set 44283 instead of expense account for the journal entry "
-"created at payment reconciliation"
-msgstr ""
-"Dacă este bifat, atunci nu modifică contul de cheltuieli în linia fiscală "
-"pentru facturi și setează 44283 în loc de contul de cheltuieli pentru "
-"înregistrarea de jurnal creată la reconcilierea plăților"
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_account__is_l10n_ro_record
-#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_move_line__is_l10n_ro_record
-#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_tax__is_l10n_ro_record
-#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_tax_repartition_line__is_l10n_ro_record
-#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_stock_move__is_l10n_ro_record
-#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_stock_quant__is_l10n_ro_record
-msgid "Is Romanian Record"
-msgstr "Inregistrare Romania"
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model,name:l10n_ro_nondeductible_vat.model_account_move_line
-msgid "Journal Item"
-msgstr "Element jurnal"
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_stock_quant__l10n_ro_nondeductible_tax_id
-msgid "L10N Ro Nondeductible Tax"
-msgstr "L10N Ro Taxă Nedeductibilă"
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model,name:l10n_ro_nondeductible_vat.model_account_partial_reconcile
-msgid "Partial Reconcile"
-msgstr "Reconciliere parțială"
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model,name:l10n_ro_nondeductible_vat.model_stock_quant
-msgid "Quants"
-msgstr "Poziții de stoc"
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_stock_move__l10n_ro_nondeductible_usage
-msgid "Romania - Allow Non Deductible"
-msgstr "România - Permite nedeductibil"
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_tax_repartition_line__l10n_ro_exclude_from_stock
-msgid "Romania - Exclude From Stock"
-msgstr "România - Excludeți din stoc"
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_tax__l10n_ro_is_nondeductible
-msgid "Romania - Is Nondeductible"
-msgstr "România - Este Nedeductibilă"
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_stock_move__l10n_ro_nondeductible_tax_id
-msgid "Romania - Non Deductible Tax"
-msgstr "România - Taxa Nedeductibila"
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_tax_repartition_line__l10n_ro_nondeductible
-msgid "Romania - Nondeductible"
-msgstr "România - Nedeductibil"
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_account__l10n_ro_nondeductible_account_id
-msgid "Romania - Nondeductible Account"
-msgstr "România - Cont nedeductibil"
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_tax__l10n_ro_nondeductible_tax_id
-msgid "Romania - Nondeductible Tax"
-msgstr "România - Impozit nedeductibil"
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model.fields,field_description:l10n_ro_nondeductible_vat.field_account_tax_repartition_line__l10n_ro_skip_cash_basis_account_switch
-msgid "Romania - Skip Account Switch (Cash Basis)"
-msgstr "România - Omite schimbarea contului (bază de numerar)"
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model,name:l10n_ro_nondeductible_vat.model_stock_move
-msgid "Stock Move"
-msgstr "Mișcare stoc"
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model,name:l10n_ro_nondeductible_vat.model_account_tax
-msgid "Tax"
-msgstr "Taxă"
-
-#. module: l10n_ro_nondeductible_vat
-#: model:ir.model,name:l10n_ro_nondeductible_vat.model_account_tax_repartition_line
-msgid "Tax Repartition Line"
-msgstr "Linie de repartizare a taxei"
diff --git a/l10n_ro_nondeductible_vat/models/__init__.py b/l10n_ro_nondeductible_vat/models/__init__.py
deleted file mode 100644
index 7c93061cef..0000000000
--- a/l10n_ro_nondeductible_vat/models/__init__.py
+++ /dev/null
@@ -1,7 +0,0 @@
-from . import account_account
-from . import account_move_line
-from . import account_tax
-from . import account_tax_repartition_line
-from . import stock_quant
-from . import stock_move
-from . import account_partial_reconcile
diff --git a/l10n_ro_nondeductible_vat/models/account_account.py b/l10n_ro_nondeductible_vat/models/account_account.py
deleted file mode 100644
index 3582e1a27f..0000000000
--- a/l10n_ro_nondeductible_vat/models/account_account.py
+++ /dev/null
@@ -1,14 +0,0 @@
-# Copyright (C) 2021 Dakai Soft SRL
-# Copyright (C) 2021 NextERP Romania
-# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-
-from odoo import fields, models
-
-
-class AccountTaxExtend(models.Model):
- _name = "account.account"
- _inherit = ["account.account", "l10n.ro.mixin"]
-
- l10n_ro_nondeductible_account_id = fields.Many2one(
- "account.account", string="Romania - Nondeductible Account"
- )
diff --git a/l10n_ro_nondeductible_vat/models/account_move.py b/l10n_ro_nondeductible_vat/models/account_move.py
deleted file mode 100644
index e3e048d607..0000000000
--- a/l10n_ro_nondeductible_vat/models/account_move.py
+++ /dev/null
@@ -1,22 +0,0 @@
-# Copyright (C) 2021 Dakai Soft SRL
-# Copyright (C) 2021 NextERP Romania
-# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-
-
-from odoo import models
-
-
-class AccountMove(models.Model):
- _name = "account.move"
- _inherit = ["account.move", "l10n.ro.mixin"]
-
- def _compute_is_storno(self):
- res = super()._compute_is_storno()
- moves = self.filtered(
- lambda m: m.company_id.l10n_ro_accounting
- and m.company_id.account_storno
- and m.move_type == "entry"
- and self.env.context.get("default_move_type") == "entry"
- )
- moves.is_storno = True
- return res
diff --git a/l10n_ro_nondeductible_vat/models/account_move_line.py b/l10n_ro_nondeductible_vat/models/account_move_line.py
deleted file mode 100644
index 17489b415e..0000000000
--- a/l10n_ro_nondeductible_vat/models/account_move_line.py
+++ /dev/null
@@ -1,50 +0,0 @@
-# Copyright (C) 2021 Dakai Soft SRL
-# Copyright (C) 2021 NextERP Romania
-# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-
-
-from odoo import api, models
-
-
-class AccountMoveLine(models.Model):
- _name = "account.move.line"
- _inherit = ["account.move.line", "l10n.ro.mixin"]
-
- @api.model_create_multi
- def create(self, vals_list):
- lines = super().create(vals_list)
- moves = self.env["account.move"]
- to_remove_lines = self.env["account.move.line"]
- for line in lines.filtered(lambda aml: aml.company_id.l10n_ro_accounting):
- move = line.move_id
- company = line.company_id
- tax_rep_line = line.tax_repartition_line_id
- new_account = line.account_id
- # Set the account to the non deductible account or the
- # company non deductible account
- if tax_rep_line.l10n_ro_nondeductible:
- if company.l10n_ro_nondeductible_account_id:
- new_account = company.l10n_ro_nondeductible_account_id
- if line.account_id.l10n_ro_nondeductible_account_id:
- new_account = line.account_id.l10n_ro_nondeductible_account_id
- # Use company cash basis base account not to increase balances
- # of invoice accounts
- if (
- move.move_type == "entry"
- and tax_rep_line.l10n_ro_skip_cash_basis_account_switch
- and company.account_cash_basis_base_account_id
- ):
- new_account = company.account_cash_basis_base_account_id
- if line.account_id != new_account:
- line.account_id = new_account
- # Remove the lines marked to be removed from stock non deductible
- if (
- line.display_type == "tax"
- and move.stock_move_id.l10n_ro_nondeductible_tax_id
- and tax_rep_line.l10n_ro_exclude_from_stock
- ):
- moves |= line.move_id
- to_remove_lines |= line
- to_remove_lines.with_context(dynamic_unlink=True).sudo().unlink()
- moves._sync_dynamic_lines(container={"records": moves, "self": moves})
- return lines - to_remove_lines
diff --git a/l10n_ro_nondeductible_vat/models/account_partial_reconcile.py b/l10n_ro_nondeductible_vat/models/account_partial_reconcile.py
deleted file mode 100644
index 4f467d9a39..0000000000
--- a/l10n_ro_nondeductible_vat/models/account_partial_reconcile.py
+++ /dev/null
@@ -1,35 +0,0 @@
-from odoo import api, models
-
-
-class AccountPartialReconcile(models.Model):
- _inherit = "account.partial.reconcile"
-
- @api.model
- def _prepare_cash_basis_tax_line_vals(self, tax_line, balance, amount_currency):
- vals = super()._prepare_cash_basis_tax_line_vals(
- tax_line, balance, amount_currency
- )
- if tax_line.company_id.l10n_ro_accounting:
- if (
- tax_line.tax_repartition_line_id.l10n_ro_skip_cash_basis_account_switch
- and tax_line.company_id.account_cash_basis_base_account_id
- ):
- vals["account_id"] = (
- tax_line.company_id.account_cash_basis_base_account_id.id
- )
- return vals
-
- @api.model
- def _prepare_cash_basis_counterpart_tax_line_vals(self, tax_line, cb_tax_line_vals):
- vals = super()._prepare_cash_basis_counterpart_tax_line_vals(
- tax_line, cb_tax_line_vals
- )
- if tax_line.company_id.l10n_ro_accounting:
- if (
- tax_line.tax_repartition_line_id.l10n_ro_skip_cash_basis_account_switch
- and tax_line.company_id.account_cash_basis_base_account_id
- ):
- vals["account_id"] = (
- tax_line.company_id.account_cash_basis_base_account_id.id
- )
- return vals
diff --git a/l10n_ro_nondeductible_vat/models/account_tax.py b/l10n_ro_nondeductible_vat/models/account_tax.py
deleted file mode 100644
index 187398321c..0000000000
--- a/l10n_ro_nondeductible_vat/models/account_tax.py
+++ /dev/null
@@ -1,284 +0,0 @@
-# Copyright (C) 2021 Dakai Soft SRL
-# Copyright (C) 2021 NextERP Romania
-# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-
-from collections import defaultdict
-
-from odoo import _, api, fields, models
-from odoo.exceptions import ValidationError
-
-
-class AccountTaxExtend(models.Model):
- _name = "account.tax"
- _inherit = ["account.tax", "l10n.ro.mixin"]
-
- l10n_ro_nondeductible_tax_id = fields.Many2one(
- "account.tax", copy=False, string="Romania - Nondeductible Tax"
- )
- l10n_ro_is_nondeductible = fields.Boolean(
- string="Romania - Is Nondeductible",
- compute="_compute_boolean_l10n_ro_nondeductible",
- store=True,
- )
-
- l10n_ro_negative_allow = fields.Boolean(
- string="Allow negative tax",
- help="Allows negative tax repartition in tax per account.",
- default=False,
- )
-
- @api.depends("invoice_repartition_line_ids", "refund_repartition_line_ids")
- def _compute_boolean_l10n_ro_nondeductible(self):
- for record in self:
- if record.is_l10n_ro_record:
- record.l10n_ro_is_nondeductible = any(
- record.invoice_repartition_line_ids.mapped("l10n_ro_nondeductible")
- + record.refund_repartition_line_ids.mapped("l10n_ro_nondeductible")
- )
- else:
- record.l10n_ro_is_nondeductible = False
-
- @api.depends(
- "invoice_repartition_line_ids.factor",
- "invoice_repartition_line_ids.repartition_type",
- )
- def _compute_has_negative_factor(self):
- for tax in self:
- if tax.l10n_ro_negative_allow is False:
- tax_reps = tax.invoice_repartition_line_ids.filtered(
- lambda x: x.repartition_type == "tax"
- )
- tax.has_negative_factor = bool(
- tax_reps.filtered(lambda tax_rep: tax_rep.factor < 0.0)
- )
- else:
- tax.has_negative_factor = False
-
- # pylint: disable=W8110
- @api.constrains(
- "invoice_repartition_line_ids",
- "refund_repartition_line_ids",
- "repartition_line_ids",
- )
- def _validate_repartition_lines(self):
- if self.env.company.l10n_ro_accounting:
- for record in self:
- # if the tax is an aggregation of its sub-taxes (group) it can
- # have no repartition lines
- if (
- record.amount_type == "group"
- and not record.invoice_repartition_line_ids
- and not record.refund_repartition_line_ids
- ):
- continue
-
- invoice_repartition_line_ids = (
- record.invoice_repartition_line_ids.sorted(
- lambda line: (line.sequence, line.id)
- )
- )
- refund_repartition_line_ids = record.refund_repartition_line_ids.sorted(
- lambda line: (line.sequence, line.id)
- )
- record._check_repartition_lines(invoice_repartition_line_ids)
- record._check_repartition_lines(refund_repartition_line_ids)
-
- if len(invoice_repartition_line_ids) != len(
- refund_repartition_line_ids
- ):
- raise ValidationError(
- _(
- "Invoice and credit note distribution should have the"
- " same number of lines."
- )
- )
-
- if not invoice_repartition_line_ids.filtered(
- lambda x: x.repartition_type == "tax"
- ) or not refund_repartition_line_ids.filtered(
- lambda x: x.repartition_type == "tax"
- ):
- raise ValidationError(
- _(
- "Invoice and credit note repartition should have at least"
- " one tax repartition line."
- )
- )
-
- index = 0
- while index < len(invoice_repartition_line_ids):
- inv_rep_ln = invoice_repartition_line_ids[index]
- ref_rep_ln = refund_repartition_line_ids[index]
- if (
- inv_rep_ln.repartition_type != ref_rep_ln.repartition_type
- or inv_rep_ln.factor_percent != ref_rep_ln.factor_percent
- ):
- raise ValidationError(
- _(
- "Invoice and credit note distribution should match"
- "same percentages."
- )
- )
- index += 1
-
- else:
- super()._validate_repartition_lines()
-
- # flake8: noqa: C901
- @api.model
- def _add_accounting_data_to_base_line_tax_details(
- self, base_line, company, include_caba_tags=False
- ):
- if self.env.company.l10n_ro_accounting:
- is_refund = base_line["is_refund"]
- currency = base_line["currency_id"] or company.currency_id
- product = base_line["product_id"]
- company_currency = company.currency_id
- if is_refund:
- repartition_lines_field = "refund_repartition_line_ids"
- else:
- repartition_lines_field = "invoice_repartition_line_ids"
-
- # Tags on the base line.
- taxes_data = base_line["tax_details"]["taxes_data"]
- base_line["tax_tag_ids"] = self.env["account.account.tag"]
- if product:
- countries = {tax_data["tax"].country_id for tax_data in taxes_data}
- countries.add(False)
- base_line["tax_tag_ids"] |= product.sudo().account_tag_ids
-
- for tax_data in taxes_data:
- tax = tax_data["tax"]
-
- # Tags on the base line.
- if not tax_data["is_reverse_charge"] and (
- include_caba_tags or tax.tax_exigibility == "on_invoice"
- ):
- base_line["tax_tag_ids"] |= (
- tax[repartition_lines_field]
- .filtered(lambda x: x.repartition_type == "base")
- .tag_ids
- )
-
- # Compute repartition lines amounts.
- if tax.l10n_ro_negative_allow:
- tax_reps = tax[repartition_lines_field].filtered(
- lambda x: x.repartition_type == "tax"
- )
- tax_rep_sign = 1.0
- else:
- if tax_data["is_reverse_charge"]:
- tax_reps = tax[repartition_lines_field].filtered(
- lambda x: x.repartition_type == "tax" and x.factor < 0.0
- )
- tax_rep_sign = -1.0
- else:
- tax_reps = tax[repartition_lines_field].filtered(
- lambda x: x.repartition_type == "tax" and x.factor >= 0.0
- )
- tax_rep_sign = 1.0
-
- total_tax_rep_amounts = {
- "tax_amount_currency": 0.0,
- "tax_amount": 0.0,
- }
- tax_reps_data = tax_data["tax_reps_data"] = []
- for tax_rep in tax_reps:
- tax_amount_currency = tax_data.get("tax_amount_currency")
-
- if self.env.context.get("compute_all_use_raw_base_lines"):
- tax_amount_currency = tax_data.get("raw_tax_amount_currency")
-
- tax_rep_data = {
- "tax_rep": tax_rep,
- "tax_amount_currency": currency.round(
- tax_amount_currency * tax_rep.factor * tax_rep_sign
- ),
- "tax_amount": currency.round(
- tax_data["tax_amount"] * tax_rep.factor * tax_rep_sign
- ),
- "account": tax_rep._get_aml_target_tax_account(
- force_caba_exigibility=include_caba_tags
- )
- or base_line["account_id"],
- }
- total_tax_rep_amounts["tax_amount_currency"] += tax_rep_data[
- "tax_amount_currency"
- ]
- total_tax_rep_amounts["tax_amount"] += tax_rep_data["tax_amount"]
- tax_reps_data.append(tax_rep_data)
-
- # Distribute the delta on the repartition lines.
- sorted_tax_reps_data = sorted(
- tax_reps_data,
- key=lambda tax_rep: (
- -abs(tax_rep["tax_amount_currency"]),
- -abs(tax_rep["tax_amount"]),
- ),
- )
- for field, field_currency in (
- ("tax_amount_currency", currency),
- ("tax_amount", company_currency),
- ):
- tax_amount = tax_data.get(field)
- if self.env.context.get("compute_all_use_raw_base_lines"):
- tax_amount = tax_data.get(f"raw_{field}")
- total_error = tax_amount - total_tax_rep_amounts[field]
- nb_of_errors = round(abs(total_error / field_currency.rounding))
- if not nb_of_errors:
- continue
-
- amount_to_distribute = total_error / nb_of_errors
- index = 0
- while nb_of_errors:
- tax_rep = sorted_tax_reps_data[index]
- tax_rep[field] += amount_to_distribute
- nb_of_errors -= 1
- index = (index + 1) % len(sorted_tax_reps_data)
-
- subsequent_taxes = self.env["account.tax"]
- subsequent_tags_per_tax = defaultdict(
- lambda: self.env["account.account.tag"]
- )
- for tax_data in reversed(taxes_data):
- tax = tax_data["tax"]
-
- for tax_rep_data in tax_data["tax_reps_data"]:
- tax_rep = tax_rep_data["tax_rep"]
-
- # Compute subsequent taxes/tags.
- tax_rep_data["taxes"] = self.env["account.tax"]
- tax_rep_data["tax_tags"] = self.env["account.account.tag"]
- if include_caba_tags or tax.tax_exigibility == "on_invoice":
- tax_rep_data["tax_tags"] = tax_rep.tag_ids
- if tax.include_base_amount:
- tax_rep_data["taxes"] |= subsequent_taxes
- for other_tax, tags in subsequent_tags_per_tax.items():
- if tax != other_tax:
- tax_rep_data["tax_tags"] |= tags
-
- # Add the accounting grouping_key to create the tax lines.
- base_line_grouping_key = self._prepare_base_line_grouping_key(
- base_line
- )
- tax_rep_data["grouping_key"] = (
- self._prepare_base_line_tax_repartition_grouping_key(
- base_line,
- base_line_grouping_key,
- tax_data,
- tax_rep_data,
- )
- )
-
- if tax.is_base_affected:
- subsequent_taxes |= tax
- if include_caba_tags or tax.tax_exigibility == "on_invoice":
- subsequent_tags_per_tax[tax] |= (
- tax[repartition_lines_field]
- .filtered(lambda x: x.repartition_type == "base")
- .tag_ids
- )
- else:
- super()._add_accounting_data_to_base_line_tax_details(
- base_line, company, include_caba_tags=False
- )
diff --git a/l10n_ro_nondeductible_vat/models/account_tax_repartition_line.py b/l10n_ro_nondeductible_vat/models/account_tax_repartition_line.py
deleted file mode 100644
index bbac210785..0000000000
--- a/l10n_ro_nondeductible_vat/models/account_tax_repartition_line.py
+++ /dev/null
@@ -1,36 +0,0 @@
-# Copyright (C) 2021 Dakai Soft SRL
-# Copyright (C) 2021 NextERP Romania
-# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-
-from odoo import fields, models
-
-
-class AccountTaxRepartitionLineExtend(models.Model):
- _name = "account.tax.repartition.line"
- _inherit = ["account.tax.repartition.line", "l10n.ro.mixin"]
-
- l10n_ro_nondeductible = fields.Boolean(string="Romania - Nondeductible")
- l10n_ro_exclude_from_stock = fields.Boolean(string="Romania - Exclude From Stock")
- l10n_ro_skip_cash_basis_account_switch = fields.Boolean(
- string="Romania - Skip Account Switch (Cash Basis)",
- help="If checked, then it doesn't change expense account"
- " in the tax line for invoices, and it set 44283 instead of expense"
- " account for the journal entry created at payment reconciliation",
- )
-
- def _get_aml_target_tax_account(self, force_caba_exigibility=False):
- account = super()._get_aml_target_tax_account(
- force_caba_exigibility=force_caba_exigibility
- )
- if (
- self.tax_id.tax_exigibility == "on_payment"
- and not self._context.get("caba_no_transition_account")
- and not self.l10n_ro_skip_cash_basis_account_switch
- and self.tax_id.is_l10n_ro_record
- ):
- account = self.tax_id.cash_basis_transition_account_id
- if self.tax_id.is_l10n_ro_record and (
- not account or self.l10n_ro_skip_cash_basis_account_switch
- ):
- account = self.account_id
- return account
diff --git a/l10n_ro_nondeductible_vat/models/stock_move.py b/l10n_ro_nondeductible_vat/models/stock_move.py
deleted file mode 100644
index 773f05acba..0000000000
--- a/l10n_ro_nondeductible_vat/models/stock_move.py
+++ /dev/null
@@ -1,66 +0,0 @@
-# Copyright (C) 2021 Dakai Soft SRL
-# Copyright (C) 2021 NextERP Romania
-# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-
-from odoo import api, fields, models
-
-
-class StockMove(models.Model):
- _name = "stock.move"
- _inherit = ["stock.move", "l10n.ro.mixin"]
-
- l10n_ro_nondeductible_tax_id = fields.Many2one(
- "account.tax",
- string="Romania - Non Deductible Tax",
- domain=[("l10n_ro_is_nondeductible", "=", True)],
- copy=False,
- )
- l10n_ro_nondeductible_usage = fields.Boolean(
- compute="_compute_l10n_ro_nondeductible_usage",
- string="Romania - Allow Non Deductible",
- )
-
- def _l10n_ro_checkUsageLocation(self, listUsageLocation):
- permit_location_usage = ["usage_giving", "consume", "inventory"]
- return any([u in permit_location_usage for u in listUsageLocation])
-
- @api.depends("location_dest_id", "location_id")
- def _compute_l10n_ro_nondeductible_usage(self):
- for s in self:
- if s.is_l10n_ro_record:
- s.l10n_ro_nondeductible_usage = self._l10n_ro_checkUsageLocation(
- [s.location_dest_id.usage, s.location_id.usage]
- )
- else:
- s.l10n_ro_nondeductible_usage = False
-
- def _generate_valuation_lines_data(
- self,
- partner_id,
- qty,
- debit_value,
- credit_value,
- debit_account_id,
- credit_account_id,
- svl_id,
- description,
- ):
- res = super()._generate_valuation_lines_data(
- partner_id,
- qty,
- debit_value,
- credit_value,
- debit_account_id,
- credit_account_id,
- svl_id,
- description,
- )
- if self.is_l10n_ro_record:
- if self.l10n_ro_nondeductible_tax_id:
- if res.get("debit_line_vals"):
- res["debit_line_vals"].update(
- {
- "tax_ids": [(6, 0, [self.l10n_ro_nondeductible_tax_id.id])],
- }
- )
- return res
diff --git a/l10n_ro_nondeductible_vat/models/stock_quant.py b/l10n_ro_nondeductible_vat/models/stock_quant.py
deleted file mode 100644
index ae52820d12..0000000000
--- a/l10n_ro_nondeductible_vat/models/stock_quant.py
+++ /dev/null
@@ -1,53 +0,0 @@
-# Copyright (C) 2021 Dakai Soft SRL
-# Copyright (C) 2021 NextERP Romania
-# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-
-from odoo import api, fields, models
-
-
-class StockQuant(models.Model):
- _name = "stock.quant"
- _inherit = ["stock.quant", "l10n.ro.mixin"]
-
- l10n_ro_nondeductible_tax_id = fields.Many2one(
- "account.tax", domain=[("l10n_ro_is_nondeductible", "=", True)], copy=False
- )
-
- def _get_inventory_move_values(
- self,
- qty,
- location_id,
- location_dest_id,
- package_id=False,
- package_dest_id=False,
- ):
- res = super()._get_inventory_move_values(
- qty, location_id, location_dest_id, package_id, package_dest_id
- )
- res["l10n_ro_nondeductible_tax_id"] = (
- self.l10n_ro_nondeductible_tax_id
- and self.l10n_ro_nondeductible_tax_id.id
- or None
- )
- return res
-
- @api.model
- def _get_inventory_fields_create(self):
- """Returns a list of fields user can edit when he want
- to create a quant in `inventory_mode`."""
- res = super()._get_inventory_fields_create()
- res += ["l10n_ro_nondeductible_tax_id", "is_l10n_ro_record"]
- return res
-
- @api.model
- def _get_inventory_fields_write(self):
- """Returns a list of fields user can edit when he want
- to edit a quant in `inventory_mode`."""
- res = super()._get_inventory_fields_write()
- res += ["l10n_ro_nondeductible_tax_id", "is_l10n_ro_record"]
- return res
-
- def _apply_inventory(self):
- res = super()._apply_inventory()
- self.l10n_ro_nondeductible_tax_id = False
- return res
diff --git a/l10n_ro_nondeductible_vat/pyproject.toml b/l10n_ro_nondeductible_vat/pyproject.toml
deleted file mode 100644
index 4231d0cccb..0000000000
--- a/l10n_ro_nondeductible_vat/pyproject.toml
+++ /dev/null
@@ -1,3 +0,0 @@
-[build-system]
-requires = ["whool"]
-build-backend = "whool.buildapi"
diff --git a/l10n_ro_nondeductible_vat/readme/CONTRIBUTORS.md b/l10n_ro_nondeductible_vat/readme/CONTRIBUTORS.md
deleted file mode 100644
index 4a2dce0b79..0000000000
--- a/l10n_ro_nondeductible_vat/readme/CONTRIBUTORS.md
+++ /dev/null
@@ -1,7 +0,0 @@
-- [Dakai Soft SRL](https://www.dakai.ro):
- - Adrian Vacaru \<\>
-- [NextERP Romania](https://www.nexterp.ro):
- - Fekete Mihai \<\>
-
-Do not contact contributors directly about support or help with
-technical issues.
diff --git a/l10n_ro_nondeductible_vat/readme/DESCRIPTION.md b/l10n_ro_nondeductible_vat/readme/DESCRIPTION.md
deleted file mode 100644
index 989ad71ab6..0000000000
--- a/l10n_ro_nondeductible_vat/readme/DESCRIPTION.md
+++ /dev/null
@@ -1,2 +0,0 @@
-This module allows you to register non deductible VAT from Invoices or
-Stock Operations.
diff --git a/l10n_ro_nondeductible_vat/readme/INSTALL.md b/l10n_ro_nondeductible_vat/readme/INSTALL.md
deleted file mode 100644
index 8222561976..0000000000
--- a/l10n_ro_nondeductible_vat/readme/INSTALL.md
+++ /dev/null
@@ -1,8 +0,0 @@
-To install this module, you need to:
-
-- clone the branch 17.0 of the repository
-
-- add the path to this repository in your configuration (addons-path)
-- update the module list
-- search for "Romania - Nondeductible VAT" in your addons
-- install the module
diff --git a/l10n_ro_nondeductible_vat/readme/USAGE.md b/l10n_ro_nondeductible_vat/readme/USAGE.md
deleted file mode 100644
index 34f3ab24c1..0000000000
--- a/l10n_ro_nondeductible_vat/readme/USAGE.md
+++ /dev/null
@@ -1,2 +0,0 @@
-Select the nondeductible tax on invoice line, consume stock move or
-minus inventory.
diff --git a/l10n_ro_nondeductible_vat/static/description/icon.png b/l10n_ro_nondeductible_vat/static/description/icon.png
deleted file mode 100644
index 7ba9c1019cd79fba46148ad7c5deb9917b98888f..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 566
zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H1|$#LC7uRSY)RhkEJY5_^DsH{Kw9(gzQN-aQds|CO;G9FQ
zYi=Gg=$yTQ%~blvj2ktH%sTs@%ricy`;G^w845n!G5h?hFxvW&|LL-O_x0}2KmPfj
z+2>7V=bZO%j`44wzy9;P4L|QMH8$QHYu!*Psc?>=kgdbmVGiRX9)a`*3+5w3P6+06
zU>K&Cv+tk8x6V~C_7PB2wZt`|BqgyV)hf9t6-Y4{85kPr8kp!B7=;*`SQ#5z8JTJu
z7+Dz@te?hFi=rVnKP5A*5>11F1zf}ale*?W4U!-mg7ec#$`gxH8OqDc^)mCai<1)z
YQuXqS(r3T3kpel+)78&qol`;+0JR&lX#fBK
diff --git a/l10n_ro_nondeductible_vat/static/description/index.html b/l10n_ro_nondeductible_vat/static/description/index.html
deleted file mode 100644
index a596f4a9e5..0000000000
--- a/l10n_ro_nondeductible_vat/static/description/index.html
+++ /dev/null
@@ -1,461 +0,0 @@
-
-
-
-
-
-README.rst
-
-
-
-
-
-
-
-
-
-
-
Romania - Nondeductible VAT
-
-
-
This module allows you to register non deductible VAT from Invoices or
-Stock Operations.
-
Table of contents
-
-
-
-
To install this module, you need to:
-
-clone the branch 17.0 of the repository
-https://github.com/OCA/l10n-romania
-add the path to this repository in your configuration (addons-path)
-update the module list
-search for “Romania - Nondeductible VAT” in your addons
-install the module
-
-
-
-
-
Select the nondeductible tax on invoice line, consume stock move or
-minus inventory.
-
-
-
-
Bugs are tracked on GitHub Issues .
-In case of trouble, please check there if your issue has already been reported.
-If you spotted it first, help us to smash it by providing a detailed and welcomed
-feedback .
-
Do not contact contributors directly about support or help with technical issues.
-
-
-
-
-
-
-Dakai Soft SRL
-NextERP Romania
-
-
-
-
-
-
Do not contact contributors directly about support or help with
-technical issues.
-
-
-
-
This module is maintained by the OCA.
-
-
-
-
OCA, or the Odoo Community Association, is a nonprofit organization whose
-mission is to support the collaborative development of Odoo features and
-promote its widespread use.
-
Current maintainers :
-
-
This module is part of the OCA/l10n-romania project on GitHub.
-
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute .
-
-
-
-
-
-
diff --git a/l10n_ro_nondeductible_vat/tests/__init__.py b/l10n_ro_nondeductible_vat/tests/__init__.py
deleted file mode 100644
index c6ba9319e5..0000000000
--- a/l10n_ro_nondeductible_vat/tests/__init__.py
+++ /dev/null
@@ -1,5 +0,0 @@
-from . import common
-
-from . import test_inventory
-from . import test_consum
-from . import test_invoice
diff --git a/l10n_ro_nondeductible_vat/tests/common.py b/l10n_ro_nondeductible_vat/tests/common.py
deleted file mode 100644
index 3a11b85714..0000000000
--- a/l10n_ro_nondeductible_vat/tests/common.py
+++ /dev/null
@@ -1,634 +0,0 @@
-# Copyright (C) 2020 Terrabit
-# Copyright (C) 2021 NextERP Romania
-# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-
-
-import logging
-
-from odoo import fields
-from odoo.tests import Form, tagged
-
-from odoo.addons.account.tests.common import AccountTestInvoicingCommon
-from odoo.addons.stock_account.tests.test_anglo_saxon_valuation_reconciliation_common import ( # noqa E501
- ValuationReconciliationTestCommon,
-)
-
-_logger = logging.getLogger(__name__)
-
-
-@tagged("post_install", "-at_install")
-class TestNondeductibleCommon(ValuationReconciliationTestCommon):
- @classmethod
- def setUpTax(cls):
- def get_account(code):
- account = cls.env["account.account"].search([("code", "=", code)], limit=1)
- return account
-
- def get_account_tag(name):
- account = cls.env["account.account.tag"].search(
- [("name", "=", name)], limit=1
- )
- if not account:
- # Ensure the tag exists for tests: create if missing
- account = cls.env["account.account.tag"].create({"name": name})
- return account
-
- cls.account_vat_deductible = get_account("442600")
- cls.account_income = get_account("707000")
- cls.account_valuation = get_account("371000")
- cls.account_difference = get_account("378000")
- cls.account_expense_vat_nondeductible = get_account("635200")
- if not cls.account_expense_vat_nondeductible:
- cls.account_expense_vat_nondeductible = get_account("635100")
- cls.env.company.l10n_ro_property_uneligible_tax_account_id = (
- cls.account_expense_vat_nondeductible
- )
- cls.account_expense = get_account("607000")
- cls.account_expense_nondeductible = cls.account_expense.copy(
- {
- "name": "Cheltuieli cu marfurile nedeductibile",
- "code": "607001",
- }
- )
-
- cls.account_expense.l10n_ro_nondeductible_account_id = (
- cls.account_expense_nondeductible
- )
- cls.tag_base = get_account_tag("+24_1 - TAX BASE")
- cls.tag_base_nondeductible = get_account_tag("+24_2 - TAX BASE")
- cls.tag_vat = get_account_tag("+24_1 - VAT")
- cls.tag_vat_nondeductible = get_account_tag("+24_2 - VAT")
- cls.minus_tag_base = get_account_tag("-24_1 - TAX BASE")
- cls.minus_tag_base_nondeductible = get_account_tag("-24_2 - TAX BASE")
- cls.minus_tag_vat = get_account_tag("-24_1 - VAT")
- cls.minus_tag_vat_nondeductible = get_account_tag("-24_2 - VAT")
-
- cls.uneligible_deductible_tax_account_id = get_account("442820")
- cls.account_cash_basis_base_account_id = (
- cls.uneligible_deductible_tax_account_id.copy(
- {
- "name": "Baza TVA neexigibila",
- "code": "442830",
- }
- )
- )
- cls.env.company.account_cash_basis_base_account_id = (
- cls.account_cash_basis_base_account_id
- )
-
- invoice_rep_lines = [
- (
- 0,
- 0,
- {
- "factor_percent": 100,
- "repartition_type": "base",
- "tag_ids": [(6, 0, [cls.tag_base.id])],
- },
- ),
- (
- 0,
- 0,
- {
- "factor_percent": 100,
- "repartition_type": "tax",
- "account_id": cls.account_vat_deductible.id,
- "tag_ids": [(6, 0, [cls.tag_vat.id])],
- "l10n_ro_exclude_from_stock": True,
- },
- ),
- (
- 0,
- 0,
- {
- "factor_percent": 50,
- "repartition_type": "tax",
- "account_id": cls.account_expense_vat_nondeductible.id,
- "tag_ids": [(6, 0, [cls.tag_vat_nondeductible.id])],
- },
- ),
- (
- 0,
- 0,
- {
- "factor_percent": -50,
- "repartition_type": "tax",
- "account_id": cls.account_vat_deductible.id,
- "tag_ids": [(6, 0, [cls.tag_vat.id])],
- },
- ),
- (
- 0,
- 0,
- {
- "factor_percent": 500,
- "repartition_type": "tax",
- "tag_ids": [(6, 0, [cls.tag_base_nondeductible.id])],
- "l10n_ro_nondeductible": True,
- },
- ),
- (
- 0,
- 0,
- {
- "factor_percent": -500,
- "repartition_type": "tax",
- "tag_ids": [(6, 0, [cls.tag_base.id])],
- },
- ),
- ]
-
- refund_rep_lines = [
- (
- 0,
- 0,
- {
- "factor_percent": 100,
- "repartition_type": "base",
- "tag_ids": [(6, 0, [cls.minus_tag_base.id])],
- },
- ),
- (
- 0,
- 0,
- {
- "factor_percent": 100,
- "repartition_type": "tax",
- "account_id": cls.account_vat_deductible.id,
- "tag_ids": [(6, 0, [cls.minus_tag_vat.id])],
- "l10n_ro_exclude_from_stock": True,
- },
- ),
- (
- 0,
- 0,
- {
- "factor_percent": 50,
- "repartition_type": "tax",
- "account_id": cls.account_expense_vat_nondeductible.id,
- "tag_ids": [(6, 0, [cls.minus_tag_vat_nondeductible.id])],
- },
- ),
- (
- 0,
- 0,
- {
- "factor_percent": -50,
- "repartition_type": "tax",
- "account_id": cls.account_vat_deductible.id,
- "tag_ids": [(6, 0, [cls.minus_tag_vat.id])],
- },
- ),
- (
- 0,
- 0,
- {
- "factor_percent": 500,
- "repartition_type": "tax",
- "tag_ids": [(6, 0, [cls.minus_tag_base_nondeductible.id])],
- "l10n_ro_nondeductible": True,
- },
- ),
- (
- 0,
- 0,
- {
- "factor_percent": -500,
- "repartition_type": "tax",
- "tag_ids": [(6, 0, [cls.minus_tag_base.id])],
- },
- ),
- ]
- cls.tax_10_nondeductible = cls.env["account.tax"].create(
- {
- "name": "Tax 10% Non Deductible 50%",
- "amount": 10.0,
- "amount_type": "percent",
- "type_tax_use": "purchase",
- "l10n_ro_negative_allow": True,
- "company_id": cls.env.company.id,
- "invoice_repartition_line_ids": invoice_rep_lines,
- "refund_repartition_line_ids": refund_rep_lines,
- }
- )
-
- # CASH BASIS
- invoice_rep_lines_cash_basis = [
- (
- 0,
- 0,
- {
- "factor_percent": 100,
- "repartition_type": "base",
- "tag_ids": [(6, 0, [cls.tag_base.id])],
- },
- ),
- (
- 0,
- 0,
- {
- "factor_percent": 100,
- "repartition_type": "tax",
- "account_id": cls.account_vat_deductible.id,
- "tag_ids": [(6, 0, [cls.tag_vat.id])],
- "l10n_ro_exclude_from_stock": True,
- },
- ),
- (
- 0,
- 0,
- {
- "factor_percent": 50,
- "repartition_type": "tax",
- "account_id": cls.account_expense_vat_nondeductible.id,
- "tag_ids": [(6, 0, [cls.tag_vat_nondeductible.id])],
- },
- ),
- (
- 0,
- 0,
- {
- "factor_percent": -50,
- "repartition_type": "tax",
- "account_id": cls.account_vat_deductible.id,
- "tag_ids": [(6, 0, [cls.tag_vat.id])],
- },
- ),
- (
- 0,
- 0,
- {
- "factor_percent": 500,
- "repartition_type": "tax",
- "tag_ids": [(6, 0, [cls.tag_base_nondeductible.id])],
- "l10n_ro_nondeductible": True,
- "l10n_ro_skip_cash_basis_account_switch": True,
- },
- ),
- (
- 0,
- 0,
- {
- "factor_percent": -500,
- "repartition_type": "tax",
- "tag_ids": [(6, 0, [cls.tag_base.id])],
- "l10n_ro_skip_cash_basis_account_switch": True,
- },
- ),
- ]
-
- refund_rep_lines_cash_basis = [
- (
- 0,
- 0,
- {
- "factor_percent": 100,
- "repartition_type": "base",
- "tag_ids": [(6, 0, [cls.minus_tag_base.id])],
- },
- ),
- (
- 0,
- 0,
- {
- "factor_percent": 100,
- "repartition_type": "tax",
- "account_id": cls.account_vat_deductible.id,
- "tag_ids": [(6, 0, [cls.minus_tag_vat.id])],
- "l10n_ro_exclude_from_stock": True,
- },
- ),
- (
- 0,
- 0,
- {
- "factor_percent": 50,
- "repartition_type": "tax",
- "account_id": cls.account_expense_vat_nondeductible.id,
- "tag_ids": [(6, 0, [cls.minus_tag_vat_nondeductible.id])],
- },
- ),
- (
- 0,
- 0,
- {
- "factor_percent": -50,
- "repartition_type": "tax",
- "account_id": cls.account_vat_deductible.id,
- "tag_ids": [(6, 0, [cls.minus_tag_vat.id])],
- },
- ),
- (
- 0,
- 0,
- {
- "factor_percent": 500,
- "repartition_type": "tax",
- "tag_ids": [(6, 0, [cls.minus_tag_base_nondeductible.id])],
- "l10n_ro_nondeductible": True,
- "l10n_ro_skip_cash_basis_account_switch": True,
- },
- ),
- (
- 0,
- 0,
- {
- "factor_percent": -500,
- "repartition_type": "tax",
- "tag_ids": [(6, 0, [cls.minus_tag_base.id])],
- "l10n_ro_skip_cash_basis_account_switch": True,
- },
- ),
- ]
- unelig_ded_tax_acc = cls.uneligible_deductible_tax_account_id.id
- cls.tax_10_nondeductible_cash_basis = cls.env["account.tax"].create(
- {
- "name": "Tax 10% Non Deductible Cash Basis 50% ",
- "amount": 10.0,
- "amount_type": "percent",
- "type_tax_use": "purchase",
- "company_id": cls.env.company.id,
- "l10n_ro_negative_allow": True,
- "invoice_repartition_line_ids": invoice_rep_lines_cash_basis,
- "refund_repartition_line_ids": refund_rep_lines_cash_basis,
- "tax_exigibility": "on_payment",
- "cash_basis_transition_account_id": unelig_ded_tax_acc,
- }
- )
-
- cls.fp_model = cls.env["account.fiscal.position"]
- cls.fptvainc = cls.fp_model.search(
- [
- ("name", "ilike", "VAT collection system"),
- ("company_id", "=", cls.env.company.id),
- ]
- )
- cls.env["account.fiscal.position.tax"].create(
- {
- "position_id": cls.fptvainc.id,
- "tax_src_id": cls.tax_10_nondeductible.id,
- "tax_dest_id": cls.tax_10_nondeductible_cash_basis.id,
- }
- )
- # cls.fptvainc.write(
- # {
- # "tax_ids": [Command.create({
- # "tax_src_id": cls.tax_10_nondeductible.id,
- # "tax_dest_id": cls.tax_10_nondeductible_cash_basis.id,
- # },
- # )
- # ]
- # }
- # )
-
- @classmethod
- @AccountTestInvoicingCommon.setup_country("ro")
- def setUpClass(cls):
- super().setUpClass()
-
- cls.env.user.group_ids += cls.env.ref("stock_account.group_lot_on_invoice")
-
- cls.env.company.anglo_saxon_accounting = True
- cls.env.company.l10n_ro_accounting = True
- cls.env.company.l10n_ro_stock_acc_price_diff = True
-
- cls.setUpTax()
-
- stock_journal = cls.env["account.journal"].search(
- [("code", "=", "STJ"), ("company_id", "=", cls.env.company.id)],
- limit=1,
- )
- if not stock_journal:
- stock_journal = cls.env["account.journal"].create(
- {"name": "Stock Journal", "code": "STJ", "type": "general"}
- )
-
- acc_diff_id = cls.account_difference.id
-
- category_value = {
- "name": "TEST Marfa",
- "property_cost_method": "fifo",
- "property_valuation": "real_time",
- "property_account_creditor_price_difference_categ": acc_diff_id,
- "property_account_income_categ_id": cls.account_income.id,
- "property_account_expense_categ_id": cls.account_expense.id,
- "property_stock_account_input_categ_id": cls.account_valuation.id,
- "property_stock_account_output_categ_id": cls.account_valuation.id,
- "property_stock_valuation_account_id": cls.account_valuation.id,
- "property_stock_journal": stock_journal.id,
- "l10n_ro_stock_account_change": True,
- }
-
- cls.category = cls.env["product.category"].search(
- [("name", "=", "TEST Marfa")], limit=1
- )
- if not cls.category:
- cls.category = cls.env["product.category"].create(category_value)
- else:
- cls.category.write(category_value)
-
- cls.product_1 = cls.env["product.product"].create(
- {
- "name": "Product A",
- "type": "consu",
- "is_storable": True,
- "categ_id": cls.category.id,
- "invoice_policy": "delivery",
- "purchase_method": "receive",
- "list_price": 150,
- "standard_price": 100,
- }
- )
-
- cls.vendor = cls.env["res.partner"].search(
- [("name", "=", "TEST Vendor")], limit=1
- )
- if not cls.vendor:
- cls.vendor = cls.env["res.partner"].create({"name": "TEST Vendor"})
-
- cls.warehouse = cls.env["stock.warehouse"].create(
- {
- "name": "Warehouse Romania",
- "code": "ROW1",
- "company_id": cls.env.company.id,
- }
- )
- cls.category.property_valuation = "real_time"
-
- @classmethod
- def setup_company_data(cls, company_name, chart_template=None, **kwargs):
- company_data = super().setup_company_data(
- company_name, chart_template=chart_template, **kwargs
- )
- acc_371 = cls.env["account.account"].search([("code", "=", "371000")], limit=1)
- company_data["default_account_stock_valuation"] = acc_371
- # if acc_371:
- # company_data.update(
- # {
- # "default_account_stock_valuation": acc_371,
- # "default_account_stock_in": acc_371,
- # "default_account_stock_out": acc_371,
- # }
- # )
- company_data["default_account_stock_in"] = company_data[
- "default_account_stock_valuation"
- ]
- company_data["default_account_stock_out"] = company_data[
- "default_account_stock_valuation"
- ]
-
- return company_data
-
- @classmethod
- def collect_company_accounting_data(cls, company):
- company_data = super().collect_company_accounting_data(company)
- acc_371 = cls.env["account.account"].search([("code", "=", "371000")], limit=1)
- company_data["default_account_stock_valuation"] = acc_371
- company_data["default_account_stock_in"] = company_data[
- "default_account_stock_valuation"
- ]
- company_data["default_account_stock_out"] = company_data[
- "default_account_stock_valuation"
- ]
- return company_data
-
- def create_po(self, picking_type_in=None):
- if not picking_type_in:
- picking_type_in = self.warehouse.in_type_id
-
- po = Form(self.env["purchase.order"])
- po.partner_id = self.vendor
- po.picking_type_id = picking_type_in
-
- with po.order_line.new() as po_line:
- po_line.product_id = self.product_1
- po_line.product_qty = 100
- po_line.price_unit = 1
- po = po.save()
- po.button_confirm()
- self.picking = po.picking_ids[0]
- for move in self.picking.move_ids:
- if move.product_id == self.product_1:
- move._set_quantity_done(100)
-
- self.picking.button_validate()
- self.picking._action_done()
- _logger.info("Receptie facuta")
-
- self.po = po
- return po
-
- def create_invoice_notdeductible(self, fiscal_position=False):
- PurchaseBillUnion = self.env["purchase.bill.union"]
- invoice = Form(
- self.env["account.move"].with_context(
- default_move_type="in_invoice", default_invoice_date=fields.Date.today()
- )
- )
- invoice.partner_id = self.vendor
- invoice.purchase_vendor_bill_id = PurchaseBillUnion.browse(-self.po.id)
- if fiscal_position:
- self.env["l10n.ro.res.partner.anaf"].create(
- {
- "anaf_id": "1",
- "vat": "RO39187746",
- "start_date": fields.Date.today(),
- "publish_date": fields.Date.today(),
- "operation_date": fields.Date.today(),
- "operation_type": "I",
- }
- )
- self.vendor.l10n_ro_vat_number = "RO39187746"
- invoice.fiscal_position_id = fiscal_position
- with invoice.invoice_line_ids.edit(0) as invoice_line_form:
- invoice_line_form.account_id = self.account_expense
- invoice_line_form.tax_ids.clear()
- invoice_line_form.tax_ids.add(self.tax_10_nondeductible)
- if fiscal_position == self.fptvainc:
- invoice_line_form.tax_ids.clear()
- invoice_line_form.tax_ids.add(self.tax_10_nondeductible_cash_basis)
-
- invoice = invoice.save()
- invoice.action_post()
- self.invoice = invoice
-
- _logger.info("Factura introdusa")
-
- def create_invoice(self):
- PurchaseBillUnion = self.env["purchase.bill.union"]
- invoice = Form(
- self.env["account.move"].with_context(
- default_move_type="in_invoice", default_invoice_date=fields.Date.today()
- )
- )
- invoice.partner_id = self.vendor
- invoice.purchase_vendor_bill_id = PurchaseBillUnion.browse(-self.po.id)
- invoice = invoice.save()
- invoice.action_post()
-
- _logger.info("Factura introdusa")
-
- def make_purchase(self):
- self.create_po()
- self.create_invoice()
-
- def make_purchase_notdeductible(self, fiscal_position=False):
- self.create_po()
- self.create_invoice_notdeductible(fiscal_position=fiscal_position)
-
- def make_consume(self):
- consume_type = self.warehouse.l10n_ro_consume_type_id
- stock_picking_form = Form(self.env["stock.picking"])
- stock_picking_form.picking_type_id = consume_type
- with stock_picking_form.move_ids_without_package.new() as line:
- line.product_id = self.product_1
- line.product_uom_qty = 10
- line.l10n_ro_nondeductible_tax_id = self.tax_10_nondeductible
- stock_picking = stock_picking_form.save()
- stock_picking.action_confirm()
- stock_picking.action_assign()
- for line in stock_picking.move_ids_without_package:
- line.quantity = 10
- stock_picking.button_validate()
-
- def make_inventory(self):
- stock_quant = self.env["stock.quant"].search(
- [
- ("product_id", "=", self.product_1.id),
- ("location_id", "=", self.warehouse.lot_stock_id.id),
- ]
- )
- stock_quant = stock_quant.with_context(inventory_mode=True)
- stock_quant.write(
- {
- "inventory_quantity": 50,
- "l10n_ro_nondeductible_tax_id": self.tax_10_nondeductible.id,
- }
- )
- stock_quant.action_apply_inventory()
-
- def check_account_valuation(self, balance, account=None):
- balance = round(balance, 2)
- if not account:
- account = self.account_valuation
-
- domain = [("account_id", "=", account.id)]
- account_valuations = self.env["account.move.line"].read_group(
- domain, ["debit:sum", "credit:sum"], ["account_id"]
- )
- self.assertNotEqual(account_valuations, [])
- for valuation in account_valuations:
- val = round(valuation["debit"] - valuation["credit"], 2)
- if valuation["account_id"][0] == account.id:
- _logger.info(f"Check account {val} = {balance}")
- self.assertAlmostEqual(val, balance)
-
- def check_no_move_lines(self, account=None):
- if not account:
- account = self.account_valuation
-
- domain = [("account_id", "=", account.id)]
- account_valuations = self.env["account.move.line"].read_group(
- domain, ["debit:sum", "credit:sum"], ["account_id"]
- )
- self.assertEqual(account_valuations, [])
diff --git a/l10n_ro_nondeductible_vat/tests/test_consum.py b/l10n_ro_nondeductible_vat/tests/test_consum.py
deleted file mode 100644
index 4409aa8352..0000000000
--- a/l10n_ro_nondeductible_vat/tests/test_consum.py
+++ /dev/null
@@ -1,29 +0,0 @@
-# Copyright (C) 2021 NextERP Romania
-# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-
-import logging
-
-from odoo.tests import tagged
-
-from .common import TestNondeductibleCommon
-
-_logger = logging.getLogger(__name__)
-
-
-@tagged("post_install", "-at_install")
-class TestStockConsumNondeductible(TestNondeductibleCommon):
- def test_consume(self):
- self.make_purchase()
- self.check_account_valuation(21, self.account_vat_deductible)
- self.check_account_valuation(100, self.account_valuation)
-
- _logger.info("Start consum produse")
- self.make_consume()
- _logger.info("Consum facut")
-
- _logger.info("Start verificare balanta consum")
- self.check_account_valuation(20.5, self.account_vat_deductible)
- self.check_account_valuation(90, self.account_valuation)
- self.check_account_valuation(5, self.account_expense)
- self.check_account_valuation(5, self.account_expense_nondeductible)
- self.check_account_valuation(0.5, self.account_expense_vat_nondeductible)
diff --git a/l10n_ro_nondeductible_vat/tests/test_inventory.py b/l10n_ro_nondeductible_vat/tests/test_inventory.py
deleted file mode 100644
index 362bf2910c..0000000000
--- a/l10n_ro_nondeductible_vat/tests/test_inventory.py
+++ /dev/null
@@ -1,29 +0,0 @@
-# Copyright (C) 2021 NextERP Romania
-# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-
-import logging
-
-from odoo.tests import tagged
-
-from .common import TestNondeductibleCommon
-
-_logger = logging.getLogger(__name__)
-
-
-@tagged("post_install", "-at_install")
-class TestStockInventoryNondeductible(TestNondeductibleCommon):
- def test_minus_inventory(self):
- self.make_purchase()
- self.check_account_valuation(21.0, self.account_vat_deductible)
- self.check_account_valuation(100, self.account_valuation)
-
- _logger.info("Start inventar produse")
- self.make_inventory()
- _logger.info("Inventar facut")
-
- _logger.info("Start verificare balanta consum")
- self.check_account_valuation(18.5, self.account_vat_deductible)
- self.check_account_valuation(50, self.account_valuation)
- self.check_account_valuation(25, self.account_expense)
- self.check_account_valuation(25, self.account_expense_nondeductible)
- self.check_account_valuation(2.5, self.account_expense_vat_nondeductible)
diff --git a/l10n_ro_nondeductible_vat/tests/test_invoice.py b/l10n_ro_nondeductible_vat/tests/test_invoice.py
deleted file mode 100644
index 128f6124d6..0000000000
--- a/l10n_ro_nondeductible_vat/tests/test_invoice.py
+++ /dev/null
@@ -1,44 +0,0 @@
-# Copyright (C) 2021 NextERP Romania
-# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-
-import logging
-
-from odoo.tests import tagged
-
-from .common import TestNondeductibleCommon
-
-_logger = logging.getLogger(__name__)
-
-
-@tagged("post_install", "-at_install")
-class TestNonDeductibleInvoice(TestNondeductibleCommon):
- def test_invoice(self):
- self.make_purchase_notdeductible()
- self.check_account_valuation(5, self.account_vat_deductible)
- self.check_account_valuation(50, self.account_expense)
- self.check_account_valuation(50, self.account_expense_nondeductible)
- self.check_account_valuation(5, self.account_expense_vat_nondeductible)
-
- def test_invoice_cash_basis(self):
- self.make_purchase_notdeductible(fiscal_position=self.fptvainc)
- line = self.invoice.invoice_line_ids[0]
- self.assertEqual(line.tax_ids, self.tax_10_nondeductible_cash_basis)
- self.check_no_move_lines(self.account_vat_deductible)
- self.check_account_valuation(50, self.account_expense)
- self.check_account_valuation(50, self.account_expense_nondeductible)
- self.check_no_move_lines(self.account_expense_vat_nondeductible)
- self.check_account_valuation(10, self.uneligible_deductible_tax_account_id)
-
- self.env["account.payment.register"].with_context(
- active_model="account.move", active_ids=self.invoice.ids
- ).create(
- {
- "payment_date": self.invoice.date,
- }
- )._create_payments()
- _logger.info("Factura platita")
- self.check_account_valuation(5, self.account_vat_deductible)
- self.check_account_valuation(50, self.account_expense)
- self.check_account_valuation(50, self.account_expense_nondeductible)
- self.check_account_valuation(5, self.account_expense_vat_nondeductible)
- self.check_account_valuation(0, self.uneligible_deductible_tax_account_id)
diff --git a/l10n_ro_nondeductible_vat/views/account_account_view.xml b/l10n_ro_nondeductible_vat/views/account_account_view.xml
deleted file mode 100644
index 285d55298f..0000000000
--- a/l10n_ro_nondeductible_vat/views/account_account_view.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
- account.account.form
- account.account
-
-
-
-
-
-
-
-
diff --git a/l10n_ro_nondeductible_vat/views/account_tax_view.xml b/l10n_ro_nondeductible_vat/views/account_tax_view.xml
deleted file mode 100644
index d46a0ef835..0000000000
--- a/l10n_ro_nondeductible_vat/views/account_tax_view.xml
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
- account.tax Form
- account.tax
- form
-
-
-
-
-
-
-
-
-
-
-
-
- account.tax.repartition.line Tree
- account.tax.repartition.line
- list
-
-
-
-
-
-
-
-
-
-
diff --git a/l10n_ro_nondeductible_vat/views/stock_picking_view.xml b/l10n_ro_nondeductible_vat/views/stock_picking_view.xml
deleted file mode 100644
index 37cb4d6605..0000000000
--- a/l10n_ro_nondeductible_vat/views/stock_picking_view.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
- view_picking_add_nondeductible_vat_form
- stock.picking
-
-
-
-
-
-
-
-
-
-
diff --git a/l10n_ro_nondeductible_vat/views/stock_quant_view.xml b/l10n_ro_nondeductible_vat/views/stock_quant_view.xml
deleted file mode 100644
index 1e6eb9cbbd..0000000000
--- a/l10n_ro_nondeductible_vat/views/stock_quant_view.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
- view_inventory_line_add_nondeductible_vat_tree
- stock.quant
-
-
-
-
-
-
-
-
From 992fa63620e105d36be0627dabe73ca2e1c1c4c0 Mon Sep 17 00:00:00 2001
From: Mihai Fekete
Date: Sun, 24 Jul 2022 09:48:35 +0300
Subject: [PATCH 03/54] Change dependency until stock_picking_comment_template
is merged, move code in here.
---
.../README.rst | 69 +++
.../__init__.py | 1 +
.../__manifest__.py | 31 ++
...l10n_ro_stock_picking_comment_template.xml | 265 ++++++++++
.../i18n/ro.po | 458 ++++++++++++++++++
.../models/__init__.py | 2 +
.../models/res_partner.py | 13 +
.../models/stock_picking.py | 34 ++
.../readme/CONTRIBUTORS.rst | 5 +
.../readme/DESCRIPTION.rst | 1 +
.../readme/USAGE.rst | 5 +
.../security/ir.model.access.csv | 3 +
.../static/description/icon.png | Bin 0 -> 566 bytes
.../static/description/icon.svg | 79 +++
.../static/description/index.html | 127 +++++
.../views/base_comment_template_view.xml | 26 +
.../views/report_delivery_document.xml | 26 +
.../views/report_picking.xml | 23 +
.../views/stock_picking_view.xml | 33 ++
19 files changed, 1201 insertions(+)
create mode 100644 l10n_ro_stock_picking_comment_template/README.rst
create mode 100644 l10n_ro_stock_picking_comment_template/__init__.py
create mode 100644 l10n_ro_stock_picking_comment_template/__manifest__.py
create mode 100644 l10n_ro_stock_picking_comment_template/data/l10n_ro_stock_picking_comment_template.xml
create mode 100644 l10n_ro_stock_picking_comment_template/i18n/ro.po
create mode 100644 l10n_ro_stock_picking_comment_template/models/__init__.py
create mode 100644 l10n_ro_stock_picking_comment_template/models/res_partner.py
create mode 100644 l10n_ro_stock_picking_comment_template/models/stock_picking.py
create mode 100644 l10n_ro_stock_picking_comment_template/readme/CONTRIBUTORS.rst
create mode 100644 l10n_ro_stock_picking_comment_template/readme/DESCRIPTION.rst
create mode 100644 l10n_ro_stock_picking_comment_template/readme/USAGE.rst
create mode 100644 l10n_ro_stock_picking_comment_template/security/ir.model.access.csv
create mode 100644 l10n_ro_stock_picking_comment_template/static/description/icon.png
create mode 100644 l10n_ro_stock_picking_comment_template/static/description/icon.svg
create mode 100644 l10n_ro_stock_picking_comment_template/static/description/index.html
create mode 100644 l10n_ro_stock_picking_comment_template/views/base_comment_template_view.xml
create mode 100644 l10n_ro_stock_picking_comment_template/views/report_delivery_document.xml
create mode 100644 l10n_ro_stock_picking_comment_template/views/report_picking.xml
create mode 100644 l10n_ro_stock_picking_comment_template/views/stock_picking_view.xml
diff --git a/l10n_ro_stock_picking_comment_template/README.rst b/l10n_ro_stock_picking_comment_template/README.rst
new file mode 100644
index 0000000000..2e44c54d62
--- /dev/null
+++ b/l10n_ro_stock_picking_comment_template/README.rst
@@ -0,0 +1,69 @@
+.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
+ :alt: License: AGPL-3
+
+========================================
+Romania - Stock Picking Comment Template
+========================================
+
+This module adds templates for stock picking report according to Romanian Legislation.
+
+
+Installation
+============
+
+To install this module, you need to:
+
+* clone the branch 13.0 of the repository https://github.com/OCA/l10n-romania
+* add the path to this repository in your configuration (addons-path)
+* update the module list
+* search for "Romania - Stock Picking Comment Template" in your addons
+* install the module
+
+
+Usage
+=====
+
+To use this module, you need to:
+
+#. Go to Inventory -> Configuration -> Stock Picking Comment
+#. Open the template that you want to modify
+#. Change the Comment field with the text that you want to be printed in the Stock Picking Report
+
+.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
+ :alt: Try me on Runbot
+ :target: https://runbot.odoo-community.org/runbot/177/13.0
+
+Bug Tracker
+===========
+
+Bugs are tracked on `GitHub Issues `_.
+In case of trouble, please check there if your issue has already been reported.
+If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
+`here `_.
+
+Credits
+=======
+
+Contributors
+------------
+
+* `NextERP Romania `_:
+
+ * Fekete Mihai
+
+Do not contact contributors directly about support or help with technical issues.
+
+Maintainer
+----------
+
+.. image:: http://odoo-community.org/logo.png
+ :alt: Odoo Community Association
+ :target: http://odoo-community.org
+
+This module is maintained by the OCA.
+
+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.
+
+To contribute to this module, please visit http://odoo-community.org.
diff --git a/l10n_ro_stock_picking_comment_template/__init__.py b/l10n_ro_stock_picking_comment_template/__init__.py
new file mode 100644
index 0000000000..0650744f6b
--- /dev/null
+++ b/l10n_ro_stock_picking_comment_template/__init__.py
@@ -0,0 +1 @@
+from . import models
diff --git a/l10n_ro_stock_picking_comment_template/__manifest__.py b/l10n_ro_stock_picking_comment_template/__manifest__.py
new file mode 100644
index 0000000000..8cc8c8c327
--- /dev/null
+++ b/l10n_ro_stock_picking_comment_template/__manifest__.py
@@ -0,0 +1,31 @@
+# Copyright (C) 2021 NextERP Romania
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
+{
+ "name": "Romania - Stock Picking Comment Template",
+ "category": "Localization",
+ "summary": """
+ This model is going to add a a header and a footer at picking report
+ depeding on the operation type.
+ """,
+ "depends": [
+ "l10n_ro_stock_account",
+ "base_comment_template",
+ # Add changes from stock_picking_comment_template until it is merged
+ # "stock_picking_comment_template",
+ ],
+ "data": [
+ "data/l10n_ro_stock_picking_comment_template.xml",
+ "views/stock_picking_view.xml",
+ "views/base_comment_template_view.xml",
+ "views/report_delivery_document.xml",
+ "views/report_picking.xml",
+ "security/ir.model.access.csv",
+ ],
+ "license": "AGPL-3",
+ "version": "14.0.1.0.0",
+ "author": "NextERP Romania," "Odoo Community Association (OCA)",
+ "website": "https://github.com/OCA/l10n-romania",
+ "installable": True,
+ "development_status": "Mature",
+ "maintainers": ["feketemihai"],
+}
diff --git a/l10n_ro_stock_picking_comment_template/data/l10n_ro_stock_picking_comment_template.xml b/l10n_ro_stock_picking_comment_template/data/l10n_ro_stock_picking_comment_template.xml
new file mode 100644
index 0000000000..cdbc6766ed
--- /dev/null
+++ b/l10n_ro_stock_picking_comment_template/data/l10n_ro_stock_picking_comment_template.xml
@@ -0,0 +1,265 @@
+
+
+
+
+
+ Romania - Comment for Delivery + Internal Transfer Before Lines
+ before_lines
+
+
+ [['location_dest_id.usage','not in',['usage_giving','consume','production']],
+ '|',['picking_type_code', '=', 'outgoing'],['picking_type_code', '=', 'internal']]
+
+
+ Delivery Order
+
+ % if object.picking_type_code == 'internal':
+
+
+
+
+
+ Source Location
+
+
+ Destination Location
+
+
+
+
+
+
+ ${object.location_id.name}
+
+
+ ${object.location_dest_id.name}
+
+
+
+
+ % endif]]>
+
+
+
+
+
+ Romania - Comment for Delivery After Lines
+ after_lines
+
+ [['location_dest_id.usage','not in',['usage_giving','consume','production','internal']],
+ '|',['picking_type_code', '=','outgoing'],['picking_type_code', '=', 'internal']]
+
+
+
+
+
+
+ Elaborate
+ Information for delivery
+ Signature reception
+
+
+
+
+
+ Name: ${user.name}
+
+
+ Delegate: ${object.delegate_id.name if object.delegate_id else '.'*100 }
+ B.I./C.I.: ${'.'*100}
+ Mean Transport: ${object.mean_transp or "."*50}
+ Date: ${'.'*40} Hour: ${'.'*20}
+
+
+
+
+
]]>
+
+
+
+
+
+ Romania - Comment for Reception Before Lines
+ before_lines
+
+ [['picking_type_code', '=', 'incoming']]
+ Reception Note and Differences
+ The undersigned, members of the reception commission, I received the material values provided by:
+ ${object.partner_id.name},
+ delegate: ${object.delegate_id.name if object.delegate_id else '.'*60 },
+ car no.: ${object.mean_transp or "."*32},
+ based on the accompanying documents: ${object.purchase_id.partner_ref+'; ' if object.purchase_id.partner_ref else ''}
+ ${object.purchase_id.invoice_ids[0].name if object.purchase_id.invoice_ids else ''}
+ ${'' if object.purchase_id.invoice_ids or object.purchase_id.partner_ref else '.'*60} , noting:
+ ]]>
+
+
+
+ Romania - Comment for Reception After Lines
+ after_lines
+
+ [['picking_type_code', '=', 'incoming']]
+
+
+
+
+
+
+ Members of the reception commission
+ Signature
+ Stock responsible
+ Signature
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ${user.name}
+
+
+
+
+
+
+
+
+
]]>
+
+
+
+
+
+ Romania - Comment for Consume Voucher Before Lines
+ before_lines
+
+
+ [['location_id.usage','=','internal'],['location_dest_id.usage','in',['consume','production']]]
+
+
+ Consume Voucher
+
+ ]]>
+
+
+
+
+
+ Romania - Comment for Usage Giving Before Lines
+ before_lines
+
+
+ [['location_id.usage','=','internal'],['location_dest_id.usage','=','usage_giving']]
+
+
+ Usage Giving Report
+
+ ]]>
+
+
+
+ Romania - Comment for Consume Voucher After Lines
+ after_lines
+
+
+ [['location_id.usage','=','internal'],['location_dest_id.usage','in',['consume','production']]]
+
+
+
+
+
+
+ Elaborate
+ Giver signature
+ Date
+
+
+
+
+
+ Name: ${user.name}
+
+
+
+
+
+
+
]]>
+
+
+
+
+ Romania - Comment for Internal Transfer Voucher After Lines
+ after_lines
+
+ [['location_id.usage','=','internal'],['location_dest_id.usage','in',['usage_giving','internal']] ]
+
+
+
+
+
+ Elaborate
+ Giver signature
+ Receiver signature
+
+
+
+
+
+ Name: ${user.name}
+
+
+
+
+
+
+
]]>
+
+
+
+
diff --git a/l10n_ro_stock_picking_comment_template/i18n/ro.po b/l10n_ro_stock_picking_comment_template/i18n/ro.po
new file mode 100644
index 0000000000..9b3dd448ae
--- /dev/null
+++ b/l10n_ro_stock_picking_comment_template/i18n/ro.po
@@ -0,0 +1,458 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * l10n_ro_stock_picking_comment_template
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 14.0+e\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2021-06-17 14:29+0000\n"
+"PO-Revision-Date: 2021-06-17 14:29+0000\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: l10n_ro_stock_picking_comment_template
+#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_consume_up
+msgid ""
+"\n"
+" \n"
+" Consume Voucher \n"
+" \n"
+" \n"
+" "
+msgstr ""
+"\n"
+" \n"
+" Bon de Consum \n"
+" \n"
+" \n"
+" "
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_delivery_internTransfer
+msgid ""
+"\n"
+" \n"
+" Delivery Order \n"
+" \n"
+" % if object.picking_type_code == 'internal':\n"
+"\n"
+" \n"
+" \n"
+" \n"
+" \n"
+" Source Location\n"
+" \n"
+" \n"
+" Destination Location\n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" ${object.location_id.name}\n"
+" \n"
+" \n"
+" ${object.location_dest_id.name}\n"
+" \n"
+" \n"
+" \n"
+"
\n"
+" % endif\n"
+" "
+msgstr ""
+"\n"
+" \n"
+" Aviz de Însoțire a Mărfii \n"
+" \n"
+" % if object.picking_type_code == 'internal':\n"
+"\n"
+" \n"
+" \n"
+" \n"
+" \n"
+" Locație Sursă\n"
+" \n"
+" \n"
+" Locație Destinație\n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" ${object.location_id.name}\n"
+" \n"
+" \n"
+" ${object.location_dest_id.name}\n"
+" \n"
+" \n"
+" \n"
+"
\n"
+" % endif\n"
+" "
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_usage_giving_up
+msgid ""
+"\n"
+" \n"
+" Usage Giving Report \n"
+" \n"
+" \n"
+" "
+msgstr ""
+"\n"
+" \n"
+" Proces Verbal - Dare in Folosinta \n"
+" \n"
+" \n"
+" "
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_in_up
+msgid ""
+"\n"
+" Reception Note and Differences \n"
+" The undersigned, members of the reception commission, I received the material values provided by:\n"
+" ${object.partner_id.name},\n"
+" delegate: ${object.delegate_id.name if object.delegate_id else '.'*60 },\n"
+" car no.: ${object.mean_transp or \".\"*32},\n"
+" based on the accompanying documents: ${object.purchase_id.partner_ref+'; ' if object.purchase_id.partner_ref else ''}\n"
+" ${object.purchase_id.invoice_ids[0].name if object.purchase_id.invoice_ids else ''}\n"
+" ${'' if object.purchase_id.invoice_ids or object.purchase_id.partner_ref else '.'*60} , noting:\n"
+" \n"
+" "
+msgstr ""
+"\n"
+" Nota de Recepție si Constatare Diferențe \n"
+" Subsemnații, membrii ai comisiei de recepție, am primit valorile materiale furnizate de:\n"
+" ${object.partner_id.name},\n"
+" delegat: ${object.delegate_id.name if object.delegate_id else '.'*60 },\n"
+" auto nr.: ${object.mean_transp or \".\"*32},\n"
+" pe baza documentelor insoțitoare: ${object.purchase_id.partner_ref+'; ' if object.purchase_id.partner_ref else ''}\n"
+" ${object.purchase_id.invoice_ids[0].name if object.purchase_id.invoice_ids else ''}\n"
+" ${'' if object.purchase_id.invoice_ids or object.purchase_id.partner_ref else '.'*60} , constatand:\n"
+" \n"
+" "
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_consume_down
+msgid ""
+"\n"
+" \n"
+" \n"
+"
\n"
+" \n"
+" \n"
+" Elaborate \n"
+" Giver signature \n"
+" Date \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" Name: ${user.name} \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+"
\n"
+" "
+msgstr ""
+"\n"
+" \n"
+" \n"
+"
\n"
+" \n"
+" \n"
+" Intocmit de \n"
+" Semnatura predare \n"
+" Data \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" Nume: ${user.name} \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+"
\n"
+" "
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_internTransfer_down
+msgid ""
+"\n"
+" \n"
+" \n"
+"
\n"
+" \n"
+" \n"
+" Elaborate \n"
+" Giver signature \n"
+" Receiver signature \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" Name: ${user.name} \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+"
\n"
+" "
+msgstr ""
+"\n"
+" \n"
+" \n"
+"
\n"
+" \n"
+" \n"
+" Intocmit de \n"
+" Semnatura predare \n"
+" Semnatura primire \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" Nume: ${user.name} \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+"
\n"
+" "
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_out_down
+msgid ""
+"\n"
+" \n"
+" \n"
+"
\n"
+" \n"
+" \n"
+" Elaborate \n"
+" Information for delivery \n"
+" Signature reception \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" Name: ${user.name} \n"
+" \n"
+" \n"
+" Delegate: ${object.delegate_id.name if object.delegate_id else '.'*100 }
\n"
+" B.I./C.I.: ${'.'*100}
\n"
+" Mean Transport: ${object.mean_transp or \".\"*50}
\n"
+" Date: ${'.'*40} Hour: ${'.'*20}
\n"
+" \n"
+" \n"
+" \n"
+" \n"
+"
\n"
+" "
+msgstr ""
+"\n"
+" \n"
+" \n"
+"
\n"
+" \n"
+" \n"
+" Intocmit de \n"
+" Informatii Livrare \n"
+" Semnatura primire \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" Nume: ${user.name} \n"
+" \n"
+" \n"
+" Delegat: ${object.delegate_id.name if object.delegate_id else '.'*100 }
\n"
+" B.I./C.I.: ${'.'*100}
\n"
+" Mijloc Transport: ${object.mean_transp or \".\"*50}
\n"
+" Data: ${'.'*40} Ora: ${'.'*20}
\n"
+" \n"
+" \n"
+" \n"
+" \n"
+"
\n"
+" "
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_in_down
+msgid ""
+"\n"
+" \n"
+" \n"
+"
\n"
+" \n"
+" \n"
+" \n"
+" Members of the reception commission \n"
+" Signature \n"
+" Stock responsible \n"
+" Signature \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+"
\n"
+" \n"
+" \n"
+" \n"
+" \n"
+"
\n"
+" \n"
+" \n"
+" ${user.name} \n"
+" \n"
+" \n"
+" \n"
+" \n"
+"
\n"
+" \n"
+" \n"
+" \n"
+"
\n"
+" "
+msgstr ""
+"\n"
+" \n"
+" \n"
+"
\n"
+" \n"
+" \n"
+" \n"
+" Membrii ai comisiei de receptie \n"
+" Semnatura \n"
+" Gestionar \n"
+" Semnatura \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+"
\n"
+" \n"
+" \n"
+" \n"
+" \n"
+"
\n"
+" \n"
+" \n"
+" ${user.name} \n"
+" \n"
+" \n"
+" \n"
+" \n"
+"
\n"
+" \n"
+" \n"
+" \n"
+"
\n"
+" "
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking__delegate_id
+msgid "Delegate"
+msgstr "Delegat"
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_res_partner__mean_transp
+#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_res_users__mean_transp
+#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking__mean_transp
+msgid "Mean transport"
+msgstr "Mijloc de Transport"
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_consume_down
+msgid "Romania - Comment for Consume Voucher After Lines"
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_consume_up
+msgid "Romania - Comment for Consume Voucher Before Lines"
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_delivery_internTransfer
+msgid "Romania - Comment for Delivery + Internal Transfer Before Lines"
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_out_down
+msgid "Romania - Comment for Delivery After Lines"
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_internTransfer_down
+msgid "Romania - Comment for Internal Transfer Voucher After Lines"
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_in_down
+msgid "Romania - Comment for Reception After Lines"
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_in_up
+msgid "Romania - Comment for Reception Before Lines"
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_usage_giving_up
+msgid "Romania - Comment for Usage Giving Before Lines"
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:ir.actions.act_window,name:l10n_ro_stock_picking_comment_template.action_stock_picking_comment_template
+msgid "Stock Picking Comment Templates"
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:ir.model,name:l10n_ro_stock_picking_comment_template.model_stock_picking
+msgid "Transfer"
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:ir.model.fields,help:l10n_ro_stock_picking_comment_template.field_res_partner__mean_transp
+#: model:ir.model.fields,help:l10n_ro_stock_picking_comment_template.field_res_users__mean_transp
+msgid ""
+"Visible only in pickings, and can be modify only from there;is keeping all "
+"the time the last not null value"
+msgstr ""
diff --git a/l10n_ro_stock_picking_comment_template/models/__init__.py b/l10n_ro_stock_picking_comment_template/models/__init__.py
new file mode 100644
index 0000000000..548fc596ae
--- /dev/null
+++ b/l10n_ro_stock_picking_comment_template/models/__init__.py
@@ -0,0 +1,2 @@
+from . import res_partner
+from . import stock_picking
diff --git a/l10n_ro_stock_picking_comment_template/models/res_partner.py b/l10n_ro_stock_picking_comment_template/models/res_partner.py
new file mode 100644
index 0000000000..c75c633b46
--- /dev/null
+++ b/l10n_ro_stock_picking_comment_template/models/res_partner.py
@@ -0,0 +1,13 @@
+# Copyright (C) 2021 NextERP Romania
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
+from odoo import fields, models
+
+
+class ResPartner(models.Model):
+ _inherit = "res.partner"
+
+ mean_transp = fields.Char(
+ string="Mean transport",
+ help="Visible only in pickings, and can be modify only from there;"
+ "is keeping all the time the last not null value",
+ )
diff --git a/l10n_ro_stock_picking_comment_template/models/stock_picking.py b/l10n_ro_stock_picking_comment_template/models/stock_picking.py
new file mode 100644
index 0000000000..49e0d13827
--- /dev/null
+++ b/l10n_ro_stock_picking_comment_template/models/stock_picking.py
@@ -0,0 +1,34 @@
+# Copyright (C) 2021 NextERP Romania
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
+import logging
+
+from odoo import api, fields, models
+
+_logger = logging.getLogger(__name__)
+
+
+class StockPicking(models.Model):
+ _inherit = ["stock.picking", "comment.template"]
+ _name = "stock.picking"
+
+ delegate_id = fields.Many2one("res.partner", string="Delegate")
+ mean_transp = fields.Char(string="Mean transport")
+
+ @api.onchange("delegate_id")
+ def on_change_delegate_id(self):
+ if self.delegate_id:
+ self.mean_transp = self.delegate_id.mean_transp
+
+ def write(self, vals):
+ "if modified the mean_transp will write into delegate"
+ mean_transp = vals.get("mean_transp", False)
+ delegate_id = vals.get("delegate_id", False)
+ if mean_transp and delegate_id:
+ if (
+ mean_transp
+ != self.env["res.partner"].sudo().browse(delegate_id).mean_transp
+ ):
+ self.env["res.partner"].sudo().browse(delegate_id).write(
+ {"mean_transp": mean_transp}
+ )
+ return super().write(vals)
diff --git a/l10n_ro_stock_picking_comment_template/readme/CONTRIBUTORS.rst b/l10n_ro_stock_picking_comment_template/readme/CONTRIBUTORS.rst
new file mode 100644
index 0000000000..ef3ccc7c48
--- /dev/null
+++ b/l10n_ro_stock_picking_comment_template/readme/CONTRIBUTORS.rst
@@ -0,0 +1,5 @@
+* `NextERP Romania `_:
+
+ * Fekete Mihai
+
+Do not contact contributors directly about support or help with technical issues.
diff --git a/l10n_ro_stock_picking_comment_template/readme/DESCRIPTION.rst b/l10n_ro_stock_picking_comment_template/readme/DESCRIPTION.rst
new file mode 100644
index 0000000000..5ec850c5ff
--- /dev/null
+++ b/l10n_ro_stock_picking_comment_template/readme/DESCRIPTION.rst
@@ -0,0 +1 @@
+This module adds templates for stock picking report according to Romanian Legislation.
diff --git a/l10n_ro_stock_picking_comment_template/readme/USAGE.rst b/l10n_ro_stock_picking_comment_template/readme/USAGE.rst
new file mode 100644
index 0000000000..be1f90f2e8
--- /dev/null
+++ b/l10n_ro_stock_picking_comment_template/readme/USAGE.rst
@@ -0,0 +1,5 @@
+To use this module, you need to:
+
+#. Go to Inventory -> Configuration -> Stock Picking Comment
+#. Open the template that you want to modify
+#. Change the Comment field with the text that you want to be printed in the Stock Picking Report
diff --git a/l10n_ro_stock_picking_comment_template/security/ir.model.access.csv b/l10n_ro_stock_picking_comment_template/security/ir.model.access.csv
new file mode 100644
index 0000000000..ba945d53d7
--- /dev/null
+++ b/l10n_ro_stock_picking_comment_template/security/ir.model.access.csv
@@ -0,0 +1,3 @@
+id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
+access_base_comment_template_stock_user,access_base_comment_template stock_user,base_comment_template.model_base_comment_template,stock.group_stock_user,1,0,0,0
+access_base_comment_template_stock_manager,access_base_comment_template stock_manager,base_comment_template.model_base_comment_template,stock.group_stock_manager,1,1,1,1
diff --git a/l10n_ro_stock_picking_comment_template/static/description/icon.png b/l10n_ro_stock_picking_comment_template/static/description/icon.png
new file mode 100644
index 0000000000000000000000000000000000000000..7ba9c1019cd79fba46148ad7c5deb9917b98888f
GIT binary patch
literal 566
zcmeAS@N?(olHy`uVBq!ia0vp^4Is?H1|$#LC7uRSY)RhkEJY5_^DsH{Kw9(gzQN-aQds|CO;G9FQ
zYi=Gg=$yTQ%~blvj2ktH%sTs@%ricy`;G^w845n!G5h?hFxvW&|LL-O_x0}2KmPfj
z+2>7V=bZO%j`44wzy9;P4L|QMH8$QHYu!*Psc?>=kgdbmVGiRX9)a`*3+5w3P6+06
zU>K&Cv+tk8x6V~C_7PB2wZt`|BqgyV)hf9t6-Y4{85kPr8kp!B7=;*`SQ#5z8JTJu
z7+Dz@te?hFi=rVnKP5A*5>11F1zf}ale*?W4U!-mg7ec#$`gxH8OqDc^)mCai<1)z
YQuXqS(r3T3kpel+)78&qol`;+0JR&lX#fBK
literal 0
HcmV?d00001
diff --git a/l10n_ro_stock_picking_comment_template/static/description/icon.svg b/l10n_ro_stock_picking_comment_template/static/description/icon.svg
new file mode 100644
index 0000000000..a7a26d0932
--- /dev/null
+++ b/l10n_ro_stock_picking_comment_template/static/description/icon.svg
@@ -0,0 +1,79 @@
+
+
+
+
+
+
+
+ image/svg+xml
+
+
+
+
+
+
+
+
+
+
+
diff --git a/l10n_ro_stock_picking_comment_template/static/description/index.html b/l10n_ro_stock_picking_comment_template/static/description/index.html
new file mode 100644
index 0000000000..b6bc8835bd
--- /dev/null
+++ b/l10n_ro_stock_picking_comment_template/static/description/index.html
@@ -0,0 +1,127 @@
+
+
+
+
Module name
+
This module was written to extend the functionality of ... to support ... and allow you to ...
+
+
+
+
+
+
+
+
Installation
+
+
+
To install this module, you need to:
+
+
+
+
+
+
+
+
+
+
+
Configuration
+
+
+
To configure this module, you need to:
+
+
+
+
+
+
+
+
+
+
+
Usage
+
+
+
To use this module, you need to:
+
+
+
For further information, please visit:
+
+
+
+
+
+
+
+
+
+
+
Known issues / Roadmap
+
+
+
+
+ if the model stock_picking_repot_valued is is installed after this module will not work as intended
+ in this module we overwrite the field valued = fields.Boolean(related="partner_id.valued_picking", readonly=True) not to be partner related
+ we didn't put dependency on this module because that module is dependent on stock_account that is maybe not used
+
+
+
+
+
+
+
+
+
+
+
+
Credits
+
+
+
+
Maintainer
+
+ This module is maintained by the OCA.
+ 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.
+ To contribute to this module, please visit http://odoo-community.org .
+
+
+
+
+
diff --git a/l10n_ro_stock_picking_comment_template/views/base_comment_template_view.xml b/l10n_ro_stock_picking_comment_template/views/base_comment_template_view.xml
new file mode 100644
index 0000000000..f60d68d0dc
--- /dev/null
+++ b/l10n_ro_stock_picking_comment_template/views/base_comment_template_view.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+
+
+
diff --git a/l10n_ro_stock_picking_comment_template/views/report_delivery_document.xml b/l10n_ro_stock_picking_comment_template/views/report_delivery_document.xml
new file mode 100644
index 0000000000..3db082a2f9
--- /dev/null
+++ b/l10n_ro_stock_picking_comment_template/views/report_delivery_document.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+
diff --git a/l10n_ro_stock_picking_comment_template/views/report_picking.xml b/l10n_ro_stock_picking_comment_template/views/report_picking.xml
new file mode 100644
index 0000000000..060c39b89a
--- /dev/null
+++ b/l10n_ro_stock_picking_comment_template/views/report_picking.xml
@@ -0,0 +1,23 @@
+
+
+
+
+
+
diff --git a/l10n_ro_stock_picking_comment_template/views/stock_picking_view.xml b/l10n_ro_stock_picking_comment_template/views/stock_picking_view.xml
new file mode 100644
index 0000000000..1bd9607560
--- /dev/null
+++ b/l10n_ro_stock_picking_comment_template/views/stock_picking_view.xml
@@ -0,0 +1,33 @@
+
+
+
+ view_picking_add_delegate_form
+ stock.picking
+
+
+
+
+
+
+
+
+
+
+
+
+
From f0482425e111d91ed296411937cc0543738241c6 Mon Sep 17 00:00:00 2001
From: Mihai Fekete
Date: Sun, 24 Jul 2022 10:19:37 +0300
Subject: [PATCH 04/54] Change dependency until stock_picking_comment_template
is merged, move code in here.
---
.../views/base_comment_template_view.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/l10n_ro_stock_picking_comment_template/views/base_comment_template_view.xml b/l10n_ro_stock_picking_comment_template/views/base_comment_template_view.xml
index f60d68d0dc..499a5b70a1 100644
--- a/l10n_ro_stock_picking_comment_template/views/base_comment_template_view.xml
+++ b/l10n_ro_stock_picking_comment_template/views/base_comment_template_view.xml
@@ -19,7 +19,7 @@
From 23e248b06010e9fb2adb85604e298e07b84e0dae Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Tue, 26 Jul 2022 14:34:50 +0000
Subject: [PATCH 05/54] [UPD] README.rst
---
.../README.rst | 79 ++++++++++++-------
1 file changed, 52 insertions(+), 27 deletions(-)
diff --git a/l10n_ro_stock_picking_comment_template/README.rst b/l10n_ro_stock_picking_comment_template/README.rst
index 2e44c54d62..bdd316fdcd 100644
--- a/l10n_ro_stock_picking_comment_template/README.rst
+++ b/l10n_ro_stock_picking_comment_template/README.rst
@@ -1,24 +1,36 @@
-.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
- :alt: License: AGPL-3
-
========================================
Romania - Stock Picking Comment Template
========================================
-This module adds templates for stock picking report according to Romanian Legislation.
+.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ !! This file is generated by oca-gen-addon-readme !!
+ !! changes will be overwritten. !!
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
+ :target: https://odoo-community.org/page/development-status
+ :alt: Mature
+.. |badge2| image:: https://img.shields.io/badge/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%2Fl10n--romania-lightgray.png?logo=github
+ :target: https://github.com/OCA/l10n-romania/tree/14.0/l10n_ro_stock_picking_comment_template
+ :alt: OCA/l10n-romania
+.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
+ :target: https://translation.odoo-community.org/projects/l10n-romania-14-0/l10n-romania-14-0-l10n_ro_stock_picking_comment_template
+ :alt: Translate me on Weblate
+.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
+ :target: https://runbot.odoo-community.org/runbot/177/14.0
+ :alt: Try me on Runbot
+
+|badge1| |badge2| |badge3| |badge4| |badge5|
-Installation
-============
-
-To install this module, you need to:
+This module adds templates for stock picking report according to Romanian Legislation.
-* clone the branch 13.0 of the repository https://github.com/OCA/l10n-romania
-* add the path to this repository in your configuration (addons-path)
-* update the module list
-* search for "Romania - Stock Picking Comment Template" in your addons
-* install the module
+**Table of contents**
+.. contents::
+ :local:
Usage
=====
@@ -29,23 +41,26 @@ To use this module, you need to:
#. Open the template that you want to modify
#. Change the Comment field with the text that you want to be printed in the Stock Picking Report
-.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
- :alt: Try me on Runbot
- :target: https://runbot.odoo-community.org/runbot/177/13.0
-
Bug Tracker
===========
Bugs are tracked on `GitHub Issues `_.
In case of trouble, please check there if your issue has already been reported.
-If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
-`here `_.
+If you spotted it first, help us smashing it by providing a detailed and welcomed
+`feedback `_.
+
+Do not contact contributors directly about support or help with technical issues.
Credits
=======
+Authors
+~~~~~~~
+
+* NextERP Romania
+
Contributors
-------------
+~~~~~~~~~~~~
* `NextERP Romania `_:
@@ -53,17 +68,27 @@ Contributors
Do not contact contributors directly about support or help with technical issues.
-Maintainer
-----------
-
-.. image:: http://odoo-community.org/logo.png
- :alt: Odoo Community Association
- :target: http://odoo-community.org
+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.
-To contribute to this module, please visit http://odoo-community.org.
+.. |maintainer-feketemihai| image:: https://github.com/feketemihai.png?size=40px
+ :target: https://github.com/feketemihai
+ :alt: feketemihai
+
+Current `maintainer `__:
+
+|maintainer-feketemihai|
+
+This module is part of the `OCA/l10n-romania `_ project on GitHub.
+
+You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
From cc2be0c0dd7350c2515a9516562b6f605010c0d6 Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Tue, 26 Jul 2022 14:34:51 +0000
Subject: [PATCH 06/54] l10n_ro_stock_picking_comment_template 14.0.1.1.0
---
l10n_ro_stock_picking_comment_template/__manifest__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/l10n_ro_stock_picking_comment_template/__manifest__.py b/l10n_ro_stock_picking_comment_template/__manifest__.py
index 8cc8c8c327..e15058aede 100644
--- a/l10n_ro_stock_picking_comment_template/__manifest__.py
+++ b/l10n_ro_stock_picking_comment_template/__manifest__.py
@@ -22,7 +22,7 @@
"security/ir.model.access.csv",
],
"license": "AGPL-3",
- "version": "14.0.1.0.0",
+ "version": "14.0.1.1.0",
"author": "NextERP Romania," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-romania",
"installable": True,
From 5d00cc21a51d13044f4bf2659dd9d02c8849b147 Mon Sep 17 00:00:00 2001
From: Mihai Fekete
Date: Wed, 17 Aug 2022 15:03:10 +0300
Subject: [PATCH 07/54] Isolate l10n_ro_stock_picking_comment_template.
---
.../__manifest__.py | 2 +-
...l10n_ro_stock_picking_comment_template.xml | 46 +++++++++++--------
.../migrations/14.0.1.1.1/pre-migration.py | 33 +++++++++++++
.../models/res_partner.py | 2 +-
.../models/stock_picking.py | 29 ++++++------
.../views/base_comment_template_view.xml | 14 +++---
.../views/report_delivery_document.xml | 24 ++++++----
.../views/report_picking.xml | 24 ++++++----
.../views/stock_picking_view.xml | 16 +++++--
9 files changed, 127 insertions(+), 63 deletions(-)
create mode 100644 l10n_ro_stock_picking_comment_template/migrations/14.0.1.1.1/pre-migration.py
diff --git a/l10n_ro_stock_picking_comment_template/__manifest__.py b/l10n_ro_stock_picking_comment_template/__manifest__.py
index e15058aede..a6e7de02b5 100644
--- a/l10n_ro_stock_picking_comment_template/__manifest__.py
+++ b/l10n_ro_stock_picking_comment_template/__manifest__.py
@@ -22,7 +22,7 @@
"security/ir.model.access.csv",
],
"license": "AGPL-3",
- "version": "14.0.1.1.0",
+ "version": "14.0.1.1.1",
"author": "NextERP Romania," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-romania",
"installable": True,
diff --git a/l10n_ro_stock_picking_comment_template/data/l10n_ro_stock_picking_comment_template.xml b/l10n_ro_stock_picking_comment_template/data/l10n_ro_stock_picking_comment_template.xml
index cdbc6766ed..eebcc6ed52 100644
--- a/l10n_ro_stock_picking_comment_template/data/l10n_ro_stock_picking_comment_template.xml
+++ b/l10n_ro_stock_picking_comment_template/data/l10n_ro_stock_picking_comment_template.xml
@@ -4,14 +4,15 @@
- Romania - Comment for Delivery + Internal Transfer Before Lines
+
+ Romania - Comment for Delivery + Internal Transfer Before Lines
+
before_lines
[['location_dest_id.usage','not in',['usage_giving','consume','production']],
- '|',['picking_type_code', '=', 'outgoing'],['picking_type_code', '=', 'internal']]
+ ['is_l10n_ro_record', '=', True],
+ '|',['picking_type_code', '=', 'outgoing'],['picking_type_code', '=', 'internal']]
[['location_dest_id.usage','not in',['usage_giving','consume','production','internal']],
- '|',['picking_type_code', '=','outgoing'],['picking_type_code', '=', 'internal']]
+ ['is_l10n_ro_record', '=', True],
+ '|',['picking_type_code', '=','outgoing'],['picking_type_code', '=', 'internal']]
Name: ${user.name}
- Delegate: ${object.delegate_id.name if object.delegate_id else '.'*100 }
+ Delegate: ${object.l10n_ro_delegate_id.name if object.l10n_ro_delegate_id else '.'*100 }
B.I./C.I.: ${'.'*100}
- Mean Transport: ${object.mean_transp or "."*50}
+ Mean Transport: ${object.l10n_ro_mean_transp or "."*50}
Date: ${'.'*40} Hour: ${'.'*20}
@@ -94,15 +96,17 @@
Romania - Comment for Reception Before Lines
before_lines
- [['picking_type_code', '=', 'incoming']]
+
+ [['picking_type_code', '=', 'incoming'], ['is_l10n_ro_record', '=', True]]
+
Reception Note and Differences
The undersigned, members of the reception commission, I received the material values provided by:
${object.partner_id.name},
- delegate: ${object.delegate_id.name if object.delegate_id else '.'*60 },
- car no.: ${object.mean_transp or "."*32},
+ delegate: ${object.l10n_ro_delegate_id.name if object.l10n_ro_delegate_id else '.'*60 },
+ car no.: ${object.l10n_ro_mean_transp or "."*32},
based on the accompanying documents: ${object.purchase_id.partner_ref+'; ' if object.purchase_id.partner_ref else ''}
${object.purchase_id.invoice_ids[0].name if object.purchase_id.invoice_ids else ''}
${'' if object.purchase_id.invoice_ids or object.purchase_id.partner_ref else '.'*60} , noting:
@@ -113,7 +117,9 @@
Romania - Comment for Reception After Lines
after_lines
- [['picking_type_code', '=', 'incoming']]
+ [['picking_type_code', '=', 'incoming'], ['is_l10n_ro_record', '=', True]]
before_lines
- [['location_id.usage','=','internal'],['location_dest_id.usage','in',['consume','production']]]
+ [['location_id.usage','=','internal'],['location_dest_id.usage','in',['consume','production']],
+ ['is_l10n_ro_record', '=', True]]
before_lines
- [['location_id.usage','=','internal'],['location_dest_id.usage','=','usage_giving']]
+ [['location_id.usage','=','internal'],['location_dest_id.usage','=','usage_giving'], ['is_l10n_ro_record',
+ '=', True]]
after_lines
- [['location_id.usage','=','internal'],['location_dest_id.usage','in',['consume','production']]]
+ [['location_id.usage','=','internal'],['location_dest_id.usage','in',['consume','production']],
+ ['is_l10n_ro_record', '=', True]]
- Romania - Comment for Internal Transfer Voucher After Lines
+ Romania - Comment for Internal Transfer Voucher After Lines
+
after_lines
[['location_id.usage','=','internal'],['location_dest_id.usage','in',['usage_giving','internal']] ]
+ >[['location_id.usage','=','internal'],['location_dest_id.usage','in',['usage_giving','internal']],
+ ['is_l10n_ro_record', '=', True]]
+
-
+
diff --git a/l10n_ro_stock_picking_comment_template/views/report_delivery_document.xml b/l10n_ro_stock_picking_comment_template/views/report_delivery_document.xml
index 3db082a2f9..f6e47eea23 100644
--- a/l10n_ro_stock_picking_comment_template/views/report_delivery_document.xml
+++ b/l10n_ro_stock_picking_comment_template/views/report_delivery_document.xml
@@ -6,19 +6,23 @@
inherit_id="stock.report_delivery_document"
>
-
-
+
+
+
+
-
-
+
+
+
+
diff --git a/l10n_ro_stock_picking_comment_template/views/report_picking.xml b/l10n_ro_stock_picking_comment_template/views/report_picking.xml
index 060c39b89a..ac11c3d255 100644
--- a/l10n_ro_stock_picking_comment_template/views/report_picking.xml
+++ b/l10n_ro_stock_picking_comment_template/views/report_picking.xml
@@ -3,19 +3,23 @@
diff --git a/l10n_ro_stock_picking_comment_template/views/stock_picking_view.xml b/l10n_ro_stock_picking_comment_template/views/stock_picking_view.xml
index 1bd9607560..485fdb0061 100644
--- a/l10n_ro_stock_picking_comment_template/views/stock_picking_view.xml
+++ b/l10n_ro_stock_picking_comment_template/views/stock_picking_view.xml
@@ -6,12 +6,17 @@
+
+
-
@@ -23,7 +28,12 @@
-
+
+
From 930e68b68c40e6b8a722e5f2f76a8d0b63ff3991 Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Sat, 10 Sep 2022 09:09:20 +0000
Subject: [PATCH 08/54] l10n_ro_stock_picking_comment_template 14.0.2.0.0
---
l10n_ro_stock_picking_comment_template/__manifest__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/l10n_ro_stock_picking_comment_template/__manifest__.py b/l10n_ro_stock_picking_comment_template/__manifest__.py
index a6e7de02b5..371847b418 100644
--- a/l10n_ro_stock_picking_comment_template/__manifest__.py
+++ b/l10n_ro_stock_picking_comment_template/__manifest__.py
@@ -22,7 +22,7 @@
"security/ir.model.access.csv",
],
"license": "AGPL-3",
- "version": "14.0.1.1.1",
+ "version": "14.0.2.0.0",
"author": "NextERP Romania," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-romania",
"installable": True,
From 335dae47be88525c725018c98fc2394d08e6cb9b Mon Sep 17 00:00:00 2001
From: Mihai Fekete
Date: Tue, 13 Sep 2022 09:34:35 +0300
Subject: [PATCH 09/54] [14.0] [IMP] Improve comment template compute
---
.../models/__init__.py | 1 +
.../models/comment_template.py | 23 +++++++++++++++++++
2 files changed, 24 insertions(+)
create mode 100644 l10n_ro_stock_picking_comment_template/models/comment_template.py
diff --git a/l10n_ro_stock_picking_comment_template/models/__init__.py b/l10n_ro_stock_picking_comment_template/models/__init__.py
index 548fc596ae..3c5fd63f6d 100644
--- a/l10n_ro_stock_picking_comment_template/models/__init__.py
+++ b/l10n_ro_stock_picking_comment_template/models/__init__.py
@@ -1,2 +1,3 @@
+from . import comment_template
from . import res_partner
from . import stock_picking
diff --git a/l10n_ro_stock_picking_comment_template/models/comment_template.py b/l10n_ro_stock_picking_comment_template/models/comment_template.py
new file mode 100644
index 0000000000..54d769d0be
--- /dev/null
+++ b/l10n_ro_stock_picking_comment_template/models/comment_template.py
@@ -0,0 +1,23 @@
+# Copyright 2022 NextERP Romania SRL
+# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
+
+from odoo import models
+from odoo.tools.safe_eval import safe_eval
+
+
+class CommentTemplate(models.AbstractModel):
+ _inherit = "comment.template"
+
+ def _compute_comment_template_ids(self):
+ super()._compute_comment_template_ids()
+ for record in self.filtered(lambda r: not r.commnent_template_ids):
+ templates = self.env["base.comment.template"].search(
+ [
+ ("partner_id", "=", False),
+ ("model_ids.model", "=", self._name),
+ ]
+ )
+ for template in templates:
+ domain = safe_eval(template.domain)
+ if not domain or record.filtered_domain(domain):
+ record.comment_template_ids = [(4, template.id)]
From d53a1ad4414a9d276ea5484a9b25662399dc3946 Mon Sep 17 00:00:00 2001
From: Mihai Fekete
Date: Tue, 13 Sep 2022 10:02:42 +0300
Subject: [PATCH 10/54] [14.0] [IMP] Improve comment template compute
---
.../models/comment_template.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/l10n_ro_stock_picking_comment_template/models/comment_template.py b/l10n_ro_stock_picking_comment_template/models/comment_template.py
index 54d769d0be..96005bc0a4 100644
--- a/l10n_ro_stock_picking_comment_template/models/comment_template.py
+++ b/l10n_ro_stock_picking_comment_template/models/comment_template.py
@@ -10,7 +10,7 @@ class CommentTemplate(models.AbstractModel):
def _compute_comment_template_ids(self):
super()._compute_comment_template_ids()
- for record in self.filtered(lambda r: not r.commnent_template_ids):
+ for record in self.filtered(lambda r: not r.comment_template_ids):
templates = self.env["base.comment.template"].search(
[
("partner_id", "=", False),
From d1fad0735ff2888beb038bab3edf072ec63e7369 Mon Sep 17 00:00:00 2001
From: Mihai Fekete
Date: Tue, 13 Sep 2022 10:17:59 +0300
Subject: [PATCH 11/54] [14.0] [IMP] Improve comment template compute
---
.../models/comment_template.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/l10n_ro_stock_picking_comment_template/models/comment_template.py b/l10n_ro_stock_picking_comment_template/models/comment_template.py
index 96005bc0a4..eb75064b96 100644
--- a/l10n_ro_stock_picking_comment_template/models/comment_template.py
+++ b/l10n_ro_stock_picking_comment_template/models/comment_template.py
@@ -13,7 +13,7 @@ def _compute_comment_template_ids(self):
for record in self.filtered(lambda r: not r.comment_template_ids):
templates = self.env["base.comment.template"].search(
[
- ("partner_id", "=", False),
+ ("partner_ids", "=", False),
("model_ids.model", "=", self._name),
]
)
From b05cec99e73b80ebf994b2d8a6d307cb0869f41e Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Tue, 13 Sep 2022 07:34:01 +0000
Subject: [PATCH 12/54] l10n_ro_stock_picking_comment_template 14.0.2.1.0
---
l10n_ro_stock_picking_comment_template/__manifest__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/l10n_ro_stock_picking_comment_template/__manifest__.py b/l10n_ro_stock_picking_comment_template/__manifest__.py
index 371847b418..bac4ea0f45 100644
--- a/l10n_ro_stock_picking_comment_template/__manifest__.py
+++ b/l10n_ro_stock_picking_comment_template/__manifest__.py
@@ -22,7 +22,7 @@
"security/ir.model.access.csv",
],
"license": "AGPL-3",
- "version": "14.0.2.0.0",
+ "version": "14.0.2.1.0",
"author": "NextERP Romania," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-romania",
"installable": True,
From 4d53f5e8f2e7e3cab954b311303b8724858d7286 Mon Sep 17 00:00:00 2001
From: Mihai Fekete
Date: Thu, 6 Oct 2022 16:16:36 +0300
Subject: [PATCH 13/54] Update development status
---
l10n_ro_stock_picking_comment_template/__manifest__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/l10n_ro_stock_picking_comment_template/__manifest__.py b/l10n_ro_stock_picking_comment_template/__manifest__.py
index bac4ea0f45..39551cc175 100644
--- a/l10n_ro_stock_picking_comment_template/__manifest__.py
+++ b/l10n_ro_stock_picking_comment_template/__manifest__.py
@@ -26,6 +26,6 @@
"author": "NextERP Romania," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-romania",
"installable": True,
- "development_status": "Mature",
+ "development_status": "Beta",
"maintainers": ["feketemihai"],
}
From a868bfa7cf5f0b5506191dc0a5873cbaf91baa67 Mon Sep 17 00:00:00 2001
From: oca-ci
Date: Thu, 6 Oct 2022 14:52:18 +0000
Subject: [PATCH 14/54] [UPD] Update l10n_ro_stock_picking_comment_template.pot
---
...l10n_ro_stock_picking_comment_template.pot | 339 ++++++++++++++++++
.../i18n/ro.po | 159 +++++---
2 files changed, 458 insertions(+), 40 deletions(-)
create mode 100644 l10n_ro_stock_picking_comment_template/i18n/l10n_ro_stock_picking_comment_template.pot
diff --git a/l10n_ro_stock_picking_comment_template/i18n/l10n_ro_stock_picking_comment_template.pot b/l10n_ro_stock_picking_comment_template/i18n/l10n_ro_stock_picking_comment_template.pot
new file mode 100644
index 0000000000..7bc0923ec5
--- /dev/null
+++ b/l10n_ro_stock_picking_comment_template/i18n/l10n_ro_stock_picking_comment_template.pot
@@ -0,0 +1,339 @@
+# Translation of Odoo Server.
+# This file contains the translation of the following modules:
+# * l10n_ro_stock_picking_comment_template
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Odoo Server 14.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: l10n_ro_stock_picking_comment_template
+#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_consume_up
+msgid ""
+"\n"
+" \n"
+" Consume Voucher \n"
+" \n"
+" \n"
+" "
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_delivery_internTransfer
+msgid ""
+"\n"
+" \n"
+" Delivery Order \n"
+" \n"
+" % if object.picking_type_code == 'internal':\n"
+"\n"
+" \n"
+" \n"
+" \n"
+" \n"
+" Source Location\n"
+" \n"
+" \n"
+" Destination Location\n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" ${object.location_id.name}\n"
+" \n"
+" \n"
+" ${object.location_dest_id.name}\n"
+" \n"
+" \n"
+" \n"
+"
\n"
+" % endif\n"
+" "
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_usage_giving_up
+msgid ""
+"\n"
+" \n"
+" Usage Giving Report \n"
+" \n"
+" \n"
+" "
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_in_up
+msgid ""
+"\n"
+" Reception Note and Differences \n"
+" The undersigned, members of the reception commission, I received the material values provided by:\n"
+" ${object.partner_id.name},\n"
+" delegate: ${object.l10n_ro_delegate_id.name if object.l10n_ro_delegate_id else '.'*60 },\n"
+" car no.: ${object.l10n_ro_mean_transp or \".\"*32},\n"
+" based on the accompanying documents: ${object.purchase_id.partner_ref+'; ' if object.purchase_id.partner_ref else ''}\n"
+" ${object.purchase_id.invoice_ids[0].name if object.purchase_id.invoice_ids else ''}\n"
+" ${'' if object.purchase_id.invoice_ids or object.purchase_id.partner_ref else '.'*60} , noting:\n"
+" \n"
+" "
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_consume_down
+msgid ""
+"\n"
+" \n"
+" \n"
+"
\n"
+" \n"
+" \n"
+" Elaborate \n"
+" Giver signature \n"
+" Date \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" Name: ${user.name} \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+"
\n"
+" "
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_internTransfer_down
+msgid ""
+"\n"
+" \n"
+" \n"
+"
\n"
+" \n"
+" \n"
+" Elaborate \n"
+" Giver signature \n"
+" Receiver signature \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" Name: ${user.name} \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+"
\n"
+" "
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_out_down
+msgid ""
+"\n"
+" \n"
+" \n"
+"
\n"
+" \n"
+" \n"
+" Elaborate \n"
+" Information for delivery \n"
+" Signature reception \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" Name: ${user.name} \n"
+" \n"
+" \n"
+" Delegate: ${object.l10n_ro_delegate_id.name if object.l10n_ro_delegate_id else '.'*100 }
\n"
+" B.I./C.I.: ${'.'*100}
\n"
+" Mean Transport: ${object.l10n_ro_mean_transp or \".\"*50}
\n"
+" Date: ${'.'*40} Hour: ${'.'*20}
\n"
+" \n"
+" \n"
+" \n"
+" \n"
+"
\n"
+" "
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_in_down
+msgid ""
+"\n"
+" \n"
+" \n"
+"
\n"
+" \n"
+" \n"
+" \n"
+" Members of the reception commission \n"
+" Signature \n"
+" Stock responsible \n"
+" Signature \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+" \n"
+"
\n"
+" \n"
+" \n"
+" \n"
+" \n"
+"
\n"
+" \n"
+" \n"
+" ${user.name} \n"
+" \n"
+" \n"
+" \n"
+" \n"
+"
\n"
+" \n"
+" \n"
+" \n"
+"
\n"
+" "
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_delivery_internTransfer
+msgid ""
+"\n"
+" Romania - Comment for Delivery + Internal Transfer Before Lines\n"
+" "
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking__comment_template_ids
+msgid "Comment Template"
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model_terms:ir.ui.view,arch_db:l10n_ro_stock_picking_comment_template.stock_picking_form_add_comment
+msgid "Comments"
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:ir.model,name:l10n_ro_stock_picking_comment_template.model_res_partner
+msgid "Contact"
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking__l10n_ro_delegate_id
+msgid "Delegate"
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_comment_template__display_name
+#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_res_partner__display_name
+#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking__display_name
+msgid "Display Name"
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_comment_template__id
+#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_res_partner__id
+#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking__id
+msgid "ID"
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_comment_template____last_update
+#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_res_partner____last_update
+#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking____last_update
+msgid "Last Modified on"
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_res_partner__l10n_ro_mean_transp
+#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_res_users__l10n_ro_mean_transp
+#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking__l10n_ro_mean_transp
+msgid "Mean transport"
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_consume_down
+msgid "Romania - Comment for Consume Voucher After Lines"
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_consume_up
+msgid "Romania - Comment for Consume Voucher Before Lines"
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_out_down
+msgid "Romania - Comment for Delivery After Lines"
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_internTransfer_down
+msgid ""
+"Romania - Comment for Internal Transfer Voucher After Lines\n"
+" "
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_in_down
+msgid "Romania - Comment for Reception After Lines"
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_in_up
+msgid "Romania - Comment for Reception Before Lines"
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_usage_giving_up
+msgid "Romania - Comment for Usage Giving Before Lines"
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:ir.actions.act_window,name:l10n_ro_stock_picking_comment_template.action_stock_picking_comment_template
+#: model:ir.ui.menu,name:l10n_ro_stock_picking_comment_template.menu_base_comment_template_picking
+msgid "Romanian Stock Picking Comments"
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:ir.model,name:l10n_ro_stock_picking_comment_template.model_stock_picking
+msgid "Transfer"
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:ir.model.fields,help:l10n_ro_stock_picking_comment_template.field_res_partner__l10n_ro_mean_transp
+#: model:ir.model.fields,help:l10n_ro_stock_picking_comment_template.field_res_users__l10n_ro_mean_transp
+msgid ""
+"Visible only in pickings, and can be modify only from there;is keeping all "
+"the time the last not null value"
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:ir.model,name:l10n_ro_stock_picking_comment_template.model_comment_template
+msgid ""
+"base.comment.template to put header and footer in reports based on created "
+"comment templates"
+msgstr ""
diff --git a/l10n_ro_stock_picking_comment_template/i18n/ro.po b/l10n_ro_stock_picking_comment_template/i18n/ro.po
index 9b3dd448ae..b3238926fc 100644
--- a/l10n_ro_stock_picking_comment_template/i18n/ro.po
+++ b/l10n_ro_stock_picking_comment_template/i18n/ro.po
@@ -10,6 +10,7 @@ msgstr ""
"PO-Revision-Date: 2021-06-17 14:29+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
+"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
@@ -116,28 +117,39 @@ msgstr ""
#. module: l10n_ro_stock_picking_comment_template
#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_in_up
+#, fuzzy
msgid ""
"\n"
" Reception Note and Differences \n"
-" The undersigned, members of the reception commission, I received the material values provided by:\n"
+" The undersigned, members of the reception commission, I "
+"received the material values provided by:\n"
" ${object.partner_id.name},\n"
-" delegate: ${object.delegate_id.name if object.delegate_id else '.'*60 },\n"
-" car no.: ${object.mean_transp or \".\"*32},\n"
-" based on the accompanying documents: ${object.purchase_id.partner_ref+'; ' if object.purchase_id.partner_ref else ''}\n"
-" ${object.purchase_id.invoice_ids[0].name if object.purchase_id.invoice_ids else ''}\n"
-" ${'' if object.purchase_id.invoice_ids or object.purchase_id.partner_ref else '.'*60} , noting:\n"
+" delegate: ${object.l10n_ro_delegate_id.name if object."
+"l10n_ro_delegate_id else '.'*60 },\n"
+" car no.: ${object.l10n_ro_mean_transp or \".\"*32},\n"
+" based on the accompanying documents: ${object.purchase_id."
+"partner_ref+'; ' if object.purchase_id.partner_ref else ''}\n"
+" ${object.purchase_id."
+"invoice_ids[0].name if object.purchase_id.invoice_ids else ''}\n"
+" ${'' if object.purchase_id."
+"invoice_ids or object.purchase_id.partner_ref else '.'*60} , noting:\n"
" \n"
" "
msgstr ""
"\n"
" Nota de Recepție si Constatare Diferențe \n"
-" Subsemnații, membrii ai comisiei de recepție, am primit valorile materiale furnizate de:\n"
+" Subsemnații, membrii ai comisiei de recepție, am primit "
+"valorile materiale furnizate de:\n"
" ${object.partner_id.name},\n"
-" delegat: ${object.delegate_id.name if object.delegate_id else '.'*60 },\n"
+" delegat: ${object.delegate_id.name if object.delegate_id else "
+"'.'*60 },\n"
" auto nr.: ${object.mean_transp or \".\"*32},\n"
-" pe baza documentelor insoțitoare: ${object.purchase_id.partner_ref+'; ' if object.purchase_id.partner_ref else ''}\n"
-" ${object.purchase_id.invoice_ids[0].name if object.purchase_id.invoice_ids else ''}\n"
-" ${'' if object.purchase_id.invoice_ids or object.purchase_id.partner_ref else '.'*60} , constatand:\n"
+" pe baza documentelor insoțitoare: ${object.purchase_id."
+"partner_ref+'; ' if object.purchase_id.partner_ref else ''}\n"
+" ${object.purchase_id."
+"invoice_ids[0].name if object.purchase_id.invoice_ids else ''}\n"
+" ${'' if object.purchase_id."
+"invoice_ids or object.purchase_id.partner_ref else '.'*60} , constatand:\n"
" \n"
" "
@@ -148,7 +160,8 @@ msgid ""
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Elaborate \n"
@@ -173,7 +186,8 @@ msgstr ""
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Intocmit de \n"
@@ -201,7 +215,8 @@ msgid ""
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Elaborate \n"
@@ -226,7 +241,8 @@ msgstr ""
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Intocmit de \n"
@@ -249,12 +265,14 @@ msgstr ""
#. module: l10n_ro_stock_picking_comment_template
#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_out_down
+#, fuzzy
msgid ""
"\n"
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Elaborate \n"
@@ -268,10 +286,15 @@ msgid ""
" Name: ${user.name} \n"
" \n"
" \n"
-" Delegate: ${object.delegate_id.name if object.delegate_id else '.'*100 }
\n"
-" B.I./C.I.: ${'.'*100}
\n"
-" Mean Transport: ${object.mean_transp or \".\"*50}
\n"
-" Date: ${'.'*40} Hour: ${'.'*20}
\n"
+" Delegate: ${object."
+"l10n_ro_delegate_id.name if object.l10n_ro_delegate_id else '.'*100 }"
+"span>
\n"
+" B.I./C.I.: ${'.'*100} "
+"div>\n"
+"
Mean Transport: ${object."
+"l10n_ro_mean_transp or \".\"*50}
\n"
+"
Date: ${'.'*40} Hour: ${'.'*20}"
+"span>
\n"
"
\n"
" \n"
" \n"
@@ -283,7 +306,8 @@ msgstr ""
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Intocmit de \n"
@@ -297,10 +321,14 @@ msgstr ""
" Nume: ${user.name} \n"
" \n"
" \n"
-" Delegat: ${object.delegate_id.name if object.delegate_id else '.'*100 }
\n"
-" B.I./C.I.: ${'.'*100}
\n"
-" Mijloc Transport: ${object.mean_transp or \".\"*50}
\n"
-" Data: ${'.'*40} Ora: ${'.'*20}
\n"
+" Delegat: ${object.delegate_id.name if "
+"object.delegate_id else '.'*100 }
\n"
+" B.I./C.I.: ${'.'*100} "
+"div>\n"
+"
Mijloc Transport: ${object."
+"mean_transp or \".\"*50}
\n"
+"
Data: ${'.'*40} Ora: ${'.'*20}"
+"span>
\n"
"
\n"
" \n"
" \n"
@@ -318,7 +346,8 @@ msgid ""
" \n"
" \n"
" \n"
-" Members of the reception commission \n"
+" Members of the reception "
+"commission \n"
" Signature \n"
" Stock responsible \n"
" Signature \n"
@@ -356,7 +385,8 @@ msgstr ""
" \n"
" \n"
" \n"
-" Membrii ai comisiei de receptie \n"
+" Membrii ai comisiei de receptie"
+"th>\n"
" Semnatura \n"
" Gestionar \n"
" Semnatura \n"
@@ -388,14 +418,58 @@ msgstr ""
" "
#. module: l10n_ro_stock_picking_comment_template
-#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking__delegate_id
+#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_delivery_internTransfer
+msgid ""
+"\n"
+" Romania - Comment for Delivery + Internal Transfer Before Lines\n"
+" "
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking__comment_template_ids
+msgid "Comment Template"
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model_terms:ir.ui.view,arch_db:l10n_ro_stock_picking_comment_template.stock_picking_form_add_comment
+msgid "Comments"
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:ir.model,name:l10n_ro_stock_picking_comment_template.model_res_partner
+msgid "Contact"
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking__l10n_ro_delegate_id
msgid "Delegate"
msgstr "Delegat"
#. module: l10n_ro_stock_picking_comment_template
-#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_res_partner__mean_transp
-#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_res_users__mean_transp
-#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking__mean_transp
+#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_comment_template__display_name
+#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_res_partner__display_name
+#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking__display_name
+msgid "Display Name"
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_comment_template__id
+#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_res_partner__id
+#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking__id
+msgid "ID"
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_comment_template____last_update
+#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_res_partner____last_update
+#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking____last_update
+msgid "Last Modified on"
+msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_res_partner__l10n_ro_mean_transp
+#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_res_users__l10n_ro_mean_transp
+#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking__l10n_ro_mean_transp
msgid "Mean transport"
msgstr "Mijloc de Transport"
@@ -409,11 +483,6 @@ msgstr ""
msgid "Romania - Comment for Consume Voucher Before Lines"
msgstr ""
-#. module: l10n_ro_stock_picking_comment_template
-#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_delivery_internTransfer
-msgid "Romania - Comment for Delivery + Internal Transfer Before Lines"
-msgstr ""
-
#. module: l10n_ro_stock_picking_comment_template
#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_out_down
msgid "Romania - Comment for Delivery After Lines"
@@ -421,7 +490,9 @@ msgstr ""
#. module: l10n_ro_stock_picking_comment_template
#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_internTransfer_down
-msgid "Romania - Comment for Internal Transfer Voucher After Lines"
+msgid ""
+"Romania - Comment for Internal Transfer Voucher After Lines\n"
+" "
msgstr ""
#. module: l10n_ro_stock_picking_comment_template
@@ -441,7 +512,8 @@ msgstr ""
#. module: l10n_ro_stock_picking_comment_template
#: model:ir.actions.act_window,name:l10n_ro_stock_picking_comment_template.action_stock_picking_comment_template
-msgid "Stock Picking Comment Templates"
+#: model:ir.ui.menu,name:l10n_ro_stock_picking_comment_template.menu_base_comment_template_picking
+msgid "Romanian Stock Picking Comments"
msgstr ""
#. module: l10n_ro_stock_picking_comment_template
@@ -450,9 +522,16 @@ msgid "Transfer"
msgstr ""
#. module: l10n_ro_stock_picking_comment_template
-#: model:ir.model.fields,help:l10n_ro_stock_picking_comment_template.field_res_partner__mean_transp
-#: model:ir.model.fields,help:l10n_ro_stock_picking_comment_template.field_res_users__mean_transp
+#: model:ir.model.fields,help:l10n_ro_stock_picking_comment_template.field_res_partner__l10n_ro_mean_transp
+#: model:ir.model.fields,help:l10n_ro_stock_picking_comment_template.field_res_users__l10n_ro_mean_transp
msgid ""
"Visible only in pickings, and can be modify only from there;is keeping all "
"the time the last not null value"
msgstr ""
+
+#. module: l10n_ro_stock_picking_comment_template
+#: model:ir.model,name:l10n_ro_stock_picking_comment_template.model_comment_template
+msgid ""
+"base.comment.template to put header and footer in reports based on created "
+"comment templates"
+msgstr ""
From b3faa0a9aa599f72c4c33e068dcdce4ecdac6ca0 Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Thu, 6 Oct 2022 15:04:35 +0000
Subject: [PATCH 15/54] [UPD] README.rst
---
l10n_ro_stock_picking_comment_template/README.rst | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/l10n_ro_stock_picking_comment_template/README.rst b/l10n_ro_stock_picking_comment_template/README.rst
index bdd316fdcd..267c90d048 100644
--- a/l10n_ro_stock_picking_comment_template/README.rst
+++ b/l10n_ro_stock_picking_comment_template/README.rst
@@ -7,9 +7,9 @@ Romania - Stock Picking Comment Template
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
+.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
- :alt: Mature
+ :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
From 8c46b435d65c23643f401e8dd1c291e4427fe185 Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Thu, 6 Oct 2022 15:04:36 +0000
Subject: [PATCH 16/54] l10n_ro_stock_picking_comment_template 14.0.2.2.0
---
l10n_ro_stock_picking_comment_template/__manifest__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/l10n_ro_stock_picking_comment_template/__manifest__.py b/l10n_ro_stock_picking_comment_template/__manifest__.py
index 39551cc175..dacfc52479 100644
--- a/l10n_ro_stock_picking_comment_template/__manifest__.py
+++ b/l10n_ro_stock_picking_comment_template/__manifest__.py
@@ -22,7 +22,7 @@
"security/ir.model.access.csv",
],
"license": "AGPL-3",
- "version": "14.0.2.1.0",
+ "version": "14.0.2.2.0",
"author": "NextERP Romania," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-romania",
"installable": True,
From 0a9cc426f5372edffec18588eb5a298c77b27607 Mon Sep 17 00:00:00 2001
From: Mihai Fekete
Date: Fri, 23 Dec 2022 11:38:45 +0200
Subject: [PATCH 17/54] Update translations
---
.../i18n/ro.po | 32 +++++++++++--------
1 file changed, 19 insertions(+), 13 deletions(-)
diff --git a/l10n_ro_stock_picking_comment_template/i18n/ro.po b/l10n_ro_stock_picking_comment_template/i18n/ro.po
index b3238926fc..1a12752332 100644
--- a/l10n_ro_stock_picking_comment_template/i18n/ro.po
+++ b/l10n_ro_stock_picking_comment_template/i18n/ro.po
@@ -428,17 +428,17 @@ msgstr ""
#. module: l10n_ro_stock_picking_comment_template
#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking__comment_template_ids
msgid "Comment Template"
-msgstr ""
+msgstr "Șablon comentariu"
#. module: l10n_ro_stock_picking_comment_template
#: model_terms:ir.ui.view,arch_db:l10n_ro_stock_picking_comment_template.stock_picking_form_add_comment
msgid "Comments"
-msgstr ""
+msgstr "Comentarii"
#. module: l10n_ro_stock_picking_comment_template
#: model:ir.model,name:l10n_ro_stock_picking_comment_template.model_res_partner
msgid "Contact"
-msgstr ""
+msgstr "Contact"
#. module: l10n_ro_stock_picking_comment_template
#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking__l10n_ro_delegate_id
@@ -450,21 +450,21 @@ msgstr "Delegat"
#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_res_partner__display_name
#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking__display_name
msgid "Display Name"
-msgstr ""
+msgstr "Nume afișat"
#. module: l10n_ro_stock_picking_comment_template
#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_comment_template__id
#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_res_partner__id
#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking__id
msgid "ID"
-msgstr ""
+msgstr "ID"
#. module: l10n_ro_stock_picking_comment_template
#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_comment_template____last_update
#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_res_partner____last_update
#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking____last_update
msgid "Last Modified on"
-msgstr ""
+msgstr "Ultima modificare pe"
#. module: l10n_ro_stock_picking_comment_template
#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_res_partner__l10n_ro_mean_transp
@@ -476,17 +476,17 @@ msgstr "Mijloc de Transport"
#. module: l10n_ro_stock_picking_comment_template
#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_consume_down
msgid "Romania - Comment for Consume Voucher After Lines"
-msgstr ""
+msgstr "Comentariu pentru bonuri de consum dupa linii"
#. module: l10n_ro_stock_picking_comment_template
#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_consume_up
msgid "Romania - Comment for Consume Voucher Before Lines"
-msgstr ""
+msgstr "Comentariu pentru bonuri de consum inainte de linii"
#. module: l10n_ro_stock_picking_comment_template
#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_out_down
msgid "Romania - Comment for Delivery After Lines"
-msgstr ""
+msgstr "Comentariu pentru avize de livrare dupa linii"
#. module: l10n_ro_stock_picking_comment_template
#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_internTransfer_down
@@ -494,6 +494,8 @@ msgid ""
"Romania - Comment for Internal Transfer Voucher After Lines\n"
" "
msgstr ""
+"Comentariu pentru transferuri interne dupa linii\n"
+" "
#. module: l10n_ro_stock_picking_comment_template
#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_in_down
@@ -503,23 +505,23 @@ msgstr ""
#. module: l10n_ro_stock_picking_comment_template
#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_in_up
msgid "Romania - Comment for Reception Before Lines"
-msgstr ""
+msgstr "Comentariu pentru receptii inainte de linii"
#. module: l10n_ro_stock_picking_comment_template
#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_usage_giving_up
msgid "Romania - Comment for Usage Giving Before Lines"
-msgstr ""
+msgstr "Comentariu pentru proces dare in folosinta inainte de linii"
#. module: l10n_ro_stock_picking_comment_template
#: model:ir.actions.act_window,name:l10n_ro_stock_picking_comment_template.action_stock_picking_comment_template
#: model:ir.ui.menu,name:l10n_ro_stock_picking_comment_template.menu_base_comment_template_picking
msgid "Romanian Stock Picking Comments"
-msgstr ""
+msgstr "Comentarii Transferuri Stoc"
#. module: l10n_ro_stock_picking_comment_template
#: model:ir.model,name:l10n_ro_stock_picking_comment_template.model_stock_picking
msgid "Transfer"
-msgstr ""
+msgstr "Transfer"
#. module: l10n_ro_stock_picking_comment_template
#: model:ir.model.fields,help:l10n_ro_stock_picking_comment_template.field_res_partner__l10n_ro_mean_transp
@@ -528,6 +530,8 @@ msgid ""
"Visible only in pickings, and can be modify only from there;is keeping all "
"the time the last not null value"
msgstr ""
+"Vizibil doar în transferuri stoc, și poate fi modificat doar de acolo; isi păstreaza "
+"ultima valoare nenulă"
#. module: l10n_ro_stock_picking_comment_template
#: model:ir.model,name:l10n_ro_stock_picking_comment_template.model_comment_template
@@ -535,3 +539,5 @@ msgid ""
"base.comment.template to put header and footer in reports based on created "
"comment templates"
msgstr ""
+"base.comment.template pentru a pune antet și subsol în rapoartele bazate pe "
+"modele de comentarii"
From 968573f99808a705685361eb92fea7c2fe0dcada Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Fri, 23 Dec 2022 14:46:06 +0000
Subject: [PATCH 18/54] l10n_ro_stock_picking_comment_template 14.0.2.3.0
---
l10n_ro_stock_picking_comment_template/__manifest__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/l10n_ro_stock_picking_comment_template/__manifest__.py b/l10n_ro_stock_picking_comment_template/__manifest__.py
index dacfc52479..48e99f7f4d 100644
--- a/l10n_ro_stock_picking_comment_template/__manifest__.py
+++ b/l10n_ro_stock_picking_comment_template/__manifest__.py
@@ -22,7 +22,7 @@
"security/ir.model.access.csv",
],
"license": "AGPL-3",
- "version": "14.0.2.2.0",
+ "version": "14.0.2.3.0",
"author": "NextERP Romania," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-romania",
"installable": True,
From c6c9dc3c8955a528f9ae8a0ea4619e8d8b902509 Mon Sep 17 00:00:00 2001
From: Stana Natanaela
Date: Thu, 6 Apr 2023 09:44:35 +0300
Subject: [PATCH 19/54] [MIG] l10n_ro_stock_picking_comment_template: Migration
to 15.0
---
.../__manifest__.py | 2 +-
...l10n_ro_stock_picking_comment_template.xml | 8 +++++
.../migrations/14.0.1.1.1/pre-migration.py | 33 -------------------
.../models/comment_template.py | 3 +-
.../views/base_comment_template_view.xml | 5 +--
5 files changed, 12 insertions(+), 39 deletions(-)
delete mode 100644 l10n_ro_stock_picking_comment_template/migrations/14.0.1.1.1/pre-migration.py
diff --git a/l10n_ro_stock_picking_comment_template/__manifest__.py b/l10n_ro_stock_picking_comment_template/__manifest__.py
index 48e99f7f4d..873089abe4 100644
--- a/l10n_ro_stock_picking_comment_template/__manifest__.py
+++ b/l10n_ro_stock_picking_comment_template/__manifest__.py
@@ -22,7 +22,7 @@
"security/ir.model.access.csv",
],
"license": "AGPL-3",
- "version": "14.0.2.3.0",
+ "version": "15.0.1.0.0",
"author": "NextERP Romania," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-romania",
"installable": True,
diff --git a/l10n_ro_stock_picking_comment_template/data/l10n_ro_stock_picking_comment_template.xml b/l10n_ro_stock_picking_comment_template/data/l10n_ro_stock_picking_comment_template.xml
index eebcc6ed52..da15cba708 100644
--- a/l10n_ro_stock_picking_comment_template/data/l10n_ro_stock_picking_comment_template.xml
+++ b/l10n_ro_stock_picking_comment_template/data/l10n_ro_stock_picking_comment_template.xml
@@ -8,6 +8,7 @@
Romania - Comment for Delivery + Internal Transfer Before Lines
before_lines
+ stock.picking
[['location_dest_id.usage','not in',['usage_giving','consume','production']],
@@ -52,6 +53,7 @@
Romania - Comment for Delivery After Lines
after_lines
+ stock.picking
Romania - Comment for Reception Before Lines
before_lines
+ stock.picking
[['picking_type_code', '=', 'incoming'], ['is_l10n_ro_record', '=', True]]
@@ -116,6 +119,7 @@
Romania - Comment for Reception After Lines
after_lines
+ stock.picking
Romania - Comment for Consume Voucher Before Lines
before_lines
+ stock.picking
[['location_id.usage','=','internal'],['location_dest_id.usage','in',['consume','production']],
@@ -184,6 +189,7 @@
Romania - Comment for Usage Giving Before Lines
before_lines
+ stock.picking
[['location_id.usage','=','internal'],['location_dest_id.usage','=','usage_giving'], ['is_l10n_ro_record',
@@ -201,6 +207,7 @@
Romania - Comment for Consume Voucher After Lines
after_lines
+ stock.picking
[['location_id.usage','=','internal'],['location_dest_id.usage','in',['consume','production']],
@@ -238,6 +245,7 @@
Romania - Comment for Internal Transfer Voucher After Lines
after_lines
+ stock.picking
ir.actions.act_window
base.comment.template
tree,form
-
+
Date: Thu, 6 Apr 2023 14:57:28 +0000
Subject: [PATCH 20/54] [UPD] Update l10n_ro_stock_picking_comment_template.pot
---
...l10n_ro_stock_picking_comment_template.pot | 23 +------------------
1 file changed, 1 insertion(+), 22 deletions(-)
diff --git a/l10n_ro_stock_picking_comment_template/i18n/l10n_ro_stock_picking_comment_template.pot b/l10n_ro_stock_picking_comment_template/i18n/l10n_ro_stock_picking_comment_template.pot
index 7bc0923ec5..0befd0cfb4 100644
--- a/l10n_ro_stock_picking_comment_template/i18n/l10n_ro_stock_picking_comment_template.pot
+++ b/l10n_ro_stock_picking_comment_template/i18n/l10n_ro_stock_picking_comment_template.pot
@@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 14.0\n"
+"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
@@ -247,27 +247,6 @@ msgstr ""
msgid "Delegate"
msgstr ""
-#. module: l10n_ro_stock_picking_comment_template
-#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_comment_template__display_name
-#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_res_partner__display_name
-#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking__display_name
-msgid "Display Name"
-msgstr ""
-
-#. module: l10n_ro_stock_picking_comment_template
-#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_comment_template__id
-#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_res_partner__id
-#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking__id
-msgid "ID"
-msgstr ""
-
-#. module: l10n_ro_stock_picking_comment_template
-#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_comment_template____last_update
-#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_res_partner____last_update
-#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking____last_update
-msgid "Last Modified on"
-msgstr ""
-
#. module: l10n_ro_stock_picking_comment_template
#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_res_partner__l10n_ro_mean_transp
#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_res_users__l10n_ro_mean_transp
From d2c75533c05c5f072c4364759d93fc03fdfaaf16 Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Thu, 6 Apr 2023 15:12:37 +0000
Subject: [PATCH 21/54] [UPD] README.rst
---
l10n_ro_stock_picking_comment_template/README.rst | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/l10n_ro_stock_picking_comment_template/README.rst b/l10n_ro_stock_picking_comment_template/README.rst
index 267c90d048..99eabe633c 100644
--- a/l10n_ro_stock_picking_comment_template/README.rst
+++ b/l10n_ro_stock_picking_comment_template/README.rst
@@ -14,13 +14,13 @@ Romania - Stock Picking Comment Template
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--romania-lightgray.png?logo=github
- :target: https://github.com/OCA/l10n-romania/tree/14.0/l10n_ro_stock_picking_comment_template
+ :target: https://github.com/OCA/l10n-romania/tree/15.0/l10n_ro_stock_picking_comment_template
:alt: OCA/l10n-romania
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/l10n-romania-14-0/l10n-romania-14-0-l10n_ro_stock_picking_comment_template
+ :target: https://translation.odoo-community.org/projects/l10n-romania-15-0/l10n-romania-15-0-l10n_ro_stock_picking_comment_template
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
- :target: https://runbot.odoo-community.org/runbot/177/14.0
+ :target: https://runbot.odoo-community.org/runbot/177/15.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -47,7 +47,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues `_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
-`feedback `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -89,6 +89,6 @@ Current `maintainer `__:
|maintainer-feketemihai|
-This module is part of the `OCA/l10n-romania `_ project on GitHub.
+This module is part of the `OCA/l10n-romania `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
From 091a19e45e6a92ba260119d6d36b67985105b5fd Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Thu, 6 Apr 2023 15:12:38 +0000
Subject: [PATCH 22/54] l10n_ro_stock_picking_comment_template 15.0.1.1.0
---
l10n_ro_stock_picking_comment_template/__manifest__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/l10n_ro_stock_picking_comment_template/__manifest__.py b/l10n_ro_stock_picking_comment_template/__manifest__.py
index 873089abe4..1c79b2e72c 100644
--- a/l10n_ro_stock_picking_comment_template/__manifest__.py
+++ b/l10n_ro_stock_picking_comment_template/__manifest__.py
@@ -22,7 +22,7 @@
"security/ir.model.access.csv",
],
"license": "AGPL-3",
- "version": "15.0.1.0.0",
+ "version": "15.0.1.1.0",
"author": "NextERP Romania," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-romania",
"installable": True,
From afabfbd6cc2341b6b5a94549593ae8b4c72b8a19 Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Sun, 3 Sep 2023 13:53:55 +0000
Subject: [PATCH 23/54] [UPD] README.rst
---
l10n_ro_stock_picking_comment_template/README.rst | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/l10n_ro_stock_picking_comment_template/README.rst b/l10n_ro_stock_picking_comment_template/README.rst
index 99eabe633c..aa594bcbd8 100644
--- a/l10n_ro_stock_picking_comment_template/README.rst
+++ b/l10n_ro_stock_picking_comment_template/README.rst
@@ -2,10 +2,13 @@
Romania - Stock Picking Comment Template
========================================
-.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+..
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+ !! source digest: sha256:26b2fce13e565bad9c9fccc6866742591fa2ae5df8dbe05eb6e1837409d4e69e
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
@@ -19,11 +22,11 @@ Romania - Stock Picking Comment Template
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/l10n-romania-15-0/l10n-romania-15-0-l10n_ro_stock_picking_comment_template
:alt: Translate me on Weblate
-.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
- :target: https://runbot.odoo-community.org/runbot/177/15.0
- :alt: Try me on Runbot
+.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-romania&target_branch=15.0
+ :alt: Try me on Runboat
-|badge1| |badge2| |badge3| |badge4| |badge5|
+|badge1| |badge2| |badge3| |badge4| |badge5|
This module adds templates for stock picking report according to Romanian Legislation.
@@ -46,7 +49,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues `_.
In case of trouble, please check there if your issue has already been reported.
-If you spotted it first, help us smashing it by providing a detailed and welcomed
+If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback `_.
Do not contact contributors directly about support or help with technical issues.
From 51b9b909d1f18f83f8cb848f6845861e0419f9c2 Mon Sep 17 00:00:00 2001
From: Stana Natanaela
Date: Mon, 18 Sep 2023 11:43:19 +0300
Subject: [PATCH 24/54] [15.0][UP] modificare print: verificare daca este tara
RO
---
.../views/report_delivery_document.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/l10n_ro_stock_picking_comment_template/views/report_delivery_document.xml b/l10n_ro_stock_picking_comment_template/views/report_delivery_document.xml
index f6e47eea23..e9eeb0ecc9 100644
--- a/l10n_ro_stock_picking_comment_template/views/report_delivery_document.xml
+++ b/l10n_ro_stock_picking_comment_template/views/report_delivery_document.xml
@@ -6,7 +6,7 @@
inherit_id="stock.report_delivery_document"
>
-
+
-
+
Date: Mon, 18 Sep 2023 11:19:13 +0000
Subject: [PATCH 25/54] oca-github-bot post-merge updates
---
l10n_ro_stock_picking_comment_template/README.rst | 2 +-
l10n_ro_stock_picking_comment_template/__manifest__.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/l10n_ro_stock_picking_comment_template/README.rst b/l10n_ro_stock_picking_comment_template/README.rst
index aa594bcbd8..6de06f0304 100644
--- a/l10n_ro_stock_picking_comment_template/README.rst
+++ b/l10n_ro_stock_picking_comment_template/README.rst
@@ -7,7 +7,7 @@ Romania - Stock Picking Comment Template
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- !! source digest: sha256:26b2fce13e565bad9c9fccc6866742591fa2ae5df8dbe05eb6e1837409d4e69e
+ !! source digest: sha256:6d334a083b3c5301a6ecbca55b578ff85a51eadc0b257fbad6f5fec426a66adc
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
diff --git a/l10n_ro_stock_picking_comment_template/__manifest__.py b/l10n_ro_stock_picking_comment_template/__manifest__.py
index 1c79b2e72c..ac5ba418cd 100644
--- a/l10n_ro_stock_picking_comment_template/__manifest__.py
+++ b/l10n_ro_stock_picking_comment_template/__manifest__.py
@@ -22,7 +22,7 @@
"security/ir.model.access.csv",
],
"license": "AGPL-3",
- "version": "15.0.1.1.0",
+ "version": "15.0.1.2.0",
"author": "NextERP Romania," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-romania",
"installable": True,
From c1b14a38043cdff8c0f6704dd284e9ccd9654136 Mon Sep 17 00:00:00 2001
From: Weblate
Date: Mon, 9 Oct 2023 22:23:16 +0000
Subject: [PATCH 26/54] Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: l10n-romania-15.0/l10n-romania-15.0-l10n_ro_stock_picking_comment_template
Translate-URL: https://translation.odoo-community.org/projects/l10n-romania-15-0/l10n-romania-15-0-l10n_ro_stock_picking_comment_template/
---
.../i18n/ro.po | 34 ++++++-------------
1 file changed, 11 insertions(+), 23 deletions(-)
diff --git a/l10n_ro_stock_picking_comment_template/i18n/ro.po b/l10n_ro_stock_picking_comment_template/i18n/ro.po
index 1a12752332..690185a068 100644
--- a/l10n_ro_stock_picking_comment_template/i18n/ro.po
+++ b/l10n_ro_stock_picking_comment_template/i18n/ro.po
@@ -445,27 +445,6 @@ msgstr "Contact"
msgid "Delegate"
msgstr "Delegat"
-#. module: l10n_ro_stock_picking_comment_template
-#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_comment_template__display_name
-#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_res_partner__display_name
-#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking__display_name
-msgid "Display Name"
-msgstr "Nume afișat"
-
-#. module: l10n_ro_stock_picking_comment_template
-#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_comment_template__id
-#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_res_partner__id
-#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking__id
-msgid "ID"
-msgstr "ID"
-
-#. module: l10n_ro_stock_picking_comment_template
-#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_comment_template____last_update
-#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_res_partner____last_update
-#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking____last_update
-msgid "Last Modified on"
-msgstr "Ultima modificare pe"
-
#. module: l10n_ro_stock_picking_comment_template
#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_res_partner__l10n_ro_mean_transp
#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_res_users__l10n_ro_mean_transp
@@ -530,8 +509,8 @@ msgid ""
"Visible only in pickings, and can be modify only from there;is keeping all "
"the time the last not null value"
msgstr ""
-"Vizibil doar în transferuri stoc, și poate fi modificat doar de acolo; isi păstreaza "
-"ultima valoare nenulă"
+"Vizibil doar în transferuri stoc, și poate fi modificat doar de acolo; isi "
+"păstreaza ultima valoare nenulă"
#. module: l10n_ro_stock_picking_comment_template
#: model:ir.model,name:l10n_ro_stock_picking_comment_template.model_comment_template
@@ -541,3 +520,12 @@ msgid ""
msgstr ""
"base.comment.template pentru a pune antet și subsol în rapoartele bazate pe "
"modele de comentarii"
+
+#~ msgid "Display Name"
+#~ msgstr "Nume afișat"
+
+#~ msgid "ID"
+#~ msgstr "ID"
+
+#~ msgid "Last Modified on"
+#~ msgstr "Ultima modificare pe"
From 0181c22eec921a17409bc8b6c0d63b69ec49c596 Mon Sep 17 00:00:00 2001
From: Mihai Fekete
Date: Wed, 3 Apr 2024 19:45:11 +0300
Subject: [PATCH 27/54] [MIG] l10n_ro_stock_picking_comment_template: Migration
to 16.0
---
l10n_ro_stock_picking_comment_template/README.rst | 12 ++++++------
.../__manifest__.py | 4 +---
2 files changed, 7 insertions(+), 9 deletions(-)
diff --git a/l10n_ro_stock_picking_comment_template/README.rst b/l10n_ro_stock_picking_comment_template/README.rst
index 6de06f0304..d684aea5eb 100644
--- a/l10n_ro_stock_picking_comment_template/README.rst
+++ b/l10n_ro_stock_picking_comment_template/README.rst
@@ -7,7 +7,7 @@ Romania - Stock Picking Comment Template
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- !! source digest: sha256:6d334a083b3c5301a6ecbca55b578ff85a51eadc0b257fbad6f5fec426a66adc
+ !! source digest: sha256:61f08715d7804355f9a2fbe44927a0dd0cea2f939f04994f94dd739807832a92
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -17,13 +17,13 @@ Romania - Stock Picking Comment Template
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--romania-lightgray.png?logo=github
- :target: https://github.com/OCA/l10n-romania/tree/15.0/l10n_ro_stock_picking_comment_template
+ :target: https://github.com/OCA/l10n-romania/tree/16.0/l10n_ro_stock_picking_comment_template
:alt: OCA/l10n-romania
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/l10n-romania-15-0/l10n-romania-15-0-l10n_ro_stock_picking_comment_template
+ :target: https://translation.odoo-community.org/projects/l10n-romania-16-0/l10n-romania-16-0-l10n_ro_stock_picking_comment_template
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
- :target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-romania&target_branch=15.0
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-romania&target_branch=16.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -50,7 +50,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues `_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
-`feedback `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -92,6 +92,6 @@ Current `maintainer `__:
|maintainer-feketemihai|
-This module is part of the `OCA/l10n-romania `_ project on GitHub.
+This module is part of the `OCA/l10n-romania `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/l10n_ro_stock_picking_comment_template/__manifest__.py b/l10n_ro_stock_picking_comment_template/__manifest__.py
index ac5ba418cd..e7d55f0bc7 100644
--- a/l10n_ro_stock_picking_comment_template/__manifest__.py
+++ b/l10n_ro_stock_picking_comment_template/__manifest__.py
@@ -10,8 +10,6 @@
"depends": [
"l10n_ro_stock_account",
"base_comment_template",
- # Add changes from stock_picking_comment_template until it is merged
- # "stock_picking_comment_template",
],
"data": [
"data/l10n_ro_stock_picking_comment_template.xml",
@@ -22,7 +20,7 @@
"security/ir.model.access.csv",
],
"license": "AGPL-3",
- "version": "15.0.1.2.0",
+ "version": "16.0.0.1.0",
"author": "NextERP Romania," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-romania",
"installable": True,
From cd55e7853c5b9a98274c244d19faa9baa379f0e2 Mon Sep 17 00:00:00 2001
From: oca-ci
Date: Thu, 4 Apr 2024 18:20:07 +0000
Subject: [PATCH 28/54] [UPD] Update l10n_ro_stock_picking_comment_template.pot
---
.../i18n/l10n_ro_stock_picking_comment_template.pot | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/l10n_ro_stock_picking_comment_template/i18n/l10n_ro_stock_picking_comment_template.pot b/l10n_ro_stock_picking_comment_template/i18n/l10n_ro_stock_picking_comment_template.pot
index 0befd0cfb4..1e5a178052 100644
--- a/l10n_ro_stock_picking_comment_template/i18n/l10n_ro_stock_picking_comment_template.pot
+++ b/l10n_ro_stock_picking_comment_template/i18n/l10n_ro_stock_picking_comment_template.pot
@@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 15.0\n"
+"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
From 375cbc6bfa38a989ace00dad7d2768dc519b4768 Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Thu, 4 Apr 2024 18:34:07 +0000
Subject: [PATCH 29/54] [BOT] post-merge updates
---
l10n_ro_stock_picking_comment_template/README.rst | 2 +-
l10n_ro_stock_picking_comment_template/__manifest__.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/l10n_ro_stock_picking_comment_template/README.rst b/l10n_ro_stock_picking_comment_template/README.rst
index d684aea5eb..95aae02d91 100644
--- a/l10n_ro_stock_picking_comment_template/README.rst
+++ b/l10n_ro_stock_picking_comment_template/README.rst
@@ -7,7 +7,7 @@ Romania - Stock Picking Comment Template
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- !! source digest: sha256:61f08715d7804355f9a2fbe44927a0dd0cea2f939f04994f94dd739807832a92
+ !! source digest: sha256:456336b41fc3e70321025159b9729f34250d758a0a16464da2e0c9af8acb688f
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
diff --git a/l10n_ro_stock_picking_comment_template/__manifest__.py b/l10n_ro_stock_picking_comment_template/__manifest__.py
index e7d55f0bc7..18b60c4ccb 100644
--- a/l10n_ro_stock_picking_comment_template/__manifest__.py
+++ b/l10n_ro_stock_picking_comment_template/__manifest__.py
@@ -20,7 +20,7 @@
"security/ir.model.access.csv",
],
"license": "AGPL-3",
- "version": "16.0.0.1.0",
+ "version": "16.0.0.2.0",
"author": "NextERP Romania," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-romania",
"installable": True,
From 8105a53b0f5a32cd7e12a4e3b1168f0bed914ef1 Mon Sep 17 00:00:00 2001
From: Sima Elisabeta
Date: Wed, 3 Apr 2024 14:01:48 +0300
Subject: [PATCH 30/54] Update template, need to adjust t-if
---
...l10n_ro_stock_picking_comment_template.xml | 39 +++++++++----------
1 file changed, 19 insertions(+), 20 deletions(-)
diff --git a/l10n_ro_stock_picking_comment_template/data/l10n_ro_stock_picking_comment_template.xml b/l10n_ro_stock_picking_comment_template/data/l10n_ro_stock_picking_comment_template.xml
index da15cba708..dbfaa8936e 100644
--- a/l10n_ro_stock_picking_comment_template/data/l10n_ro_stock_picking_comment_template.xml
+++ b/l10n_ro_stock_picking_comment_template/data/l10n_ro_stock_picking_comment_template.xml
@@ -21,9 +21,8 @@
Delivery Order
- % if object.picking_type_code == 'internal':
-
-
+
+
@@ -37,15 +36,15 @@
- ${object.location_id.name}
+ {{object.location_id.name}}
- ${object.location_dest_id.name}
+ {{object.location_dest_id.name}}
- % endif]]>
+ ]]>
@@ -78,13 +77,13 @@
- Name: ${user.name}
+ Name: {{user.name}}
- Delegate: ${object.l10n_ro_delegate_id.name if object.l10n_ro_delegate_id else '.'*100 }
- B.I./C.I.: ${'.'*100}
- Mean Transport: ${object.l10n_ro_mean_transp or "."*50}
- Date: ${'.'*40} Hour: ${'.'*20}
+ Delegate: {{object.l10n_ro_delegate_id.name if object.l10n_ro_delegate_id else '.'*100 }}
+ B.I./C.I.: {{'.'*100}}
+ Mean Transport: {{object.l10n_ro_mean_transp or "."*50}}
+ Date: {{'.'*40}} Hour: {{'.'*20}}
@@ -107,12 +106,12 @@
>Reception Note and Differences
The undersigned, members of the reception commission, I received the material values provided by:
- ${object.partner_id.name},
- delegate: ${object.l10n_ro_delegate_id.name if object.l10n_ro_delegate_id else '.'*60 },
- car no.: ${object.l10n_ro_mean_transp or "."*32},
- based on the accompanying documents: ${object.purchase_id.partner_ref+'; ' if object.purchase_id.partner_ref else ''}
- ${object.purchase_id.invoice_ids[0].name if object.purchase_id.invoice_ids else ''}
- ${'' if object.purchase_id.invoice_ids or object.purchase_id.partner_ref else '.'*60} , noting:
+ {{object.partner_id.name}},
+ delegate: {{object.l10n_ro_delegate_id.name if object.l10n_ro_delegate_id else '.'*60 }},
+ car no.: {{object.l10n_ro_mean_transp or "."*32}},
+ based on the accompanying documents: {{object.purchase_id.partner_ref+'; ' if object.purchase_id.partner_ref else ''}}
+ {{object.purchase_id.invoice_ids[0].name if object.purchase_id.invoice_ids else ''}}
+ {{'' if object.purchase_id.invoice_ids or object.purchase_id.partner_ref else '.'*60}} , noting:
]]>
@@ -152,7 +151,7 @@
- ${user.name}
+ {{user.name}}
@@ -230,7 +229,7 @@
- Name: ${user.name}
+ Name: {{user.name}}
@@ -269,7 +268,7 @@
- Name: ${user.name}
+ Name: {{user.name}}
From 0112ea01a3b651303aede4f066f7754a98ec93f4 Mon Sep 17 00:00:00 2001
From: Sima Elisabeta
Date: Thu, 4 Apr 2024 15:12:07 +0300
Subject: [PATCH 31/54] update _compute_comment_template_ids method, and
adjusted comment_template for qweb
---
...l10n_ro_stock_picking_comment_template.xml | 38 +++--
...l10n_ro_stock_picking_comment_template.pot | 48 +++---
.../i18n/ro.po | 157 +++++++-----------
.../models/__init__.py | 1 -
.../models/comment_template.py | 24 ---
.../models/stock_picking.py | 17 ++
.../views/report_delivery_document.xml | 8 +-
.../views/report_picking.xml | 8 +-
8 files changed, 128 insertions(+), 173 deletions(-)
delete mode 100644 l10n_ro_stock_picking_comment_template/models/comment_template.py
diff --git a/l10n_ro_stock_picking_comment_template/data/l10n_ro_stock_picking_comment_template.xml b/l10n_ro_stock_picking_comment_template/data/l10n_ro_stock_picking_comment_template.xml
index dbfaa8936e..8d38c791a1 100644
--- a/l10n_ro_stock_picking_comment_template/data/l10n_ro_stock_picking_comment_template.xml
+++ b/l10n_ro_stock_picking_comment_template/data/l10n_ro_stock_picking_comment_template.xml
@@ -21,8 +21,9 @@
Delivery Order
+
-
+
@@ -36,15 +37,16 @@
- {{object.location_id.name}}
+
- {{object.location_dest_id.name}}
+
- ]]>
+
+ ]]>
@@ -77,13 +79,13 @@
- Name: {{user.name}}
+ Name:
- Delegate: {{object.l10n_ro_delegate_id.name if object.l10n_ro_delegate_id else '.'*100 }}
- B.I./C.I.: {{'.'*100}}
- Mean Transport: {{object.l10n_ro_mean_transp or "."*50}}
- Date: {{'.'*40}} Hour: {{'.'*20}}
+ Delegate:
+ B.I./C.I.:
+ Mean Transport:
+ Date: Hour:
@@ -106,12 +108,12 @@
>Reception Note and Differences
The undersigned, members of the reception commission, I received the material values provided by:
- {{object.partner_id.name}},
- delegate: {{object.l10n_ro_delegate_id.name if object.l10n_ro_delegate_id else '.'*60 }},
- car no.: {{object.l10n_ro_mean_transp or "."*32}},
- based on the accompanying documents: {{object.purchase_id.partner_ref+'; ' if object.purchase_id.partner_ref else ''}}
- {{object.purchase_id.invoice_ids[0].name if object.purchase_id.invoice_ids else ''}}
- {{'' if object.purchase_id.invoice_ids or object.purchase_id.partner_ref else '.'*60}} , noting:
+ ,
+ delegate: ,
+ car no.: ,
+ based on the accompanying documents:
+
+ , noting:
]]>
@@ -151,7 +153,7 @@
- {{user.name}}
+
@@ -229,7 +231,7 @@
- Name: {{user.name}}
+ Name:
@@ -268,7 +270,7 @@
- Name: {{user.name}}
+ Name:
diff --git a/l10n_ro_stock_picking_comment_template/i18n/l10n_ro_stock_picking_comment_template.pot b/l10n_ro_stock_picking_comment_template/i18n/l10n_ro_stock_picking_comment_template.pot
index 1e5a178052..79cefa137f 100644
--- a/l10n_ro_stock_picking_comment_template/i18n/l10n_ro_stock_picking_comment_template.pot
+++ b/l10n_ro_stock_picking_comment_template/i18n/l10n_ro_stock_picking_comment_template.pot
@@ -4,8 +4,10 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 16.0\n"
+"Project-Id-Version: Odoo Server 15.0+e\n"
"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2024-04-04 11:42+0000\n"
+"PO-Revision-Date: 2024-04-04 11:42+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -31,8 +33,8 @@ msgid ""
" \n"
" Delivery Order \n"
" \n"
-" % if object.picking_type_code == 'internal':\n"
"\n"
+" \n"
" \n"
" \n"
" \n"
@@ -47,15 +49,16 @@ msgid ""
" \n"
" \n"
" \n"
-" ${object.location_id.name}\n"
+" \n"
" \n"
" \n"
-" ${object.location_dest_id.name}\n"
+" \n"
" \n"
" \n"
" \n"
"
\n"
-" % endif\n"
+" \n"
+" \n"
" "
msgstr ""
@@ -76,12 +79,12 @@ msgid ""
"\n"
" Reception Note and Differences \n"
" The undersigned, members of the reception commission, I received the material values provided by:\n"
-" ${object.partner_id.name},\n"
-" delegate: ${object.l10n_ro_delegate_id.name if object.l10n_ro_delegate_id else '.'*60 },\n"
-" car no.: ${object.l10n_ro_mean_transp or \".\"*32},\n"
-" based on the accompanying documents: ${object.purchase_id.partner_ref+'; ' if object.purchase_id.partner_ref else ''}\n"
-" ${object.purchase_id.invoice_ids[0].name if object.purchase_id.invoice_ids else ''}\n"
-" ${'' if object.purchase_id.invoice_ids or object.purchase_id.partner_ref else '.'*60} , noting:\n"
+" ,\n"
+" delegate: ,\n"
+" car no.: ,\n"
+" based on the accompanying documents: \n"
+" \n"
+" , noting:\n"
" \n"
" "
msgstr ""
@@ -104,7 +107,7 @@ msgid ""
" \n"
" \n"
" \n"
-" Name: ${user.name} \n"
+" Name: \n"
" \n"
" \n"
" \n"
@@ -133,7 +136,7 @@ msgid ""
" \n"
" \n"
" \n"
-" Name: ${user.name} \n"
+" Name: \n"
" \n"
" \n"
" \n"
@@ -162,13 +165,13 @@ msgid ""
" \n"
" \n"
" \n"
-" Name: ${user.name} \n"
+" Name: \n"
" \n"
" \n"
-" Delegate: ${object.l10n_ro_delegate_id.name if object.l10n_ro_delegate_id else '.'*100 }
\n"
-" B.I./C.I.: ${'.'*100}
\n"
-" Mean Transport: ${object.l10n_ro_mean_transp or \".\"*50}
\n"
-" Date: ${'.'*40} Hour: ${'.'*20}
\n"
+" Delegate:
\n"
+" B.I./C.I.:
\n"
+" Mean Transport:
\n"
+" Date: Hour:
\n"
" \n"
" \n"
" \n"
@@ -206,7 +209,7 @@ msgid ""
" \n"
" \n"
" \n"
-" ${user.name} \n"
+" \n"
" \n"
" \n"
" \n"
@@ -309,10 +312,3 @@ msgid ""
"Visible only in pickings, and can be modify only from there;is keeping all "
"the time the last not null value"
msgstr ""
-
-#. module: l10n_ro_stock_picking_comment_template
-#: model:ir.model,name:l10n_ro_stock_picking_comment_template.model_comment_template
-msgid ""
-"base.comment.template to put header and footer in reports based on created "
-"comment templates"
-msgstr ""
diff --git a/l10n_ro_stock_picking_comment_template/i18n/ro.po b/l10n_ro_stock_picking_comment_template/i18n/ro.po
index 690185a068..c9f0e191a4 100644
--- a/l10n_ro_stock_picking_comment_template/i18n/ro.po
+++ b/l10n_ro_stock_picking_comment_template/i18n/ro.po
@@ -4,13 +4,12 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 14.0+e\n"
+"Project-Id-Version: Odoo Server 15.0+e\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2021-06-17 14:29+0000\n"
-"PO-Revision-Date: 2021-06-17 14:29+0000\n"
+"POT-Creation-Date: 2024-04-04 11:43+0000\n"
+"PO-Revision-Date: 2024-04-04 11:43+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
-"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
@@ -40,8 +39,8 @@ msgid ""
"
\n"
" Delivery Order \n"
" \n"
-" % if object.picking_type_code == 'internal':\n"
"\n"
+" \n"
" \n"
" \n"
" \n"
@@ -56,23 +55,24 @@ msgid ""
" \n"
" \n"
" \n"
-" ${object.location_id.name}\n"
+" \n"
" \n"
" \n"
-" ${object.location_dest_id.name}\n"
+" \n"
" \n"
" \n"
" \n"
"
\n"
-" % endif\n"
+" \n"
+" \n"
" "
msgstr ""
"\n"
" \n"
" Aviz de Însoțire a Mărfii \n"
" \n"
-" % if object.picking_type_code == 'internal':\n"
"\n"
+" \n"
" \n"
" \n"
" \n"
@@ -87,15 +87,16 @@ msgstr ""
" \n"
" \n"
" \n"
-" ${object.location_id.name}\n"
+" \n"
" \n"
" \n"
-" ${object.location_dest_id.name}\n"
+" \n"
" \n"
" \n"
" \n"
"
\n"
-" % endif\n"
+" \n"
+" \n"
" "
#. module: l10n_ro_stock_picking_comment_template
@@ -117,39 +118,28 @@ msgstr ""
#. module: l10n_ro_stock_picking_comment_template
#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_in_up
-#, fuzzy
msgid ""
"\n"
" Reception Note and Differences \n"
-" The undersigned, members of the reception commission, I "
-"received the material values provided by:\n"
-" ${object.partner_id.name},\n"
-" delegate: ${object.l10n_ro_delegate_id.name if object."
-"l10n_ro_delegate_id else '.'*60 },\n"
-" car no.: ${object.l10n_ro_mean_transp or \".\"*32},\n"
-" based on the accompanying documents: ${object.purchase_id."
-"partner_ref+'; ' if object.purchase_id.partner_ref else ''}\n"
-" ${object.purchase_id."
-"invoice_ids[0].name if object.purchase_id.invoice_ids else ''}\n"
-" ${'' if object.purchase_id."
-"invoice_ids or object.purchase_id.partner_ref else '.'*60} , noting:\n"
+" The undersigned, members of the reception commission, I received the material values provided by:\n"
+" ,\n"
+" delegate: ,\n"
+" car no.: ,\n"
+" based on the accompanying documents: \n"
+" \n"
+" , noting:\n"
" \n"
" "
msgstr ""
"\n"
" Nota de Recepție si Constatare Diferențe \n"
-" Subsemnații, membrii ai comisiei de recepție, am primit "
-"valorile materiale furnizate de:\n"
-" ${object.partner_id.name},\n"
-" delegat: ${object.delegate_id.name if object.delegate_id else "
-"'.'*60 },\n"
-" auto nr.: ${object.mean_transp or \".\"*32},\n"
-" pe baza documentelor insoțitoare: ${object.purchase_id."
-"partner_ref+'; ' if object.purchase_id.partner_ref else ''}\n"
-" ${object.purchase_id."
-"invoice_ids[0].name if object.purchase_id.invoice_ids else ''}\n"
-" ${'' if object.purchase_id."
-"invoice_ids or object.purchase_id.partner_ref else '.'*60} , constatand:\n"
+" Subsemnații, membrii ai comisiei de recepție, am primit valorile materiale furnizate de:\n"
+" ,\n"
+" delegat: ,\n"
+" auto nr.: ,\n"
+" pe baza documentelor insoțitoare: \n"
+" \n"
+" , constatand:\n"
" \n"
" "
@@ -160,8 +150,7 @@ msgid ""
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Elaborate \n"
@@ -172,7 +161,7 @@ msgid ""
" \n"
" \n"
" \n"
-" Name: ${user.name} \n"
+" Name: \n"
" \n"
" \n"
" \n"
@@ -186,8 +175,7 @@ msgstr ""
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Intocmit de \n"
@@ -198,7 +186,7 @@ msgstr ""
" \n"
" \n"
" \n"
-" Nume: ${user.name} \n"
+" Name: \n"
" \n"
" \n"
" \n"
@@ -215,8 +203,7 @@ msgid ""
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Elaborate \n"
@@ -227,7 +214,7 @@ msgid ""
" \n"
" \n"
" \n"
-" Name: ${user.name} \n"
+" Name: \n"
" \n"
" \n"
" \n"
@@ -241,8 +228,7 @@ msgstr ""
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Intocmit de \n"
@@ -253,7 +239,7 @@ msgstr ""
" \n"
" \n"
" \n"
-" Nume: ${user.name} \n"
+" Name: \n"
" \n"
" \n"
" \n"
@@ -265,14 +251,12 @@ msgstr ""
#. module: l10n_ro_stock_picking_comment_template
#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_out_down
-#, fuzzy
msgid ""
"\n"
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Elaborate \n"
@@ -283,18 +267,13 @@ msgid ""
" \n"
" \n"
" \n"
-" Name: ${user.name} \n"
+" Name: \n"
" \n"
" \n"
-" Delegate: ${object."
-"l10n_ro_delegate_id.name if object.l10n_ro_delegate_id else '.'*100 }"
-"span>
\n"
-" B.I./C.I.: ${'.'*100} "
-"div>\n"
-"
Mean Transport: ${object."
-"l10n_ro_mean_transp or \".\"*50}
\n"
-"
Date: ${'.'*40} Hour: ${'.'*20}"
-"span>
\n"
+"
Delegate:
\n"
+"
B.I./C.I.:
\n"
+"
Mean Transport:
\n"
+"
Date: Hour:
\n"
"
\n"
" \n"
" \n"
@@ -306,8 +285,7 @@ msgstr ""
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Intocmit de \n"
@@ -318,17 +296,13 @@ msgstr ""
" \n"
" \n"
" \n"
-" Nume: ${user.name} \n"
+" Nume: \n"
" \n"
" \n"
-" Delegat: ${object.delegate_id.name if "
-"object.delegate_id else '.'*100 }
\n"
-" B.I./C.I.: ${'.'*100} "
-"div>\n"
-"
Mijloc Transport: ${object."
-"mean_transp or \".\"*50}
\n"
-"
Data: ${'.'*40} Ora: ${'.'*20}"
-"span>
\n"
+"
Delegat:
\n"
+"
B.I./C.I.:
\n"
+"
Mijloc Transport:
\n"
+"
Data: Ora:
\n"
"
\n"
" \n"
" \n"
@@ -346,8 +320,7 @@ msgid ""
" \n"
" \n"
" \n"
-" Members of the reception "
-"commission \n"
+" Members of the reception commission \n"
" Signature \n"
" Stock responsible \n"
" Signature \n"
@@ -366,7 +339,7 @@ msgid ""
" \n"
" \n"
" \n"
-" ${user.name} \n"
+" \n"
" \n"
" \n"
" \n"
@@ -385,8 +358,7 @@ msgstr ""
"
\n"
" \n"
" \n"
-" Membrii ai comisiei de receptie"
-"th>\n"
+" Membrii ai comisiei de receptie \n"
" Semnatura \n"
" Gestionar \n"
" Semnatura \n"
@@ -405,7 +377,7 @@ msgstr ""
" \n"
" \n"
" \n"
-" ${user.name} \n"
+" \n"
" \n"
" \n"
" \n"
@@ -424,6 +396,9 @@ msgid ""
" Romania - Comment for Delivery + Internal Transfer Before Lines\n"
" "
msgstr ""
+"\n"
+" Comentariu pentru livrare + transfer intern înainte de linii\n"
+" "
#. module: l10n_ro_stock_picking_comment_template
#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking__comment_template_ids
@@ -438,7 +413,7 @@ msgstr "Comentarii"
#. module: l10n_ro_stock_picking_comment_template
#: model:ir.model,name:l10n_ro_stock_picking_comment_template.model_res_partner
msgid "Contact"
-msgstr "Contact"
+msgstr ""
#. module: l10n_ro_stock_picking_comment_template
#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking__l10n_ro_delegate_id
@@ -479,7 +454,7 @@ msgstr ""
#. module: l10n_ro_stock_picking_comment_template
#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_in_down
msgid "Romania - Comment for Reception After Lines"
-msgstr ""
+msgstr "Comentariu pentru receptii dupa linii"
#. module: l10n_ro_stock_picking_comment_template
#: model:base.comment.template,name:l10n_ro_stock_picking_comment_template.l10n_ro_picking_in_up
@@ -500,7 +475,7 @@ msgstr "Comentarii Transferuri Stoc"
#. module: l10n_ro_stock_picking_comment_template
#: model:ir.model,name:l10n_ro_stock_picking_comment_template.model_stock_picking
msgid "Transfer"
-msgstr "Transfer"
+msgstr ""
#. module: l10n_ro_stock_picking_comment_template
#: model:ir.model.fields,help:l10n_ro_stock_picking_comment_template.field_res_partner__l10n_ro_mean_transp
@@ -511,21 +486,3 @@ msgid ""
msgstr ""
"Vizibil doar în transferuri stoc, și poate fi modificat doar de acolo; isi "
"păstreaza ultima valoare nenulă"
-
-#. module: l10n_ro_stock_picking_comment_template
-#: model:ir.model,name:l10n_ro_stock_picking_comment_template.model_comment_template
-msgid ""
-"base.comment.template to put header and footer in reports based on created "
-"comment templates"
-msgstr ""
-"base.comment.template pentru a pune antet și subsol în rapoartele bazate pe "
-"modele de comentarii"
-
-#~ msgid "Display Name"
-#~ msgstr "Nume afișat"
-
-#~ msgid "ID"
-#~ msgstr "ID"
-
-#~ msgid "Last Modified on"
-#~ msgstr "Ultima modificare pe"
diff --git a/l10n_ro_stock_picking_comment_template/models/__init__.py b/l10n_ro_stock_picking_comment_template/models/__init__.py
index 3c5fd63f6d..548fc596ae 100644
--- a/l10n_ro_stock_picking_comment_template/models/__init__.py
+++ b/l10n_ro_stock_picking_comment_template/models/__init__.py
@@ -1,3 +1,2 @@
-from . import comment_template
from . import res_partner
from . import stock_picking
diff --git a/l10n_ro_stock_picking_comment_template/models/comment_template.py b/l10n_ro_stock_picking_comment_template/models/comment_template.py
deleted file mode 100644
index 984ea92e61..0000000000
--- a/l10n_ro_stock_picking_comment_template/models/comment_template.py
+++ /dev/null
@@ -1,24 +0,0 @@
-# Copyright 2022 NextERP Romania SRL
-# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-
-from odoo import models
-from odoo.tools.safe_eval import safe_eval
-
-
-class CommentTemplate(models.AbstractModel):
- _inherit = "comment.template"
-
- def _compute_comment_template_ids(self):
- res = super()._compute_comment_template_ids()
- for record in self.filtered(lambda r: not r.comment_template_ids):
- templates = self.env["base.comment.template"].search(
- [
- ("partner_ids", "=", False),
- ("model_ids.model", "=", self._name),
- ]
- )
- for template in templates:
- domain = safe_eval(template.domain)
- if not domain or record.filtered_domain(domain):
- record.comment_template_ids = [(4, template.id)]
- return res
diff --git a/l10n_ro_stock_picking_comment_template/models/stock_picking.py b/l10n_ro_stock_picking_comment_template/models/stock_picking.py
index b2e039ffad..9f4c9d83d0 100644
--- a/l10n_ro_stock_picking_comment_template/models/stock_picking.py
+++ b/l10n_ro_stock_picking_comment_template/models/stock_picking.py
@@ -3,6 +3,7 @@
import logging
from odoo import api, fields, models
+from odoo.tools.safe_eval import safe_eval
_logger = logging.getLogger(__name__)
@@ -35,3 +36,19 @@ def write(self, vals):
{"l10n_ro_mean_transp": l10n_ro_mean_transp}
)
return super().write(vals)
+
+ @api.depends("picking_type_id")
+ def _compute_comment_template_ids(self):
+ res = super()._compute_comment_template_ids()
+ for record in self.filtered(lambda r: not r.comment_template_ids):
+ templates = self.env["base.comment.template"].search(
+ [
+ ("partner_ids", "=", False),
+ ("models", "=", self._name),
+ ]
+ )
+ for template in templates:
+ domain = safe_eval(template.domain)
+ if not domain or record.filtered_domain(domain):
+ record.comment_template_ids = [(4, template.id)]
+ return res
diff --git a/l10n_ro_stock_picking_comment_template/views/report_delivery_document.xml b/l10n_ro_stock_picking_comment_template/views/report_delivery_document.xml
index e9eeb0ecc9..5ddfc992bd 100644
--- a/l10n_ro_stock_picking_comment_template/views/report_delivery_document.xml
+++ b/l10n_ro_stock_picking_comment_template/views/report_delivery_document.xml
@@ -11,7 +11,9 @@
t-foreach="o.comment_template_ids.filtered(lambda x: x.position == 'before_lines')"
t-as="comment_template_top"
>
-
+
@@ -21,7 +23,9 @@
t-foreach="o.comment_template_ids.filtered(lambda x: x.position == 'after_lines')"
t-as="comment_template_bottom"
>
-
+
diff --git a/l10n_ro_stock_picking_comment_template/views/report_picking.xml b/l10n_ro_stock_picking_comment_template/views/report_picking.xml
index ac11c3d255..05cca3de00 100644
--- a/l10n_ro_stock_picking_comment_template/views/report_picking.xml
+++ b/l10n_ro_stock_picking_comment_template/views/report_picking.xml
@@ -8,7 +8,9 @@
t-foreach="o.comment_template_ids.filtered(lambda x: x.position == 'before_lines')"
t-as="comment_template_top"
>
-
+
@@ -18,7 +20,9 @@
t-foreach="o.comment_template_ids.filtered(lambda x: x.position == 'after_lines')"
t-as="comment_template_bottom"
>
-
+
From eb58fc68f354d4ddc0c19adc89702c8015b2bfd7 Mon Sep 17 00:00:00 2001
From: oca-ci
Date: Fri, 5 Apr 2024 07:43:05 +0000
Subject: [PATCH 32/54] [UPD] Update l10n_ro_stock_picking_comment_template.pot
---
.../i18n/l10n_ro_stock_picking_comment_template.pot | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/l10n_ro_stock_picking_comment_template/i18n/l10n_ro_stock_picking_comment_template.pot b/l10n_ro_stock_picking_comment_template/i18n/l10n_ro_stock_picking_comment_template.pot
index 79cefa137f..7c2a2dd4c8 100644
--- a/l10n_ro_stock_picking_comment_template/i18n/l10n_ro_stock_picking_comment_template.pot
+++ b/l10n_ro_stock_picking_comment_template/i18n/l10n_ro_stock_picking_comment_template.pot
@@ -4,10 +4,8 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 15.0+e\n"
+"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2024-04-04 11:42+0000\n"
-"PO-Revision-Date: 2024-04-04 11:42+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
From 10b163c4f2a9edb7c95232e6fa5a76d51e4c7f8f Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Fri, 5 Apr 2024 07:57:27 +0000
Subject: [PATCH 33/54] [BOT] post-merge updates
---
l10n_ro_stock_picking_comment_template/README.rst | 2 +-
l10n_ro_stock_picking_comment_template/__manifest__.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/l10n_ro_stock_picking_comment_template/README.rst b/l10n_ro_stock_picking_comment_template/README.rst
index 95aae02d91..52d64df4fc 100644
--- a/l10n_ro_stock_picking_comment_template/README.rst
+++ b/l10n_ro_stock_picking_comment_template/README.rst
@@ -7,7 +7,7 @@ Romania - Stock Picking Comment Template
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- !! source digest: sha256:456336b41fc3e70321025159b9729f34250d758a0a16464da2e0c9af8acb688f
+ !! source digest: sha256:c9d3e02bb8489a1f653d1026a008be732ad3e7147df467f79a5e5c8e18fd3c25
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
diff --git a/l10n_ro_stock_picking_comment_template/__manifest__.py b/l10n_ro_stock_picking_comment_template/__manifest__.py
index 18b60c4ccb..577c1181ed 100644
--- a/l10n_ro_stock_picking_comment_template/__manifest__.py
+++ b/l10n_ro_stock_picking_comment_template/__manifest__.py
@@ -20,7 +20,7 @@
"security/ir.model.access.csv",
],
"license": "AGPL-3",
- "version": "16.0.0.2.0",
+ "version": "16.0.0.3.0",
"author": "NextERP Romania," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-romania",
"installable": True,
From f4fa494bcb90716b62a7ffc78ec316beaecf4168 Mon Sep 17 00:00:00 2001
From: Weblate
Date: Fri, 5 Apr 2024 08:06:03 +0000
Subject: [PATCH 34/54] Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: l10n-romania-16.0/l10n-romania-16.0-l10n_ro_stock_picking_comment_template
Translate-URL: https://translation.odoo-community.org/projects/l10n-romania-16-0/l10n-romania-16-0-l10n_ro_stock_picking_comment_template/
---
.../i18n/ro.po | 85 +++++++++++++------
1 file changed, 59 insertions(+), 26 deletions(-)
diff --git a/l10n_ro_stock_picking_comment_template/i18n/ro.po b/l10n_ro_stock_picking_comment_template/i18n/ro.po
index c9f0e191a4..ab3148e1f3 100644
--- a/l10n_ro_stock_picking_comment_template/i18n/ro.po
+++ b/l10n_ro_stock_picking_comment_template/i18n/ro.po
@@ -10,6 +10,7 @@ msgstr ""
"PO-Revision-Date: 2024-04-04 11:43+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
+"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
@@ -121,25 +122,39 @@ msgstr ""
msgid ""
"\n"
" Reception Note and Differences \n"
-" The undersigned, members of the reception commission, I received the material values provided by:\n"
+" The undersigned, members of the reception commission, I "
+"received the material values provided by:\n"
" ,\n"
-" delegate: ,\n"
+" delegate: ,\n"
" car no.: ,\n"
-" based on the accompanying documents: \n"
-" \n"
-" , noting:\n"
+" based on the accompanying documents: \n"
+" \n"
+" , "
+"noting:\n"
" \n"
" "
msgstr ""
"\n"
" Nota de Recepție si Constatare Diferențe \n"
-" Subsemnații, membrii ai comisiei de recepție, am primit valorile materiale furnizate de:\n"
+" Subsemnații, membrii ai comisiei de recepție, am primit "
+"valorile materiale furnizate de:\n"
" ,\n"
-" delegat: ,\n"
+" delegat: ,\n"
" auto nr.: ,\n"
-" pe baza documentelor insoțitoare: \n"
-" \n"
-" , constatand:\n"
+" pe baza documentelor insoțitoare: \n"
+" \n"
+" , "
+"constatand:\n"
" \n"
" "
@@ -150,7 +165,8 @@ msgid ""
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Elaborate \n"
@@ -175,7 +191,8 @@ msgstr ""
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Intocmit de \n"
@@ -203,7 +220,8 @@ msgid ""
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Elaborate \n"
@@ -228,7 +246,8 @@ msgstr ""
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Intocmit de \n"
@@ -256,7 +275,8 @@ msgid ""
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Elaborate \n"
@@ -270,10 +290,15 @@ msgid ""
" Name: \n"
" \n"
" \n"
-" Delegate:
\n"
-" B.I./C.I.:
\n"
-" Mean Transport:
\n"
-" Date: Hour:
\n"
+" Delegate: "
+"span>
\n"
+" B.I./C.I.: "
+"span>
\n"
+" Mean Transport:
\n"
+" Date: Hour:
\n"
" \n"
" \n"
" \n"
@@ -285,7 +310,8 @@ msgstr ""
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Intocmit de \n"
@@ -299,10 +325,15 @@ msgstr ""
" Nume: \n"
" \n"
" \n"
-" Delegat:
\n"
-" B.I./C.I.:
\n"
-" Mijloc Transport:
\n"
-" Data: Ora:
\n"
+" Delegat: "
+"span>
\n"
+" B.I./C.I.: "
+"span>
\n"
+" Mijloc Transport:
\n"
+" Data: Ora:
\n"
" \n"
" \n"
" \n"
@@ -320,7 +351,8 @@ msgid ""
" \n"
" \n"
" \n"
-" Members of the reception commission \n"
+" Members of the reception "
+"commission \n"
" Signature \n"
" Stock responsible \n"
" Signature \n"
@@ -358,7 +390,8 @@ msgstr ""
" \n"
" \n"
" \n"
-" Membrii ai comisiei de receptie \n"
+" Membrii ai comisiei de receptie"
+"th>\n"
" Semnatura \n"
" Gestionar \n"
" Semnatura \n"
From a592df10f20967adb7afc5df3ecf9f5fc1a1aebd Mon Sep 17 00:00:00 2001
From: Dorin Hongu
Date: Wed, 8 May 2024 22:10:55 +0300
Subject: [PATCH 35/54] simplificare ecrane
---
.../views/stock_picking_view.xml | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/l10n_ro_stock_picking_comment_template/views/stock_picking_view.xml b/l10n_ro_stock_picking_comment_template/views/stock_picking_view.xml
index 485fdb0061..d6cd880366 100644
--- a/l10n_ro_stock_picking_comment_template/views/stock_picking_view.xml
+++ b/l10n_ro_stock_picking_comment_template/views/stock_picking_view.xml
@@ -11,12 +11,8 @@
name="l10n_ro_delegate_id"
domain="[('type','=','contact'),('is_company','=',False)]"
context="{'simple_form':True, 'parent_partner_id':partner_id } "
- attrs="{'invisible': [('is_l10n_ro_record', '=', False)]}"
- />
-
+
From f491905da3517ba2645af4bcbb120fadb92ef0af Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Thu, 9 May 2024 08:25:20 +0000
Subject: [PATCH 36/54] [BOT] post-merge updates
---
l10n_ro_stock_picking_comment_template/README.rst | 2 +-
l10n_ro_stock_picking_comment_template/__manifest__.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/l10n_ro_stock_picking_comment_template/README.rst b/l10n_ro_stock_picking_comment_template/README.rst
index 52d64df4fc..31ef6a9d17 100644
--- a/l10n_ro_stock_picking_comment_template/README.rst
+++ b/l10n_ro_stock_picking_comment_template/README.rst
@@ -7,7 +7,7 @@ Romania - Stock Picking Comment Template
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- !! source digest: sha256:c9d3e02bb8489a1f653d1026a008be732ad3e7147df467f79a5e5c8e18fd3c25
+ !! source digest: sha256:79c391d33ef7a9e4c40c4872f86c6975e40382e6710b58bfef52aa4eb3b3fbc8
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
diff --git a/l10n_ro_stock_picking_comment_template/__manifest__.py b/l10n_ro_stock_picking_comment_template/__manifest__.py
index 577c1181ed..945c3b1405 100644
--- a/l10n_ro_stock_picking_comment_template/__manifest__.py
+++ b/l10n_ro_stock_picking_comment_template/__manifest__.py
@@ -20,7 +20,7 @@
"security/ir.model.access.csv",
],
"license": "AGPL-3",
- "version": "16.0.0.3.0",
+ "version": "16.0.0.4.0",
"author": "NextERP Romania," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-romania",
"installable": True,
From 08ce4dc8f4791696cbeb9d10b588cdf4f9add10d Mon Sep 17 00:00:00 2001
From: Larisa-nexterp
Date: Wed, 22 May 2024 20:40:40 +0300
Subject: [PATCH 37/54] Update Translation
Traducere
---
l10n_ro_stock_picking_comment_template/i18n/ro.po | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/l10n_ro_stock_picking_comment_template/i18n/ro.po b/l10n_ro_stock_picking_comment_template/i18n/ro.po
index ab3148e1f3..4113fb7061 100644
--- a/l10n_ro_stock_picking_comment_template/i18n/ro.po
+++ b/l10n_ro_stock_picking_comment_template/i18n/ro.po
@@ -7,14 +7,15 @@ msgstr ""
"Project-Id-Version: Odoo Server 15.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-04-04 11:43+0000\n"
-"PO-Revision-Date: 2024-04-04 11:43+0000\n"
+"PO-Revision-Date: 2024-05-22 19:15+0300\n"
"Last-Translator: \n"
"Language-Team: \n"
-"Language: \n"
+"Language: ro\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: \n"
+"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: \n"
+"X-Generator: Poedit 3.0.1\n"
#. module: l10n_ro_stock_picking_comment_template
#: model:base.comment.template,text:l10n_ro_stock_picking_comment_template.l10n_ro_picking_consume_up
@@ -446,7 +447,7 @@ msgstr "Comentarii"
#. module: l10n_ro_stock_picking_comment_template
#: model:ir.model,name:l10n_ro_stock_picking_comment_template.model_res_partner
msgid "Contact"
-msgstr ""
+msgstr "Contact"
#. module: l10n_ro_stock_picking_comment_template
#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking__l10n_ro_delegate_id
@@ -508,7 +509,7 @@ msgstr "Comentarii Transferuri Stoc"
#. module: l10n_ro_stock_picking_comment_template
#: model:ir.model,name:l10n_ro_stock_picking_comment_template.model_stock_picking
msgid "Transfer"
-msgstr ""
+msgstr "Transfer"
#. module: l10n_ro_stock_picking_comment_template
#: model:ir.model.fields,help:l10n_ro_stock_picking_comment_template.field_res_partner__l10n_ro_mean_transp
From 5f4c0f1269d65aa1bbda5b3e995065c6b216030e Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Wed, 12 Jun 2024 07:55:53 +0000
Subject: [PATCH 38/54] [BOT] post-merge updates
---
l10n_ro_stock_picking_comment_template/README.rst | 2 +-
l10n_ro_stock_picking_comment_template/__manifest__.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/l10n_ro_stock_picking_comment_template/README.rst b/l10n_ro_stock_picking_comment_template/README.rst
index 31ef6a9d17..b639aafb36 100644
--- a/l10n_ro_stock_picking_comment_template/README.rst
+++ b/l10n_ro_stock_picking_comment_template/README.rst
@@ -7,7 +7,7 @@ Romania - Stock Picking Comment Template
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- !! source digest: sha256:79c391d33ef7a9e4c40c4872f86c6975e40382e6710b58bfef52aa4eb3b3fbc8
+ !! source digest: sha256:376e34d065c0f6f3ca9200e82813281fe5485a8ea8463c174063ca170a7fa100
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
diff --git a/l10n_ro_stock_picking_comment_template/__manifest__.py b/l10n_ro_stock_picking_comment_template/__manifest__.py
index 945c3b1405..8c2011825a 100644
--- a/l10n_ro_stock_picking_comment_template/__manifest__.py
+++ b/l10n_ro_stock_picking_comment_template/__manifest__.py
@@ -20,7 +20,7 @@
"security/ir.model.access.csv",
],
"license": "AGPL-3",
- "version": "16.0.0.4.0",
+ "version": "16.0.0.5.0",
"author": "NextERP Romania," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-romania",
"installable": True,
From a6c91ddc0673e6c6297946b13e3ee32e56d9b42d Mon Sep 17 00:00:00 2001
From: Stana Natanaela
Date: Fri, 6 Sep 2024 15:24:33 +0300
Subject: [PATCH 39/54] [IMP] l10n_ro_stock_picking_comment_template:
pre-commit auto fixes
---
.../README.rst | 33 +++----
.../i18n/ro.po | 88 ++++++-------------
.../pyproject.toml | 3 +
.../readme/CONTRIBUTORS.md | 5 ++
.../readme/CONTRIBUTORS.rst | 5 --
.../{DESCRIPTION.rst => DESCRIPTION.md} | 3 +-
.../readme/USAGE.md | 6 ++
.../readme/USAGE.rst | 5 --
8 files changed, 62 insertions(+), 86 deletions(-)
create mode 100644 l10n_ro_stock_picking_comment_template/pyproject.toml
create mode 100644 l10n_ro_stock_picking_comment_template/readme/CONTRIBUTORS.md
delete mode 100644 l10n_ro_stock_picking_comment_template/readme/CONTRIBUTORS.rst
rename l10n_ro_stock_picking_comment_template/readme/{DESCRIPTION.rst => DESCRIPTION.md} (73%)
create mode 100644 l10n_ro_stock_picking_comment_template/readme/USAGE.md
delete mode 100644 l10n_ro_stock_picking_comment_template/readme/USAGE.rst
diff --git a/l10n_ro_stock_picking_comment_template/README.rst b/l10n_ro_stock_picking_comment_template/README.rst
index b639aafb36..fc6328fa80 100644
--- a/l10n_ro_stock_picking_comment_template/README.rst
+++ b/l10n_ro_stock_picking_comment_template/README.rst
@@ -17,18 +17,19 @@ Romania - Stock Picking Comment Template
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--romania-lightgray.png?logo=github
- :target: https://github.com/OCA/l10n-romania/tree/16.0/l10n_ro_stock_picking_comment_template
+ :target: https://github.com/OCA/l10n-romania/tree/17.0/l10n_ro_stock_picking_comment_template
:alt: OCA/l10n-romania
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/l10n-romania-16-0/l10n-romania-16-0-l10n_ro_stock_picking_comment_template
+ :target: https://translation.odoo-community.org/projects/l10n-romania-17-0/l10n-romania-17-0-l10n_ro_stock_picking_comment_template
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
- :target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-romania&target_branch=16.0
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-romania&target_branch=17.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
-This module adds templates for stock picking report according to Romanian Legislation.
+This module adds templates for stock picking report according to
+Romanian Legislation.
**Table of contents**
@@ -40,9 +41,10 @@ Usage
To use this module, you need to:
-#. Go to Inventory -> Configuration -> Stock Picking Comment
-#. Open the template that you want to modify
-#. Change the Comment field with the text that you want to be printed in the Stock Picking Report
+1. Go to Inventory -> Configuration -> Stock Picking Comment
+2. Open the template that you want to modify
+3. Change the Comment field with the text that you want to be printed in
+ the Stock Picking Report
Bug Tracker
===========
@@ -50,7 +52,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues `_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
-`feedback `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -58,21 +60,22 @@ Credits
=======
Authors
-~~~~~~~
+-------
* NextERP Romania
Contributors
-~~~~~~~~~~~~
+------------
-* `NextERP Romania `_:
+- `NextERP Romania `__:
- * Fekete Mihai
+ - Fekete Mihai
-Do not contact contributors directly about support or help with technical issues.
+Do not contact contributors directly about support or help with
+technical issues.
Maintainers
-~~~~~~~~~~~
+-----------
This module is maintained by the OCA.
@@ -92,6 +95,6 @@ Current `maintainer `__:
|maintainer-feketemihai|
-This module is part of the `OCA/l10n-romania `_ project on GitHub.
+This module is part of the `OCA/l10n-romania `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/l10n_ro_stock_picking_comment_template/i18n/ro.po b/l10n_ro_stock_picking_comment_template/i18n/ro.po
index 4113fb7061..cfaa47b80f 100644
--- a/l10n_ro_stock_picking_comment_template/i18n/ro.po
+++ b/l10n_ro_stock_picking_comment_template/i18n/ro.po
@@ -123,39 +123,25 @@ msgstr ""
msgid ""
"\n"
" Reception Note and Differences \n"
-" The undersigned, members of the reception commission, I "
-"received the material values provided by:\n"
+" The undersigned, members of the reception commission, I received the material values provided by:\n"
" ,\n"
-" delegate: ,\n"
+" delegate: ,\n"
" car no.: ,\n"
-" based on the accompanying documents: \n"
-" \n"
-" , "
-"noting:\n"
+" based on the accompanying documents: \n"
+" \n"
+" , noting:\n"
" \n"
" "
msgstr ""
"\n"
" Nota de Recepție si Constatare Diferențe \n"
-" Subsemnații, membrii ai comisiei de recepție, am primit "
-"valorile materiale furnizate de:\n"
+" Subsemnații, membrii ai comisiei de recepție, am primit valorile materiale furnizate de:\n"
" ,\n"
-" delegat: ,\n"
+" delegat: ,\n"
" auto nr.: ,\n"
-" pe baza documentelor insoțitoare: \n"
-" \n"
-" , "
-"constatand:\n"
+" pe baza documentelor insoțitoare: \n"
+" \n"
+" , constatand:\n"
" \n"
" "
@@ -166,8 +152,7 @@ msgid ""
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Elaborate \n"
@@ -192,8 +177,7 @@ msgstr ""
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Intocmit de \n"
@@ -221,8 +205,7 @@ msgid ""
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Elaborate \n"
@@ -247,8 +230,7 @@ msgstr ""
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Intocmit de \n"
@@ -276,8 +258,7 @@ msgid ""
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Elaborate \n"
@@ -291,15 +272,10 @@ msgid ""
" Name: \n"
" \n"
" \n"
-" Delegate: "
-"span>
\n"
-" B.I./C.I.: "
-"span>
\n"
-" Mean Transport:
\n"
-" Date: Hour:
\n"
+" Delegate:
\n"
+" B.I./C.I.:
\n"
+" Mean Transport:
\n"
+" Date: Hour:
\n"
" \n"
" \n"
" \n"
@@ -311,8 +287,7 @@ msgstr ""
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Intocmit de \n"
@@ -326,15 +301,10 @@ msgstr ""
" Nume: \n"
" \n"
" \n"
-" Delegat: "
-"span>
\n"
-" B.I./C.I.: "
-"span>
\n"
-" Mijloc Transport:
\n"
-" Data: Ora:
\n"
+" Delegat:
\n"
+" B.I./C.I.:
\n"
+" Mijloc Transport:
\n"
+" Data: Ora:
\n"
" \n"
" \n"
" \n"
@@ -352,8 +322,7 @@ msgid ""
" \n"
" \n"
" \n"
-" Members of the reception "
-"commission \n"
+" Members of the reception commission \n"
" Signature \n"
" Stock responsible \n"
" Signature \n"
@@ -391,8 +360,7 @@ msgstr ""
" \n"
" \n"
" \n"
-" Membrii ai comisiei de receptie"
-"th>\n"
+" Membrii ai comisiei de receptie \n"
" Semnatura \n"
" Gestionar \n"
" Semnatura \n"
@@ -447,7 +415,7 @@ msgstr "Comentarii"
#. module: l10n_ro_stock_picking_comment_template
#: model:ir.model,name:l10n_ro_stock_picking_comment_template.model_res_partner
msgid "Contact"
-msgstr "Contact"
+msgstr ""
#. module: l10n_ro_stock_picking_comment_template
#: model:ir.model.fields,field_description:l10n_ro_stock_picking_comment_template.field_stock_picking__l10n_ro_delegate_id
@@ -509,7 +477,7 @@ msgstr "Comentarii Transferuri Stoc"
#. module: l10n_ro_stock_picking_comment_template
#: model:ir.model,name:l10n_ro_stock_picking_comment_template.model_stock_picking
msgid "Transfer"
-msgstr "Transfer"
+msgstr ""
#. module: l10n_ro_stock_picking_comment_template
#: model:ir.model.fields,help:l10n_ro_stock_picking_comment_template.field_res_partner__l10n_ro_mean_transp
diff --git a/l10n_ro_stock_picking_comment_template/pyproject.toml b/l10n_ro_stock_picking_comment_template/pyproject.toml
new file mode 100644
index 0000000000..4231d0cccb
--- /dev/null
+++ b/l10n_ro_stock_picking_comment_template/pyproject.toml
@@ -0,0 +1,3 @@
+[build-system]
+requires = ["whool"]
+build-backend = "whool.buildapi"
diff --git a/l10n_ro_stock_picking_comment_template/readme/CONTRIBUTORS.md b/l10n_ro_stock_picking_comment_template/readme/CONTRIBUTORS.md
new file mode 100644
index 0000000000..5dbaf6732c
--- /dev/null
+++ b/l10n_ro_stock_picking_comment_template/readme/CONTRIBUTORS.md
@@ -0,0 +1,5 @@
+- [NextERP Romania](https://www.nexterp.ro):
+ - Fekete Mihai \<\>
+
+Do not contact contributors directly about support or help with
+technical issues.
diff --git a/l10n_ro_stock_picking_comment_template/readme/CONTRIBUTORS.rst b/l10n_ro_stock_picking_comment_template/readme/CONTRIBUTORS.rst
deleted file mode 100644
index ef3ccc7c48..0000000000
--- a/l10n_ro_stock_picking_comment_template/readme/CONTRIBUTORS.rst
+++ /dev/null
@@ -1,5 +0,0 @@
-* `NextERP Romania `_:
-
- * Fekete Mihai
-
-Do not contact contributors directly about support or help with technical issues.
diff --git a/l10n_ro_stock_picking_comment_template/readme/DESCRIPTION.rst b/l10n_ro_stock_picking_comment_template/readme/DESCRIPTION.md
similarity index 73%
rename from l10n_ro_stock_picking_comment_template/readme/DESCRIPTION.rst
rename to l10n_ro_stock_picking_comment_template/readme/DESCRIPTION.md
index 5ec850c5ff..db32085575 100644
--- a/l10n_ro_stock_picking_comment_template/readme/DESCRIPTION.rst
+++ b/l10n_ro_stock_picking_comment_template/readme/DESCRIPTION.md
@@ -1 +1,2 @@
-This module adds templates for stock picking report according to Romanian Legislation.
+This module adds templates for stock picking report according to
+Romanian Legislation.
diff --git a/l10n_ro_stock_picking_comment_template/readme/USAGE.md b/l10n_ro_stock_picking_comment_template/readme/USAGE.md
new file mode 100644
index 0000000000..dd0a880f38
--- /dev/null
+++ b/l10n_ro_stock_picking_comment_template/readme/USAGE.md
@@ -0,0 +1,6 @@
+To use this module, you need to:
+
+1. Go to Inventory -\> Configuration -\> Stock Picking Comment
+2. Open the template that you want to modify
+3. Change the Comment field with the text that you want to be printed
+ in the Stock Picking Report
diff --git a/l10n_ro_stock_picking_comment_template/readme/USAGE.rst b/l10n_ro_stock_picking_comment_template/readme/USAGE.rst
deleted file mode 100644
index be1f90f2e8..0000000000
--- a/l10n_ro_stock_picking_comment_template/readme/USAGE.rst
+++ /dev/null
@@ -1,5 +0,0 @@
-To use this module, you need to:
-
-#. Go to Inventory -> Configuration -> Stock Picking Comment
-#. Open the template that you want to modify
-#. Change the Comment field with the text that you want to be printed in the Stock Picking Report
From a1ee1c02d1c9b59ffe909485f09bf0c756a32573 Mon Sep 17 00:00:00 2001
From: Stana Natanaela
Date: Fri, 6 Sep 2024 16:14:44 +0300
Subject: [PATCH 40/54] [MIG] l10n_ro_stock_picking_comment_template: Migration
to 17.0
---
l10n_ro_stock_picking_comment_template/__manifest__.py | 2 +-
.../views/report_delivery_document.xml | 4 ++--
.../views/report_picking.xml | 4 ++--
.../views/stock_picking_view.xml | 2 +-
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/l10n_ro_stock_picking_comment_template/__manifest__.py b/l10n_ro_stock_picking_comment_template/__manifest__.py
index 8c2011825a..3faaffdc92 100644
--- a/l10n_ro_stock_picking_comment_template/__manifest__.py
+++ b/l10n_ro_stock_picking_comment_template/__manifest__.py
@@ -20,7 +20,7 @@
"security/ir.model.access.csv",
],
"license": "AGPL-3",
- "version": "16.0.0.5.0",
+ "version": "17.0.0.0.0",
"author": "NextERP Romania," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-romania",
"installable": True,
diff --git a/l10n_ro_stock_picking_comment_template/views/report_delivery_document.xml b/l10n_ro_stock_picking_comment_template/views/report_delivery_document.xml
index 5ddfc992bd..768087b994 100644
--- a/l10n_ro_stock_picking_comment_template/views/report_delivery_document.xml
+++ b/l10n_ro_stock_picking_comment_template/views/report_delivery_document.xml
@@ -12,7 +12,7 @@
t-as="comment_template_top"
>
@@ -24,7 +24,7 @@
t-as="comment_template_bottom"
>
diff --git a/l10n_ro_stock_picking_comment_template/views/report_picking.xml b/l10n_ro_stock_picking_comment_template/views/report_picking.xml
index 05cca3de00..affcd7157d 100644
--- a/l10n_ro_stock_picking_comment_template/views/report_picking.xml
+++ b/l10n_ro_stock_picking_comment_template/views/report_picking.xml
@@ -9,7 +9,7 @@
t-as="comment_template_top"
>
@@ -21,7 +21,7 @@
t-as="comment_template_bottom"
>
diff --git a/l10n_ro_stock_picking_comment_template/views/stock_picking_view.xml b/l10n_ro_stock_picking_comment_template/views/stock_picking_view.xml
index d6cd880366..ccc2c0cfc6 100644
--- a/l10n_ro_stock_picking_comment_template/views/stock_picking_view.xml
+++ b/l10n_ro_stock_picking_comment_template/views/stock_picking_view.xml
@@ -28,7 +28,7 @@
From 5ae9bd4f6f9984f4ac7ad6179cffa088bfbb1906 Mon Sep 17 00:00:00 2001
From: oca-ci
Date: Fri, 6 Sep 2024 17:14:02 +0000
Subject: [PATCH 41/54] [UPD] Update l10n_ro_stock_picking_comment_template.pot
---
.../i18n/l10n_ro_stock_picking_comment_template.pot | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/l10n_ro_stock_picking_comment_template/i18n/l10n_ro_stock_picking_comment_template.pot b/l10n_ro_stock_picking_comment_template/i18n/l10n_ro_stock_picking_comment_template.pot
index 7c2a2dd4c8..5eb5097655 100644
--- a/l10n_ro_stock_picking_comment_template/i18n/l10n_ro_stock_picking_comment_template.pot
+++ b/l10n_ro_stock_picking_comment_template/i18n/l10n_ro_stock_picking_comment_template.pot
@@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 16.0\n"
+"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
From c476782a9788bfeb84da3d95b18a111fd981edc1 Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Fri, 6 Sep 2024 17:28:06 +0000
Subject: [PATCH 42/54] [BOT] post-merge updates
---
l10n_ro_stock_picking_comment_template/README.rst | 2 +-
l10n_ro_stock_picking_comment_template/__manifest__.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/l10n_ro_stock_picking_comment_template/README.rst b/l10n_ro_stock_picking_comment_template/README.rst
index fc6328fa80..ba7161f47e 100644
--- a/l10n_ro_stock_picking_comment_template/README.rst
+++ b/l10n_ro_stock_picking_comment_template/README.rst
@@ -7,7 +7,7 @@ Romania - Stock Picking Comment Template
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- !! source digest: sha256:376e34d065c0f6f3ca9200e82813281fe5485a8ea8463c174063ca170a7fa100
+ !! source digest: sha256:f9b4c0e56520c6d0522d080263bcddf8e1a208a248fa28d48fc8f7b864635c0e
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
diff --git a/l10n_ro_stock_picking_comment_template/__manifest__.py b/l10n_ro_stock_picking_comment_template/__manifest__.py
index 3faaffdc92..75097453a6 100644
--- a/l10n_ro_stock_picking_comment_template/__manifest__.py
+++ b/l10n_ro_stock_picking_comment_template/__manifest__.py
@@ -20,7 +20,7 @@
"security/ir.model.access.csv",
],
"license": "AGPL-3",
- "version": "17.0.0.0.0",
+ "version": "17.0.0.1.0",
"author": "NextERP Romania," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-romania",
"installable": True,
From 943a15fdda0b1c8dcfd155659b31f1cb262b576b Mon Sep 17 00:00:00 2001
From: Weblate
Date: Fri, 6 Sep 2024 18:42:52 +0000
Subject: [PATCH 43/54] Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
Translation: l10n-romania-17.0/l10n-romania-17.0-l10n_ro_stock_picking_comment_template
Translate-URL: https://translation.odoo-community.org/projects/l10n-romania-17-0/l10n-romania-17-0-l10n_ro_stock_picking_comment_template/
---
.../i18n/ro.po | 84 +++++++++++++------
1 file changed, 58 insertions(+), 26 deletions(-)
diff --git a/l10n_ro_stock_picking_comment_template/i18n/ro.po b/l10n_ro_stock_picking_comment_template/i18n/ro.po
index cfaa47b80f..d78c114a8e 100644
--- a/l10n_ro_stock_picking_comment_template/i18n/ro.po
+++ b/l10n_ro_stock_picking_comment_template/i18n/ro.po
@@ -123,25 +123,39 @@ msgstr ""
msgid ""
"\n"
" Reception Note and Differences \n"
-" The undersigned, members of the reception commission, I received the material values provided by:\n"
+" The undersigned, members of the reception commission, I "
+"received the material values provided by:\n"
" ,\n"
-" delegate: ,\n"
+" delegate: ,\n"
" car no.: ,\n"
-" based on the accompanying documents: \n"
-" \n"
-" , noting:\n"
+" based on the accompanying documents: \n"
+" \n"
+" , "
+"noting:\n"
" \n"
" "
msgstr ""
"\n"
" Nota de Recepție si Constatare Diferențe \n"
-" Subsemnații, membrii ai comisiei de recepție, am primit valorile materiale furnizate de:\n"
+" Subsemnații, membrii ai comisiei de recepție, am primit "
+"valorile materiale furnizate de:\n"
" ,\n"
-" delegat: ,\n"
+" delegat: ,\n"
" auto nr.: ,\n"
-" pe baza documentelor insoțitoare: \n"
-" \n"
-" , constatand:\n"
+" pe baza documentelor insoțitoare: \n"
+" \n"
+" , "
+"constatand:\n"
" \n"
" "
@@ -152,7 +166,8 @@ msgid ""
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Elaborate \n"
@@ -177,7 +192,8 @@ msgstr ""
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Intocmit de \n"
@@ -205,7 +221,8 @@ msgid ""
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Elaborate \n"
@@ -230,7 +247,8 @@ msgstr ""
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Intocmit de \n"
@@ -258,7 +276,8 @@ msgid ""
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Elaborate \n"
@@ -272,10 +291,15 @@ msgid ""
" Name: \n"
" \n"
" \n"
-" Delegate:
\n"
-" B.I./C.I.:
\n"
-" Mean Transport:
\n"
-" Date: Hour:
\n"
+" Delegate: "
+"span>
\n"
+" B.I./C.I.: "
+"span>
\n"
+" Mean Transport:
\n"
+" Date: Hour:
\n"
" \n"
" \n"
" \n"
@@ -287,7 +311,8 @@ msgstr ""
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Intocmit de \n"
@@ -301,10 +326,15 @@ msgstr ""
" Nume: \n"
" \n"
" \n"
-" Delegat:
\n"
-" B.I./C.I.:
\n"
-" Mijloc Transport:
\n"
-" Data: Ora:
\n"
+" Delegat: "
+"span>
\n"
+" B.I./C.I.: "
+"span>
\n"
+" Mijloc Transport:
\n"
+" Data: Ora:
\n"
" \n"
" \n"
" \n"
@@ -322,7 +352,8 @@ msgid ""
" \n"
" \n"
" \n"
-" Members of the reception commission \n"
+" Members of the reception "
+"commission \n"
" Signature \n"
" Stock responsible \n"
" Signature \n"
@@ -360,7 +391,8 @@ msgstr ""
" \n"
" \n"
" \n"
-" Membrii ai comisiei de receptie \n"
+" Membrii ai comisiei de receptie"
+"th>\n"
" Semnatura \n"
" Gestionar \n"
" Semnatura \n"
From a94a27a35f191d656bb18964d7e15f43c32cfd50 Mon Sep 17 00:00:00 2001
From: Stana Natanaela
Date: Tue, 17 Sep 2024 13:59:40 +0300
Subject: [PATCH 44/54] update landed cost
---
.../i18n/ro.po | 84 ++++++-------------
1 file changed, 26 insertions(+), 58 deletions(-)
diff --git a/l10n_ro_stock_picking_comment_template/i18n/ro.po b/l10n_ro_stock_picking_comment_template/i18n/ro.po
index d78c114a8e..cfaa47b80f 100644
--- a/l10n_ro_stock_picking_comment_template/i18n/ro.po
+++ b/l10n_ro_stock_picking_comment_template/i18n/ro.po
@@ -123,39 +123,25 @@ msgstr ""
msgid ""
"\n"
" Reception Note and Differences \n"
-" The undersigned, members of the reception commission, I "
-"received the material values provided by:\n"
+" The undersigned, members of the reception commission, I received the material values provided by:\n"
" ,\n"
-" delegate: ,\n"
+" delegate: ,\n"
" car no.: ,\n"
-" based on the accompanying documents: \n"
-" \n"
-" , "
-"noting:\n"
+" based on the accompanying documents: \n"
+" \n"
+" , noting:\n"
" \n"
" "
msgstr ""
"\n"
" Nota de Recepție si Constatare Diferențe \n"
-" Subsemnații, membrii ai comisiei de recepție, am primit "
-"valorile materiale furnizate de:\n"
+" Subsemnații, membrii ai comisiei de recepție, am primit valorile materiale furnizate de:\n"
" ,\n"
-" delegat: ,\n"
+" delegat: ,\n"
" auto nr.: ,\n"
-" pe baza documentelor insoțitoare: \n"
-" \n"
-" , "
-"constatand:\n"
+" pe baza documentelor insoțitoare: \n"
+" \n"
+" , constatand:\n"
" \n"
" "
@@ -166,8 +152,7 @@ msgid ""
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Elaborate \n"
@@ -192,8 +177,7 @@ msgstr ""
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Intocmit de \n"
@@ -221,8 +205,7 @@ msgid ""
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Elaborate \n"
@@ -247,8 +230,7 @@ msgstr ""
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Intocmit de \n"
@@ -276,8 +258,7 @@ msgid ""
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Elaborate \n"
@@ -291,15 +272,10 @@ msgid ""
" Name: \n"
" \n"
" \n"
-" Delegate: "
-"span>
\n"
-" B.I./C.I.: "
-"span>
\n"
-" Mean Transport:
\n"
-" Date: Hour:
\n"
+" Delegate:
\n"
+" B.I./C.I.:
\n"
+" Mean Transport:
\n"
+" Date: Hour:
\n"
" \n"
" \n"
" \n"
@@ -311,8 +287,7 @@ msgstr ""
" \n"
" \n"
"
\n"
-" \n"
" \n"
" Intocmit de \n"
@@ -326,15 +301,10 @@ msgstr ""
" Nume: \n"
" \n"
" \n"
-" Delegat: "
-"span>
\n"
-" B.I./C.I.: "
-"span>
\n"
-" Mijloc Transport:
\n"
-" Data: Ora:
\n"
+" Delegat:
\n"
+" B.I./C.I.:
\n"
+" Mijloc Transport:
\n"
+" Data: Ora:
\n"
" \n"
" \n"
" \n"
@@ -352,8 +322,7 @@ msgid ""
" \n"
" \n"
" \n"
-" Members of the reception "
-"commission \n"
+" Members of the reception commission \n"
" Signature \n"
" Stock responsible \n"
" Signature \n"
@@ -391,8 +360,7 @@ msgstr ""
" \n"
" \n"
" \n"
-" Membrii ai comisiei de receptie"
-"th>\n"
+" Membrii ai comisiei de receptie \n"
" Semnatura \n"
" Gestionar \n"
" Semnatura \n"
From 88606a2d64f09741fe532b774261562e102dd467 Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Tue, 17 Sep 2024 12:02:31 +0000
Subject: [PATCH 45/54] [BOT] post-merge updates
---
l10n_ro_stock_picking_comment_template/README.rst | 2 +-
l10n_ro_stock_picking_comment_template/__manifest__.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/l10n_ro_stock_picking_comment_template/README.rst b/l10n_ro_stock_picking_comment_template/README.rst
index ba7161f47e..0cf7dfd5ef 100644
--- a/l10n_ro_stock_picking_comment_template/README.rst
+++ b/l10n_ro_stock_picking_comment_template/README.rst
@@ -7,7 +7,7 @@ Romania - Stock Picking Comment Template
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- !! source digest: sha256:f9b4c0e56520c6d0522d080263bcddf8e1a208a248fa28d48fc8f7b864635c0e
+ !! source digest: sha256:b4f12df53772c76385caccdf0159372313ba2bd6601fe560a8f16e96a0195463
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
diff --git a/l10n_ro_stock_picking_comment_template/__manifest__.py b/l10n_ro_stock_picking_comment_template/__manifest__.py
index 75097453a6..2ef163114c 100644
--- a/l10n_ro_stock_picking_comment_template/__manifest__.py
+++ b/l10n_ro_stock_picking_comment_template/__manifest__.py
@@ -20,7 +20,7 @@
"security/ir.model.access.csv",
],
"license": "AGPL-3",
- "version": "17.0.0.1.0",
+ "version": "17.0.0.2.0",
"author": "NextERP Romania," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-romania",
"installable": True,
From b166caaa8b155d7fc50be003e19eb530340c590f Mon Sep 17 00:00:00 2001
From: Stana Natanaela
Date: Fri, 1 Nov 2024 15:19:50 +0200
Subject: [PATCH 46/54] [17.0]fix stock_account_date
---
l10n_ro_stock_picking_comment_template/i18n/ro.po | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/l10n_ro_stock_picking_comment_template/i18n/ro.po b/l10n_ro_stock_picking_comment_template/i18n/ro.po
index cfaa47b80f..773bf9b97f 100644
--- a/l10n_ro_stock_picking_comment_template/i18n/ro.po
+++ b/l10n_ro_stock_picking_comment_template/i18n/ro.po
@@ -134,7 +134,7 @@ msgid ""
" "
msgstr ""
"\n"
-" Nota de Recepție si Constatare Diferențe \n"
+" Notă de Intrare si Recepție \n"
" Subsemnații, membrii ai comisiei de recepție, am primit valorile materiale furnizate de:\n"
" ,\n"
" delegat: ,\n"
From 3d0e049180194312bfd722a4b057c16ff6591c5d Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Mon, 4 Nov 2024 10:20:37 +0000
Subject: [PATCH 47/54] [BOT] post-merge updates
---
l10n_ro_stock_picking_comment_template/README.rst | 2 +-
l10n_ro_stock_picking_comment_template/__manifest__.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/l10n_ro_stock_picking_comment_template/README.rst b/l10n_ro_stock_picking_comment_template/README.rst
index 0cf7dfd5ef..731acd54e7 100644
--- a/l10n_ro_stock_picking_comment_template/README.rst
+++ b/l10n_ro_stock_picking_comment_template/README.rst
@@ -7,7 +7,7 @@ Romania - Stock Picking Comment Template
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- !! source digest: sha256:b4f12df53772c76385caccdf0159372313ba2bd6601fe560a8f16e96a0195463
+ !! source digest: sha256:ffdbb6f325a97db49cd70a90325b8e6380545541625d2666bea0f6b1c210cc35
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
diff --git a/l10n_ro_stock_picking_comment_template/__manifest__.py b/l10n_ro_stock_picking_comment_template/__manifest__.py
index 2ef163114c..a3952c91d3 100644
--- a/l10n_ro_stock_picking_comment_template/__manifest__.py
+++ b/l10n_ro_stock_picking_comment_template/__manifest__.py
@@ -20,7 +20,7 @@
"security/ir.model.access.csv",
],
"license": "AGPL-3",
- "version": "17.0.0.2.0",
+ "version": "17.0.0.3.0",
"author": "NextERP Romania," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-romania",
"installable": True,
From 8535f7f1c610a459ee67d7fe91848c542fb5861e Mon Sep 17 00:00:00 2001
From: Dorin Hongu
Date: Fri, 10 Jan 2025 19:50:20 +0200
Subject: [PATCH 48/54] Remove redundant 'is_l10n_ro_record' field usage.
The 'is_l10n_ro_record' field was removed across multiple views as it is no longer required for conditional UI rendering or logic. This change simplifies the codebase by removing unnecessary elements and conditions.
---
.../views/base_comment_template_view.xml | 1 -
.../views/stock_picking_view.xml | 10 +++-------
2 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/l10n_ro_stock_picking_comment_template/views/base_comment_template_view.xml b/l10n_ro_stock_picking_comment_template/views/base_comment_template_view.xml
index deb9264d35..20620fbc99 100644
--- a/l10n_ro_stock_picking_comment_template/views/base_comment_template_view.xml
+++ b/l10n_ro_stock_picking_comment_template/views/base_comment_template_view.xml
@@ -17,7 +17,6 @@
Romanian Stock Picking Comments
-
diff --git a/l10n_ro_stock_picking_comment_template/views/stock_picking_view.xml b/l10n_ro_stock_picking_comment_template/views/stock_picking_view.xml
index ccc2c0cfc6..042c2120ef 100644
--- a/l10n_ro_stock_picking_comment_template/views/stock_picking_view.xml
+++ b/l10n_ro_stock_picking_comment_template/views/stock_picking_view.xml
@@ -6,7 +6,7 @@
-
+
-
-
+
+
From 745aef080009b4f160f4cc18c82f948d32dee8c7 Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Mon, 13 Jan 2025 04:04:04 +0000
Subject: [PATCH 49/54] [BOT] post-merge updates
---
l10n_ro_stock_picking_comment_template/README.rst | 6 +++---
l10n_ro_stock_picking_comment_template/__manifest__.py | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/l10n_ro_stock_picking_comment_template/README.rst b/l10n_ro_stock_picking_comment_template/README.rst
index 731acd54e7..425ae7dd2d 100644
--- a/l10n_ro_stock_picking_comment_template/README.rst
+++ b/l10n_ro_stock_picking_comment_template/README.rst
@@ -7,7 +7,7 @@ Romania - Stock Picking Comment Template
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- !! source digest: sha256:ffdbb6f325a97db49cd70a90325b8e6380545541625d2666bea0f6b1c210cc35
+ !! source digest: sha256:9de5362d126111b3d0c216e1a2c8e0ca5fb886de97f2e4e514b33a27a13a9570
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -67,9 +67,9 @@ Authors
Contributors
------------
-- `NextERP Romania `__:
+- `NextERP Romania `__:
- - Fekete Mihai
+ - Fekete Mihai
Do not contact contributors directly about support or help with
technical issues.
diff --git a/l10n_ro_stock_picking_comment_template/__manifest__.py b/l10n_ro_stock_picking_comment_template/__manifest__.py
index a3952c91d3..8f470511ab 100644
--- a/l10n_ro_stock_picking_comment_template/__manifest__.py
+++ b/l10n_ro_stock_picking_comment_template/__manifest__.py
@@ -20,7 +20,7 @@
"security/ir.model.access.csv",
],
"license": "AGPL-3",
- "version": "17.0.0.3.0",
+ "version": "17.0.0.4.0",
"author": "NextERP Romania," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-romania",
"installable": True,
From 3c66456b571c48df678e835ad28e2f24d910ce16 Mon Sep 17 00:00:00 2001
From: Marius
Date: Mon, 5 May 2025 11:26:16 +0300
Subject: [PATCH 50/54] [18.0][MIG]l10n_ro_stock_picking_comment_template,
update to 18.0
---
l10n_ro_stock_picking_comment_template/README.rst | 10 +++++-----
l10n_ro_stock_picking_comment_template/__manifest__.py | 4 ++--
.../data/l10n_ro_stock_picking_comment_template.xml | 1 -
.../views/base_comment_template_view.xml | 4 +---
.../views/report_delivery_document.xml | 4 +---
.../views/report_picking.xml | 4 +---
.../views/stock_picking_view.xml | 4 ----
7 files changed, 10 insertions(+), 21 deletions(-)
diff --git a/l10n_ro_stock_picking_comment_template/README.rst b/l10n_ro_stock_picking_comment_template/README.rst
index 425ae7dd2d..8c0220b4ab 100644
--- a/l10n_ro_stock_picking_comment_template/README.rst
+++ b/l10n_ro_stock_picking_comment_template/README.rst
@@ -17,13 +17,13 @@ Romania - Stock Picking Comment Template
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--romania-lightgray.png?logo=github
- :target: https://github.com/OCA/l10n-romania/tree/17.0/l10n_ro_stock_picking_comment_template
+ :target: https://github.com/OCA/l10n-romania/tree/18.0/l10n_ro_stock_picking_comment_template
:alt: OCA/l10n-romania
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/l10n-romania-17-0/l10n-romania-17-0-l10n_ro_stock_picking_comment_template
+ :target: https://translation.odoo-community.org/projects/l10n-romania-18-0/l10n-romania-18-0-l10n_ro_stock_picking_comment_template
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
- :target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-romania&target_branch=17.0
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-romania&target_branch=18.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -52,7 +52,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues `_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
-`feedback `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -95,6 +95,6 @@ Current `maintainer `__:
|maintainer-feketemihai|
-This module is part of the `OCA/l10n-romania `_ project on GitHub.
+This module is part of the `OCA/l10n-romania `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/l10n_ro_stock_picking_comment_template/__manifest__.py b/l10n_ro_stock_picking_comment_template/__manifest__.py
index 8f470511ab..88ff028bb4 100644
--- a/l10n_ro_stock_picking_comment_template/__manifest__.py
+++ b/l10n_ro_stock_picking_comment_template/__manifest__.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2021 NextERP Romania
+# Copyright (C) 2025 NextERP Romania
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Romania - Stock Picking Comment Template",
@@ -20,7 +20,7 @@
"security/ir.model.access.csv",
],
"license": "AGPL-3",
- "version": "17.0.0.4.0",
+ "version": "18.0.0.1.0",
"author": "NextERP Romania," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-romania",
"installable": True,
diff --git a/l10n_ro_stock_picking_comment_template/data/l10n_ro_stock_picking_comment_template.xml b/l10n_ro_stock_picking_comment_template/data/l10n_ro_stock_picking_comment_template.xml
index 8d38c791a1..4b67f5d02f 100644
--- a/l10n_ro_stock_picking_comment_template/data/l10n_ro_stock_picking_comment_template.xml
+++ b/l10n_ro_stock_picking_comment_template/data/l10n_ro_stock_picking_comment_template.xml
@@ -280,5 +280,4 @@
]]>
-
diff --git a/l10n_ro_stock_picking_comment_template/views/base_comment_template_view.xml b/l10n_ro_stock_picking_comment_template/views/base_comment_template_view.xml
index 20620fbc99..e8264921e0 100644
--- a/l10n_ro_stock_picking_comment_template/views/base_comment_template_view.xml
+++ b/l10n_ro_stock_picking_comment_template/views/base_comment_template_view.xml
@@ -1,11 +1,10 @@
-
-
diff --git a/l10n_ro_stock_picking_comment_template/views/report_delivery_document.xml b/l10n_ro_stock_picking_comment_template/views/report_delivery_document.xml
index 768087b994..d8c084f4ff 100644
--- a/l10n_ro_stock_picking_comment_template/views/report_delivery_document.xml
+++ b/l10n_ro_stock_picking_comment_template/views/report_delivery_document.xml
@@ -1,11 +1,10 @@
-
-
diff --git a/l10n_ro_stock_picking_comment_template/views/report_picking.xml b/l10n_ro_stock_picking_comment_template/views/report_picking.xml
index affcd7157d..3019a5e83a 100644
--- a/l10n_ro_stock_picking_comment_template/views/report_picking.xml
+++ b/l10n_ro_stock_picking_comment_template/views/report_picking.xml
@@ -1,8 +1,7 @@
-
-
diff --git a/l10n_ro_stock_picking_comment_template/views/stock_picking_view.xml b/l10n_ro_stock_picking_comment_template/views/stock_picking_view.xml
index 042c2120ef..04c21a4de7 100644
--- a/l10n_ro_stock_picking_comment_template/views/stock_picking_view.xml
+++ b/l10n_ro_stock_picking_comment_template/views/stock_picking_view.xml
@@ -6,7 +6,6 @@
-
-
-
From 6c70e1012eecc457943062c74c2b070e73490d12 Mon Sep 17 00:00:00 2001
From: oca-ci
Date: Fri, 9 May 2025 07:16:11 +0000
Subject: [PATCH 51/54] [UPD] Update l10n_ro_stock_picking_comment_template.pot
---
.../i18n/l10n_ro_stock_picking_comment_template.pot | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/l10n_ro_stock_picking_comment_template/i18n/l10n_ro_stock_picking_comment_template.pot b/l10n_ro_stock_picking_comment_template/i18n/l10n_ro_stock_picking_comment_template.pot
index 5eb5097655..ef5eb4c586 100644
--- a/l10n_ro_stock_picking_comment_template/i18n/l10n_ro_stock_picking_comment_template.pot
+++ b/l10n_ro_stock_picking_comment_template/i18n/l10n_ro_stock_picking_comment_template.pot
@@ -4,7 +4,7 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: Odoo Server 17.0\n"
+"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: \n"
"Language-Team: \n"
From 16fd4ce020f10ea659331e93b70a582704f1782d Mon Sep 17 00:00:00 2001
From: OCA-git-bot
Date: Fri, 9 May 2025 07:28:10 +0000
Subject: [PATCH 52/54] [BOT] post-merge updates
---
l10n_ro_stock_picking_comment_template/README.rst | 2 +-
l10n_ro_stock_picking_comment_template/__manifest__.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/l10n_ro_stock_picking_comment_template/README.rst b/l10n_ro_stock_picking_comment_template/README.rst
index 8c0220b4ab..f5bbae8f22 100644
--- a/l10n_ro_stock_picking_comment_template/README.rst
+++ b/l10n_ro_stock_picking_comment_template/README.rst
@@ -7,7 +7,7 @@ Romania - Stock Picking Comment Template
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- !! source digest: sha256:9de5362d126111b3d0c216e1a2c8e0ca5fb886de97f2e4e514b33a27a13a9570
+ !! source digest: sha256:edd7d090dffe623db7870c2e1bd6830ef5984f0e114415b405813de4526f827f
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
diff --git a/l10n_ro_stock_picking_comment_template/__manifest__.py b/l10n_ro_stock_picking_comment_template/__manifest__.py
index 88ff028bb4..74388f2e8c 100644
--- a/l10n_ro_stock_picking_comment_template/__manifest__.py
+++ b/l10n_ro_stock_picking_comment_template/__manifest__.py
@@ -20,7 +20,7 @@
"security/ir.model.access.csv",
],
"license": "AGPL-3",
- "version": "18.0.0.1.0",
+ "version": "18.0.0.2.0",
"author": "NextERP Romania," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-romania",
"installable": True,
From 60ff4a0a15535885e3811a98756f341c3e077556 Mon Sep 17 00:00:00 2001
From: Debora7
Date: Fri, 19 Dec 2025 16:01:39 +0200
Subject: [PATCH 53/54] [MIG] l10n_ro_stock_picking_comment_template: Migration
to 19.0
---
l10n_ro_stock_picking_comment_template/__manifest__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/l10n_ro_stock_picking_comment_template/__manifest__.py b/l10n_ro_stock_picking_comment_template/__manifest__.py
index 74388f2e8c..d280919258 100644
--- a/l10n_ro_stock_picking_comment_template/__manifest__.py
+++ b/l10n_ro_stock_picking_comment_template/__manifest__.py
@@ -20,7 +20,7 @@
"security/ir.model.access.csv",
],
"license": "AGPL-3",
- "version": "18.0.0.2.0",
+ "version": "19.0.1.0.0",
"author": "NextERP Romania," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-romania",
"installable": True,
From 048e18191b4bf481592071ee7d66eaf0e9d927f0 Mon Sep 17 00:00:00 2001
From: Debora7
Date: Tue, 23 Dec 2025 10:49:38 +0200
Subject: [PATCH 54/54] Pre commit fixes.
---
.../README.rst | 16 ++++++++++------
.../__manifest__.py | 2 +-
2 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/l10n_ro_stock_picking_comment_template/README.rst b/l10n_ro_stock_picking_comment_template/README.rst
index f5bbae8f22..aba90434f2 100644
--- a/l10n_ro_stock_picking_comment_template/README.rst
+++ b/l10n_ro_stock_picking_comment_template/README.rst
@@ -1,3 +1,7 @@
+.. image:: https://odoo-community.org/readme-banner-image
+ :target: https://odoo-community.org/get-involved?utm_source=readme
+ :alt: Odoo Community Association
+
========================================
Romania - Stock Picking Comment Template
========================================
@@ -13,17 +17,17 @@ Romania - Stock Picking Comment Template
.. |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
+.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--romania-lightgray.png?logo=github
- :target: https://github.com/OCA/l10n-romania/tree/18.0/l10n_ro_stock_picking_comment_template
+ :target: https://github.com/OCA/l10n-romania/tree/19.0/l10n_ro_stock_picking_comment_template
:alt: OCA/l10n-romania
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
- :target: https://translation.odoo-community.org/projects/l10n-romania-18-0/l10n-romania-18-0-l10n_ro_stock_picking_comment_template
+ :target: https://translation.odoo-community.org/projects/l10n-romania-19-0/l10n-romania-19-0-l10n_ro_stock_picking_comment_template
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
- :target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-romania&target_branch=18.0
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-romania&target_branch=19.0
:alt: Try me on Runboat
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -52,7 +56,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues `_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
-`feedback `_.
+`feedback `_.
Do not contact contributors directly about support or help with technical issues.
@@ -95,6 +99,6 @@ Current `maintainer `__:
|maintainer-feketemihai|
-This module is part of the `OCA/l10n-romania `_ project on GitHub.
+This module is part of the `OCA/l10n-romania `_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
diff --git a/l10n_ro_stock_picking_comment_template/__manifest__.py b/l10n_ro_stock_picking_comment_template/__manifest__.py
index d280919258..17f3e419fe 100644
--- a/l10n_ro_stock_picking_comment_template/__manifest__.py
+++ b/l10n_ro_stock_picking_comment_template/__manifest__.py
@@ -21,7 +21,7 @@
],
"license": "AGPL-3",
"version": "19.0.1.0.0",
- "author": "NextERP Romania," "Odoo Community Association (OCA)",
+ "author": "NextERP Romania,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-romania",
"installable": True,
"development_status": "Beta",