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][WIP] Importação de Documentos Fiscais, Integração com Compras e Estoque #2994

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
e16c679
[REF] some cosmetic var renames
rvalyi Mar 17, 2024
ae52209
[REF] All low level Documents menu
rvalyi Mar 17, 2024
1f097c2
[REF] all documents (account.move) menu
rvalyi Mar 17, 2024
b216bd2
[IMP] composite account.move
rvalyi Jul 16, 2023
23b1e2b
[FIX] disable tax engine for imported documents
rvalyi Nov 6, 2023
3fd5fdf
[DEL] simplified importation methods
rvalyi Nov 9, 2023
6da1088
[IMP] import account.move with NFe/other edocs
rvalyi Nov 9, 2023
76e6238
[IMP] import fiscal documents with native upload button
rvalyi Nov 9, 2023
f5280a4
[IMP] sync' pay terms with NFe dups when possible
rvalyi Nov 9, 2023
464948d
[FIX] workaround uom issue with imported products
rvalyi Nov 12, 2023
6fe52e9
[FIX] import NFE with autXML tag
Nov 15, 2023
c7564ab
[FIX] tax included/excluded for imported documents
rvalyi Nov 14, 2023
716bd10
[FIX] force imported move to have proper UOM
rvalyi Nov 14, 2023
3fe9409
[FIX] skip account.tax recomputation for imported documents
rvalyi Nov 14, 2023
473f3c6
Add new module l10n_br_nfe_stock
hirokibastos Oct 9, 2023
cb3154f
Add fields and methods to l10n_br_fiscal.document
hirokibastos Oct 9, 2023
0d15c70
Add fields and methods to purchase.order
hirokibastos Oct 9, 2023
97895e3
Add fields and methods to stock.picking
hirokibastos Oct 9, 2023
4965b03
Allow linking imported nfes to pickings and purchases
hirokibastos Oct 9, 2023
10d27f9
[ADD] Tests
hirokibastos Oct 10, 2023
bfb7dbb
[REF] Fix tests
hirokibastos Oct 10, 2023
ddd155c
[ADD] Readme files
hirokibastos Oct 26, 2023
2a9a78a
[FIX] Add actions to account move
hirokibastos Nov 8, 2023
3d4e453
[ADD] Add document's invoice to pickings/purchases
hirokibastos Nov 8, 2023
581ed1d
[HACK] Added temp hack to import out documents
hirokibastos Nov 22, 2023
b744e82
[REF] import_document to fiscal mixin
mileo Apr 3, 2024
f4e8f67
[IMP] Import Fiscal Document in a Purchase Order
mileo Apr 3, 2024
4aa9c1c
[IMP] Import a Fiscal Document in a Stock Move
mileo Apr 3, 2024
cf8dc64
[REM] migrated files
mileo Apr 3, 2024
15eb0fe
[REF] Adapt code to alternative version
mileo Apr 3, 2024
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
3 changes: 2 additions & 1 deletion l10n_br_account/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"license": "AGPL-3",
"author": "Akretion, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-brazil",
"version": "14.0.10.4.3",
"version": "14.0.11.0.0",
"development_status": "Beta",
"maintainers": ["renatonlima", "rvalyi"],
"depends": [
Expand All @@ -34,6 +34,7 @@
# Wizards
"wizards/account_move_reversal_view.xml",
"wizards/wizard_document_status.xml",
"wizards/document_import_wizard_mixin.xml",
# Actions
"views/l10n_br_account_action.xml",
# Menus
Expand Down
1 change: 1 addition & 0 deletions l10n_br_account/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@
from . import fiscal_document_line
from . import account_incoterms
from . import ir_model_data
from . import account_journal
14 changes: 9 additions & 5 deletions l10n_br_account/models/account_journal.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# Copyright (C) 2009 - TODAY Renato Lima - Akretion
# Copyright 2023 Akretion (Raphaẽl Valyi <[email protected]>)
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from odoo import fields, models
from odoo import models


class AccountJournal(models.Model):
_inherit = "account.journal"

revenue_expense = fields.Boolean(
string="Gera Financeiro",
)
def create_invoice_from_attachment(self, attachment_ids=None):
if self.env.company.country_id.code != "BR" or len(attachment_ids) < 1:
return super().create_invoice_from_attachment(attachment_ids=attachment_ids)
attachments = self.env["ir.attachment"].browse(attachment_ids)
return self.env[
"l10n_br_fiscal.document.import.wizard.mixin"
]._get_importer_action(attachments)
Loading
Loading