diff --git a/l10n_ro_account_anaf_sync/i18n/ro.po b/l10n_ro_account_anaf_sync/i18n/ro.po index 13424a8af..220223ea6 100644 --- a/l10n_ro_account_anaf_sync/i18n/ro.po +++ b/l10n_ro_account_anaf_sync/i18n/ro.po @@ -49,7 +49,7 @@ msgstr "Cont ANAF Sync" #. module: l10n_ro_account_anaf_sync #: model:ir.model,name:l10n_ro_account_anaf_sync.model_l10n_ro_account_anaf_sync_scope msgid "Account ANAF Sync Scope" -msgstr "" +msgstr "Cont ANAF Sync Scope" #. module: l10n_ro_account_anaf_sync #: model:ir.model.fields,field_description:l10n_ro_account_anaf_sync.field_l10n_ro_account_anaf_sync__message_needaction diff --git a/l10n_ro_account_edi_ubl/README.rst b/l10n_ro_account_edi_ubl/README.rst index 4f515c59a..5386e8acc 100644 --- a/l10n_ro_account_edi_ubl/README.rst +++ b/l10n_ro_account_edi_ubl/README.rst @@ -7,7 +7,7 @@ Romania - eFactura Account EDI UBL !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:0cb9a2d1b4ab4ffdf533d28f8ba9fd2f257966cf30b77412ee562eb9d3ad9bab + !! source digest: sha256:75dd668f5100ca5ece831aff89e7c3691ec7615dd9ece31dc80114a3d8d7d24f !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png diff --git a/l10n_ro_account_edi_ubl/__init__.py b/l10n_ro_account_edi_ubl/__init__.py index a9b51a3b0..93935f6de 100644 --- a/l10n_ro_account_edi_ubl/__init__.py +++ b/l10n_ro_account_edi_ubl/__init__.py @@ -2,4 +2,3 @@ # See README.rst file on addons root folder for license details from . import models -from .init_hook import pre_init_hook diff --git a/l10n_ro_account_edi_ubl/__manifest__.py b/l10n_ro_account_edi_ubl/__manifest__.py index 160683c70..b1beffe04 100644 --- a/l10n_ro_account_edi_ubl/__manifest__.py +++ b/l10n_ro_account_edi_ubl/__manifest__.py @@ -16,7 +16,6 @@ "views/res_config_settings_views.xml", "views/account_invoice.xml", "views/product_view.xml", - "views/res_partner_view.xml", "views/cius_template.xml", ], "license": "AGPL-3", @@ -25,6 +24,5 @@ "website": "https://github.com/OCA/l10n-romania", "installable": True, "development_status": "Mature", - "pre_init_hook": "pre_init_hook", "maintainers": ["dhongu", "feketemihai"], } diff --git a/l10n_ro_account_edi_ubl/i18n/l10n_ro_account_edi_ubl.pot b/l10n_ro_account_edi_ubl/i18n/l10n_ro_account_edi_ubl.pot index 0e0a2f4ce..f0439a9e0 100644 --- a/l10n_ro_account_edi_ubl/i18n/l10n_ro_account_edi_ubl.pot +++ b/l10n_ro_account_edi_ubl/i18n/l10n_ro_account_edi_ubl.pot @@ -63,13 +63,7 @@ msgstr "" msgid "CIUS RO" msgstr "" -#. module: l10n_ro_account_edi_ubl -#: model:ir.model.fields,help:l10n_ro_account_edi_ubl.field_res_partner__l10n_ro_is_government_institution -#: model:ir.model.fields,help:l10n_ro_account_edi_ubl.field_res_users__l10n_ro_is_government_institution -msgid "" -"Check this if the partner is a government institution.Will be used to " -"calculate the sending of the invoice to the e-invoice system." -msgstr "" + #. module: l10n_ro_account_edi_ubl #: model:ir.model,name:l10n_ro_account_edi_ubl.model_res_company @@ -307,11 +301,7 @@ msgstr "" msgid "Residence" msgstr "" -#. module: l10n_ro_account_edi_ubl -#: model:ir.model.fields,field_description:l10n_ro_account_edi_ubl.field_res_partner__l10n_ro_is_government_institution -#: model:ir.model.fields,field_description:l10n_ro_account_edi_ubl.field_res_users__l10n_ro_is_government_institution -msgid "Romania - Is government institution" -msgstr "" + #. module: l10n_ro_account_edi_ubl #: model:ir.model.fields,field_description:l10n_ro_account_edi_ubl.field_product_product__l10n_ro_nc_code diff --git a/l10n_ro_account_edi_ubl/i18n/ro.po b/l10n_ro_account_edi_ubl/i18n/ro.po index 072ce5007..3cb3f1057 100644 --- a/l10n_ro_account_edi_ubl/i18n/ro.po +++ b/l10n_ro_account_edi_ubl/i18n/ro.po @@ -62,15 +62,6 @@ msgstr "" msgid "CIUS RO" msgstr "CIUS RO" -#. module: l10n_ro_account_edi_ubl -#: model:ir.model.fields,help:l10n_ro_account_edi_ubl.field_res_partner__l10n_ro_is_government_institution -#: model:ir.model.fields,help:l10n_ro_account_edi_ubl.field_res_users__l10n_ro_is_government_institution -msgid "" -"Check this if the partner is a government institution.Will be used to " -"calculate the sending of the invoice to the e-invoice system." -msgstr "" -"Bifa dacă partenerul este o instituție guvernamentală. Va fi folosit pentru " -"a calcula trimiterea facturii către sistemul de facturi electronice." #. module: l10n_ro_account_edi_ubl #: model:ir.model,name:l10n_ro_account_edi_ubl.model_res_company @@ -311,11 +302,6 @@ msgstr "" msgid "Residence" msgstr "" -#. module: l10n_ro_account_edi_ubl -#: model:ir.model.fields,field_description:l10n_ro_account_edi_ubl.field_res_partner__l10n_ro_is_government_institution -#: model:ir.model.fields,field_description:l10n_ro_account_edi_ubl.field_res_users__l10n_ro_is_government_institution -msgid "Romania - Is government institution" -msgstr "Este o instituție guvernamentală" #. module: l10n_ro_account_edi_ubl #: model:ir.model.fields,field_description:l10n_ro_account_edi_ubl.field_product_product__l10n_ro_nc_code diff --git a/l10n_ro_account_edi_ubl/init_hook.py b/l10n_ro_account_edi_ubl/init_hook.py deleted file mode 100644 index 6e4f668e0..000000000 --- a/l10n_ro_account_edi_ubl/init_hook.py +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright (C) 2022 NextERP Romania -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). - -import logging - -logger = logging.getLogger(__name__) - - -def pre_init_hook(cr): - add_field_l10n_ro_is_government_institution(cr) - - -def add_field_l10n_ro_is_government_institution(cr): - cr.execute( - """SELECT column_name - FROM information_schema.columns - WHERE table_name='res_partner' AND column_name='l10n_ro_is_government_institution'""" - ) - if not cr.fetchone(): - cr.execute( - """ - ALTER TABLE res_partner ADD COLUMN l10n_ro_is_government_institution - boolean DEFAULT false; - COMMENT ON COLUMN res_partner.l10n_ro_is_government_institution IS - 'Romania - Is Government Institution'; - """ - ) diff --git a/l10n_ro_account_edi_ubl/models/__init__.py b/l10n_ro_account_edi_ubl/models/__init__.py index 8c6ce4a49..4639e6ab8 100644 --- a/l10n_ro_account_edi_ubl/models/__init__.py +++ b/l10n_ro_account_edi_ubl/models/__init__.py @@ -5,5 +5,4 @@ from . import product from . import res_company from . import res_config_settings -from . import res_partner from . import l10n_ro_account_anaf_sync_scope diff --git a/l10n_ro_account_edi_ubl/models/res_partner.py b/l10n_ro_account_edi_ubl/models/res_partner.py deleted file mode 100644 index 8a88dc43b..000000000 --- a/l10n_ro_account_edi_ubl/models/res_partner.py +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright (C) 2022 Dorin Hongu @@ -8,10 +9,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -274,7 +276,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -300,7 +302,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -366,7 +368,7 @@

Romania - eFactura Account EDI UBL

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:0cb9a2d1b4ab4ffdf533d28f8ba9fd2f257966cf30b77412ee562eb9d3ad9bab +!! source digest: sha256:75dd668f5100ca5ece831aff89e7c3691ec7615dd9ece31dc80114a3d8d7d24f !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Mature License: AGPL-3 OCA/l10n-romania Translate me on Weblate Try me on Runboat

The module will generate E-Invoice XML files according to ANAF E-Invoicing service.

@@ -429,7 +431,9 @@

Contributors

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +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.

diff --git a/l10n_ro_account_edi_ubl/tests/common_data_setup.py b/l10n_ro_account_edi_ubl/tests/common_data_setup.py index e0cf60925..110b6f3d2 100644 --- a/l10n_ro_account_edi_ubl/tests/common_data_setup.py +++ b/l10n_ro_account_edi_ubl/tests/common_data_setup.py @@ -73,16 +73,12 @@ def setUpClass(cls): "state_id": cls.country_state.id, "zip": "307175", "phone": "0256413409", - "l10n_ro_e_invoice": True, - "l10n_ro_is_government_institution": False, "is_company": True, } ) if "street_name" in cls.partner._fields: cls.partner.write({"street_name": "Nr. 383", "street": "Foeni Nr. 383"}) - cls.partner.l10n_ro_is_government_institution = True - # Set up products uom_id = cls.env.ref("uom.product_uom_unit").id cls.product_a = cls.env["product.product"].create( diff --git a/l10n_ro_account_edi_ubl/views/account_invoice.xml b/l10n_ro_account_edi_ubl/views/account_invoice.xml index 12d7beda3..a9667ae52 100644 --- a/l10n_ro_account_edi_ubl/views/account_invoice.xml +++ b/l10n_ro_account_edi_ubl/views/account_invoice.xml @@ -6,15 +6,7 @@ form - +