Search 1.9 billion lines of Odoo code on GitHub

l10n_ro_account_anaf_sync

Author: NextERP Romania,Odoo Community Association (OCA)
License: AGPL-3
Branch: 15.0
Repository: neoziv/l10n-romania
Dependencies: l10n_ro_config, and web
Languages: HTML (392, 42.2%), Python (302, 32.5%), XML (138, 14.9%), and reStructuredText (97, 10.4%)
Other branches: 14.0, 14.0-dvi, 14.0-fix_anaf, 15.0-agroamat_mig, 15.0-capital_social, 15.0-consum_productie, 15.0-fix-depends, 15.0-fix-test, 15.0-fix_edi_ubl, 15.0-fix_stock_account, and 15.0-raport_stock
Other repositories: NextERP-Romania/l10n-romania, OCA/l10n-romania, odoo-romania/l10n-romania, and terrabit-ro/l10n-romania

<h1 class="title">Romania - Account ANAF Sync</h1> <p><a class="reference external" 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" 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" href="https://github.com/OCA/l10n-romania/tree/15.0/l10n_ro_account_anaf_sync"><img alt="OCA/l10n-romania" src="https://img.shields.io/badge/github-OCA%2Fl10n--romania-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/l10n-romania-15-0/l10n-romania-15-0-l10n_ro_account_anaf_sync"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/177/15.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p>This module will make posible to send e-invoice / e-transport to Romanian goverment anaf.ro.</p> <p>To use this module you must have a digital signature usb token from Romania connected with a ANAF account.</p> <p><strong>Table of contents</strong></p> <div class="contents local topic" id="contents"> <ul class="simple"> <li><a class="reference internal" href="#installation" id="id1">Installation</a></li> <li><a class="reference internal" href="#configuration" id="id2">Configuration</a></li> <li><a class="reference internal" href="#bug-tracker" id="id3">Bug Tracker</a></li> <li><a class="reference internal" href="#credits" id="id4">Credits</a><ul> <li><a class="reference internal" href="#authors" id="id5">Authors</a></li> <li><a class="reference internal" href="#contributors" id="id6">Contributors</a></li> <li><a class="reference internal" href="#maintainers" id="id7">Maintainers</a></li> </ul> </li> </ul> </div> <a name="installation"></a> <h2><a class="toc-backref" href="#id1">Installation</a></h2> <p>To install this module, you need to:</p> <ul class="simple"> <li>clone the branch 14.0 of the repository <a class="reference external" href="https://github.com/OCA/l10n-romania">https://github.com/OCA/l10n-romania</a></li> <li>add the path to this repository in your configuration (addons-path)</li> <li>update the module list</li> <li>search for &quot;Romania - Account ANAF Sync&quot; in your addons</li> <li>install the module</li> </ul> <a name="configuration"></a> <h2><a class="toc-backref" href="#id2">Configuration</a></h2> <ol class="arabic"> <li><p class="first">Go to <a class="reference external" href="https://pfinternet.anaf.ro/my.policy">https://pfinternet.anaf.ro/my.policy</a> put put your username and password and code that came on email (or create a new user if you do not have)</p> </li> <li><p class="first">Go to &quot;Editare profil Oauth&quot;</p> </li> <li><p class="first">At profile Oauth</p> <ul class="simple"> <li>put some text at &quot;Denumire Aplicatie&quot;</li> <li>at callback URL 1 put your Odoo instance url: /l10n_ro_account_anaf_sync/anaf_oauth</li> <li>(if you odoo site is <a class="reference external" href="https://odoo.zzz.ro">https://odoo.zzz.ro</a> you must put <a class="reference external" href="https://odoo.zzz.ro/l10n_ro_account_anaf_sync/anaf_oauth">https://odoo.zzz.ro/l10n_ro_account_anaf_sync/anaf_oauth</a> url shown also in odoo company e-invoice tab)</li> <li>at Serviciu check e-factura and/or e-transport</li> <li>press Generare Client ID</li> </ul> </li> <li><p class="first">Copy the Client ID and Client Secret.</p> </li> <li><p class="first">Go to Odoo instance and from Settings -&gt; Romania -&gt; Configure ANAF sync create a new record for each company that you have access on ANAF website.</p> </li> <li><p class="first">From a computer that can connect to anaf.ro and login with digital signature.</p> <blockquote> <p>With the usb Token inserted press in Odoo the button Get Token from Anaf. It will ask you for usb token pin. You will get a error or a token and a new valability date If the ANAF website is not asking for a pin you must open and close your browser to ask you again the signature token pin</p> </blockquote> </li> <li><p class="first">If you do not have errors press the test button and all should be ok.</p> </li> <li><p class="first">The access token can be used also to test in other ways like</p> </li> </ol> <pre> <code lang="shell">&gt; curl &quot;https://api.anaf.ro/TestOauth/jaxrs/hello?name=bbb&quot; -H &quot;Authorization: Bearer a010f5e7dd3e44d114d73729419bd1b9968b92fe2015f0512dcZZZZZZZZ&quot; -i Future</code> </pre> <p>Info:</p> <blockquote> <p><a class="reference external" href="https://www.anaf.ro/anaf/internet/ANAF/servicii_online/servicii_web_anaf/!ut/p/a1/hY9NC4JAEIZ_SwevzqRp1k2h3CQojUj3Eiv4FbYrq-nfT8NDRNncZnge3nmBQgiUs7bIWFMIzsphp-aVzIlJNEvzMNAt9A1nu3FWJ3QPyx6IegB_jI0fPvFx8HeB4R4R3cXoTwB_8i9AJyPQHIGJFz2gWSniV93I5rFuZUBlkiYykepD9ue8aap6raCCXdepjLNUlULBb3wu6gbCNwyq-znEm1G2e3v2BHB2faQ!/dl5/d5/L2dBISEvZ0FBIS9nQSEh/">https://www.anaf.ro/anaf/internet/ANAF/servicii_online/servicii_web_anaf/!ut/p/a1/hY9NC4JAEIZ_SwevzqRp1k2h3CQojUj3Eiv4FbYrq-nfT8NDRNncZnge3nmBQgiUs7bIWFMIzsphp-aVzIlJNEvzMNAt9A1nu3FWJ3QPyx6IegB_jI0fPvFx8HeB4R4R3cXoTwB_8i9AJyPQHIGJFz2gWSniV93I5rFuZUBlkiYykepD9ue8aap6raCCXdepjLNUlULBb3wu6gbCNwyq-znEm1G2e3v2BHB2faQ!/dl5/d5/L2dBISEvZ0FBIS9nQSEh/</a></p> <p><a class="reference external" href="https://mfinante.gov.ro/web/efactura/informatii-tehnice">https://mfinante.gov.ro/web/efactura/informatii-tehnice</a></p> <p><a class="reference external" href="https://docs.peppol.eu/poacc/billing/3.0/syntax/ubl-invoice/">https://docs.peppol.eu/poacc/billing/3.0/syntax/ubl-invoice/</a></p> </blockquote> <a name="bug-tracker"></a> <h2><a class="toc-backref" href="#id3">Bug Tracker</a></h2> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/l10n-romania/issues">GitHub Issues</a>. 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 <a class="reference external" href="https://github.com/OCA/l10n-romania/issues/new?body=module:%20l10n_ro_account_anaf_sync%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <p>Do not contact contributors directly about support or help with technical issues.</p> <a name="credits"></a> <h2><a class="toc-backref" href="#id4">Credits</a></h2> <a name="authors"></a> <h3><a class="toc-backref" href="#id5">Authors</a></h3> <ul class="simple"> <li>NextERP Romania</li> </ul> <a name="contributors"></a> <h3><a class="toc-backref" href="#id6">Contributors</a></h3> <ul class="simple"> <li><a class="reference external" href="https://www.nexterp.ro">NextERP Romania</a>:<ul> <li>Fekete Mihai &lt;<a class="reference external" href="mailto:feketemihai&#64;nexterp.ro">feketemihai&#64;nexterp.ro</a>&gt;</li> </ul> </li> </ul> <p>Do not contact contributors directly about support or help with technical issues.</p> <a name="maintainers"></a> <h3><a class="toc-backref" href="#id7">Maintainers</a></h3> <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> <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> <p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p> <p><a class="reference external" href="https://github.com/feketemihai"><img alt="feketemihai" src="https://github.com/feketemihai.png?size=40px" /></a></p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/l10n-romania/tree/15.0/l10n_ro_account_anaf_sync">OCA/l10n-romania</a> project on GitHub.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>