-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd7f2a9
commit fd9380b
Showing
13 changed files
with
707 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# © 2018 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 @@ | ||
# © 2018 Danimar Ribeiro, Trustcode | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
{ # pylint: disable=C8101,C8103 | ||
'name': 'Integração Nota Maringá', | ||
'description': """Efetua a integração com a prefeitura de Maringá | ||
- Mantido por Trustcode""", | ||
'summary': """Efetua a integração com a prefeitura de Maringá | ||
- 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', | ||
'views/res_company.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 @@ | ||
# © 2018 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 | ||
from . import res_company |
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,20 @@ | ||
# © 2018 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 == '014': # Nota Maringá ( de onde saiu este código 014 ???? ) | ||
return 'br_nfse_mga.report_br_nfse_danfe_mga' | ||
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 Município") |
Oops, something went wrong.