-
-
Notifications
You must be signed in to change notification settings - Fork 282
[17.0][MIG] l10n_br_account #4339
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
Draft
rvalyi
wants to merge
1,686
commits into
OCA:17.0
Choose a base branch
from
akretion:17.0-mig-l10n_br_account
base: 17.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+20,239
−45
Draft
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 3939997
[MIG] l10n_br_account: remessa+withholding+relief
rvalyi 6094c02
[MIG] l10n_br_account: disable mail thread in tests
rvalyi 5b1edc1
[MIG] l10n_br_account: flexible document_type_id
rvalyi 5379b4b
[UPD] Update l10n_br_account.pot
2349402
[BOT] post-merge updates
OCA-git-bot a6d8952
Update translation files
weblate 6ef4763
[UPD] Update l10n_br_account.pot
34d4a73
[REM] l10n_br_account: remove dummy doc leftover
rvalyi b84bdb1
[MIG] l10n_br_account: code cleanup
rvalyi 2efa0e9
[BOT] post-merge updates
OCA-git-bot fbb0a7e
Translated using Weblate (Portuguese (Brazil))
SottomaiorMacedoTec 0ff08fd
[FIX] l10n_br_account: post by action
antoniospneto 5e8afcb
[FIX] l10n_br_account: sign for amount_currency
antoniospneto 5098c56
[FIX] l10n_br_account: sync fiscal/account uom
antoniospneto 7d8168b
[BOT] post-merge updates
OCA-git-bot 5b93e0a
copier update repository
antoniospneto 9262188
[BOT] post-merge updates
OCA-git-bot f11ef58
[IMP] l10n_br_account: rename proxy fields to avoid conflicts
marcelsavegnago 35c81c1
[UPD] Update l10n_br_account.pot
d4fbda1
[BOT] post-merge updates
OCA-git-bot 250f38e
Update translation files
weblate fd79478
[UPD] Update l10n_br_account.pot
406a32d
[BOT] post-merge updates
OCA-git-bot acf8d25
Update translation files
weblate 0a6610e
[REF] l10n_br_account: adapt to l10n_br_fiscal_edi
rvalyi f48efb5
[UPD] Update l10n_br_account.pot
288c577
[BOT] post-merge updates
OCA-git-bot dcc8217
Update translation files
weblate a386c3c
[REF] l10n_br_account: fiscal_document* rename
rvalyi 3d9565b
[UPD] Update l10n_br_account.pot
a40d62e
[BOT] post-merge updates
OCA-git-bot c738de3
Update translation files
weblate 9cfae35
Translated using Weblate (Portuguese (Brazil))
SottomaiorMacedoTec 5001671
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago e689800
[REF] l10n_br_account: remove dead code
antoniospneto 8441f1b
[BOT] post-merge updates
OCA-git-bot 68c3958
[FIX] l10n_br_account: fix _compute_fiscal_document_ids
WesleyOliveira98 c516f7b
[BOT] post-merge updates
OCA-git-bot 4d2e224
[UPD] Update l10n_br_account.pot
0d8c6cf
Update translation files
weblate 95353ec
[FIX] l10n_br_account: avoid duplicated labels
rvalyi a4ae84a
[UPD] Update l10n_br_account.pot
e4e500b
[BOT] post-merge updates
OCA-git-bot 276c850
Update translation files
weblate 8c500e3
[IMP] cancel invoice on fiscal document denial
DiegoParadeda a8da36f
[IMP] l10n_br_account: document deny tests
DiegoParadeda f857d99
[UPD] Update l10n_br_account.pot
6c241e0
[BOT] post-merge updates
OCA-git-bot 4b4b7dc
Update translation files
weblate 5fc00a6
[FIX] l10n_br_account: tree view field
CristianoMafraJunior 4ad2de3
[BOT] post-merge updates
OCA-git-bot c21948d
[REF] l10n_br_account: invoice_view -> move_view
rvalyi 57bebe7
[FIX] l10n_br_account: state tests when no EDI
rvalyi c6447e4
[BOT] post-merge updates
OCA-git-bot 8e80011
[REF] l10n_br_account: rename fiscal compute amounts
antoniospneto 5255a30
[BOT] post-merge updates
OCA-git-bot efe95a3
[REF] l10n_br_account: improve amounts and totals
antoniospneto e25ca4b
[BOT] post-merge updates
OCA-git-bot f4ced7c
[FIX] l10n_br_account: fix undef tax_ids
rvalyi e8ea15b
[FIX] l10n_br_account: readonly product_id
CristianoMafraJunior c1d5740
[BOT] post-merge updates
OCA-git-bot 67a4dd7
[BOT] post-merge updates
OCA-git-bot 122bf60
[FIX] l10n_br_account: _sync_invoice to upstream
rvalyi c1964d0
[BOT] post-merge updates
OCA-git-bot 826d6f2
[FIX] l10n_br_account: form discount_value
CristianoMafraJunior 33516fb
[BOT] post-merge updates
OCA-git-bot f1f8785
[IMP] l10n_br_account: adapt tests to newest TIPI
rvalyi e961c32
[BOT] post-merge updates
OCA-git-bot 5cfa37e
[UPD] Update l10n_br_account.pot
0ae0517
[UPD] Update l10n_br_account.pot
7475e8d
[UPD] Update l10n_br_account.pot
1c88072
[UPD] Update l10n_br_account.pot
3182a64
[UPD] Update l10n_br_account.pot
890fcbd
[IMP] l10n_br_account: add fiscal doc invoice link
DiegoParadeda a816dbd
[IMP] l10n_br_account: test fiscal doc. move link
DiegoParadeda 1afa466
[UPD] Update l10n_br_account.pot
49b176c
[BOT] post-merge updates
OCA-git-bot c151044
[REF] l10n_br_account: fix " " linebreak glitch
rvalyi 224b65b
[UPD] Update l10n_br_account.pot
7cac179
[BOT] post-merge updates
OCA-git-bot e407e27
[REF] l10n_br_account: fiscal_decorator_mixin
rvalyi 63b52ab
[REF] l10n_br_account: remove document.move.mixin
rvalyi 28ecb7d
[UPD] Update l10n_br_account.pot
f0e288d
[BOT] post-merge updates
OCA-git-bot f063da7
[UPD] Update l10n_br_account.pot
296eaf1
[FIX] l10n_br_account: adjust decorator fields
rvalyi b81e10c
[UPD] Update l10n_br_account.pot
a21ccf4
[BOT] post-merge updates
OCA-git-bot 54d89b4
[REF] l10n_br_account: shadowed fields as inverses
rvalyi 8c19168
[REF]l10n_br_account: shadowed fields reverse sync
rvalyi e191fb6
[REF] l10n_br_account: sync partner_shipping_id
rvalyi 1a02260
[REM] l10n_br_account: rm _shadowed_fields meth
rvalyi 1a798f9
[ADD] l10n_br_account: decent move edition tests
rvalyi 7df7acc
[UPD] Update l10n_br_account.pot
fae01b5
[BOT] post-merge updates
OCA-git-bot b27db7e
[REF] l10n_br_account: doc type/serie ->compute
rvalyi 9bd24b5
[REF] l10n_br_account: create_from_account context
antoniospneto 1bc0066
[REF] l10n_br_account: fix copyright,simplify test
rvalyi 542c466
[BOT] post-merge updates
OCA-git-bot b16c693
[BOT] post-merge updates
OCA-git-bot 8df2705
[FIX] l10n_br_account: tax_totals widget invisible
rvalyi 2f9a784
[UPD] Update l10n_br_account.pot
2c2f4d4
[BOT] post-merge updates
OCA-git-bot dee5a4e
FIX] l10n_br_account: _add_inherited_fields fix
rvalyi 35fb8b3
[UPD] Update l10n_br_account.pot
6acfec1
[BOT] post-merge updates
OCA-git-bot 3026d5a
[REF] l10n_br_account: company in test/AGPL glitch
rvalyi 49bd263
[BOT] post-merge updates
OCA-git-bot a006d8b
[REF] l10n_br_account: simplified _get_view
rvalyi cc21692
[BOT] post-merge updates
OCA-git-bot d7bf52e
[IMP] l10n_br_account: inline edition support
rvalyi 98eae08
[UPD] Update l10n_br_account.pot
25fd823
[BOT] post-merge updates
OCA-git-bot 381a5cb
[REF] l10n_br_account: use Command API
rvalyi 84318bc
[BOT] post-merge updates
OCA-git-bot c106cc4
[FIX] l10n_br_account:Check subsequent_doc install
mbcosta fe63dcc
[BOT] post-merge updates
OCA-git-bot 8336c7b
[UPD] Update l10n_br_account.pot
a2e08e6
[UPD] Update l10n_br_account.pot
771c3b7
[UPD] Update l10n_br_account.pot
097731c
[REF] l10n_br_account: use setUpClass in tests
rvalyi 5092e4d
[BOT] post-merge updates
OCA-git-bot 1024181
[REF] l10n_br_account: inscr_est->l10n_br_ie_code
rvalyi c64ccbc
[BOT] post-merge updates
OCA-git-bot 2c5a147
[FIX] l10n_br_account: Ignore compute fields with missing methods
CristianoMafraJunior 29f5edc
[FIX] l10n_br_account: call correct inverse super method for company_id
renatonlima 2be76f6
[BOT] post-merge updates
OCA-git-bot 88c8066
[FIX] l10n_br_account: missing depends
rvalyi 56c89b8
[FIX] l10n_br_account: fix _get_view
rvalyi ad8998d
[IMP] l10n_br_account: unbloat the move view
rvalyi 2713e0e
[FIX] l10n_br_account tests are now all passing normally
rvalyi 8a971d0
[BOT] post-merge updates
OCA-git-bot 870affc
[BOT] post-merge updates
OCA-git-bot 31a7f26
[REF] l10n_br_account: fix compute_fiscal_amount
rvalyi 0a5141c
[REF] l10n_br_account: dead code/comments cleanup
rvalyi 7eb0d1b
[BOT] post-merge updates
OCA-git-bot ed5113b
[UPD] Update l10n_br_account.pot
b95762f
[BOT] post-merge updates
OCA-git-bot 7a8e66d
[UPD] Update l10n_br_account.pot
d136356
[REF] l10n_br_account: fisc qty/price -> compute
rvalyi 6711651
[IMP] l10n_br_account: fiscal quantity tests
rvalyi 4811f62
[BOT] post-merge updates
OCA-git-bot 76eda89
[FIX] l10n_br_account: no tax recompute on import
rvalyi 76f4f4e
[FIX] l10n_br_account: proper UOM on imported move
rvalyi c2056c0
[IMP] l10n_br_account: use upload button
rvalyi 72b5e7d
[IMP] l10n_br_account: import account.move
rvalyi f4e741f
[MIG] l10n_br_account: adapt NFe import to v16
rvalyi b325b8c
[FIX] l10n_br_account: tax_ids and pay terms on import
rvalyi a974abd
[UPD] Update l10n_br_account.pot
059489f
[BOT] post-merge updates
OCA-git-bot 1d6ad0b
[REF] l10n_br_account: stronger _compute_taxes_for_single_line
rvalyi 8af1892
[BOT] post-merge updates
OCA-git-bot 9c53d6d
[REF] l10n_br_account: _compute_document_type_id
rvalyi abf4eba
[REF] l10n_br_account: kill _onchange_fiscal_operation_id
rvalyi 74a88d4
[BOT] post-merge updates
OCA-git-bot 5981b2d
[REF] l10n_br_account: uom_id cleanup
rvalyi 42c90ce
[REF] l10n_br_account: _get_fiscal_partner/_get_fiscal_company
rvalyi 22d33c7
[UPD] Update l10n_br_account.pot
23835dc
[BOT] post-merge updates
OCA-git-bot 1cfaa99
[FIX] l10n_br_account: account tax company
felipemotter 04d0e19
[BOT] post-merge updates
OCA-git-bot b1b6b2a
[REF] l10n_br_account: introduce _compute_tax_fields
rvalyi dd85516
[REF] l10n_br_account: Use compute field for Sign
mbcosta e908a3b
[BOT] post-merge updates
OCA-git-bot 1e1a606
[REF] l10n_br_account: simplify (wrapped aml in fiscal)
rvalyi 25ded90
[REF] l10n_br_account: fisc fields->total; not the reverse
rvalyi 497d71b
[FIX] l10n_br_account: add account_id in editable tree
rvalyi 37b4c75
[BOT] post-merge updates
OCA-git-bot 1430275
[FIX] l10n_br_account: fix move compute_amount sign
marcelsavegnago 9e75b8b
[BOT] post-merge updates
OCA-git-bot 0b309f4
[IMP] l10n_br_account: adapt to better document view
rvalyi bc0c4dc
[FIX] l10n_br_account: fix message_post broadcast
rvalyi e7343e9
[UPD] Update l10n_br_account.pot
96e8b61
[BOT] post-merge updates
OCA-git-bot cd9caab
[REF] l10n_br_account: reindent views
rvalyi 1214555
[UPD] Update l10n_br_account.pot
79cc7b9
[BOT] post-merge updates
OCA-git-bot 4e27adc
[FIX] Allow edit incoterm and sync with move_ids
renatonlima 2c8c01c
[UPD] Update l10n_br_account.pot
f723f29
[BOT] post-merge updates
OCA-git-bot af2b587
[REF] l10n_br_account: unify tests
antoniospneto 5590946
[REF] l10n_br_account: clean account move constants
antoniospneto 8a5ef97
[REF] l10n_br_account: rename fiscal fields
antoniospneto 31603b6
[IMP] l10m_br_account: set journal_id by foce_fiscal_operation_id.jou…
marcelsavegnago b08eef8
[IMP] l10n_br_account: unit test for payment state
antoniospneto 173c957
[IMP] l10n_br_account: add compute_journal method tests
marcelsavegnago 2e36c40
[FIX] l10n_br_account: no compute in compute
rvalyi 2ad8398
[REF] l10n_br_account: fix incoterm warning
rvalyi 21e6605
[FIX] l10n_br_account: fix composite move importation
rvalyi 14af6b8
[IMP] l10n_br_account: optimize terms computation
rvalyi 6a99ac7
[IMP] l10n_br_account: remove taxes of the amount total in _prepare_t…
WesleyOliveira98 1d8c7ae
[IMP] l10n_br_account: add landed cost tests
rvalyi 2d340ef
[IMP] l10n_br_account: NCM edit test in move line
antoniospneto 1b66266
[IMP] l10n_br_account: rm _onchange_product_id_fiscal
rvalyi a336879
[IMP] l10n_br_account: fiscal proxy product_id
antoniospneto d1f043f
[FIX] l10n_br_account: fix product_uom_id sync
rvalyi 7e20d28
[IMP] l10n_br_account: sync+test uot_id from aml
rvalyi d8ff35d
[REF] l10n_br_account: account layer for fiscal document
antoniospneto b5e116b
[IMP] l10n_br_account: create method _get_total_for_tax_totals
WesleyOliveira98 5b6ec5c
[IMP] l10n_br_account: use method _get_total_for_tax_totals in _prepa…
WesleyOliveira98 8d6670c
[FIX] l10n_br_account: Adapted refund tests
renatonlima 547f873
[REF] l10n_br_account: replace pylint:disable by oca-hooks:disable
renatonlima 048524c
[REF] l10n_br_account: clean dead code
antoniospneto 924de0e
[REF] l10n_br_account: Do not call inverse in tests
antoniospneto 4b45303
[FIX] l10n_br_account: add sync_proxy_fields
antoniospneto 2493b60
[IMP] l10n_br_account: no optimize inject_fiscal_fields calls
rvalyi 8f2ec0c
[IMP] l10n_br_account: run test_move_edition -at_install
rvalyi 46ec5fe
[IMP] l10n_br_account: manual FCP edition + other tests
rvalyi dce657a
[REF] l10n_br_account: Simplify mixin inheritance on move/line
antoniospneto 198608a
[REF] l10n_br_account: fiscal fields and computes
antoniospneto ea150ab
[IMP] l10n_br_account: rm l10n_br_account_due_list dep
rvalyi 9d6244a
[MIG] l10n_br_account: account analysis report migration
renatonlima 80ec712
[IMP] l10n_br_account: reorder NCM/CFOP fields
antoniospneto 36f1714
[FIX] l10n_br_account: precompute journal_id account.move.reversal
felipemotter 561bf33
[IMP] l10n_br_account: test force fisc op without journal on refund wiz
felipemotter 1d87070
[REF] l10n_br_account: import wizard is not a mixin
rvalyi 2d54d76
[REF] l10n_br_account: adapt to more generic import wizard
rvalyi 0ebdd28
[MIG] l10n_br_account: Migration to 17.0
marcelsavegnago 25fa382
[MIG] l10n_br_account: account.chart.template refactor
marcelsavegnago 2e8e31e
[MIG] l10n_br_account: hook
marcelsavegnago 16ad908
[MIG] l10n_br_account: views auto-migration
rvalyi b43b7d5
[MIG] l10n_br_account: refactor models methods
marcelsavegnago 533dd39
[MIG] l10n_br_account: discount_percentage
marcelsavegnago 0ac4d2b
[MIG] l10n_br_account: refund_method
marcelsavegnago f5d036f
[MIG] l10n_br_account: compute_needed_terms
marcelsavegnago dd07b78
[MIG] l10n_br_account: compute_needed_terms
marcelsavegnago 02cbfde
wip list renderer
rvalyi 8e6f38a
WIP editable lines Javascript; eventually we need to change and save …
rvalyi 1ec1568
WIP account_move_view migr
rvalyi fe82442
WIP: disable problematic tests for now
rvalyi dfc9f38
[REF] l10n_br_account: use default CoA in tests
rvalyi f9f24a3
[IMP] l10n_br_account: test fallback ->default CoA
rvalyi 0ab64eb
[MIG] l10n_br_account: adaped post_init hook
rvalyi 68e9ea8
[MIG] l10n_br_account: correct tax from fiscal tax
rvalyi b56e0a1
[MIG] l10n_br_account: adapted _load_fiscal_taxes
rvalyi c673272
[MIG] l10n_br_account: update account_tax.py to v17
rvalyi 35241b8
WIP MIGR VIE / TODO / FIXME
rvalyi 50c13ca
WIP account: tests OK except refund and 1 _lc test
rvalyi e6b9599
WIP fiscal: attempt for a popup widget/KO for now
rvalyi 140a3d3
[FIX] l10n_br_fiscal: better default company/currency in tax
rvalyi 630aee6
[IMP] l10n_br_account: more view migration
rvalyi 89dfbe7
[FIX] l10n_br_fiscal: more views migration
rvalyi 164f0b2
[IMP] l10n_br_account: hook: keep BRL for demo companies
rvalyi 84a3203
WIP migr account.move
rvalyi 0c9ccb8
WIP simplified template_br_oca
rvalyi 015cf60
[IMP] l10n_br_account: simplified tax/fiscal tax relation
rvalyi 3124ca3
[MIG] l10n_br_account: avoid ir.rule errors with _inherits
rvalyi 3d77370
l10n_br_account: WIP tests almost OK
rvalyi 6b42a8f
[DON'T MERGE] test-requirements.txt
rvalyi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,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. |
This file contains hidden or 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 @@ | ||
| from .hooks import post_init_hook | ||
|
|
||
| from . import models | ||
| from . import wizards | ||
| from . import report |
This file contains hidden or 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,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, | ||
| } |
This file contains hidden or 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,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
24
l10n_br_account/data/template/account.tax.group-br_oca.csv
This file contains hidden or 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,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" |
This file contains hidden or 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,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> |
This file contains hidden or 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,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) | ||
| 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 | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
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:
Consegui resolver apenas trocando a orderm aqui, veja:
EDIT:

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