From b4229302920ce679dc2f880a503d50d1199e3e2b Mon Sep 17 00:00:00 2001 From: Mihai Fekete Date: Mon, 6 Jul 2020 11:32:19 +0300 Subject: [PATCH 01/46] [ADD] 13.0 l10n_ro_account_report_invoice. --- l10n_ro_account_report_invoice/README.rst | 69 ++++++++++++ l10n_ro_account_report_invoice/__init__.py | 1 + .../__manifest__.py | 19 ++++ .../models/__init__.py | 3 + .../models/account_move.py | 26 +++++ .../models/res_company.py | 10 ++ .../models/res_config_settings.py | 12 ++ .../static/description/icon.png | Bin 0 -> 566 bytes .../tests/__init__.py | 1 + .../tests/test_currency_rate.py | 86 ++++++++++++++ .../views/account_invoice_view.xml | 25 +++++ .../views/invoice_report.xml | 105 ++++++++++++++++++ .../views/res_config_settings_view.xml | 37 ++++++ 13 files changed, 394 insertions(+) create mode 100644 l10n_ro_account_report_invoice/README.rst create mode 100644 l10n_ro_account_report_invoice/__init__.py create mode 100644 l10n_ro_account_report_invoice/__manifest__.py create mode 100644 l10n_ro_account_report_invoice/models/__init__.py create mode 100644 l10n_ro_account_report_invoice/models/account_move.py create mode 100644 l10n_ro_account_report_invoice/models/res_company.py create mode 100644 l10n_ro_account_report_invoice/models/res_config_settings.py create mode 100644 l10n_ro_account_report_invoice/static/description/icon.png create mode 100644 l10n_ro_account_report_invoice/tests/__init__.py create mode 100644 l10n_ro_account_report_invoice/tests/test_currency_rate.py create mode 100644 l10n_ro_account_report_invoice/views/account_invoice_view.xml create mode 100644 l10n_ro_account_report_invoice/views/invoice_report.xml create mode 100644 l10n_ro_account_report_invoice/views/res_config_settings_view.xml diff --git a/l10n_ro_account_report_invoice/README.rst b/l10n_ro_account_report_invoice/README.rst new file mode 100644 index 000000000..db3375d87 --- /dev/null +++ b/l10n_ro_account_report_invoice/README.rst @@ -0,0 +1,69 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png + :target: https://www.gnu.org/licenses/agpl + :alt: License: AGPL-3 + +======================== +Romania - Invoice Report +======================== + +This module adds a comment in invoice about the stamp and signature according to law. +It also adds the total amounts in company currency if the currency is different than the company currency. + +Installation +============ + +* 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 - Invoice Report" in your addons +* install the module + +Usage +===== + +.. 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 + +Known issues / Roadmap +====================== + + +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 smash it by providing detailed and welcomed feedback. + +Credits +======= + +Images +------ + +* Odoo Community Association: `Icon `_. + +Contributors +------------ + +* `NextERP Romania `_: + + * Fekete Mihai + +Do not contact contributors directly about support or help with technical issues. + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://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 https://odoo-community.org. diff --git a/l10n_ro_account_report_invoice/__init__.py b/l10n_ro_account_report_invoice/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/l10n_ro_account_report_invoice/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/l10n_ro_account_report_invoice/__manifest__.py b/l10n_ro_account_report_invoice/__manifest__.py new file mode 100644 index 000000000..76b101e3e --- /dev/null +++ b/l10n_ro_account_report_invoice/__manifest__.py @@ -0,0 +1,19 @@ +# Copyright 2018 NextERP Romania +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +{ + "name": "Romania - Invoice Report", + "summary": "Romania - Invoice Report", + "version": "13.0.1.0.0", + "category": "Localization", + "author": "NextERP Romania," "Odoo Community Association (OCA)", + "website": "https://odoo-community.org", + "license": "AGPL-3", + "installable": True, + "depends": ["l10n_ro_config"], + "data": [ + "views/account_invoice_view.xml", + "views/invoice_report.xml", + "views/res_config_settings_view.xml", + ], +} diff --git a/l10n_ro_account_report_invoice/models/__init__.py b/l10n_ro_account_report_invoice/models/__init__.py new file mode 100644 index 000000000..a0d1d6e81 --- /dev/null +++ b/l10n_ro_account_report_invoice/models/__init__.py @@ -0,0 +1,3 @@ +from . import account_move +from . import res_company +from . import res_config_settings diff --git a/l10n_ro_account_report_invoice/models/account_move.py b/l10n_ro_account_report_invoice/models/account_move.py new file mode 100644 index 000000000..1ac0a25bd --- /dev/null +++ b/l10n_ro_account_report_invoice/models/account_move.py @@ -0,0 +1,26 @@ +# Copyright 2018 NextERP Romania +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) + +from odoo import api, fields, models + + +class AccountMove(models.Model): + _inherit = "account.move" + + @api.depends("currency_id", "invoice_date") + def _compute_currency_rate(self): + for invoice in self: + if self.currency_id: + invoice.currency_rate = self.env["res.currency"]._get_conversion_rate( + invoice.currency_id, + invoice.company_currency_id, + invoice.company_id or self.env.company, + invoice.invoice_date or fields.Date.today(), + ) + + currency_rate = fields.Float( + string="Currency Rate", + store=True, + readonly=True, + compute="_compute_currency_rate", + ) diff --git a/l10n_ro_account_report_invoice/models/res_company.py b/l10n_ro_account_report_invoice/models/res_company.py new file mode 100644 index 000000000..22fc377ca --- /dev/null +++ b/l10n_ro_account_report_invoice/models/res_company.py @@ -0,0 +1,10 @@ +# Copyright 2018 NextERP Romania +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) + +from odoo import fields, models + + +class ResCompany(models.Model): + _inherit = "res.company" + + invoice_no_signature_text = fields.Text("Legal Invoice Text", translate=True) diff --git a/l10n_ro_account_report_invoice/models/res_config_settings.py b/l10n_ro_account_report_invoice/models/res_config_settings.py new file mode 100644 index 000000000..831623037 --- /dev/null +++ b/l10n_ro_account_report_invoice/models/res_config_settings.py @@ -0,0 +1,12 @@ +# Copyright 2018 NextERP Romania +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import fields, models + + +class ResConfigSettings(models.TransientModel): + _inherit = "res.config.settings" + + invoice_no_signature_text = fields.Text( + related="company_id.invoice_no_signature_text", readonly=False + ) diff --git a/l10n_ro_account_report_invoice/static/description/icon.png b/l10n_ro_account_report_invoice/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_account_report_invoice/tests/__init__.py b/l10n_ro_account_report_invoice/tests/__init__.py new file mode 100644 index 000000000..ed41ce910 --- /dev/null +++ b/l10n_ro_account_report_invoice/tests/__init__.py @@ -0,0 +1 @@ +from . import test_currency_rate diff --git a/l10n_ro_account_report_invoice/tests/test_currency_rate.py b/l10n_ro_account_report_invoice/tests/test_currency_rate.py new file mode 100644 index 000000000..412d13a1b --- /dev/null +++ b/l10n_ro_account_report_invoice/tests/test_currency_rate.py @@ -0,0 +1,86 @@ +# Copyright (C) 2020 NextERP Romania +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +import datetime + +from odoo import tools +from odoo.modules.module import get_resource_path +from odoo.tests.common import SavepointCase + + +class TestInvoiceCurrencyRate(SavepointCase): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.Company = cls.env["res.company"] + cls.CurrencyRate = cls.env["res.currency.rate"] + cls.partner_model = cls.env["res.partner"] + cls.invoice_model = cls.env["account.move"] + cls.usd_currency = cls.env.ref("base.USD") + cls.ron_currency = cls.env.ref("base.RON") + cls.usd_currency.write({"rate": 1.0}) + cls.ron_currency.write({"active": True, "rate": 1.0}) + # load account_minimal_test.xml file for chart of account in configuration + tools.convert_file( + cls.cr, + "l10n_ro_account_report_invoice", + get_resource_path("account", "test", "account_minimal_test.xml"), + {}, + "init", + False, + "test", + cls.registry._assertion_report, + ) + cls.curr_year = datetime.date.today().year + cls.prev_year = cls.curr_year - 1 + + # By default, tests are run with the current user set + # on the first company. + cls.partner1 = cls.partner_model.create( + {"name": "NextERP Romania", "vat": "RO39187746"} + ) + default_line_account = cls.env["account.account"].search( + [ + ("internal_type", "=", "other"), + ("deprecated", "=", False), + ("company_id", "=", cls.env.user.company_id.id), + ], + limit=1, + ) + cls.invoice_line = [ + ( + 0, + False, + { + "name": "Test description #1", + "product_id": cls.env.ref("product.product_delivery_01").id, + "account_id": default_line_account.id, + "quantity": 1.0, + "price_unit": 100.0, + }, + ) + ] + cls.invoice = cls.invoice_model.create( + { + "partner_id": cls.partner1.id, + "type": "in_invoice", + "invoice_date": datetime.date(cls.curr_year, 1, 1), + "invoice_line_ids": cls.invoice_line, + } + ) + + def test_invoice_currency_rate(self): + """Test download file and partner link.""" + self.env["res.currency.rate"].search([]).unlink() + date_to = datetime.date(self.prev_year, 12, 31) + today = datetime.date.today() + self.env["res.currency.rate"].create( + dict(currency_id=self.usd_currency.id, name=date_to, rate=2) + ) + self.env["res.currency.rate"].create( + dict(currency_id=self.usd_currency.id, name=today, rate=4) + ) + self.invoice.currency_id = self.usd_currency + self.assertEqual(self.invoice.currency_rate, 0.5) + self.invoice.invoice_date = today + self.assertEqual(self.invoice.currency_rate, 0.25) diff --git a/l10n_ro_account_report_invoice/views/account_invoice_view.xml b/l10n_ro_account_report_invoice/views/account_invoice_view.xml new file mode 100644 index 000000000..1324b963c --- /dev/null +++ b/l10n_ro_account_report_invoice/views/account_invoice_view.xml @@ -0,0 +1,25 @@ + + + + account.move.form + account.move + form + + + + + + + + + + + + + + + + diff --git a/l10n_ro_account_report_invoice/views/invoice_report.xml b/l10n_ro_account_report_invoice/views/invoice_report.xml new file mode 100644 index 000000000..a0d40ddc9 --- /dev/null +++ b/l10n_ro_account_report_invoice/views/invoice_report.xml @@ -0,0 +1,105 @@ + + + + diff --git a/l10n_ro_account_report_invoice/views/res_config_settings_view.xml b/l10n_ro_account_report_invoice/views/res_config_settings_view.xml new file mode 100644 index 000000000..cd0cc478b --- /dev/null +++ b/l10n_ro_account_report_invoice/views/res_config_settings_view.xml @@ -0,0 +1,37 @@ + + + + res.config.settings.view.form.inherit.account + res.config.settings + + +
+
+
+
+
+
+
+
+
+
+
From 92828268258f45d8b74f309e0116682e9b282d6b Mon Sep 17 00:00:00 2001 From: oca-travis Date: Sat, 29 Aug 2020 09:28:58 +0000 Subject: [PATCH 02/46] [UPD] Update l10n_ro_account_report_invoice.pot --- .../i18n/l10n_ro_account_report_invoice.pot | 123 ++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 l10n_ro_account_report_invoice/i18n/l10n_ro_account_report_invoice.pot diff --git a/l10n_ro_account_report_invoice/i18n/l10n_ro_account_report_invoice.pot b/l10n_ro_account_report_invoice/i18n/l10n_ro_account_report_invoice.pot new file mode 100644 index 000000000..67025f478 --- /dev/null +++ b/l10n_ro_account_report_invoice/i18n/l10n_ro_account_report_invoice.pot @@ -0,0 +1,123 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * l10n_ro_account_report_invoice +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 13.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_account_report_invoice +#: model_terms:ir.ui.view,arch_db:l10n_ro_account_report_invoice.res_config_settings_view_form +msgid "" +"" +msgstr "" + +#. module: l10n_ro_account_report_invoice +#: model_terms:ir.ui.view,arch_db:l10n_ro_account_report_invoice.l10n_ro_report_invoice_document +msgid "Account:" +msgstr "" + +#. module: l10n_ro_account_report_invoice +#: model_terms:ir.ui.view,arch_db:l10n_ro_account_report_invoice.l10n_ro_report_invoice_document +msgid "Bank:" +msgstr "" + +#. module: l10n_ro_account_report_invoice +#: model_terms:ir.ui.view,arch_db:l10n_ro_account_report_invoice.l10n_ro_report_invoice_document +msgid "Subtotal" +msgstr "" + +#. module: l10n_ro_account_report_invoice +#: model_terms:ir.ui.view,arch_db:l10n_ro_account_report_invoice.l10n_ro_report_invoice_document +msgid "Tax" +msgstr "" + +#. module: l10n_ro_account_report_invoice +#: model_terms:ir.ui.view,arch_db:l10n_ro_account_report_invoice.l10n_ro_report_invoice_document +msgid "Total" +msgstr "" + +#. module: l10n_ro_account_report_invoice +#: model_terms:ir.ui.view,arch_db:l10n_ro_account_report_invoice.l10n_ro_view_move_form +msgid "Amount Due" +msgstr "" + +#. module: l10n_ro_account_report_invoice +#: model_terms:ir.ui.view,arch_db:l10n_ro_account_report_invoice.l10n_ro_view_move_form +msgid "Amounts in company currency" +msgstr "" + +#. module: l10n_ro_account_report_invoice +#: model:ir.model,name:l10n_ro_account_report_invoice.model_res_company +msgid "Companies" +msgstr "" + +#. module: l10n_ro_account_report_invoice +#: model:ir.model,name:l10n_ro_account_report_invoice.model_res_config_settings +msgid "Config Settings" +msgstr "" + +#. module: l10n_ro_account_report_invoice +#: model:ir.model.fields,field_description:l10n_ro_account_report_invoice.field_account_move__currency_rate +msgid "Currency Rate" +msgstr "" + +#. module: l10n_ro_account_report_invoice +#: model_terms:ir.ui.view,arch_db:l10n_ro_account_report_invoice.l10n_ro_report_invoice_document +msgid "Currency rate: 1" +msgstr "" + +#. module: l10n_ro_account_report_invoice +#: model_terms:ir.ui.view,arch_db:l10n_ro_account_report_invoice.res_config_settings_view_form +msgid "Insert your invoice without stamp text here..." +msgstr "" + +#. module: l10n_ro_account_report_invoice +#: model_terms:ir.ui.view,arch_db:l10n_ro_account_report_invoice.res_config_settings_view_form +msgid "Invoices without stamp text" +msgstr "" + +#. module: l10n_ro_account_report_invoice +#: model:ir.model,name:l10n_ro_account_report_invoice.model_account_move +msgid "Journal Entries" +msgstr "" + +#. module: l10n_ro_account_report_invoice +#: model:ir.model.fields,field_description:l10n_ro_account_report_invoice.field_res_company__invoice_no_signature_text +#: model:ir.model.fields,field_description:l10n_ro_account_report_invoice.field_res_config_settings__invoice_no_signature_text +msgid "Legal Invoice Text" +msgstr "" + +#. module: l10n_ro_account_report_invoice +#: model_terms:ir.ui.view,arch_db:l10n_ro_account_report_invoice.l10n_ro_report_invoice_document +msgid "NRC:" +msgstr "" + +#. module: l10n_ro_account_report_invoice +#: model_terms:ir.ui.view,arch_db:l10n_ro_account_report_invoice.l10n_ro_view_move_form +msgid "Tax" +msgstr "" + +#. module: l10n_ro_account_report_invoice +#: model_terms:ir.ui.view,arch_db:l10n_ro_account_report_invoice.l10n_ro_view_move_form +msgid "Tax Excluded" +msgstr "" + +#. module: l10n_ro_account_report_invoice +#: model_terms:ir.ui.view,arch_db:l10n_ro_account_report_invoice.l10n_ro_report_invoice_document +msgid "Tax ID" +msgstr "" + +#. module: l10n_ro_account_report_invoice +#: model_terms:ir.ui.view,arch_db:l10n_ro_account_report_invoice.l10n_ro_view_move_form +msgid "Total" +msgstr "" From a40ba996fba527597da4769e40a141a7337a46c3 Mon Sep 17 00:00:00 2001 From: Mihai Fekete Date: Wed, 2 Sep 2020 10:18:24 +0300 Subject: [PATCH 03/46] Update modules with generated readme. --- l10n_ro_account_report_invoice/README.rst | 70 ++- .../readme/CONTRIBUTORS.rst | 5 + .../readme/DESCRIPTION.rst | 2 + .../readme/INSTALL.rst | 7 + .../static/description/index.html | 436 ++++++++++++++++++ 5 files changed, 495 insertions(+), 25 deletions(-) create mode 100644 l10n_ro_account_report_invoice/readme/CONTRIBUTORS.rst create mode 100644 l10n_ro_account_report_invoice/readme/DESCRIPTION.rst create mode 100644 l10n_ro_account_report_invoice/readme/INSTALL.rst create mode 100644 l10n_ro_account_report_invoice/static/description/index.html diff --git a/l10n_ro_account_report_invoice/README.rst b/l10n_ro_account_report_invoice/README.rst index db3375d87..f487be866 100644 --- a/l10n_ro_account_report_invoice/README.rst +++ b/l10n_ro_account_report_invoice/README.rst @@ -1,51 +1,69 @@ -.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png - :target: https://www.gnu.org/licenses/agpl - :alt: License: AGPL-3 - ======================== Romania - Invoice Report ======================== +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--romania-lightgray.png?logo=github + :target: https://github.com/OCA/l10n-romania/tree/13.0/l10n_ro_account_report_invoice + :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-13-0/l10n-romania-13-0-l10n_ro_account_report_invoice + :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/13.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + This module adds a comment in invoice about the stamp and signature according to law. It also adds the total amounts in company currency if the currency is different than the company currency. +**Table of contents** + +.. contents:: + :local: + 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 - Invoice Report" in your addons * install the module -Usage -===== - -.. 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 - -Known issues / Roadmap -====================== - - 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 smash it by providing detailed and welcomed feedback. +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 ======= -Images ------- +Authors +~~~~~~~ -* Odoo Community Association: `Icon `_. +* NextERP Romania Contributors ------------- +~~~~~~~~~~~~ * `NextERP Romania `_: @@ -53,17 +71,19 @@ Contributors Do not contact contributors directly about support or help with technical issues. -Maintainer ----------- +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. .. image:: https://odoo-community.org/logo.png :alt: Odoo Community Association :target: https://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 https://odoo-community.org. +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_account_report_invoice/readme/CONTRIBUTORS.rst b/l10n_ro_account_report_invoice/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..ef3ccc7c4 --- /dev/null +++ b/l10n_ro_account_report_invoice/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_account_report_invoice/readme/DESCRIPTION.rst b/l10n_ro_account_report_invoice/readme/DESCRIPTION.rst new file mode 100644 index 000000000..f4c0e1386 --- /dev/null +++ b/l10n_ro_account_report_invoice/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +This module adds a comment in invoice about the stamp and signature according to law. +It also adds the total amounts in company currency if the currency is different than the company currency. diff --git a/l10n_ro_account_report_invoice/readme/INSTALL.rst b/l10n_ro_account_report_invoice/readme/INSTALL.rst new file mode 100644 index 000000000..c43bee2ce --- /dev/null +++ b/l10n_ro_account_report_invoice/readme/INSTALL.rst @@ -0,0 +1,7 @@ +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 - Invoice Report" in your addons +* install the module diff --git a/l10n_ro_account_report_invoice/static/description/index.html b/l10n_ro_account_report_invoice/static/description/index.html new file mode 100644 index 000000000..546a5521c --- /dev/null +++ b/l10n_ro_account_report_invoice/static/description/index.html @@ -0,0 +1,436 @@ + + + + + + +Romania - Invoice Report + + + +
+

Romania - Invoice Report

+ + +

Beta License: AGPL-3 OCA/l10n-romania Translate me on Weblate Try me on Runbot

+

This module adds a comment in invoice about the stamp and signature according to law. +It also adds the total amounts in company currency if the currency is different than the company currency.

+

Table of contents

+ +
+

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 - Invoice Report” in your addons
  • +
  • install the module
  • +
+
+
+

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.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • NextERP Romania
  • +
+
+
+

Contributors

+ +

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

+
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

This module is part of the OCA/l10n-romania project on GitHub.

+

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

+
+
+
+ + From de1da949cad31b7675c6f6a9b1bb58586ea87139 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Wed, 2 Sep 2020 08:03:14 +0000 Subject: [PATCH 04/46] l10n_ro_account_report_invoice 13.0.1.0.1 --- l10n_ro_account_report_invoice/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/l10n_ro_account_report_invoice/__manifest__.py b/l10n_ro_account_report_invoice/__manifest__.py index 76b101e3e..d07c1c548 100644 --- a/l10n_ro_account_report_invoice/__manifest__.py +++ b/l10n_ro_account_report_invoice/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Romania - Invoice Report", "summary": "Romania - Invoice Report", - "version": "13.0.1.0.0", + "version": "13.0.1.0.1", "category": "Localization", "author": "NextERP Romania," "Odoo Community Association (OCA)", "website": "https://odoo-community.org", From d90b6e207c2bdb63d777c29f893c13a419c4a09a Mon Sep 17 00:00:00 2001 From: Mihai Fekete Date: Thu, 1 Oct 2020 09:59:38 +0300 Subject: [PATCH 05/46] Update invoice report --- l10n_ro_account_report_invoice/views/invoice_report.xml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/l10n_ro_account_report_invoice/views/invoice_report.xml b/l10n_ro_account_report_invoice/views/invoice_report.xml index a0d40ddc9..a0e70a673 100644 --- a/l10n_ro_account_report_invoice/views/invoice_report.xml +++ b/l10n_ro_account_report_invoice/views/invoice_report.xml @@ -12,12 +12,9 @@ id="inv_tax_id_label" /> Tax ID: - + - - -
NRC: Date: Thu, 1 Oct 2020 07:16:38 +0000 Subject: [PATCH 06/46] l10n_ro_account_report_invoice 13.0.1.1.0 --- l10n_ro_account_report_invoice/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/l10n_ro_account_report_invoice/__manifest__.py b/l10n_ro_account_report_invoice/__manifest__.py index d07c1c548..e9f3f4316 100644 --- a/l10n_ro_account_report_invoice/__manifest__.py +++ b/l10n_ro_account_report_invoice/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Romania - Invoice Report", "summary": "Romania - Invoice Report", - "version": "13.0.1.0.1", + "version": "13.0.1.1.0", "category": "Localization", "author": "NextERP Romania," "Odoo Community Association (OCA)", "website": "https://odoo-community.org", From 7b53c62fc55a70b5ad6657e9b314272ff89fbd80 Mon Sep 17 00:00:00 2001 From: Mihai Fekete Date: Sat, 10 Oct 2020 08:53:45 +0300 Subject: [PATCH 07/46] [IMP] l10n_ro_account_report_invoice: black, isort, prettier --- .../views/invoice_report.xml | 26 ++++++++++++------- .../views/res_config_settings_view.xml | 7 +++-- 2 files changed, 19 insertions(+), 14 deletions(-) diff --git a/l10n_ro_account_report_invoice/views/invoice_report.xml b/l10n_ro_account_report_invoice/views/invoice_report.xml index a0e70a673..ad695d3e6 100644 --- a/l10n_ro_account_report_invoice/views/invoice_report.xml +++ b/l10n_ro_account_report_invoice/views/invoice_report.xml @@ -11,14 +11,16 @@ t-esc="o.company_id.country_id.vat_label" id="inv_tax_id_label" /> - Tax ID: + Tax ID + :
-
NRC:
+
+ NRC: + +
Account: - - + + - +
@@ -44,9 +46,13 @@
Currency rate: 1 =
+ > + Currency rate: 1 + + = + + +
-
+ +