Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions l10n_br_fiscal/constants/fiscal.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@
(SITUACAO_EDOC_REJEITADA, SITUACAO_EDOC_AUTORIZADA),
(SITUACAO_EDOC_REJEITADA, SITUACAO_EDOC_EM_DIGITACAO),
(SITUACAO_EDOC_REJEITADA, SITUACAO_EDOC_REJEITADA),
(SITUACAO_EDOC_AUTORIZADA, SITUACAO_EDOC_ENVIADA),
]

EDOC_PURPOSE = [
Expand Down
6 changes: 1 addition & 5 deletions l10n_br_nfse_barueri/README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

===============
NFS-e (Barueri)
===============
Expand All @@ -17,7 +13,7 @@ NFS-e (Barueri)
.. |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/license-AGPL--3-blue.png
.. |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--brazil-lightgray.png?logo=github
Expand Down
4 changes: 4 additions & 0 deletions l10n_br_nfse_barueri/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
"nfselib.barueri",
],
},
"data": [
"views/document_view.xml",
"data/l10n_br_nfse_barueri_cron.xml",
],
"depends": [
"l10n_br_nfse",
],
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_nfse_barueri/constants/barueri.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

CONSULTAR_SITUACAO_LOTE_RPS = ["NFeLoteStatusArquivo"]

CONSULTAR_NFSE_POR_RPS = ["NFeLoteListarArquivos"]
CONSULTAR_NFSE_POR_RPS = ["NFeLoteBaixarArquivo"]
18 changes: 18 additions & 0 deletions l10n_br_nfse_barueri/data/l10n_br_nfse_barueri_cron.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding='UTF-8' ?>
<!-- Copyright 2025 - TODAY, Marcel Savegnago <[email protected]>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo noupdate="1">
<record model="ir.cron" id="l10n_br_nfse_barueri_cron">
<field
name="name"
>NFSe Barueri: Check status and update status of submitted documents.</field>
<field name="model_id" ref="model_l10n_br_fiscal_document" />
<field name="state">code</field>
<field name="code">model._cron_document_status_barueri()</field>
<field name="user_id" ref="base.user_root" />
<field name="interval_number">15</field>
<field name="interval_type">minutes</field>
<field name="numbercall">-1</field>
<field eval="False" name="doall" />
</record>
</odoo>
1 change: 1 addition & 0 deletions l10n_br_nfse_barueri/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
from . import document
from . import res_company
from . import account_move
12 changes: 12 additions & 0 deletions l10n_br_nfse_barueri/models/account_move.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright 2025 - TODAY, Cristiano Mafra Junior <[email protected]>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import models


class AccountMove(models.Model):
_inherit = "account.move"

def action_open_nfse_barueri(self):
self.ensure_one()
return self.fiscal_document_id.action_open_nfse_barueri()
Loading
Loading