Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1070 commits
Select commit Hold shift + click to select a range
88eab5c
[MIG] Security Group has changed module.
mbcosta Jan 12, 2022
31e232d
[MIG] Injection Brazilian Fiscal fields in View.
mbcosta Jan 12, 2022
5619981
[MIG] Name of method to create invoice has changed.
mbcosta Jan 12, 2022
9730f80
[MIG] Fields compute need parameter compute_sudo and method used to c…
mbcosta Jan 12, 2022
3f3fd89
[UPD] History migration.
mbcosta Jan 13, 2022
4cd1398
[IMP] l10n_br_sale: black, isort, prettier
marcelsavegnago Apr 2, 2022
26d4b8d
[MIG] l10n_br_sale: Migration to 14.0
marcelsavegnago Apr 2, 2022
3eaa016
[MIG] self.env.company in sale
felipemotter Jun 1, 2022
98b9f1d
[MIG] Warning tax_framework selection related
felipemotter Jun 2, 2022
e0a3be2
[IMP] l10n_br_sale: override cnae_id domain
marcelsavegnago Apr 11, 2022
977b0ae
[IMP] l10n_br_sale: add cnae_id on l10n_br_sale_order_form
marcelsavegnago Apr 11, 2022
5421d7c
[IMP] l10n_br_sale: add no_create on city_taxation_code and cnae_id
marcelsavegnago Apr 14, 2022
69ea4fa
[IMP] l10n_br_sale: add page amounts on sale order
marcelsavegnago May 30, 2022
531d0f0
[IMP] l10n_br_sale: Hide fields if company is not in Brazil
marcelsavegnago Apr 2, 2022
901e1cf
[FIX] l10n_br_sale: force calculation of fiscal_qty_delivered
marcelsavegnago Jun 3, 2022
5e8d23d
[UPD] Update l10n_br_sale.pot
oca-travis Jun 6, 2022
d0ad502
[UPD] README.rst
OCA-git-bot Jun 6, 2022
94975d3
[IMP] l10n_br_sale: add ind_final on sale view
antoniospneto Jun 4, 2022
7dac15a
l10n_br_sale 14.0.1.0.1
OCA-git-bot Jun 8, 2022
a53c87f
[UPD] Update l10n_br_sale.pot
oca-travis Jun 11, 2022
678d3da
Update translation files
oca-transbot Jun 11, 2022
1a308b6
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Jul 28, 2022
a174b27
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Jul 29, 2022
ac493cf
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Aug 5, 2022
0e4918b
Fix: partner access to sales user
JorgeJuarezCasai Aug 8, 2022
f6531a0
fix line
JorgeJuarezCasai Aug 8, 2022
31f7538
l10n_br_sale 14.0.1.1.0
OCA-git-bot Aug 9, 2022
293d531
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Aug 12, 2022
7e111cd
Translated using Weblate (Portuguese (Brazil))
douglascstd Aug 19, 2022
ef7fd28
[FIX] l10n_br_sale: fix _create_invoices method
marcelsavegnago Sep 2, 2022
db91341
l10n_br_sale 14.0.1.1.1
OCA-git-bot Sep 4, 2022
b060dbd
[REF] to Beta to please manifestoo
rvalyi Sep 16, 2022
c161b33
[UPD] README.rst
OCA-git-bot Sep 16, 2022
3658d40
Translated using Weblate (Portuguese (Brazil))
douglascstd Sep 16, 2022
80e1491
[REF] l10n_br_sale: Parameter to define Delivery Costs moved to l10n_…
mbcosta Sep 27, 2022
1e1221d
[REF] l10n_br_sale: Expanded size of fields to better view.
mbcosta Sep 27, 2022
79740b5
[UPD] Update l10n_br_sale.pot
Oct 8, 2022
f81a02f
l10n_br_sale 14.0.2.0.0
OCA-git-bot Oct 8, 2022
b1df0bc
Update translation files
oca-transbot Oct 8, 2022
2bd26aa
[IMP] l10n_br_sale: add force_compute_delivery_costs_by_total field o…
marcelsavegnago Oct 14, 2022
4a24084
[UPD] Update l10n_br_sale.pot
Oct 22, 2022
3ccc16d
Update translation files
weblate Oct 22, 2022
b9dfa99
[REF] do not import tests l10n_br_sale
mileo Oct 21, 2022
d2a9498
[REF] attribute-string-redundant l10n_br_sale
mileo Oct 21, 2022
bb82cfb
[UPD] Update l10n_br_sale.pot
Oct 22, 2022
0d01889
l10n_br_sale 14.0.2.0.1
OCA-git-bot Oct 22, 2022
a0e57e9
Update translation files
weblate Oct 22, 2022
0bbdccf
[REF] missing-return l10n_br_sale
mileo Oct 22, 2022
0c77eca
[REF] dangerous-qweb-replace-wo-priority l10n_br_sale
mileo Oct 22, 2022
4e393bf
l10n_br_sale 14.0.2.0.2
OCA-git-bot Oct 22, 2022
1cef0cc
l10n_br_sale 14.0.2.0.3
OCA-git-bot Oct 22, 2022
99a6e80
Translated using Weblate (Portuguese (Brazil))
douglascstd Oct 31, 2022
36e4d11
Translated using Weblate (Portuguese (Brazil))
douglascstd Nov 23, 2022
f056253
[FIX] l10n_br_sale: requerid attribute for operation line
antoniospneto Nov 29, 2022
fa96e11
Translated using Weblate (Portuguese (Brazil))
douglascstd Dec 7, 2022
1c18037
l10n_br_sale 14.0.2.1.0
OCA-git-bot Dec 7, 2022
4b66ca0
Translated using Weblate (Portuguese (Brazil))
douglascstd Dec 7, 2022
01fbf27
Translated using Weblate (Portuguese (Brazil))
augustodinizl Dec 9, 2022
8176f74
[IMP] l10n_br_sale: readonly depending on the type of discount
felipemotter Nov 25, 2022
98969fb
[FIX] l10n_br_sale: change discount logic
felipemotter Dec 14, 2022
9051a0c
[IMP] l10n_br_sale: create tests for discounts
felipemotter Dec 14, 2022
b050b11
[DOC] Escodoo + Engenere contributors
rvalyi Dec 15, 2022
cabdc22
[UPD] Update l10n_br_sale.pot
Dec 16, 2022
709fad1
[UPD] README.rst
OCA-git-bot Dec 16, 2022
ddbb626
l10n_br_sale 14.0.2.2.0
OCA-git-bot Dec 16, 2022
d109c4b
Update translation files
weblate Dec 16, 2022
6962af4
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Jan 7, 2023
35923af
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Jan 7, 2023
32e4f72
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Jan 7, 2023
23649e9
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Jan 7, 2023
b7adda5
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Jan 7, 2023
b46f495
[UPD] Update l10n_br_sale.pot
Jan 9, 2023
0740c83
Update translation files
weblate Jan 9, 2023
3b24e89
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Feb 10, 2023
164bf76
[FIX] l10n_br_sale: sale onchange product fiscal price
felipemotter Feb 24, 2023
f1b1784
[IMP] l10n_br_sale: add unittest for pricelist
antoniospneto Feb 24, 2023
f74607c
l10n_br_sale 14.0.2.2.1
OCA-git-bot Mar 3, 2023
9a67251
[IMP] l10n_br_sale: Included tests to check if the Amount values from…
mbcosta Mar 31, 2023
29023f1
[FIX] l10n_br_sale: missing account tax and wrong companies tests
felipemotter Apr 7, 2023
3a5841a
[FIX] l10n_br_sale: serie in create invoices with different document …
antoniospneto May 16, 2023
72d711b
l10n_br_sale 14.0.2.2.2
OCA-git-bot May 16, 2023
80abace
l10n_br_sale 14.0.3.0.0
OCA-git-bot May 19, 2023
e47ba76
[REF+IMP] l10n_br_sale: Get Taxes just need call method once, even in…
mbcosta Apr 18, 2023
bfd4f34
l10n_br_sale 14.0.3.1.0
OCA-git-bot May 30, 2023
484953f
[REF] SavePointCase -> no need to restore user
rvalyi Jun 24, 2023
2aec0e2
l10n_br_sale 14.0.3.1.1
OCA-git-bot Jun 26, 2023
e276c12
[FIX] l10n_br_sale: splitting the invoice when there are multiple fis…
antoniospneto May 26, 2023
444e43c
[REF] fix demo data loading
rvalyi Jul 8, 2023
18637de
l10n_br_sale 14.0.3.1.2
OCA-git-bot Jul 11, 2023
80be01f
l10n_br_sale 14.0.3.2.0
OCA-git-bot Jul 11, 2023
785805d
[UPD] Update l10n_br_sale.pot
Jul 12, 2023
0db9a15
Update translation files
weblate Jul 12, 2023
8dc97c4
[FIX] l10n_br_sale: fix company page xpath
marcelsavegnago Jul 13, 2023
3acccb0
l10n_br_sale 14.0.3.2.1
OCA-git-bot Jul 13, 2023
4c908a2
[UPD] README.rst
OCA-git-bot Sep 3, 2023
7f352af
[FIX] l10n_br_sale: return a record set
marcelsavegnago Sep 13, 2023
add0761
l10n_br_sale 14.0.3.2.2
OCA-git-bot Sep 13, 2023
c0a51ca
[UPD] README.rst
OCA-git-bot Sep 13, 2023
625e2b2
[FIX] l10n_br_sale: fiscal quantity on prepare invoice lines
antoniospneto Sep 28, 2023
4039654
[BOT] post-merge updates
OCA-git-bot Sep 29, 2023
032c3cc
[UPD] Update l10n_br_sale.pot
Oct 1, 2023
af1b23d
[UPD] Update l10n_br_sale.pot
Oct 2, 2023
e72b3be
Update translation files
weblate Oct 9, 2023
6ca9141
Translated using Weblate (Portuguese (Brazil))
antoniospneto Oct 10, 2023
d9b1f9e
[REF] l10n_br_sale: Remove empty Lines, necessary for the new version…
mbcosta Oct 25, 2023
ac96efb
[REF] l10n_br_sale: Avoid error Flake8 E741 ambiguous variable name '…
mbcosta Oct 25, 2023
222b33f
[BOT] post-merge updates
OCA-git-bot Oct 27, 2023
f5a45ac
[BOT] post-merge updates
OCA-git-bot Oct 27, 2023
1470683
[REF] l10n_br_sale: Adapt module to make compatible with the internat…
mbcosta Oct 19, 2023
f9a4a94
[REF] l10n_br_sale: Adapted module to make compatible with Internatio…
mbcosta Jan 15, 2024
fbbe0ce
[FIX] l10n_br_sale: The possibility of include a Section or Note in S…
mbcosta Jan 16, 2024
bb02e51
[REF] l10n_br_sale: Remove unnecessary onchanges in Demo Data.
mbcosta Jan 17, 2024
2e8cec2
[FIX] l10n_br_sale: create invoice with section and note
antoniospneto Feb 3, 2024
951f27c
[FIX] l10n_br_sale: Make module compatible with 'Down Payments' case …
mbcosta Mar 26, 2024
d254818
[IMP] l10n_br_sale: add amount_tax_withholding on sale order form sub…
marcelsavegnago Apr 17, 2024
d5e1289
[RFC] l10n_br_sale: remove update fields price_subtotal and price_gro…
marcelsavegnago Apr 17, 2024
83e1c88
[FIX] comments_ids in sale.order
mileo Jul 5, 2024
c6f59d5
[FIX] l10n_br_sale: change res.company data to noupdate = 1
marcelsavegnago Aug 12, 2024
cc413c2
[IMP] l10n_br_sale: black, isort, prettier
rvalyi Dec 1, 2023
b205999
[MIG] l10n_br_sale: Migration to 15.0
rvalyi Dec 1, 2023
eb8d5a3
[IMP] l10n_br_sale: pre-commit stuff
rvalyi Feb 6, 2024
9d95481
MIG] l10n_br_sale: Migration to 16.0
rvalyi Feb 6, 2024
ba15239
[MIG] l10n_br_sale: tmp hacks for CI OK
rvalyi Aug 23, 2024
e7e767b
[UPD] Update l10n_br_sale.pot
Aug 25, 2024
0084e51
[BOT] post-merge updates
OCA-git-bot Aug 25, 2024
b7f29a0
Update translation files
weblate Aug 25, 2024
b2f4939
[UPD] Update l10n_br_sale.pot
Aug 26, 2024
0f5e5ba
Update translation files
weblate Aug 26, 2024
32a0808
[MIG] l10n_br_sale: fix _nothing_to_invoice_error
rvalyi Aug 27, 2024
5fb1fe3
copier update repository
antoniospneto Sep 4, 2024
fb0bdef
[BOT] post-merge updates
OCA-git-bot Sep 5, 2024
7a588af
[REF] partner_shipping_id shadowed in sale module
rvalyi Dec 10, 2023
4baea9b
[IMP] l10n_br_sale: rename proxy fields to avoid conflicts
marcelsavegnago Aug 27, 2024
10b000b
[UPD] Update l10n_br_sale.pot
Sep 5, 2024
d6a4637
[BOT] post-merge updates
OCA-git-bot Sep 5, 2024
1aed129
Update translation files
weblate Sep 5, 2024
49939ea
[REF] l10n_br_sale: fiscal_document rename
rvalyi Aug 31, 2024
4b5eddd
[BOT] post-merge updates
OCA-git-bot Sep 10, 2024
7752759
Translated using Weblate (Portuguese (Brazil))
SottomaiorMacedoTec Sep 11, 2024
e932527
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Sep 17, 2024
f0a1927
[BOT] post-merge updates
OCA-git-bot Sep 20, 2024
7ab4a36
[UPD] Update l10n_br_sale.pot
Oct 9, 2024
78aaf86
Update translation files
weblate Oct 9, 2024
12f7cba
[FIX] l10n_br_sale: proper partner_id
mbcosta Jan 9, 2024
f50c0aa
[IMP] l10n_br_sale: demo data and tests
mbcosta Aug 13, 2024
faa7ada
[BOT] post-merge updates
OCA-git-bot Oct 13, 2024
75dd500
[FIX] l10n_br_sale: fix landed costs
rvalyi Dec 3, 2024
743e6c1
[BOT] post-merge updates
OCA-git-bot Dec 4, 2024
80283bc
[FIX] l10n_br_sale: nothing to invoice error
antoniospneto Dec 8, 2024
8169e93
[BOT] post-merge updates
OCA-git-bot Dec 9, 2024
1975117
[REF] l10n_br_sale: rename fiscal compute amounts
antoniospneto Dec 17, 2024
1a87248
[FIX] l10n_br_sale: compute fiscal taxes
antoniospneto Dec 17, 2024
2ba3c68
[BOT] post-merge updates
OCA-git-bot Dec 18, 2024
20f9abd
[BOT] post-merge updates
OCA-git-bot Dec 18, 2024
bfd2ccc
[MIG] l10n_br_sale: Sale Report with Brazil fields
mbcosta Feb 6, 2025
0f308e3
[IMP] l10n_br_sale:Test Sale Report with BR fields
mbcosta Feb 6, 2025
96be6d8
[BOT] post-merge updates
OCA-git-bot Feb 11, 2025
804aee8
[IMP] l10n_br_sale: adapt tests to newest TIPI
rvalyi Feb 17, 2025
fd42790
[BOT] post-merge updates
OCA-git-bot Feb 19, 2025
f027b9b
[REF] l10n_br_sale: Inform Journal in Fiscal OP
mbcosta Feb 17, 2025
5508c3d
[UPD] l10n_br_sale: README pre-commit
mbcosta Feb 4, 2025
9bb82a5
[UPD] Update l10n_br_sale.pot
Mar 12, 2025
3af90fe
[REF] l10n_br_sale: comments as compute;mv op name
rvalyi Mar 15, 2025
30c1699
[UPD] Update l10n_br_sale.pot
Mar 17, 2025
8e14174
[BOT] post-merge updates
OCA-git-bot Mar 17, 2025
90388fa
[UPD] Update l10n_br_sale.pot
Mar 21, 2025
ac552ed
[UPD] Update l10n_br_sale.pot
Apr 14, 2025
13f1e65
[REM]l10n_br_sale: rm old partner_shipping_id sync
rvalyi Apr 30, 2025
bf45cc1
[UPD] Update l10n_br_sale.pot
May 5, 2025
02022de
[BOT] post-merge updates
OCA-git-bot May 5, 2025
be902be
[UPD] Update l10n_br_sale.pot
May 6, 2025
9c9bbe3
[IMP] l10n_br_sale: Melhorias na visão do pedido de venda
renatonlima May 9, 2025
0dd3ecb
[BOT] post-merge updates
OCA-git-bot May 11, 2025
2c96ab0
[FIX] l10n_br_sale: tax_totals widget invisible
rvalyi May 19, 2025
e7c211e
[BOT] post-merge updates
OCA-git-bot May 20, 2025
9006bca
[REF] l10n_br_sale: clean analytic_tag_ids override
rvalyi Jun 21, 2025
fbc6a76
[REF] l10n_br_sale: mv note to view bottom
rvalyi Jun 21, 2025
0178c22
[REF] l10n_br_sale: group line discount extensions
rvalyi Jun 21, 2025
4dec1ad
[IMP] l10n_br_sale: inline edition support
rvalyi Jun 21, 2025
1dd77e0
[UPD] Update l10n_br_sale.pot
Jun 26, 2025
70ce495
[BOT] post-merge updates
OCA-git-bot Jun 26, 2025
c5e466e
[REF] l10n_br_sale: use Command API
rvalyi Jun 27, 2025
101fd29
[BOT] post-merge updates
OCA-git-bot Jun 28, 2025
5f12b4f
[REM] l10n_br_sale: remove useless cnpj_cpf field
rvalyi Feb 25, 2025
655173b
[UPD] Update l10n_br_sale.pot
Jul 1, 2025
e5fe19f
[BOT] post-merge updates
OCA-git-bot Jul 1, 2025
886769f
[FIX] l10n_br_sale: add missing fields to tree
antoniospneto Jul 6, 2025
b9a9b2a
[BOT] post-merge updates
OCA-git-bot Jul 7, 2025
7230837
[REF] l10n_br_sale: disable tracking in tests
rvalyi Jul 21, 2025
cb84d60
[BOT] post-merge updates
OCA-git-bot Jul 21, 2025
e4e5132
[REF] l10n_br_sale: fix compute_fiscal_amount
rvalyi Jul 25, 2025
5626226
[BOT] post-merge updates
OCA-git-bot Aug 1, 2025
dbb7402
[REF] l10n_br_sale: simplify onchanges
rvalyi Aug 2, 2025
9e54a81
[BOT] post-merge updates
OCA-git-bot Aug 2, 2025
80f10e1
[REF] l10n_br_sale: fisc qty/price -> compute
rvalyi Apr 1, 2025
d4a4b2e
[BOT] post-merge updates
OCA-git-bot Aug 7, 2025
dc4ea11
[FIX] l10n_br_sale: account tax company
felipemotter Aug 14, 2025
09dab77
[BOT] post-merge updates
OCA-git-bot Aug 14, 2025
12d9bac
[REF] l10n_br_sale: rm onchanges
rvalyi Aug 13, 2025
3bb7c74
[BOT] post-merge updates
OCA-git-bot Aug 16, 2025
c838c44
[REF] l10n_br_sale: reindent views
rvalyi Aug 27, 2025
256a919
[BOT] post-merge updates
OCA-git-bot Aug 28, 2025
ff670d9
[REF] l10n_br_sale: assertAlmostEqual for amounts
antoniospneto Aug 25, 2025
96ece32
[BOT] post-merge updates
OCA-git-bot Sep 5, 2025
ca4d3fe
[UPD] Update l10n_br_sale.pot
Sep 8, 2025
44b7068
[REF] l10n_br_sale: rename fiscal fields
antoniospneto Sep 7, 2025
0d07c32
[UPD] Update l10n_br_sale.pot
Sep 13, 2025
0129195
[BOT] post-merge updates
OCA-git-bot Sep 13, 2025
9846d0e
[FIX] l10n_br_sale: add skip_compute_fiscal_tax_ids=true on create_in…
marcelsavegnago Sep 16, 2025
1028b8d
[FIX] l10n_br_sale: set correct journal on fiscal operation
marcelsavegnago Sep 16, 2025
4f67332
[BOT] post-merge updates
OCA-git-bot Sep 17, 2025
fab82bc
[IMP] l10n_br_sale: add freight, insurance and other costs to report
WesleyOliveira98 Sep 22, 2025
c970ba6
[UPD] Update l10n_br_sale.pot
Sep 23, 2025
f6276e0
[BOT] post-merge updates
OCA-git-bot Sep 23, 2025
dcfaee0
[BOT] post-merge updates
OCA-git-bot Sep 25, 2025
ce93b4a
[IMP] l10n_br_sale: rm _onchange_product_id_fiscal
rvalyi Sep 23, 2025
b9ad34c
[BOT] post-merge updates
OCA-git-bot Sep 30, 2025
9f44e7d
[IMP] l10n_br_sale: create method _get_total_for_tax_totals
WesleyOliveira98 Oct 10, 2025
2b41aba
[BOT] post-merge updates
OCA-git-bot Oct 13, 2025
6a6e33b
[REF] l10n_br_sale: replace pylint:disable by oca-hooks:disable
renatonlima Oct 14, 2025
f5c07b8
[BOT] post-merge updates
OCA-git-bot Oct 15, 2025
68d024f
[REF] l10n_br_sale: do not duplicate test
antoniospneto Oct 23, 2025
ec57b4e
[BOT] post-merge updates
OCA-git-bot Oct 23, 2025
e36bf7d
[IMP] l10n_br_sale: no optimize inject_fiscal_fields calls
rvalyi Oct 24, 2025
fc61e5c
[BOT] post-merge updates
OCA-git-bot Oct 24, 2025
37267d2
[FIX] l10n_br_sale: remove fiscal onchange and fix tests
antoniospneto Nov 3, 2025
e68a820
[UPD] Update l10n_br_sale.pot
Nov 3, 2025
523e9da
[BOT] post-merge updates
OCA-git-bot Nov 3, 2025
c108fc4
[FIX] l10n_br_sale: discount in sale order line
kaynnan Nov 24, 2025
9ca3cc1
[BOT] post-merge updates
OCA-git-bot Nov 25, 2025
4defd7b
[FIX] l10n_br_sale: product template invisible in sale line form
felipemotter Dec 19, 2025
1d539c7
[BOT] post-merge updates
OCA-git-bot Dec 21, 2025
09ccd51
[UPD] Update l10n_br_sale.pot
Dec 22, 2025
2e8968c
[UPD] Update l10n_br_sale.pot
Dec 23, 2025
0d1f6e8
[UPD] Update l10n_br_sale.pot
Dec 24, 2025
4701898
[UPD] Update l10n_br_sale.pot
Dec 24, 2025
7d90092
[IMP] l10n_br_sale: add nfse nacional support
marcelsavegnago Jan 8, 2026
d835dfa
[FIX] l10n_br_sale: fix fiscal_quantity on partial invoices
felipemotter Feb 3, 2026
764ed47
[IMP] l10n_br_sale: add test for partial invoice fiscal_quantity
felipemotter Feb 3, 2026
4f4532b
[FIX] l10n_br_sale: add ind_final propagation tests
antoniospneto Feb 27, 2026
a0e492d
[FIX] l10n_br_sale: recompute taxes against the invoiced quantity
antoniospneto Apr 27, 2026
c83ad40
[MIG] l10n_br_sale: Migration to 17.0
rvalyi Jan 11, 2026
c2361a8
[IMP] l10n_br_sale: pre-commit auto fixes
rvalyi Mar 26, 2026
56a0c43
[MIG] l10n_br_sale: Migration to 18.0
rvalyi Mar 26, 2026
7cd76db
[FIX] l10n_br_stock: harden demo hook
rvalyi May 27, 2026
13cf13c
[FIX] l10n_br_stock: harden post_init_hook and demo data
rvalyi May 28, 2026
08b05c6
[FIX] l10n_br_sale: make tests independent of demo data
rvalyi May 29, 2026
29db5b6
[IMP] l10n_br_account: improve l10n_latam_invoice_document compat
rvalyi Jun 18, 2026
59e6076
[FIX] l0n_br_sale: adapt discount tests for 18.0
rvalyi Jun 18, 2026
07ad764
[FIX] l10n_br_sale: avoid ind_final warning
rvalyi Jun 19, 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
42 changes: 24 additions & 18 deletions l10n_br_account/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -692,16 +692,20 @@ def action_send_email(self):
self.ensure_one_doc()
return self.fiscal_document_id.action_send_email()

@api.constrains(
"state", "l10n_latam_document_type_id", "l10n_latam_document_number"
)
@api.constrains("state")
def _check_l10n_latam_documents(self):
"""Override to auto-assign document type instead of raising error.
"""Auto-assign l10n_latam document type for Brazilian companies, then
let upstream validation run.

When l10n_latam_invoice_document is installed, posting invoices requires
l10n_latam_document_type_id on journals that use documents. This override
auto-assigns a document type if one isn't set, instead of raising a
ValidationError.
l10n_latam_document_type_id on journals that use documents. Instead of
raising an error, this override auto-assigns a document type for Brazilian
companies (where fiscal documents are electronic and numbering is automatic).

For non-Brazilian companies, the auto-assign is skipped and the upstream
constraint runs unchanged, preserving full validation (including document
number checks) for other Latin American localizations in multi-localization
databases.
"""
if "l10n_latam.document.type" not in self.env:
return
Expand All @@ -710,6 +714,7 @@ def _check_l10n_latam_documents(self):
x.l10n_latam_use_documents
and x.state == "posted"
and not x.l10n_latam_document_type_id
and x.company_id.country_id.code == "BR"
)
):
# Try to find a matching document type
Expand Down Expand Up @@ -747,22 +752,23 @@ def _check_l10n_latam_documents(self):
limit=1,
)
if not latam_doc_type:
# Last resort: find ANY document type for the country
country = move.company_id.account_fiscal_country_id
if (
move.company_id.country_id
and move.company_id.country_id.code == "BR"
):
country = move.company_id.country_id
# Last resort: find ANY document type for Brazil
latam_doc_type = self.env["l10n_latam.document.type"].search(
[("country_id", "=", country.id)],
[("country_id", "=", move.company_id.country_id.id)],
limit=1,
)
if latam_doc_type:
move.l10n_latam_document_type_id = latam_doc_type
else:
# If no document type found, call super to get the original error
super(AccountMove, move)._check_l10n_latam_documents()

# Let upstream validation run only for non-Brazilian companies.
# Brazilian companies use electronic document numbering managed by
# l10n_br_fiscal, so the upstream manual document number check would
# raise false positives on demo data and is irrelevant for Brazil.
# For other Latin American localizations in multi-localization databases,
# the original validation (document type + document number) runs unchanged.
non_br_moves = self.filtered(lambda m: m.company_id.country_id.code != "BR")
if non_br_moves:
super(AccountMove, non_br_moves)._check_l10n_latam_documents()

def copy_data(self, default=None):
res = super().copy_data(default=default)
Expand Down
166 changes: 166 additions & 0 deletions l10n_br_sale/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
===========================
Brazilian Localization Sale
===========================

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

.. |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/licence-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/18.0/l10n_br_sale
: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-18-0/l10n-brazil-18-0-l10n_br_sale
: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=18.0
:alt: Try me on Runboat

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

Este módulo estende o módulo sale do Odoo para adaptá-lo as necessidades
brasileira, com este módulo você tem dados fiscal para faturamento e
geração dos documentos fiscais (NF-e, NFS-e, CF-e, NFC-e e etc.),
cálculo dos impostos e contribuições brasileiros (municipais, estaduais
e federal).

**Table of contents**

.. contents::
:local:

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

Este módulo depende dos seguintes módulos:

- sale_management
- l10n_br_account
- l10n_br_fiscal

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

Este módulo depende do módulo l10n_br_fiscal e l10n_br_account e para
funcionar corretamente deve ser previamente configurado parâmetros
fiscais e contábeis.

Usage
=====

Após configurar a empresa, os dados contábeis e fiscais, ao criar um
pedido de venda será, será possível visualizar os dados fiscais e
contábeis:

|image1|

Ao adicionar um produto ou serviço será exibido os detalhes dos
impostos:

|image2|

.. |image1| image:: https://raw.githubusercontent.com/OCA/l10n-brazil/18.0/l10n_br_sale/static/description/sale_order_1.png
.. |image2| image:: https://raw.githubusercontent.com/OCA/l10n-brazil/18.0/l10n_br_sale/static/description/sale_order_2.png

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



Changelog
=========

14.0.1.0.0 (2022-06-03)
-----------------------

- [MIG] Migração para a versão 14.

13.0.1.0.0 (2022-01-13)
-----------------------

- [MIG] Migração para a versão 13.

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_sale%0Aversion:%2018.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/>`__:

- Raphaël Valyi <raphael.valyi@akretion.com.br>
- Renato Lima <renato.lima@akretion.com.br>
- Magno Costa <magno.costa@akretion.com.br>

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

- Luis Felipe Mileo <mileo@kmee.com.br>
- Michell Stuttgart <michell.stuttgart@kmee.com.br>

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

- Marcel Savegnago <marcel.savegnago@escodoo.com.br>

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

- Felipe Motter Pereira <felipe@engenere.one>

Other credits
-------------

The development of this module has been financially supported by:

- AKRETION LTDA - `www.akretion.com <http://www.akretion.com>`__

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/18.0/l10n_br_sale>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
7 changes: 7 additions & 0 deletions l10n_br_sale/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright (C) 2009 Renato Lima - Akretion
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

from .hooks import post_init_hook

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

{
"name": "Brazilian Localization Sale",
"category": "Localisation",
"license": "AGPL-3",
"author": "Akretion, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-brazil",
"version": "18.0.1.0.0",
"depends": ["sale_management", "l10n_br_account"],
"data": [
# Data
"data/company.xml",
# Security
"security/ir.model.access.csv",
"security/l10n_br_sale_security.xml",
# View
"views/res_config_settings_view.xml",
"views/res_company_view.xml",
"views/sale_view.xml",
# Report
"report/sale_report_view.xml",
"report/sale_report_templates.xml",
],
"demo": [
# Demo
"demo/product.xml",
"demo/company.xml",
"demo/l10n_br_sale.xml",
],
"installable": True,
"auto_install": True,
"post_init_hook": "post_init_hook",
"development_status": "Beta",
"maintainers": ["renatonlima", "rvalyi"],
}
7 changes: 7 additions & 0 deletions l10n_br_sale/data/company.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<!-- Main Company -->
<record id="base.main_company" model="res.company">
<field name="sale_fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" />
</record>
</odoo>
11 changes: 11 additions & 0 deletions l10n_br_sale/demo/company.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Demo Company -->
<record id="l10n_br_base.empresa_simples_nacional" model="res.company">
<field name="sale_fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" />
</record>

<record id="l10n_br_base.empresa_lucro_presumido" model="res.company">
<field name="sale_fiscal_operation_id" ref="l10n_br_fiscal.fo_venda" />
</record>
</odoo>
Loading
Loading