-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Módulo de emissão de nota fiscal de serviços para o Rio de janeiro
- Loading branch information
1 parent
af12809
commit 08654e3
Showing
14 changed files
with
761 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# -*- coding: utf-8 -*- | ||
# © 2016 Danimar Ribeiro, Trustcode | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# -*- coding: utf-8 -*- | ||
# © 2016 Danimar Ribeiro, Trustcode | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
{ # pylint: disable=C8101,C8103 | ||
'name': 'Integração Nota Carioca', | ||
'description': """Efetua a integração com a prefeitura do Rio de Janeiro | ||
- Mantido por Trustcode""", | ||
'summary': """Efetua a integração com a prefeitura do Rio de Janeiro | ||
- Mantido por Trustcode""", | ||
'version': '11.0.1.0.0', | ||
'category': "Accounting & Finance", | ||
'author': 'Trustcode', | ||
'license': 'AGPL-3', | ||
'website': 'http://www.trustcode.com.br', | ||
'contributors': [ | ||
'Danimar Ribeiro <danimaribeiro@gmail.com>' | ||
], | ||
'depends': [ | ||
'br_nfse', | ||
], | ||
'data': [ | ||
'views/br_account_service.xml', | ||
'reports/danfpse.xml', | ||
], | ||
'application': True, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# -*- coding: utf-8 -*- | ||
# © 2017 Danimar Ribeiro, Trustcode | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from . import account_invoice | ||
from . import invoice_eletronic | ||
from . import br_account_service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# -*- coding: utf-8 -*- | ||
# © 2017 Danimar Ribeiro, Trustcode | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
|
||
from odoo import models | ||
|
||
|
||
class AccountInvoice(models.Model): | ||
_inherit = 'account.invoice' | ||
|
||
def _return_pdf_invoice(self, doc): | ||
if self.service_document_id.code == '012': # Floripa | ||
return 'br_nfse_florianopolis.report_br_nfse_danfpse' | ||
# TODO Implementar ou não? | ||
# PS: ITS DONE MADAFAKA | ||
return super(AccountInvoice, self)._return_pdf_invoice(doc) | ||
|
||
def _prepare_edoc_item_vals(self, line): | ||
res = super(AccountInvoice, self)._prepare_edoc_item_vals(line) | ||
res['codigo_tributacao_municipio'] = \ | ||
line.service_type_id.codigo_tributacao_municipio | ||
return res |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# © 2018 Danimar Ribeiro <danimaribeiro@gmail.com>, Trustcode | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class BrAccountServiceType(models.Model): | ||
_inherit = 'br_account.service.type' | ||
|
||
codigo_tributacao_municipio = fields.Char( | ||
string=u"Cód. Tribut. Munic.", size=20, | ||
help="Código de Tributação no Munípio") |
Oops, something went wrong.