Skip to content

Commit

Permalink
eFactura
Browse files Browse the repository at this point in the history
eliminare camp l10n_ro_e_invoice
eliminare buton eFactura
  • Loading branch information
dhongu committed Apr 23, 2024
1 parent c34e708 commit 047276b
Show file tree
Hide file tree
Showing 23 changed files with 52 additions and 85 deletions.
2 changes: 1 addition & 1 deletion l10n_ro_account_edi_ubl/README.rst
Expand Up @@ -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:0dcfa57e90f9002bb4aedd1a9eb539e5c67f6a12fc9aca7bf1af3ca54f60a497
!! source digest: sha256:ec1de7de3bae5c3afbee52d377414f4b05eb5d492ea7a81d1cb9c7853fcd3c2a
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
Expand Down
3 changes: 1 addition & 2 deletions l10n_ro_account_edi_ubl/__manifest__.py
Expand Up @@ -16,11 +16,10 @@
"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",
"version": "16.0.1.47.0",
"version": "16.0.1.47.1",
"author": "Terrabit," "NextERP Romania," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-romania",
"installable": True,
Expand Down
7 changes: 1 addition & 6 deletions l10n_ro_account_edi_ubl/models/res_partner.py
Expand Up @@ -2,7 +2,7 @@
# Copyright (C) 2022 NextERP Romania
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from odoo import api, fields, models
from odoo import fields, models


class ResPartner(models.Model):
Expand All @@ -14,8 +14,3 @@ class ResPartner(models.Model):
"Will be used to calculate the sending of the invoice to "
"the e-invoice system.",
)

@api.onchange("l10n_ro_is_government_institution", "l10n_ro_e_invoice")
def _onchange_einvoice_government(self):
if self.l10n_ro_is_government_institution:
self.l10n_ro_e_invoice = True
14 changes: 9 additions & 5 deletions l10n_ro_account_edi_ubl/static/description/index.html
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
Expand All @@ -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.
Expand Down Expand Up @@ -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 }
Expand All @@ -300,7 +302,7 @@
span.pre {
white-space: pre }

span.problematic {
span.problematic, pre.problematic {
color: red }

span.section-subtitle {
Expand Down Expand Up @@ -366,7 +368,7 @@ <h1 class="title">Romania - eFactura Account EDI UBL</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:0dcfa57e90f9002bb4aedd1a9eb539e5c67f6a12fc9aca7bf1af3ca54f60a497
!! source digest: sha256:ec1de7de3bae5c3afbee52d377414f4b05eb5d492ea7a81d1cb9c7853fcd3c2a
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Mature" src="https://img.shields.io/badge/maturity-Mature-brightgreen.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/l10n-romania/tree/16.0/l10n_ro_account_edi_ubl"><img alt="OCA/l10n-romania" src="https://img.shields.io/badge/github-OCA%2Fl10n--romania-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/l10n-romania-16-0/l10n-romania-16-0-l10n_ro_account_edi_ubl"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/l10n-romania&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>The module will generate E-Invoice XML files according to ANAF E-Invoicing service.</p>
Expand Down Expand Up @@ -429,7 +431,9 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<a class="reference external image-reference" href="https://odoo-community.org">
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
</a>
<p>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.</p>
Expand Down
1 change: 0 additions & 1 deletion l10n_ro_account_edi_ubl/tests/common_data_setup.py
Expand Up @@ -73,7 +73,6 @@ 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,
}
Expand Down
14 changes: 3 additions & 11 deletions l10n_ro_account_edi_ubl/views/account_invoice.xml
Expand Up @@ -6,15 +6,7 @@
<field name="type">form</field>
<field name="inherit_id" ref="account.view_move_form" />
<field name="arch" type="xml">
<button name="button_draft" position="after">
<button
type="object"
name="attach_ubl_xml_file_button"
string="eFactura"
help="Attach the UBL XML file to the invoice"
states="posted"
/>
</button>

<xpath expr="//div[@name='journal_div']" position="after">
<label
for="l10n_ro_edi_transaction"
Expand All @@ -34,11 +26,11 @@
<label
for="l10n_ro_edi_download"
string="ID eFactura"
attrs="{'invisible': ['|', ('l10n_ro_edi_download', '=', False), ('state', '=', 'draft'), ('move_type', 'in', ['out_invoice','out_refund'])]}"
attrs="{'invisible': ['|', '&amp;', ('state', '=', 'draft'), ('move_type', 'in', ['out_invoice','out_refund']), ('move_type', '=', 'entry') ]}"
/>
<div
name="l10n_ro_edi_download"
attrs="{'invisible': ['|', ('l10n_ro_edi_download', '=', False), ('state', '=', 'draft'), ('move_type', 'in', ['out_invoice','out_refund'])]}"
attrs="{'invisible': ['|', '&amp;', ('state', '=', 'draft'), ('move_type', 'in', ['out_invoice','out_refund']), ('move_type', '=', 'entry') ]}"
class="o_row"
>
<field
Expand Down
20 changes: 0 additions & 20 deletions l10n_ro_account_edi_ubl/views/res_partner_view.xml

This file was deleted.

2 changes: 1 addition & 1 deletion l10n_ro_config/README.rst
Expand Up @@ -7,7 +7,7 @@ Romania - Localization Config
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:52fac83b4c081042a02fccef82d82c2e9964d241e6bb9bc34b4aff52cc3bd5be
!! source digest: sha256:461279666eca26c2a172a3e48be5f349ae99d5bccb726d107bc67b581970f287
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
Expand Down
2 changes: 1 addition & 1 deletion l10n_ro_config/__manifest__.py
Expand Up @@ -6,7 +6,7 @@
"name": "Romania - Localization Config",
"summary": "Romania - Localization Install and Config Applications",
"license": "AGPL-3",
"version": "16.0.1.11.0",
"version": "16.0.1.11.1",
"author": "NextERP Romania,"
"Forest and Biomass Romania,"
"Odoo Community Association (OCA)",
Expand Down
5 changes: 0 additions & 5 deletions l10n_ro_config/i18n/l10n_ro_config.pot
Expand Up @@ -511,11 +511,6 @@ msgstr ""
msgid "Romania - Default Services Sale Tax"
msgstr ""

#. module: l10n_ro_config
#: model:ir.model.fields,field_description:l10n_ro_config.field_res_partner__l10n_ro_e_invoice
#: model:ir.model.fields,field_description:l10n_ro_config.field_res_users__l10n_ro_e_invoice
msgid "Romania - E-Invoicing"
msgstr ""

#. module: l10n_ro_config
#: model:ir.model.fields,field_description:l10n_ro_config.field_res_company__l10n_ro_property_inverse_taxation_position_id
Expand Down
6 changes: 1 addition & 5 deletions l10n_ro_config/i18n/ro.po
Expand Up @@ -545,11 +545,7 @@ msgstr "Taxa implicită de achiziție pentru servicii"
msgid "Romania - Default Services Sale Tax"
msgstr "Taxa implicită de vânzare pentru servicii"

#. module: l10n_ro_config
#: model:ir.model.fields,field_description:l10n_ro_config.field_res_partner__l10n_ro_e_invoice
#: model:ir.model.fields,field_description:l10n_ro_config.field_res_users__l10n_ro_e_invoice
msgid "Romania - E-Invoicing"
msgstr "E-Factura"


#. module: l10n_ro_config
#: model:ir.model.fields,field_description:l10n_ro_config.field_res_company__l10n_ro_property_inverse_taxation_position_id
Expand Down
1 change: 0 additions & 1 deletion l10n_ro_config/models/res_partner.py
Expand Up @@ -17,7 +17,6 @@ class ResPartner(models.Model):
help="VAT number without country code.",
)
l10n_ro_caen_code = fields.Char(string="Romania - CAEN Code", default="0000")
l10n_ro_e_invoice = fields.Boolean(string="Romania - E-Invoicing", copy=False)

@api.depends("vat")
def _compute_l10n_ro_vat_number(self):
Expand Down
14 changes: 9 additions & 5 deletions l10n_ro_config/static/description/index.html
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
Expand All @@ -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.
Expand Down Expand Up @@ -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 }
Expand All @@ -300,7 +302,7 @@
span.pre {
white-space: pre }

span.problematic {
span.problematic, pre.problematic {
color: red }

span.section-subtitle {
Expand Down Expand Up @@ -366,7 +368,7 @@ <h1 class="title">Romania - Localization Config</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:52fac83b4c081042a02fccef82d82c2e9964d241e6bb9bc34b4aff52cc3bd5be
!! source digest: sha256:461279666eca26c2a172a3e48be5f349ae99d5bccb726d107bc67b581970f287
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Mature" src="https://img.shields.io/badge/maturity-Mature-brightgreen.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/l10n-romania/tree/16.0/l10n_ro_config"><img alt="OCA/l10n-romania" src="https://img.shields.io/badge/github-OCA%2Fl10n--romania-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/l10n-romania-16-0/l10n-romania-16-0-l10n_ro_config"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/l10n-romania&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module allows you to install and configure all the localization modules related to Romania.
Expand Down Expand Up @@ -469,7 +471,9 @@ <h2><a class="toc-backref" href="#toc-entry-10">Contributors</a></h2>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-11">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<a class="reference external image-reference" href="https://odoo-community.org">
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
</a>
<p>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.</p>
Expand Down
5 changes: 1 addition & 4 deletions l10n_ro_config/views/res_partner_view.xml
Expand Up @@ -31,10 +31,7 @@
>
<field name="l10n_ro_vat_subjected" />
</div>
<field
name="l10n_ro_e_invoice"
attrs="{'invisible': ['|',('is_company','=', False),('is_l10n_ro_record','=',False)]}"
/>

<field name="l10n_ro_vat_number" invisible="1" />
</field>
</field>
Expand Down
2 changes: 1 addition & 1 deletion l10n_ro_partner_create_by_vat/README.rst
Expand Up @@ -7,7 +7,7 @@ Romania - Partner Create by VAT
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:3e2a81ad46ca81ecda0462d2973682f367efc6bb4dada14dcf4529041b63fbc2
!! source digest: sha256:fb14cf7d31a78ec0f0f806c7d772f8cf45f282e3b96e487f6867fdef61d2b5f9
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
Expand Down
2 changes: 1 addition & 1 deletion l10n_ro_partner_create_by_vat/__manifest__.py
Expand Up @@ -6,7 +6,7 @@
"summary": "Romania - Partner Create by VAT",
"depends": ["l10n_ro_config"],
"license": "AGPL-3",
"version": "16.0.1.5.0",
"version": "16.0.1.5.1",
"author": "NextERP Romania,"
"Forest and Biomass Romania,"
"Odoo Community Association (OCA)",
Expand Down
1 change: 0 additions & 1 deletion l10n_ro_partner_create_by_vat/models/res_partner.py
Expand Up @@ -39,7 +39,6 @@
("zip", "codPostal", "over_all_the_time"),
("phone", "telefon", "write_if_empty"),
("l10n_ro_caen_code", "cod_CAEN", "over_all_the_time"),
("l10n_ro_e_invoice", "statusRO_e_Factura", "over_all_the_time"),
]


Expand Down
14 changes: 9 additions & 5 deletions l10n_ro_partner_create_by_vat/static/description/index.html
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
Expand All @@ -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.
Expand Down Expand Up @@ -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 }
Expand All @@ -300,7 +302,7 @@
span.pre {
white-space: pre }

span.problematic {
span.problematic, pre.problematic {
color: red }

span.section-subtitle {
Expand Down Expand Up @@ -366,7 +368,7 @@ <h1 class="title">Romania - Partner Create by VAT</h1>
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:3e2a81ad46ca81ecda0462d2973682f367efc6bb4dada14dcf4529041b63fbc2
!! source digest: sha256:fb14cf7d31a78ec0f0f806c7d772f8cf45f282e3b96e487f6867fdef61d2b5f9
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Mature" src="https://img.shields.io/badge/maturity-Mature-brightgreen.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/l10n-romania/tree/16.0/l10n_ro_partner_create_by_vat"><img alt="OCA/l10n-romania" src="https://img.shields.io/badge/github-OCA%2Fl10n--romania-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/l10n-romania-16-0/l10n-romania-16-0-l10n_ro_partner_create_by_vat"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/l10n-romania&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module allows you to create the partners (companies) based on their
Expand Down Expand Up @@ -436,7 +438,9 @@ <h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<a class="reference external image-reference" href="https://odoo-community.org">
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
</a>
<p>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.</p>
Expand Down
2 changes: 1 addition & 1 deletion l10n_ro_partner_create_by_vat/views/partner_view.xml
Expand Up @@ -7,7 +7,7 @@
<field name="model">res.partner</field>
<field name="inherit_id" ref="l10n_ro_config.view_partner_create_by_vat" />
<field name="arch" type="xml">
<field name="l10n_ro_e_invoice" position="after">
<field name="l10n_ro_vat_number" position="after">
<field
name="l10n_ro_old_name"
placeholder="Old Name"
Expand Down
2 changes: 1 addition & 1 deletion l10n_ro_vat_on_payment/README.rst
Expand Up @@ -7,7 +7,7 @@ Romania - VAT on Payment
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:5021234d9d684cd3bc75dcdd249026ac50e9ca6c7f8c3e6ab85c126da6619697
!! source digest: sha256:aff9f0e61b502c7feb15c46239f9ab9553481e216071e81bd7384bfb09a601dc
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
Expand Down

0 comments on commit 047276b

Please sign in to comment.