Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1686 commits
Select commit Hold shift + click to select a range
e791e47
[MIG] l10n_br_account: tmp hacks so tests pass
rvalyi Aug 3, 2024
3939997
[MIG] l10n_br_account: remessa+withholding+relief
rvalyi Aug 17, 2024
6094c02
[MIG] l10n_br_account: disable mail thread in tests
rvalyi Aug 21, 2024
5b1edc1
[MIG] l10n_br_account: flexible document_type_id
rvalyi Aug 21, 2024
5379b4b
[UPD] Update l10n_br_account.pot
Aug 23, 2024
2349402
[BOT] post-merge updates
OCA-git-bot Aug 23, 2024
a6d8952
Update translation files
weblate Aug 23, 2024
6ef4763
[UPD] Update l10n_br_account.pot
Aug 26, 2024
34d4a73
[REM] l10n_br_account: remove dummy doc leftover
rvalyi Aug 28, 2024
b84bdb1
[MIG] l10n_br_account: code cleanup
rvalyi Aug 26, 2024
2efa0e9
[BOT] post-merge updates
OCA-git-bot Aug 28, 2024
fbb0a7e
Translated using Weblate (Portuguese (Brazil))
SottomaiorMacedoTec Sep 3, 2024
0ff08fd
[FIX] l10n_br_account: post by action
antoniospneto Jan 18, 2024
5e8afcb
[FIX] l10n_br_account: sign for amount_currency
antoniospneto Sep 4, 2024
5098c56
[FIX] l10n_br_account: sync fiscal/account uom
antoniospneto Sep 4, 2024
7d8168b
[BOT] post-merge updates
OCA-git-bot Sep 4, 2024
5b93e0a
copier update repository
antoniospneto Sep 4, 2024
9262188
[BOT] post-merge updates
OCA-git-bot Sep 5, 2024
f11ef58
[IMP] l10n_br_account: rename proxy fields to avoid conflicts
marcelsavegnago Aug 27, 2024
35c81c1
[UPD] Update l10n_br_account.pot
Sep 5, 2024
d4fbda1
[BOT] post-merge updates
OCA-git-bot Sep 5, 2024
250f38e
Update translation files
weblate Sep 5, 2024
fd79478
[UPD] Update l10n_br_account.pot
Sep 6, 2024
406a32d
[BOT] post-merge updates
OCA-git-bot Sep 6, 2024
acf8d25
Update translation files
weblate Sep 6, 2024
0a6610e
[REF] l10n_br_account: adapt to l10n_br_fiscal_edi
rvalyi Aug 11, 2024
f48efb5
[UPD] Update l10n_br_account.pot
Sep 10, 2024
288c577
[BOT] post-merge updates
OCA-git-bot Sep 10, 2024
dcc8217
Update translation files
weblate Sep 10, 2024
a386c3c
[REF] l10n_br_account: fiscal_document* rename
rvalyi Aug 31, 2024
3d9565b
[UPD] Update l10n_br_account.pot
Sep 10, 2024
a40d62e
[BOT] post-merge updates
OCA-git-bot Sep 10, 2024
c738de3
Update translation files
weblate Sep 10, 2024
9cfae35
Translated using Weblate (Portuguese (Brazil))
SottomaiorMacedoTec Sep 11, 2024
5001671
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Sep 17, 2024
e689800
[REF] l10n_br_account: remove dead code
antoniospneto Sep 19, 2024
8441f1b
[BOT] post-merge updates
OCA-git-bot Sep 19, 2024
68c3958
[FIX] l10n_br_account: fix _compute_fiscal_document_ids
WesleyOliveira98 Sep 23, 2024
c516f7b
[BOT] post-merge updates
OCA-git-bot Sep 24, 2024
4d2e224
[UPD] Update l10n_br_account.pot
Oct 1, 2024
0d8c6cf
Update translation files
weblate Oct 1, 2024
95353ec
[FIX] l10n_br_account: avoid duplicated labels
rvalyi Oct 5, 2024
a4ae84a
[UPD] Update l10n_br_account.pot
Oct 9, 2024
e4e500b
[BOT] post-merge updates
OCA-git-bot Oct 9, 2024
276c850
Update translation files
weblate Oct 9, 2024
8c500e3
[IMP] cancel invoice on fiscal document denial
DiegoParadeda Sep 13, 2024
a8da36f
[IMP] l10n_br_account: document deny tests
DiegoParadeda Sep 23, 2024
f857d99
[UPD] Update l10n_br_account.pot
Oct 17, 2024
6c241e0
[BOT] post-merge updates
OCA-git-bot Oct 17, 2024
4b4b7dc
Update translation files
weblate Oct 17, 2024
5fc00a6
[FIX] l10n_br_account: tree view field
CristianoMafraJunior Oct 28, 2024
4ad2de3
[BOT] post-merge updates
OCA-git-bot Oct 29, 2024
c21948d
[REF] l10n_br_account: invoice_view -> move_view
rvalyi Aug 29, 2024
57bebe7
[FIX] l10n_br_account: state tests when no EDI
rvalyi Nov 16, 2024
c6447e4
[BOT] post-merge updates
OCA-git-bot Dec 7, 2024
8e80011
[REF] l10n_br_account: rename fiscal compute amounts
antoniospneto Dec 17, 2024
5255a30
[BOT] post-merge updates
OCA-git-bot Dec 18, 2024
efe95a3
[REF] l10n_br_account: improve amounts and totals
antoniospneto Dec 18, 2024
e25ca4b
[BOT] post-merge updates
OCA-git-bot Dec 31, 2024
f4ced7c
[FIX] l10n_br_account: fix undef tax_ids
rvalyi Jan 7, 2025
e8ea15b
[FIX] l10n_br_account: readonly product_id
CristianoMafraJunior Jan 8, 2025
c1d5740
[BOT] post-merge updates
OCA-git-bot Jan 8, 2025
67a4dd7
[BOT] post-merge updates
OCA-git-bot Jan 9, 2025
122bf60
[FIX] l10n_br_account: _sync_invoice to upstream
rvalyi Feb 10, 2025
c1964d0
[BOT] post-merge updates
OCA-git-bot Feb 11, 2025
826d6f2
[FIX] l10n_br_account: form discount_value
CristianoMafraJunior Feb 12, 2025
33516fb
[BOT] post-merge updates
OCA-git-bot Feb 13, 2025
f1f8785
[IMP] l10n_br_account: adapt tests to newest TIPI
rvalyi Feb 15, 2025
e961c32
[BOT] post-merge updates
OCA-git-bot Feb 19, 2025
5cfa37e
[UPD] Update l10n_br_account.pot
Mar 11, 2025
0ae0517
[UPD] Update l10n_br_account.pot
Mar 12, 2025
7475e8d
[UPD] Update l10n_br_account.pot
Mar 17, 2025
1c88072
[UPD] Update l10n_br_account.pot
Mar 21, 2025
3182a64
[UPD] Update l10n_br_account.pot
Mar 21, 2025
890fcbd
[IMP] l10n_br_account: add fiscal doc invoice link
DiegoParadeda Mar 27, 2025
a816dbd
[IMP] l10n_br_account: test fiscal doc. move link
DiegoParadeda Mar 28, 2025
1afa466
[UPD] Update l10n_br_account.pot
Mar 29, 2025
49b176c
[BOT] post-merge updates
OCA-git-bot Mar 29, 2025
c151044
[REF] l10n_br_account: fix " " linebreak glitch
rvalyi Apr 6, 2025
224b65b
[UPD] Update l10n_br_account.pot
Apr 7, 2025
7cac179
[BOT] post-merge updates
OCA-git-bot Apr 7, 2025
e407e27
[REF] l10n_br_account: fiscal_decorator_mixin
rvalyi Apr 4, 2025
63b52ab
[REF] l10n_br_account: remove document.move.mixin
rvalyi Apr 4, 2025
28ecb7d
[UPD] Update l10n_br_account.pot
Apr 11, 2025
f0e288d
[BOT] post-merge updates
OCA-git-bot Apr 11, 2025
f063da7
[UPD] Update l10n_br_account.pot
Apr 14, 2025
296eaf1
[FIX] l10n_br_account: adjust decorator fields
rvalyi Apr 25, 2025
b81e10c
[UPD] Update l10n_br_account.pot
Apr 25, 2025
a21ccf4
[BOT] post-merge updates
OCA-git-bot Apr 25, 2025
54d89b4
[REF] l10n_br_account: shadowed fields as inverses
rvalyi Apr 23, 2025
8c19168
[REF]l10n_br_account: shadowed fields reverse sync
rvalyi Apr 27, 2025
e191fb6
[REF] l10n_br_account: sync partner_shipping_id
rvalyi Apr 30, 2025
1a02260
[REM] l10n_br_account: rm _shadowed_fields meth
rvalyi Apr 30, 2025
1a798f9
[ADD] l10n_br_account: decent move edition tests
rvalyi May 5, 2025
7df7acc
[UPD] Update l10n_br_account.pot
May 5, 2025
fae01b5
[BOT] post-merge updates
OCA-git-bot May 5, 2025
b27db7e
[REF] l10n_br_account: doc type/serie ->compute
rvalyi Apr 24, 2025
9bd24b5
[REF] l10n_br_account: create_from_account context
antoniospneto May 6, 2025
1bc0066
[REF] l10n_br_account: fix copyright,simplify test
rvalyi May 6, 2025
542c466
[BOT] post-merge updates
OCA-git-bot May 6, 2025
b16c693
[BOT] post-merge updates
OCA-git-bot May 6, 2025
8df2705
[FIX] l10n_br_account: tax_totals widget invisible
rvalyi May 19, 2025
2f9a784
[UPD] Update l10n_br_account.pot
May 19, 2025
2c2f4d4
[BOT] post-merge updates
OCA-git-bot May 20, 2025
dee5a4e
FIX] l10n_br_account: _add_inherited_fields fix
rvalyi May 26, 2025
35fb8b3
[UPD] Update l10n_br_account.pot
May 31, 2025
6acfec1
[BOT] post-merge updates
OCA-git-bot May 31, 2025
3026d5a
[REF] l10n_br_account: company in test/AGPL glitch
rvalyi May 31, 2025
49bd263
[BOT] post-merge updates
OCA-git-bot Jun 2, 2025
a006d8b
[REF] l10n_br_account: simplified _get_view
rvalyi Jun 9, 2025
cc21692
[BOT] post-merge updates
OCA-git-bot Jun 10, 2025
d7bf52e
[IMP] l10n_br_account: inline edition support
rvalyi Jun 23, 2025
98eae08
[UPD] Update l10n_br_account.pot
Jun 26, 2025
25fd823
[BOT] post-merge updates
OCA-git-bot Jun 26, 2025
381a5cb
[REF] l10n_br_account: use Command API
rvalyi Jun 27, 2025
84318bc
[BOT] post-merge updates
OCA-git-bot Jun 28, 2025
c106cc4
[FIX] l10n_br_account:Check subsequent_doc install
mbcosta Jul 11, 2025
fe63dcc
[BOT] post-merge updates
OCA-git-bot Jul 11, 2025
8336c7b
[UPD] Update l10n_br_account.pot
Jul 16, 2025
a2e08e6
[UPD] Update l10n_br_account.pot
Jul 16, 2025
771c3b7
[UPD] Update l10n_br_account.pot
Jul 16, 2025
097731c
[REF] l10n_br_account: use setUpClass in tests
rvalyi Jul 20, 2025
5092e4d
[BOT] post-merge updates
OCA-git-bot Jul 21, 2025
1024181
[REF] l10n_br_account: inscr_est->l10n_br_ie_code
rvalyi Jul 17, 2025
c64ccbc
[BOT] post-merge updates
OCA-git-bot Jul 24, 2025
2c5a147
[FIX] l10n_br_account: Ignore compute fields with missing methods
CristianoMafraJunior Jul 1, 2025
29f5edc
[FIX] l10n_br_account: call correct inverse super method for company_id
renatonlima Jul 25, 2025
2be76f6
[BOT] post-merge updates
OCA-git-bot Jul 25, 2025
88c8066
[FIX] l10n_br_account: missing depends
rvalyi Jul 30, 2025
56c89b8
[FIX] l10n_br_account: fix _get_view
rvalyi Jul 30, 2025
ad8998d
[IMP] l10n_br_account: unbloat the move view
rvalyi Jul 31, 2025
2713e0e
[FIX] l10n_br_account tests are now all passing normally
rvalyi Jul 31, 2025
8a971d0
[BOT] post-merge updates
OCA-git-bot Jul 31, 2025
870affc
[BOT] post-merge updates
OCA-git-bot Aug 1, 2025
31a7f26
[REF] l10n_br_account: fix compute_fiscal_amount
rvalyi Jul 25, 2025
0a5141c
[REF] l10n_br_account: dead code/comments cleanup
rvalyi Aug 1, 2025
7eb0d1b
[BOT] post-merge updates
OCA-git-bot Aug 1, 2025
ed5113b
[UPD] Update l10n_br_account.pot
Aug 5, 2025
b95762f
[BOT] post-merge updates
OCA-git-bot Aug 5, 2025
7a8e66d
[UPD] Update l10n_br_account.pot
Aug 7, 2025
d136356
[REF] l10n_br_account: fisc qty/price -> compute
rvalyi Apr 1, 2025
6711651
[IMP] l10n_br_account: fiscal quantity tests
rvalyi Jul 22, 2025
4811f62
[BOT] post-merge updates
OCA-git-bot Aug 7, 2025
76eda89
[FIX] l10n_br_account: no tax recompute on import
rvalyi Nov 14, 2023
76f4f4e
[FIX] l10n_br_account: proper UOM on imported move
rvalyi Nov 14, 2023
c2056c0
[IMP] l10n_br_account: use upload button
rvalyi Nov 9, 2023
72b5e7d
[IMP] l10n_br_account: import account.move
rvalyi Nov 9, 2023
f4e741f
[MIG] l10n_br_account: adapt NFe import to v16
rvalyi May 29, 2025
b325b8c
[FIX] l10n_br_account: tax_ids and pay terms on import
rvalyi Aug 4, 2025
a974abd
[UPD] Update l10n_br_account.pot
Aug 8, 2025
059489f
[BOT] post-merge updates
OCA-git-bot Aug 8, 2025
1d6ad0b
[REF] l10n_br_account: stronger _compute_taxes_for_single_line
rvalyi Aug 9, 2025
8af1892
[BOT] post-merge updates
OCA-git-bot Aug 11, 2025
9c53d6d
[REF] l10n_br_account: _compute_document_type_id
rvalyi Aug 9, 2025
abf4eba
[REF] l10n_br_account: kill _onchange_fiscal_operation_id
rvalyi Aug 11, 2025
74a88d4
[BOT] post-merge updates
OCA-git-bot Aug 11, 2025
5981b2d
[REF] l10n_br_account: uom_id cleanup
rvalyi Aug 9, 2025
42c90ce
[REF] l10n_br_account: _get_fiscal_partner/_get_fiscal_company
rvalyi Aug 11, 2025
22d33c7
[UPD] Update l10n_br_account.pot
Aug 12, 2025
23835dc
[BOT] post-merge updates
OCA-git-bot Aug 12, 2025
1cfaa99
[FIX] l10n_br_account: account tax company
felipemotter Aug 14, 2025
04d0e19
[BOT] post-merge updates
OCA-git-bot Aug 14, 2025
b1b6b2a
[REF] l10n_br_account: introduce _compute_tax_fields
rvalyi Aug 11, 2025
dd85516
[REF] l10n_br_account: Use compute field for Sign
mbcosta Aug 15, 2025
e908a3b
[BOT] post-merge updates
OCA-git-bot Aug 15, 2025
1e1a606
[REF] l10n_br_account: simplify (wrapped aml in fiscal)
rvalyi Aug 14, 2025
25ded90
[REF] l10n_br_account: fisc fields->total; not the reverse
rvalyi Aug 14, 2025
497d71b
[FIX] l10n_br_account: add account_id in editable tree
rvalyi Aug 14, 2025
37b4c75
[BOT] post-merge updates
OCA-git-bot Aug 16, 2025
1430275
[FIX] l10n_br_account: fix move compute_amount sign
marcelsavegnago Aug 22, 2025
9e75b8b
[BOT] post-merge updates
OCA-git-bot Aug 22, 2025
0b309f4
[IMP] l10n_br_account: adapt to better document view
rvalyi Aug 27, 2025
bc0c4dc
[FIX] l10n_br_account: fix message_post broadcast
rvalyi Aug 27, 2025
e7343e9
[UPD] Update l10n_br_account.pot
Aug 27, 2025
96e8b61
[BOT] post-merge updates
OCA-git-bot Aug 27, 2025
cd9caab
[REF] l10n_br_account: reindent views
rvalyi Aug 27, 2025
1214555
[UPD] Update l10n_br_account.pot
Aug 28, 2025
79cc7b9
[BOT] post-merge updates
OCA-git-bot Aug 28, 2025
4e27adc
[FIX] Allow edit incoterm and sync with move_ids
renatonlima Jul 15, 2025
2c8c01c
[UPD] Update l10n_br_account.pot
Aug 28, 2025
f723f29
[BOT] post-merge updates
OCA-git-bot Aug 28, 2025
af2b587
[REF] l10n_br_account: unify tests
antoniospneto Sep 5, 2025
5590946
[REF] l10n_br_account: clean account move constants
antoniospneto Sep 6, 2025
8a5ef97
[REF] l10n_br_account: rename fiscal fields
antoniospneto Sep 7, 2025
31603b6
[IMP] l10m_br_account: set journal_id by foce_fiscal_operation_id.jou…
marcelsavegnago Sep 16, 2025
b08eef8
[IMP] l10n_br_account: unit test for payment state
antoniospneto Sep 8, 2025
173c957
[IMP] l10n_br_account: add compute_journal method tests
marcelsavegnago Sep 16, 2025
2e36c40
[FIX] l10n_br_account: no compute in compute
rvalyi Sep 17, 2025
2ad8398
[REF] l10n_br_account: fix incoterm warning
rvalyi Sep 18, 2025
21e6605
[FIX] l10n_br_account: fix composite move importation
rvalyi Sep 19, 2025
14af6b8
[IMP] l10n_br_account: optimize terms computation
rvalyi Sep 19, 2025
6a99ac7
[IMP] l10n_br_account: remove taxes of the amount total in _prepare_t…
WesleyOliveira98 Sep 12, 2025
1d8c7ae
[IMP] l10n_br_account: add landed cost tests
rvalyi Sep 18, 2025
2d340ef
[IMP] l10n_br_account: NCM edit test in move line
antoniospneto Sep 26, 2025
1b66266
[IMP] l10n_br_account: rm _onchange_product_id_fiscal
rvalyi Sep 23, 2025
a336879
[IMP] l10n_br_account: fiscal proxy product_id
antoniospneto Sep 27, 2025
d1f043f
[FIX] l10n_br_account: fix product_uom_id sync
rvalyi Sep 29, 2025
7e20d28
[IMP] l10n_br_account: sync+test uot_id from aml
rvalyi Sep 29, 2025
d8ff35d
[REF] l10n_br_account: account layer for fiscal document
antoniospneto Aug 2, 2025
b5e116b
[IMP] l10n_br_account: create method _get_total_for_tax_totals
WesleyOliveira98 Oct 10, 2025
5b6ec5c
[IMP] l10n_br_account: use method _get_total_for_tax_totals in _prepa…
WesleyOliveira98 Oct 10, 2025
8d6670c
[FIX] l10n_br_account: Adapted refund tests
renatonlima Oct 11, 2025
547f873
[REF] l10n_br_account: replace pylint:disable by oca-hooks:disable
renatonlima Oct 14, 2025
048524c
[REF] l10n_br_account: clean dead code
antoniospneto Oct 18, 2025
924de0e
[REF] l10n_br_account: Do not call inverse in tests
antoniospneto Oct 18, 2025
4b45303
[FIX] l10n_br_account: add sync_proxy_fields
antoniospneto Oct 21, 2025
2493b60
[IMP] l10n_br_account: no optimize inject_fiscal_fields calls
rvalyi Oct 24, 2025
8f2ec0c
[IMP] l10n_br_account: run test_move_edition -at_install
rvalyi Sep 30, 2025
46ec5fe
[IMP] l10n_br_account: manual FCP edition + other tests
rvalyi Oct 18, 2025
dce657a
[REF] l10n_br_account: Simplify mixin inheritance on move/line
antoniospneto Oct 31, 2025
198608a
[REF] l10n_br_account: fiscal fields and computes
antoniospneto Nov 3, 2025
ea150ab
[IMP] l10n_br_account: rm l10n_br_account_due_list dep
rvalyi Sep 30, 2025
9d6244a
[MIG] l10n_br_account: account analysis report migration
renatonlima Nov 23, 2025
80ec712
[IMP] l10n_br_account: reorder NCM/CFOP fields
antoniospneto Nov 27, 2025
36f1714
[FIX] l10n_br_account: precompute journal_id account.move.reversal
felipemotter Dec 18, 2025
561bf33
[IMP] l10n_br_account: test force fisc op without journal on refund wiz
felipemotter Dec 18, 2025
1d87070
[REF] l10n_br_account: import wizard is not a mixin
rvalyi Oct 10, 2025
2d54d76
[REF] l10n_br_account: adapt to more generic import wizard
rvalyi Oct 10, 2025
0ebdd28
[MIG] l10n_br_account: Migration to 17.0
marcelsavegnago Apr 29, 2025
25fa382
[MIG] l10n_br_account: account.chart.template refactor
marcelsavegnago Apr 29, 2025
2e8e31e
[MIG] l10n_br_account: hook
marcelsavegnago Apr 29, 2025
16ad908
[MIG] l10n_br_account: views auto-migration
rvalyi Sep 2, 2025
b43b7d5
[MIG] l10n_br_account: refactor models methods
marcelsavegnago Apr 29, 2025
533dd39
[MIG] l10n_br_account: discount_percentage
marcelsavegnago Apr 30, 2025
0ac4d2b
[MIG] l10n_br_account: refund_method
marcelsavegnago Apr 30, 2025
f5d036f
[MIG] l10n_br_account: compute_needed_terms
marcelsavegnago Apr 30, 2025
dd07b78
[MIG] l10n_br_account: compute_needed_terms
marcelsavegnago Apr 30, 2025
02cbfde
wip list renderer
rvalyi Sep 6, 2025
8e6f38a
WIP editable lines Javascript; eventually we need to change and save …
rvalyi Sep 10, 2025
1ec1568
WIP account_move_view migr
rvalyi Sep 10, 2025
fe82442
WIP: disable problematic tests for now
rvalyi Sep 10, 2025
dfc9f38
[REF] l10n_br_account: use default CoA in tests
rvalyi May 22, 2025
f9f24a3
[IMP] l10n_br_account: test fallback ->default CoA
rvalyi Jun 29, 2025
0ab64eb
[MIG] l10n_br_account: adaped post_init hook
rvalyi Oct 19, 2025
68e9ea8
[MIG] l10n_br_account: correct tax from fiscal tax
rvalyi Oct 19, 2025
b56e0a1
[MIG] l10n_br_account: adapted _load_fiscal_taxes
rvalyi Oct 19, 2025
c673272
[MIG] l10n_br_account: update account_tax.py to v17
rvalyi Oct 19, 2025
35241b8
WIP MIGR VIE / TODO / FIXME
rvalyi Oct 20, 2025
50c13ca
WIP account: tests OK except refund and 1 _lc test
rvalyi Oct 20, 2025
e6b9599
WIP fiscal: attempt for a popup widget/KO for now
rvalyi Oct 20, 2025
140a3d3
[FIX] l10n_br_fiscal: better default company/currency in tax
rvalyi Jan 6, 2026
630aee6
[IMP] l10n_br_account: more view migration
rvalyi Jan 6, 2026
89dfbe7
[FIX] l10n_br_fiscal: more views migration
rvalyi Jan 6, 2026
164f0b2
[IMP] l10n_br_account: hook: keep BRL for demo companies
rvalyi Jan 6, 2026
84a3203
WIP migr account.move
rvalyi Jan 6, 2026
0c9ccb8
WIP simplified template_br_oca
rvalyi Jan 6, 2026
015cf60
[IMP] l10n_br_account: simplified tax/fiscal tax relation
rvalyi Jan 6, 2026
3124ca3
[MIG] l10n_br_account: avoid ir.rule errors with _inherits
rvalyi Jan 7, 2026
3d77370
l10n_br_account: WIP tests almost OK
rvalyi Jan 11, 2026
6b42a8f
[DON'T MERGE] test-requirements.txt
rvalyi Jan 6, 2026
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
139 changes: 139 additions & 0 deletions l10n_br_account/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

===========================================
Invoicing and accounting entries for Brazil
===========================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:b468471b48a20f078a78d28de9d6e6f956e4e567c97e013f3692c4f2d8c7736f
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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
: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/17.0/l10n_br_account
: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-17-0/l10n-brazil-17-0-l10n_br_account
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-brazil&target_branch=17.0
:alt: Try me on Runboat

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

This module was written to extend the functionality of ... to support
... and allow you to ...

**Table of contents**

.. contents::
:local:

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

To install this module, you need to:

- do this ...

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

To configure this module, you need to:

- go to ...

Usage
=====

To use this module, you need to:

- go to ...

Known issues / Roadmap
======================



Changelog
=========



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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/l10n-brazil/issues/new?body=module:%20l10n_br_account%0Aversion:%2017.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
-------

* Akretion

Contributors
------------

- `Akretion <https://akretion.com/pt-BR>`__:

- Renato Lima <[email protected]>
- Raphaël Valyi <[email protected]>

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

- Luis Felipe Mileo <[email protected]>

- `Escodoo <https://www.escodoo.com.br>`__:

- Marcel Savegnago <[email protected]>

- `Engenere <https://engenere.one>`__:

- Antônio S. Pereira Neto <[email protected]>
- Felipe Motter Pereira <[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-renatonlima| image:: https://github.com/renatonlima.png?size=40px
:target: https://github.com/renatonlima
:alt: renatonlima
.. |maintainer-rvalyi| image:: https://github.com/rvalyi.png?size=40px
:target: https://github.com/rvalyi
:alt: rvalyi

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

|maintainer-renatonlima| |maintainer-rvalyi|

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
5 changes: 5 additions & 0 deletions l10n_br_account/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from .hooks import post_init_hook

from . import models
from . import wizards
from . import report
43 changes: 43 additions & 0 deletions l10n_br_account/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Copyright (C) 2009 - TODAY Renato Lima - Akretion
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

{
"name": "Invoicing and accounting entries for Brazil",
"summary": "Invoicing and accounting entries for Brazil",
"category": "Localisation",
"license": "AGPL-3",
"author": "Akretion, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-brazil",
"version": "17.0.1.0.0",
"development_status": "Beta",
"maintainers": ["renatonlima", "rvalyi"],
"depends": [
"l10n_br_coa",
"l10n_br_fiscal",
],
"data": [
# security
"security/ir.model.access.csv",
"security/l10n_br_account_security.xml",
# Views
"views/account_tax_view.xml",
"views/fiscal_operation_view.xml",
"views/fiscal_operation_line_view.xml",
"views/account_move_view.xml",
"views/document_line_view.xml",
"views/document_view.xml",
# Wizards
"wizards/account_move_reversal_view.xml",
"wizards/wizard_document_status.xml",
"wizards/document_import_wizard.xml",
# Report
# "report/account_invoice_report_view.xml",
"views/res_partner_view.xml",
],
"demo": [
"demo/res_users_demo.xml",
],
"post_init_hook": "post_init_hook",
"installable": True,
"auto_install": False,
}
42 changes: 42 additions & 0 deletions l10n_br_account/data/template/account.tax-br_oca.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
"id","fiscal_tax_ids@tax_group_id"
"tax_template_out_ipi","l10n_br_fiscal.tax_group_ipi"
"tax_template_in_ipi","l10n_br_fiscal.tax_group_ipi"
"tax_template_out_ii","l10n_br_fiscal.tax_group_ii"
"tax_template_in_ii","l10n_br_fiscal.tax_group_ii"
"tax_template_out_icms","l10n_br_fiscal.tax_group_icms"
"tax_template_in_icms","l10n_br_fiscal.tax_group_icms"
"tax_template_out_icmssn","l10n_br_fiscal.tax_group_icmssn"
"tax_template_in_icmssn","l10n_br_fiscal.tax_group_icmssn"
"tax_template_out_icms_subist","l10n_br_fiscal.tax_group_icmsst"
"tax_template_in_icms_subist","l10n_br_fiscal.tax_group_icmsst"
"tax_template_out_icmsfcp","l10n_br_fiscal.tax_group_icmsfcp"
"tax_template_in_icmsfcp","l10n_br_fiscal.tax_group_icmsfcp"
"tax_template_out_pis","l10n_br_fiscal.tax_group_pis"
"tax_template_out_pisst","l10n_br_fiscal.tax_group_pisst"
"tax_template_out_pis_wh","l10n_br_fiscal.tax_group_pis_wh"
"tax_template_in_pis","l10n_br_fiscal.tax_group_pis"
"tax_template_in_pisst","l10n_br_fiscal.tax_group_pisst"
"tax_template_in_pis_wh","l10n_br_fiscal.tax_group_pis_wh"
"tax_template_out_cofins","l10n_br_fiscal.tax_group_cofins"
"tax_template_out_cofinsst","l10n_br_fiscal.tax_group_cofinsst"
"tax_template_out_cofins_wh","l10n_br_fiscal.tax_group_cofins_wh"
"tax_template_in_cofins","l10n_br_fiscal.tax_group_cofins"
"tax_template_in_cofinsst","l10n_br_fiscal.tax_group_cofinsst"
"tax_template_in_cofins_wh","l10n_br_fiscal.tax_group_cofins_wh"
"tax_template_out_issqn","l10n_br_fiscal.tax_group_issqn"
"tax_template_out_issqn_wh","l10n_br_fiscal.tax_group_issqn_wh"
"tax_template_in_issqn","l10n_br_fiscal.tax_group_issqn"
"tax_template_in_issqn_wh","l10n_br_fiscal.tax_group_issqn_wh"
"tax_template_out_irpj","l10n_br_fiscal.tax_group_irpj"
"tax_template_out_irpj_wh","l10n_br_fiscal.tax_group_irpj_wh"
"tax_template_in_irpj","l10n_br_fiscal.tax_group_irpj"
"tax_template_in_irpj_wh","l10n_br_fiscal.tax_group_irpj_wh"
"tax_template_out_csll","l10n_br_fiscal.tax_group_csll"
"tax_template_out_csll_wh","l10n_br_fiscal.tax_group_csll_wh"
"tax_template_in_csll","l10n_br_fiscal.tax_group_csll"
"tax_template_in_csll_wh","l10n_br_fiscal.tax_group_csll_wh"
"tax_template_out_inss","l10n_br_fiscal.tax_group_inss"
"tax_template_out_inss_wh","l10n_br_fiscal.tax_group_inss_wh"
"tax_template_in_inss","l10n_br_fiscal.tax_group_inss"
"tax_template_in_inss_wh","l10n_br_fiscal.tax_group_inss_wh"
"tax_template_simples","l10n_br_fiscal.tax_group_simples"
24 changes: 24 additions & 0 deletions l10n_br_account/data/template/account.tax.group-br_oca.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
"id","fiscal_tax_group_id"
"tax_group_ipi","l10n_br_fiscal.tax_group_ipi"
"tax_group_ii","l10n_br_fiscal.tax_group_ii"
"tax_group_icms","l10n_br_fiscal.tax_group_icms"
"tax_group_icmssn","l10n_br_fiscal.tax_group_icmssn"
"tax_group_icmsst","l10n_br_fiscal.tax_group_icmsst"
"tax_group_icmsfcp","l10n_br_fiscal.tax_group_icmsfcp"
"tax_group_pis","l10n_br_fiscal.tax_group_pis"
"tax_group_pisst","l10n_br_fiscal.tax_group_pisst"
"tax_group_pis_wh","l10n_br_fiscal.tax_group_pis_wh"
"tax_group_cofins","l10n_br_fiscal.tax_group_cofins"
"tax_group_cofinsst","l10n_br_fiscal.tax_group_cofinsst"
"tax_group_cofins_wh","l10n_br_fiscal.tax_group_cofins_wh"
"tax_group_issqn","l10n_br_fiscal.tax_group_issqn"
"tax_group_issqn_wh","l10n_br_fiscal.tax_group_issqn_wh"
"tax_group_csll","l10n_br_fiscal.tax_group_csll"
"tax_group_csll_wh","l10n_br_fiscal.tax_group_csll_wh"
"tax_group_ir","l10n_br_fiscal.tax_group_ir"
"tax_group_irpj","l10n_br_fiscal.tax_group_irpj"
"tax_group_irpj_wh","l10n_br_fiscal.tax_group_irpj_wh"
"tax_group_inss","l10n_br_fiscal.tax_group_inss"
"tax_group_inss_wh","l10n_br_fiscal.tax_group_inss_wh"
"tax_group_simples","l10n_br_fiscal.tax_group_simples"
"tax_group_others","l10n_br_fiscal.tax_group_others"
18 changes: 18 additions & 0 deletions l10n_br_account/demo/res_users_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">

<record id="l10n_br_base.user_demo_simples" model="res.users">
<field
name="groups_id"
eval="[Command.link(ref('account.group_account_user'))]"
/>
</record>

<record id="l10n_br_base.user_demo_presumido" model="res.users">
<field
name="groups_id"
eval="[Command.link(ref('account.group_account_user'))]"
/>
</record>

</odoo>
33 changes: 33 additions & 0 deletions l10n_br_account/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Copyright (C) 2019 - Raphaël Valyi Akretion
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html


def post_init_hook(env):
"""Inject Brazilian taxes in the CoA and related them to the account taxes."""

br_demo_companies = [
env.ref("l10n_br_base.empresa_simples_nacional"),
env.ref("l10n_br_base.empresa_lucro_presumido"),
]
todo_companies = []
for company in env["res.company"].with_context(active_test=False).search([]):
if "br_oca" in env["account.chart.template"]._get_parent_template(
company.chart_template
):
env["account.chart.template"].try_loading(company.chart_template, company)
todo_companies.append(company)
elif company in br_demo_companies: # fallback to generic_coa
env["account.chart.template"].try_loading("generic_coa", company)
Copy link
Contributor

@DiegoParadeda DiegoParadeda Jan 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rvalyi, se tentar carregar o generic coa antes da definição da moeda da erro na instalação do l10n_br_account:

2026-01-15 19:11:26,953 22 INFO devel odoo.modules.loading: Module l10n_br_account: loading demo 
2026-01-15 19:11:26,954 22 INFO devel odoo.modules.loading: loading l10n_br_account/demo/res_users_demo.xml 
2026-01-15 19:11:30,718 22 WARNING devel odoo.modules.loading: Transient module states were reset 
2026-01-15 19:11:30,759 22 ERROR devel odoo.modules.registry: Failed to load registry 
Traceback (most recent call last):
  File "/opt/odoo/custom/src/odoo/odoo/modules/registry.py", line 110, in new
    odoo.modules.load_modules(registry, force_demo, status, update_module)
  File "/opt/odoo/custom/src/odoo/odoo/modules/loading.py", line 485, in load_modules
    processed_modules += load_marked_modules(env, graph,
  File "/opt/odoo/custom/src/odoo/odoo/modules/loading.py", line 366, in load_marked_modules
    loaded, processed = load_module_graph(
  File "/opt/odoo/custom/src/odoo/odoo/modules/loading.py", line 247, in load_module_graph
    getattr(py_module, post_init)(env)
  File "/opt/odoo/auto/addons/l10n_br_account/hooks.py", line 21, in post_init_hook
    company.currency_id = env.ref("base.BRL")
  File "/opt/odoo/custom/src/odoo/odoo/fields.py", line 1334, in __set__
    records.write({self.name: write_value})
  File "/opt/odoo/auto/addons/account/models/company.py", line 412, in write
    raise UserError(_('You cannot change the currency of the company since some journal items already exist'))
odoo.exceptions.UserError: You cannot change the currency of the company since some journal items already exist
2026-01-15 19:11:30,761 22 CRITICAL devel odoo.service.server: Failed to initialize database `devel`. 
Traceback (most recent call last):
  File "/opt/odoo/custom/src/odoo/odoo/service/server.py", line 1374, in preload_registries
    registry = Registry.new(dbname, update_module=update_module)
  File "<decorator-gen-16>", line 2, in new
  File "/opt/odoo/custom/src/odoo/odoo/tools/func.py", line 87, in locked
    return func(inst, *args, **kwargs)
  File "/opt/odoo/custom/src/odoo/odoo/modules/registry.py", line 110, in new
    odoo.modules.load_modules(registry, force_demo, status, update_module)
  File "/opt/odoo/custom/src/odoo/odoo/modules/loading.py", line 485, in load_modules
    processed_modules += load_marked_modules(env, graph,
  File "/opt/odoo/custom/src/odoo/odoo/modules/loading.py", line 366, in load_marked_modules
    loaded, processed = load_module_graph(
  File "/opt/odoo/custom/src/odoo/odoo/modules/loading.py", line 247, in load_module_graph
    getattr(py_module, post_init)(env)
  File "/opt/odoo/auto/addons/l10n_br_account/hooks.py", line 21, in post_init_hook
    company.currency_id = env.ref("base.BRL")
  File "/opt/odoo/custom/src/odoo/odoo/fields.py", line 1334, in __set__
    records.write({self.name: write_value})
  File "/opt/odoo/auto/addons/account/models/company.py", line 412, in write
    raise UserError(_('You cannot change the currency of the company since some journal items already exist'))
odoo.exceptions.UserError: You cannot change the currency of the company since some journal items already exist
2026-01-15 19:11:30,762 22 INFO devel odoo.service.server: Stopping gracefully 
Traceback (most recent call last):
  File "/usr/local/bin/addons", line 153, in <module>
    check_call(command)
  File "/usr/local/lib/python3.10/subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['odoo', '--stop-after-init', '--init', 'l10n_br_base,l10n_br_account']' returned non-zero exit status 255.

Consegui resolver apenas trocando a orderm aqui, veja:

elif company in br_demo_companies:  # fallback to generic_coa
    company.currency_id = env.ref("base.BRL") # define moeda primeiro <--
    env["account.chart.template"].try_loading("generic_coa", company) # essa linha gera account.move.lines <--
    todo_companies.append(company)

EDIT:
Trocar a ordem gera um outro problema, a moeda não está sendo definida e permanece USD
image

company.currency_id = env.ref("base.BRL")
todo_companies.append(company)

main_company = env.ref("base.main_company")
if (
main_company not in todo_companies
and env.ref("base.module_l10n_br_account").demo
):
todo_companies.append(main_company)
env["account.chart.template"].load_fiscal_taxes(todo_companies)

# now that generic_coa demo data were loaded for main_company, we can set it in Brazil:
env.ref("base.main_company").country_id = env.ref("base.br").id
Loading
Loading