Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

14.0.87.0.0 escodoo migracao slim #53

Draft
wants to merge 97 commits into
base: 14.0
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
81d4760
[FIX] l10n_br_base: changing one of the fields resets the value of th…
marcelsavegnago Jul 22, 2022
73fb4ef
[FIX] l10n_br_fiscal: changes partner and company inscr_est field as …
marcelsavegnago Jul 28, 2022
75f5406
[ADD] Module l10n_br_nfse_ginfes
luismalta Jul 3, 2020
34b8361
[IMP] l10n_br_ginfes readme and manifest
luismalta Jul 3, 2020
520a9ce
[ADD] NFSe Ginfes test
luismalta Jul 20, 2020
dc56146
[FIX] Company Ginfes definition order
luismalta Jul 21, 2020
bfb0d51
[FIX] Flake8
luismalta Jul 21, 2020
2084562
[FIX] Nfselib dependecies
luismalta Jul 21, 2020
a683a83
[ADD] Contributors
luismalta Jul 22, 2020
38035a0
[FIX] Update nfse xml test
luismalta Jul 22, 2020
854d02d
[ADD] l10n_br_nfse_ginfes readme
luismalta Jul 22, 2020
97987bb
[ADD] NFS-e Ginfes Cancel
luismalta Jul 30, 2020
811e5a7
[REF] Move doc_number to cancela_documento
luismalta Jul 31, 2020
617e31e
[ADD] l10n_br_nfse: adicionado campo de selecao do provedor nfse e re…
marcelsavegnago Aug 1, 2020
21abdbb
[ADD] NFS-e Ginfes document view
luismalta Aug 3, 2020
e79baa3
[FIX] Test Company Ginfes provedor
luismalta Aug 3, 2020
9a7b384
[FIX] Flake8
luismalta Aug 3, 2020
b71a381
[REF] Cancel namespace in findall xml
luismalta Aug 3, 2020
32327ee
[ADD] Consulta NFS-e por RPS
luismalta Aug 3, 2020
a4de2ec
[FIX] Flake8
luismalta Aug 4, 2020
14a0c39
[REF] action_consultar_nfse_rps return message
luismalta Aug 5, 2020
3d02f3f
[ADD] NFS-e Wizard Document Status
luismalta Aug 5, 2020
954cf31
[REM] Button Consultar NFS-e por RPS
luismalta Aug 5, 2020
15969f8
[FIX] Flake8
luismalta Aug 5, 2020
35e03ab
[REM] Manifest empty tags
luismalta Aug 12, 2020
8e641a6
[REF] NFSe Ginfes Test with NFSe Common Test
luismalta Aug 12, 2020
a10b3e8
[FIX] Flake8
luismalta Aug 17, 2020
a66a428
[REF] Move ginfes constants to l10n_br_nfse_ginfes
luismalta Aug 27, 2020
11db20c
[REF] Move ginfes _eletronic_document_send to l10n_br_nfse_ginfes
luismalta Aug 27, 2020
3394207
[REM] Test on_change_partner_id
luismalta Aug 27, 2020
d04adb4
[FIX] Flake8
luismalta Aug 27, 2020
9ba1fa1
[ADD] Updated README
luismalta Aug 27, 2020
fbfbaae
[REF] Rename module l10n_br_nfse_ginfes
luismalta Aug 28, 2020
601d867
[ADD] Ginfes constants
luismalta Aug 28, 2020
09f21cf
[REF] Analisa retorno consulta
luismalta Aug 28, 2020
9626026
[FIX] Flake8
luismalta Sep 14, 2020
35636f8
[FIX] Update test NFSe with Cnae Code
luismalta Sep 15, 2020
de35e1a
[REF] Move analisa_retorno_cancelamento to erpbrasil.edoc
luismalta Sep 16, 2020
ec31880
[FIX] Update test nfse ginfes
luismalta Sep 16, 2020
3113584
[FIX] Update nfse_ginfes XML
luismalta Sep 28, 2020
9116a83
[REF] New nfselib structure
luismalta Oct 15, 2020
4508c77
[IMP] Update ginfes nfse xml test
luismalta Oct 15, 2020
7eb837a
[IMP] Return values from cancel workflow
luismalta Oct 27, 2020
e2d8540
[FIX] xml resposta da consulta apos envio
luismalta Nov 11, 2020
6b44cf9
[REF] nfse consulta_nfse_rps method with kwargs
luismalta Nov 12, 2020
d7f2b93
[REF] Change dependency on nfselib.ginfes
luismalta Nov 13, 2020
63c27b4
[ADD] Development status
mileo Nov 24, 2020
18674d5
[UPD] Update l10n_br_nfse_ginfes.pot
oca-travis Nov 24, 2020
a086790
[UPD] README.rst
OCA-git-bot Nov 24, 2020
9bd36ed
l10n_br_nfse_ginfes 12.0.1.1.0
OCA-git-bot Nov 24, 2020
f531999
Added translation using Weblate (Portuguese (Brazil))
marcelsavegnago Dec 17, 2020
a477bfa
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Dec 17, 2020
e505156
[UPD] Update l10n_br_nfse_ginfes.pot
oca-travis Jan 11, 2021
39be262
[FIX] test
marcelsavegnago Feb 10, 2021
89e23d5
l10n_br_nfse_ginfes 12.0.1.1.1
OCA-git-bot Feb 12, 2021
7be7e11
[FIX] Tests
gabrielcardoso21 Mar 16, 2021
aa0678d
[FIX] Processador ginfes
mileo Mar 24, 2021
87a897f
[UPD] Update l10n_br_nfse_ginfes.pot
oca-travis Mar 26, 2021
ef47365
l10n_br_nfse_ginfes 12.0.2.0.0
OCA-git-bot Mar 26, 2021
c2ea791
typo fix, without backdoor (unlike PHP ;-)
rvalyi Mar 30, 2021
8cbc096
[REF] Renaming GINFES Wizard refactor
mileo Apr 19, 2021
65ea49d
[REF] Renaming GINFES fields
mileo Apr 20, 2021
8ec1739
[FIX] l10n_br_nfse_ginfes: fix set_done()
marcelsavegnago Apr 25, 2021
db18ffa
[IMP] l10n_br_nfse_ginfes: rejected event
marcelsavegnago Apr 25, 2021
4f5050c
[FIX] l10n_br_nfse_ginfes: remove comment and translate messages
marcelsavegnago Apr 25, 2021
a99b756
[IMP] l10n_br_nfse_ginfes: imp UserError when documento cancel fail.
marcelsavegnago Apr 25, 2021
81550cb
[IMP] l10n_br_nfse_ginfes: change self > record
marcelsavegnago Apr 25, 2021
bc3a3ae
[REF] Rename ginfes serialize methods to avoid collision
mileo Apr 26, 2021
d755c57
[REM] Duplicate code
mileo Apr 26, 2021
9180ba6
[FIX] l10n_br_nfse_ginfes date / protocolo cancelamento
mileo Apr 27, 2021
a30482a
[REF] Event PROD/HML l10n_br_nfse_ginfes
mileo Apr 27, 2021
c721c3d
[REF] number -> document_number on l10n_br_nfe_ginfes
mileo Apr 27, 2021
6581bf2
[REF] l10n_br_nfse_ginfes _document_status
mileo Apr 28, 2021
1252e2e
[REF] Document Date to avoid error when install l10n_br_account on gi…
mileo May 5, 2021
c3ca0b2
[UPD] Update l10n_br_nfse_ginfes.pot
oca-travis May 12, 2021
1cb6da8
[UPD] README.rst
OCA-git-bot May 12, 2021
fa857c4
l10n_br_nfse_ginfes 12.0.3.0.0
OCA-git-bot May 12, 2021
f13199a
[UPD] Update l10n_br_nfse_ginfes.pot
oca-travis May 27, 2021
3aef8fb
[IMP] : black, isort, prettier
mileo Sep 3, 2022
ecf05e9
[FIX] fiscal_document_line field name and complex method split
DiegoParadeda Oct 27, 2022
07ddc8e
[MIG][l10n_br_nfse_ginfes] bump module version
mileo Oct 27, 2022
b78d66e
[FIX] 001_50_nfse.xml
DATVenancio Mar 30, 2023
29e5ae6
[FIX] l10n_br_nfse_ginfes: fix external_dependencies
marcelsavegnago Jun 10, 2023
f5a6add
[IMP] l10n_br_fiscal: enable manual entry for inss base reduction
antoniospneto Feb 21, 2023
e6dd28a
[IMP] l10n_br_account: enable manual entry for inss base reduction
marcelsavegnago Mar 1, 2023
e7e3888
[FIX] l10n_br_nfse: state registration is EMPTY if in (isenta,isento,…
marcelsavegnago May 26, 2022
e5bf3f2
[NEW] Migrate to version 12.0
mileo May 19, 2021
f90fcd9
[FIX] Flake8
mileo May 26, 2021
8a462d0
[REF] Code refactor
mileo May 26, 2021
80a594d
[FIX] Readme
mileo May 27, 2021
2711412
[REF] Fields in english
mileo May 27, 2021
4a1a003
[IMP] l10n_br_fiscal_queue: black, isort, prettier
marcelsavegnago Apr 27, 2022
d888697
[MIG] l10n_br_fiscal_queue: Migration to 14.0
marcelsavegnago Apr 27, 2022
47df398
Merge commit 'refs/pull/2033/head' of https://github.com/OCA/l10n-bra…
marcelsavegnago Jun 10, 2023
d91251b
Merge commit 'refs/pull/1928/head' of https://github.com/OCA/l10n-bra…
marcelsavegnago Jun 10, 2023
5ceadf0
Merge commit 'refs/pull/2362/head' of https://github.com/OCA/l10n-bra…
marcelsavegnago Jun 10, 2023
506dbfb
Merge commit 'refs/pull/52/head' of https://github.com/escodoo/l10n-b…
marcelsavegnago Jun 10, 2023
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_account/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ def _compute_taxes_mapped(self, base_line):
icmssn_range=base_line.icmssn_range_id,
icms_origin=base_line.icms_origin,
ind_final=base_line.ind_final,
inss_reduction_manual=base_line.inss_reduction_manual,
)

return balance_taxes_res
Expand Down
2 changes: 2 additions & 0 deletions l10n_br_account/models/account_move_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ def _get_price_total_and_subtotal(
icmssn_range=self.icmssn_range_id,
icms_origin=self.icms_origin,
ind_final=self.ind_final,
inss_reduction_manual=self.inss_reduction_manual,
),
)._get_price_total_and_subtotal(
price_unit=price_unit or self.price_unit,
Expand Down Expand Up @@ -410,6 +411,7 @@ def _get_price_total_and_subtotal_model(
icmssn_range=self.env.context.get("icmssn_range"),
icms_origin=self.env.context.get("icms_origin"),
ind_final=self.env.context.get("ind_final"),
inss_reduction_manual=self.env.context.get("inss_reduction_manual"),
)

result["price_subtotal"] = taxes_res["total_excluded"]
Expand Down
2 changes: 2 additions & 0 deletions l10n_br_account/models/account_tax.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def compute_all(
icmssn_range=None,
icms_origin=None,
ind_final=FINAL_CUSTOMER_NO,
inss_reduction_manual=None,
):
"""Returns all information required to apply taxes
(in self + their children in case of a tax goup).
Expand Down Expand Up @@ -113,6 +114,7 @@ def compute_all(
icmssn_range=icmssn_range,
icms_origin=icms_origin or product.icms_origin,
ind_final=ind_final,
inss_reduction_manual=inss_reduction_manual,
)

taxes_results["amount_tax_included"] = fiscal_taxes_results["amount_included"]
Expand Down
8 changes: 3 additions & 5 deletions l10n_br_base/models/res_company.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,10 @@ def _inverse_cnpj_cpf(self):
for company in self:
company.partner_id.cnpj_cpf = company.cnpj_cpf

def _inverse_state(self):
def _inverse_state_tax_number(self):
"""Write the l10n_br specific functional fields."""
for company in self:
company.partner_id.write(
{"state_id": company.state_id.id, "inscr_est": company.inscr_est}
)
company.partner_id.inscr_est = company.inscr_est

def _inverse_state_tax_number_ids(self):
"""Write the l10n_br specific functional fields."""
Expand Down Expand Up @@ -97,7 +95,7 @@ def _inverse_suframa(self):

inscr_est = fields.Char(
compute="_compute_address",
inverse="_inverse_state",
inverse="_inverse_state_tax_number",
)

state_tax_number_ids = fields.One2many(
Expand Down
2 changes: 2 additions & 0 deletions l10n_br_fiscal/models/document_fiscal_line_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,8 @@ def _operation_domain(self):

inss_reduction = fields.Float(string="INSS % Reduction")

inss_reduction_manual = fields.Float(string="INSS % Manual Reduction")

inss_value = fields.Monetary(string="INSS Value")

inss_wh_tax_id = fields.Many2one(
Expand Down
5 changes: 5 additions & 0 deletions l10n_br_fiscal/models/document_fiscal_line_mixin_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ def _compute_taxes(self, taxes, cst=None):
icms_origin=self.icms_origin,
icms_cst_id=self.icms_cst_id,
ind_final=self.ind_final,
inss_reduction_manual=self.inss_reduction_manual,
)

def _prepare_br_fiscal_dict(self, default=False):
Expand Down Expand Up @@ -831,3 +832,7 @@ def _add_fields_to_amount(self):
@api.model
def _rm_fields_to_amount(self):
return ["icms_relief_value"]

@api.onchange("inss_reduction_manual")
def _onchange_inss_reduction_manual(self):
self._onchange_fiscal_tax_ids()
44 changes: 44 additions & 0 deletions l10n_br_fiscal/models/tax.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
TAX_BASE_TYPE,
TAX_BASE_TYPE_PERCENT,
TAX_BASE_TYPE_VALUE,
TAX_DOMAIN_INSS,
)
from ..constants.icms import (
ICMS_BASE_TYPE,
Expand Down Expand Up @@ -572,6 +573,49 @@

return self._compute_tax(tax, taxes_dict, **kwargs)

@api.model
def _compute_inss(self, tax, taxes_dict, **kwargs):
tax_dict = taxes_dict.get(tax.tax_domain)
company = kwargs.get("company")
currency = kwargs.get("currency", company.currency_id)
fiscal_price = kwargs.get("fiscal_price", 0.00)
fiscal_quantity = kwargs.get("fiscal_quantity", 0.00)

Check warning on line 582 in l10n_br_fiscal/models/tax.py

View check run for this annotation

Codecov / codecov/patch

l10n_br_fiscal/models/tax.py#L578-L582

Added lines #L578 - L582 were not covered by tests

if tax.tax_domain == TAX_DOMAIN_INSS:
if kwargs.get("inss_reduction_manual"):
if kwargs.get("inss_reduction_manual") > 0:
if tax_dict["base_type"] == "percent":
# Compute initial Tax Base for base_type Percent
base = currency.round(fiscal_price * fiscal_quantity)

Check warning on line 589 in l10n_br_fiscal/models/tax.py

View check run for this annotation

Codecov / codecov/patch

l10n_br_fiscal/models/tax.py#L589

Added line #L589 was not covered by tests

if tax_dict["base_type"] == "quantity":
# Compute initial Tax Base for base_type Quantity
base = fiscal_quantity

Check warning on line 593 in l10n_br_fiscal/models/tax.py

View check run for this annotation

Codecov / codecov/patch

l10n_br_fiscal/models/tax.py#L593

Added line #L593 was not covered by tests

if tax_dict["base_type"] == "fixed":
# Compute initial Tax Base
base = currency.round(

Check warning on line 597 in l10n_br_fiscal/models/tax.py

View check run for this annotation

Codecov / codecov/patch

l10n_br_fiscal/models/tax.py#L597

Added line #L597 was not covered by tests
tax_dict["value_amount"] * fiscal_quantity
)

# Compute Tax Base Reduction
base_reduction = base * abs(

Check warning on line 602 in l10n_br_fiscal/models/tax.py

View check run for this annotation

Codecov / codecov/patch

l10n_br_fiscal/models/tax.py#L602

Added line #L602 was not covered by tests
kwargs.get("inss_reduction_manual") / 100
)

tax_dict["remove_from_base"] += base_reduction
tax_dict["percent_reduction"] = base_reduction

Check warning on line 607 in l10n_br_fiscal/models/tax.py

View check run for this annotation

Codecov / codecov/patch

l10n_br_fiscal/models/tax.py#L606-L607

Added lines #L606 - L607 were not covered by tests

tax_dict.update(self._compute_tax(tax, taxes_dict, **kwargs))

Check warning on line 609 in l10n_br_fiscal/models/tax.py

View check run for this annotation

Codecov / codecov/patch

l10n_br_fiscal/models/tax.py#L609

Added line #L609 was not covered by tests

taxes_dict[tax.tax_domain].update(

Check warning on line 611 in l10n_br_fiscal/models/tax.py

View check run for this annotation

Codecov / codecov/patch

l10n_br_fiscal/models/tax.py#L611

Added line #L611 was not covered by tests
self._compute_tax_base(
tax, taxes_dict.get(tax.tax_domain), **kwargs
)
)

return self._compute_tax(tax, taxes_dict, **kwargs)

Check warning on line 617 in l10n_br_fiscal/models/tax.py

View check run for this annotation

Codecov / codecov/patch

l10n_br_fiscal/models/tax.py#L617

Added line #L617 was not covered by tests

@api.model
def _compute_tax_sequence(self, taxes_dict, **kwargs):
"""Método para calcular a ordem que os impostos serão calculados.
Expand Down
38 changes: 28 additions & 10 deletions l10n_br_fiscal/tests/test_icms_regulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@
self.ncm_48191000_id = self.env.ref("l10n_br_fiscal.ncm_48191000")
self.ncm_energia_id = self.env.ref("l10n_br_fiscal.ncm_27160000")

def test_icms_sc_sp_ind_final_yes_default(self):
tax_icms = self.find_icms_tax(
in_state_id=self.sc_state_id,
out_state_id=self.sp_state_id,
ncm_id=self.ncm_48191000_id,
ind_final=FINAL_CUSTOMER_YES,
)
self.assertEqual(tax_icms.percent_amount, 12.00)

def test_icms_sc_sc_ind_final_yes_default(self):
tax_icms = self.find_icms_tax(
in_state_id=self.sc_state_id,
Expand Down Expand Up @@ -48,19 +57,28 @@
)
self.assertEqual(tax_icms.percent_amount, 25.00)

def test_icms_sc_sp_ind_final_yes_default(self):
tax_icms = self.find_icms_tax(
in_state_id=self.sc_state_id,
out_state_id=self.sp_state_id,
ncm_id=self.ncm_48191000_id,
ind_final=FINAL_CUSTOMER_YES,
def find_icms_tax(self, in_state_id, out_state_id, ncm_id, ind_final):
company_inscr_est = (
"497.846.721" if out_state_id.code == "SC" else self.company.inscr_est
)
partner_inscr_est = (
"495.723.657" if in_state_id.code == "SC" else self.partner.inscr_est
)
self.assertEqual(tax_icms.percent_amount, 12.00)

def find_icms_tax(self, in_state_id, out_state_id, ncm_id, ind_final):
if partner_inscr_est != self.partner.inscr_est:
self.partner.inscr_est = False
self.partner.state_id = in_state_id
self.partner.inscr_est = partner_inscr_est
else:
self.partner.state_id = in_state_id

Check warning on line 73 in l10n_br_fiscal/tests/test_icms_regulation.py

View check run for this annotation

Codecov / codecov/patch

l10n_br_fiscal/tests/test_icms_regulation.py#L73

Added line #L73 was not covered by tests

if company_inscr_est != self.company.inscr_est:
self.company.inscr_est = False
self.company.state_id = out_state_id
self.company.inscr_est = company_inscr_est
else:
self.company.state_id = out_state_id

self.partner.state_id = in_state_id
self.company.state_id = out_state_id
self.product.ncm_id = ncm_id

tax_icms = self.icms_regulation.map_tax_icms(
Expand Down
4 changes: 4 additions & 0 deletions l10n_br_fiscal/views/document_fiscal_line_mixin_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,10 @@
/>
</group>
<group>
<field
name="inss_reduction_manual"
attrs="{'readonly': [('inss_reduction', '>', 0)]}"
/>
<field
name="inss_reduction"
force_save="1"
Expand Down
111 changes: 111 additions & 0 deletions l10n_br_fiscal_queue/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
============
Fiscal Queue
============

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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--brazil-lightgray.png?logo=github
:target: https://github.com/OCA/l10n-brazil/tree/12.0/l10n_br_fiscal_queue
:alt: OCA/l10n-brazil
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/l10n-brazil-12-0/l10n-brazil-12-0-l10n_br_fiscal_queue
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/124/12.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|

Permite o envio assincrono de documentos fiscais

**Table of contents**

.. contents::
:local:

Installation
============

To install this module, you need to do nothing install and configure queue_job

Configuration
=============

Para utilizar este módulo você precisa alterar o a forma de envio no cadastro de operações fiscais

Changelog
=========

12.0.1.0.0 (2021)
~~~~~~~~~~~~~~~~~

Migrate to OCA

10.0.1.0.0 (2017)
~~~~~~~~~~~~~~~~~

First Version

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-brazil/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 <https://github.com/OCA/l10n-brazil/issues/new?body=module:%20l10n_br_fiscal_queue%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
~~~~~~~

* KMEE

Contributors
~~~~~~~~~~~~

* `KMEE <https://kmee.com.br>`__:

* Luis Felipe Mileo <[email protected]>
* Gabriel Cardoso de Faria <[email protected]>
* Luiz Felipe Divino <[email protected]>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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.

.. |maintainer-gabrielcardoso21| image:: https://github.com/gabrielcardoso21.png?size=40px
:target: https://github.com/gabrielcardoso21
:alt: gabrielcardoso21
.. |maintainer-mileo| image:: https://github.com/mileo.png?size=40px
:target: https://github.com/mileo
:alt: mileo

Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-gabrielcardoso21| |maintainer-mileo|

This module is part of the `OCA/l10n-brazil <https://github.com/OCA/l10n-brazil/tree/12.0/l10n_br_fiscal_queue>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
4 changes: 4 additions & 0 deletions l10n_br_fiscal_queue/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright 2017 KMEE INFORMATICA LTDA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import model
23 changes: 23 additions & 0 deletions l10n_br_fiscal_queue/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2017 KMEE INFORMATICA LTDA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Fiscal Queue",
"summary": """
Permite o envio assicrono de documentos fiscais""",
"version": "14.0.1.0.0",
"license": "AGPL-3",
"author": "KMEE,Odoo Community Association (OCA)",
"maintainers": ["gabrielcardoso21", "mileo"],
"development_status": "Beta",
"website": "https://github.com/OCA/l10n-brazil",
"depends": [
"queue_job",
"l10n_br_fiscal",
],
"data": [
"views/operation_view.xml",
"views/subsequent_operation_view.xml",
"data/queue_job.xml",
],
}
31 changes: 31 additions & 0 deletions l10n_br_fiscal_queue/data/queue_job.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data>
<!-- Queue Job Channel -->
<record id="edocument_job" model="queue.job.channel">
<field name="name">eDocument Job</field>
<field name="parent_id" ref="queue_job.channel_root" />
</record>

<!-- Queue Job Function -->
<record id="job_function_send_edocument_job" model="queue.job.function">
<field name="model_id" ref="l10n_br_fiscal.model_l10n_br_fiscal_document" />
<field name="method">_send_document_job</field>
<field name="channel_id" ref="edocument_job" />
</record>

<!-- Queue Job Function -->
<record
id="job_function_send_subsequent_edocument_job"
model="queue.job.function"
>
<field
name="model_id"
ref="l10n_br_fiscal.model_l10n_br_fiscal_subsequent_document"
/>
<field name="method">_generate_subsequent_document_job</field>
<field name="channel_id" ref="edocument_job" />
</record>

</data>
</odoo>
7 changes: 7 additions & 0 deletions l10n_br_fiscal_queue/model/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright 2017 KMEE INFORMATICA LTDA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import document
from . import operation
from . import subsequent_document
from . import subsequent_operation
Loading