Skip to content

[17.0][MIG] l10n_br_base: Migration to 17.0 #3729

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
wants to merge 699 commits into
base: 17.0
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
699 commits
Select commit Hold shift + click to select a range
40af1b8
[REF] Update Akretion demo data.
mbcosta Feb 1, 2021
fcbcc05
[FIX] Empresas de demo não são empresas
mileo Mar 5, 2021
944c2ea
no more lint false positive SQL injection warning
rvalyi Mar 14, 2021
8d564c2
[FIX] Demo company partner number
mileo Mar 19, 2021
b46f837
[ADD] Common data for company and partner mixin
renatonlima Mar 20, 2021
82a1341
[ADD] Cliente 11 SP - PF Não Constribuinte Demo
luismalta Mar 16, 2021
ec959ac
[REF] Use data mixin in partner and company
renatonlima Mar 20, 2021
828c055
pep8
renatonlima Mar 20, 2021
8633efd
[FIX] _display_address tests
renatonlima Mar 20, 2021
314507d
[FIX] mixin and import
renatonlima Mar 22, 2021
1e38ac2
[UPD] Update l10n_br_base.pot
oca-travis Mar 22, 2021
4c8cc9a
l10n_br_base 12.0.2.0.0
OCA-git-bot Mar 22, 2021
3499660
l10n_br_base 12.0.2.1.0
OCA-git-bot Mar 22, 2021
216c354
[FIX] IE Demo Company Data
mileo Mar 25, 2021
dfe4170
[UPD] Update l10n_br_base.pot
oca-travis Apr 17, 2021
4dd4474
[FIX] l10n_br_base and l10n_br_zip Contact Form
mileo Apr 18, 2021
2a16e82
[FIX] City id on context an tracking disable
mileo Apr 18, 2021
1191ffb
[UPD] Update l10n_br_base.pot
oca-travis Apr 24, 2021
7068cf7
l10n_br_base 12.0.2.2.0
OCA-git-bot Apr 24, 2021
464ca52
[FIX] Parceiros com CPF duplicado
mileo May 10, 2021
17dd171
[NEW] Context to easy disable cnpj and ie validation on data import
mileo May 10, 2021
082f672
[ADD] Disable allow cnpj multi ie via context
DiegoParadeda May 12, 2021
fa5fb34
[UPD] Update l10n_br_base.pot
oca-travis May 12, 2021
df7134b
l10n_br_base 12.0.2.3.0
OCA-git-bot May 12, 2021
cfe2278
[UPD] Update l10n_br_base.pot
oca-travis May 13, 2021
d6a16af
num2words is not an external dependency anymore
rvalyi May 16, 2021
3bc6834
fix bad settings field labels
rvalyi May 16, 2021
48036f2
fix wrong ondelete cascade
rvalyi May 16, 2021
61635e9
self -> cls when in class methods
rvalyi May 16, 2021
1983712
lint: except: -> except Exception:
rvalyi May 16, 2021
9464525
[UPD] README.rst
OCA-git-bot May 16, 2021
74be9a1
l10n_br_base 12.0.2.4.0
OCA-git-bot May 16, 2021
192bd8f
flake8 B902 'cls' used for instance method
rvalyi May 19, 2021
1f3a2b3
[FIX] Inscrição Estadual pode ser ISENTO
mileo May 16, 2021
1951fa9
[FIX] CPF pode ter IE
mileo May 16, 2021
3df3a19
[REF] rg position
mileo May 17, 2021
b27b5cb
[NEW] Migration script rg
mileo May 17, 2021
42ced2f
[REF] Added ibge state code and ibge city code in res.city
renatonlima May 19, 2021
b6a5c36
[UPD] Update l10n_br_base.pot
oca-travis May 19, 2021
1f13683
[FIX] Migration of the RG should be post because the field has to exi…
mbcosta May 21, 2021
725d3a1
l10n_br_base 12.0.3.1.0
OCA-git-bot May 21, 2021
348268d
[REF] l10n_br_base - lint convert tabs to spaces
mileo May 24, 2021
0db2df8
remove useless default @api.multi
rvalyi May 16, 2021
691f071
[FIX] IE/RG UX
mileo May 24, 2021
1a17c79
[UPD] Update l10n_br_base.pot
oca-travis May 25, 2021
e407d2c
l10n_br_base 12.0.3.2.0
OCA-git-bot May 25, 2021
937af8d
[UPD] Update l10n_br_base.pot
oca-travis May 25, 2021
6618695
lint: sed -i 's/assertEquals/assertEqual/g'
rvalyi May 25, 2021
997bc3d
[IMP] l10n_br_base: black, isort, prettier
rvalyi Jun 7, 2021
8761aa4
[UPD] Update l10n_br_base.pot
oca-travis Jun 9, 2021
1480cd7
[FIX] Tests
gabrielcardoso21 Jun 23, 2021
3db90f4
l10n_br_base 12.0.3.2.1
OCA-git-bot Jun 24, 2021
8c0c017
[MIG] l10n_br_base: Migration to 13.0
rvalyi Aug 4, 2021
9c46507
[MIG] manual migration to 13.0
rvalyi Jul 2, 2021
ebc3df0
[REF] proper res.company re raise
rvalyi Aug 17, 2021
c25e58d
[REF] added l10n_br_base maintainers
rvalyi Aug 17, 2021
f0508ad
[UPD] Update l10n_br_base.pot
oca-travis Aug 17, 2021
bbf48fc
[UPD] README.rst
OCA-git-bot Aug 17, 2021
9cba574
[MIG] l10n_br_base: Migration to 14.0
rvalyi Aug 18, 2021
55f8cbd
[MIG] manual migration to 14.0
rvalyi Jul 2, 2021
bfc31ac
[MIG][FIX] View, field position and invisible is not Company.
mbcosta Sep 23, 2021
beb1db8
[FIX] Onchange method for State field must be called.
mbcosta Sep 24, 2021
2760ceb
[REF] Unnecessary parameters to call Super.
mbcosta Oct 4, 2021
702f11f
[FIX] Made field City/char invisible and show City_id/m2o .
mbcosta Oct 4, 2021
b72a798
fix street_number in base
antoniospneto Oct 3, 2021
14e8647
fix demo data
antoniospneto Oct 3, 2021
c34401e
fix brazil street_format
antoniospneto Oct 3, 2021
aeaff1e
[MIG] restore exterior address test as in 12.0
rvalyi Oct 12, 2021
4b43764
[UPD] Update l10n_br_base.pot
oca-travis Oct 12, 2021
a58c491
[UPD] README.rst
OCA-git-bot Oct 12, 2021
db2cebf
fix auto install oca
antoniospneto Oct 17, 2021
b29e614
l10n_br_base 14.0.1.0.1
OCA-git-bot Oct 17, 2021
4948efe
[ADD] format.address.mixin object
renatonlima Nov 3, 2021
4ed5ef9
[UPD] Update l10n_br_base.pot
oca-travis Nov 4, 2021
5169cef
l10n_br_base 14.0.1.1.0
OCA-git-bot Nov 4, 2021
02073b0
Update translation files
oca-transbot Nov 4, 2021
4e56dc6
fix company street_number
felipemotter Jan 14, 2022
f04bffa
fix address_format
antoniospneto Jan 14, 2022
d0ce665
add migration script for street field
antoniospneto Jan 15, 2022
b0b232c
[IMP] update dotfiles [ci skip]
OCA-git-bot Mar 30, 2022
c844e43
[IMP] l10n_br_base: atualiza e adiciona cidades brasileiras
kmmelcher Mar 22, 2022
7882f90
[UPD] Update l10n_br_base.pot
oca-travis Apr 3, 2022
37a9923
l10n_br_base 14.0.2.1.0
OCA-git-bot Apr 3, 2022
2a7fb55
Update translation files
oca-transbot Apr 3, 2022
0b74a2c
[IMP] l10n_br_base
max3903 Feb 11, 2022
93bc91a
l10n_br_base 14.0.2.2.0
OCA-git-bot May 12, 2022
f3edbb9
[UPD] Update l10n_br_base.pot
oca-travis Jun 10, 2022
ad1e499
Update translation files
oca-transbot Jun 10, 2022
da00804
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Aug 12, 2022
f1810ce
[FIX] l10n_br_base: bad address in demo partner
antoniospneto Sep 11, 2022
92d10a6
[REF] remove unnecessary code involving the address
antoniospneto Sep 11, 2022
63f403a
[UPD] Update l10n_br_base.pot
oca-travis Sep 12, 2022
2381647
l10n_br_base 14.0.2.3.0
OCA-git-bot Sep 12, 2022
2436600
Update translation files
oca-transbot Sep 12, 2022
5c65767
Translated using Weblate (Portuguese (Brazil))
douglascstd Sep 16, 2022
71045e1
[IMP] l10n_br_base: add pix fields for partners
antoniospneto Sep 19, 2022
63d3082
[DOC] README + CONTRIBUTORS update
rvalyi Sep 29, 2022
4290fe7
[UPD] Update l10n_br_base.pot
Sep 30, 2022
37591cc
[UPD] README.rst
OCA-git-bot Sep 30, 2022
5485cfa
l10n_br_base 14.0.3.0.0
OCA-git-bot Sep 30, 2022
d171aa9
Update translation files
oca-transbot Sep 30, 2022
ac18184
[FIX] l10n_br_base: missing licence
antoniospneto Oct 1, 2022
3185671
l10n_br_base 14.0.3.0.1
OCA-git-bot Oct 1, 2022
3daf00f
[REM] String definition
mileo Oct 16, 2022
fa68f7f
[REF] do not import tests l10n_br_base
mileo Oct 21, 2022
fe4adaf
[REF] str-format-used l10n_br_base
mileo Oct 21, 2022
4412031
[UPD] Update l10n_br_base.pot
Oct 22, 2022
5ae2409
l10n_br_base 14.0.3.0.2
OCA-git-bot Oct 22, 2022
ffc61c5
Update translation files
weblate Oct 22, 2022
c5c9c58
[REF] raise-missing-from l10n_br_base
mileo Oct 22, 2022
6ae7cf2
l10n_br_base 14.0.3.0.3
OCA-git-bot Oct 23, 2022
07c246c
Translated using Weblate (Portuguese (Brazil))
douglascstd Oct 31, 2022
f1c39ba
[REF] model_create_multi for pix keys
rvalyi Dec 22, 2022
4aee4ff
l10n_br_base 14.0.3.1.0
OCA-git-bot Jan 7, 2023
13b2910
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Jan 7, 2023
bf62605
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Jan 7, 2023
b7c10e5
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Jan 7, 2023
d882a8c
Translated using Weblate (Portuguese (Brazil))
douglascstd Jan 11, 2023
7750502
[DOC] proper module dependencies
rvalyi Apr 12, 2023
5b81698
[UPD] README.rst
OCA-git-bot Apr 12, 2023
a3908c8
l10n_br_base 14.0.3.1.1
OCA-git-bot Apr 12, 2023
c476eae
[FIX] fix demail_validator deprecation warning
rvalyi May 23, 2023
61a150d
l10n_br_base 14.0.3.1.2
OCA-git-bot May 24, 2023
036949d
[FIX] require erpbrasil.base>=2.3.0
rvalyi May 28, 2023
9d62cd6
[FIX] fix OCA#2490 (email-validator 1.3.x compat)
rvalyi May 28, 2023
ba336f8
l10n_br_base 14.0.3.2.0
OCA-git-bot May 29, 2023
67b5f7e
[FIX] l10n_br_base: IE field for no company partners
antoniospneto May 30, 2023
b01a171
[UPD] Update l10n_br_base.pot
Jun 1, 2023
c1b682f
l10n_br_base 14.0.3.3.0
OCA-git-bot Jun 1, 2023
72cd558
Update translation files
weblate Jun 1, 2023
d46ba95
[FIX] Remoção Tax Id quando BR
GCKrauss Jun 20, 2023
45fb2c2
[REF] faster tests with SavePointCase
rvalyi Jun 25, 2023
6d8a43c
l10n_br_base 14.0.3.3.1
OCA-git-bot Jun 26, 2023
3a0cc49
[REF] enable l10n_generic_coa install for tests
rvalyi Jun 23, 2023
ab15169
l10n_br_base 14.0.3.4.0
OCA-git-bot Jun 26, 2023
2281a36
l10n_br_base 14.0.3.4.1
OCA-git-bot Jun 26, 2023
01c4543
Ocultacao do campo de Suframa, caso o endereço da Empresa ou do Parce…
pablomatoskmee Jun 27, 2023
c42fe9f
l10n_br_base 14.0.3.5.0
OCA-git-bot Jun 28, 2023
2da9e1b
[REF] fix demo data loading
rvalyi Jul 8, 2023
f011148
l10n_br_base 14.0.3.5.1
OCA-git-bot Jul 11, 2023
e5e82b6
[UPD] Update l10n_br_base.pot
Aug 10, 2023
f1ddf77
Update translation files
weblate Aug 10, 2023
801880d
[UPD] README.rst
OCA-git-bot Sep 3, 2023
e8907e4
[FIX] l10n_br_base: fix inverse_state
marcelsavegnago Sep 19, 2023
2b1eed5
[FIX] l10n_br_base: Included Other Inscrições Estaduais in Company view.
mbcosta Sep 28, 2023
e5ae403
[DOC] l10n_br_base: Included myself, Magno Costa, as author in the im…
mbcosta Sep 28, 2023
340610a
[DOC] l10n_br_base: Removed unnecessary License Header in __init__ fi…
mbcosta Sep 28, 2023
7272619
[RFC] l10n_br_base: change inscr_est when partner is_company False an…
marcelsavegnago Sep 28, 2023
8ce5a36
[RFC] l10n_br_base: refactor vat field and add br fields on create_co…
marcelsavegnago Sep 28, 2023
dbc7511
[UPD] Update l10n_br_base.pot
Sep 29, 2023
a48c20f
[BOT] post-merge updates
OCA-git-bot Sep 29, 2023
57ee919
[RFC] l10n_br_base: remove vat field replace from inherit view and ch…
marcelsavegnago Sep 29, 2023
34f5070
[IMP] l10n_br_base: add partner._compute_vat_from_cnpj_cpf tests
marcelsavegnago Sep 29, 2023
fff9997
[IMP] l10n_br_base: add partner.create_company tests
marcelsavegnago Sep 29, 2023
98ee836
[BOT] post-merge updates
OCA-git-bot Oct 2, 2023
ea300b6
Update translation files
weblate Oct 9, 2023
86fad4d
Translated using Weblate (Portuguese (Brazil))
antoniospneto Oct 10, 2023
dcac022
Translated using Weblate (Portuguese (Brazil))
antoniospneto Oct 10, 2023
9a7ff39
Added translation using Weblate (Italian)
francesco-ooops Oct 11, 2023
c876656
[REF] l10n_br_base: Inform python external dependencies make unnecess…
mbcosta Oct 25, 2023
6208242
[REF] l10n_br_base: Remove empty Lines, necessary for the new version…
mbcosta Oct 25, 2023
2177e91
[REF] l10n_br_base: Method Super without parameters, necessary for th…
mbcosta Oct 25, 2023
cc4c223
[BOT] post-merge updates
OCA-git-bot Oct 25, 2023
75f8c29
[BOT] post-merge updates
OCA-git-bot Oct 27, 2023
3c1f512
[BOT] post-merge updates
OCA-git-bot Oct 27, 2023
647c5bb
[FIX] l10n_br_base: Remove duplicated City, necessary by inclusion of…
mbcosta Oct 30, 2023
c6457c4
[REF] l10n_br_base: Unified IE, CNPJ and CPF validations.
mbcosta Oct 6, 2023
7b4f128
[UPD] Update l10n_br_base.pot
Oct 31, 2023
ac1b038
[BOT] post-merge updates
OCA-git-bot Oct 31, 2023
a1a6797
Update translation files
weblate Oct 31, 2023
74bec02
[REF] l10n_br_base: Inform python external dependencies make unnecess…
mbcosta Oct 31, 2023
7c7215a
[BOT] post-merge updates
OCA-git-bot Nov 1, 2023
16c821e
[BOT] post-merge updates
OCA-git-bot Nov 2, 2023
0211202
[FIX] l10n_br_base: remove white space
antoniospneto Nov 11, 2023
87eaf68
[BOT] post-merge updates
OCA-git-bot Nov 11, 2023
386de9d
[REF] fix onchange
rvalyi Nov 23, 2023
61df129
[REF] proper string interpolation
rvalyi Nov 23, 2023
c19e351
[UPD] Update l10n_br_base.pot
Nov 24, 2023
72efb6e
[BOT] post-merge updates
OCA-git-bot Nov 24, 2023
fabf427
Update translation files
weblate Nov 24, 2023
d1b6bea
[BOT] post-merge updates
OCA-git-bot Dec 1, 2023
61cbc73
[IMP] l10n_br_base: Demo data, included Contact as Partner to Invoice…
mbcosta Jan 9, 2024
e3defbd
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Feb 6, 2024
fa55d70
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Feb 6, 2024
185276c
[FIX] l10n_br_base: return the street field in view
ygcarvalh Feb 7, 2024
855e50d
[BOT] post-merge updates
OCA-git-bot Feb 8, 2024
32a2cfa
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Feb 9, 2024
d9bca10
[BOT] post-merge updates
OCA-git-bot Mar 8, 2024
4e32b2e
Translated using Weblate (Portuguese (Brazil))
augustodinizl Apr 6, 2024
2850c3c
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago May 17, 2024
47b1c41
Translated using Weblate (Portuguese (Brazil))
May 20, 2024
b145b7e
[FIX] l10n_br_base: Add missing district to demo companies
antoniospneto Jun 1, 2024
2279cba
[BOT] post-merge updates
OCA-git-bot Jun 2, 2024
9b26c7b
l10n_br_base: Update res.city.csv data
renatonlima Jun 11, 2024
6b4a2e4
[UPD] Update l10n_br_base.pot
Jun 12, 2024
f1b4cba
[BOT] post-merge updates
OCA-git-bot Jun 12, 2024
e651d90
Update translation files
weblate Jun 12, 2024
66b118a
Translated using Weblate (Portuguese (Brazil))
antoniospneto Jul 19, 2024
1cf4bc6
[FIX] l10n_br_base: check ie only partner is company
marcelsavegnago Jul 22, 2024
8e60b6f
[BOT] post-merge updates
OCA-git-bot Jul 23, 2024
7f2d5f9
[FIX] l10n_br_base: load city in demo data
antoniospneto Jul 26, 2024
676e3b3
[BOT] post-merge updates
OCA-git-bot Jul 26, 2024
c8b5d6d
[IMP] l10n_be_base: partner filter by cnpj/cpf without mask
antoniospneto Aug 14, 2024
c690feb
[UPD] Update l10n_br_base.pot
Aug 27, 2024
f7fdaa9
[BOT] post-merge updates
OCA-git-bot Aug 27, 2024
76fefa0
Update translation files
weblate Aug 27, 2024
66c4daf
Translated using Weblate (Portuguese (Brazil))
mileo Sep 6, 2024
51db960
[REF] pre-commit changes
antoniospneto Sep 8, 2024
4591baa
[BOT] post-merge updates
OCA-git-bot Sep 18, 2024
260c504
[MIG][l10n_br_base] bump module version 15.0.1.0.0
mileo Oct 24, 2022
0f448fe
[MIG] To new assets format
mileo Oct 16, 2022
48783ab
[REF] l10n_br_base res.config view
mileo Oct 24, 2022
2060040
[MIG][l10n_br_base] bump module version
mileo Oct 24, 2022
c71a793
[MIG] base_address_city merged with base_address_extended
mileo Oct 16, 2022
53271e3
[REM] l10n_br_base transalation hook
mileo Oct 16, 2022
3ea2b64
[ADD] Street number
mileo Oct 16, 2022
01c5131
[REF] Address format
mileo Oct 19, 2022
cc061c1
[REF] Partner Fields size
mileo Oct 19, 2022
d2730d8
[IMP] Partner street for Brazilian partners and others
mileo Oct 24, 2022
3cb7f0b
[ADD] street_name to res.company
mileo Oct 24, 2022
ea526ad
remove warnings: db odoo.tools.convert: HTML field 'signature' is dec…
renatonlima Jan 29, 2023
44891fc
l10n_br_base: removed warning: Deprecated class SavepointCase has bee…
renatonlima Jan 30, 2023
7358456
l10n_br_base 16.0.1.0.1
OCA-git-bot Jan 30, 2023
7435ce5
[REF] l10n_br_base: Solve Warning dict-like access to the return valu…
mbcosta Aug 15, 2023
5318417
l10n_br_base 16.0.1.1.0
OCA-git-bot Aug 15, 2023
3575116
[FIX] l10n_br_base: Rename assets_backend file to avoid error.
mbcosta Aug 16, 2023
cc7c444
l10n_br_base 16.0.1.2.0
OCA-git-bot Aug 16, 2023
e82dda0
[IMP] l10n_br_base unaccent=False
rvalyi Mar 24, 2024
07f741a
[FIX] l10n_br_base partner view
mileo Jun 5, 2024
007fcf2
[FIX] l10n_br_base: Remove old migration file
antoniospneto Jul 26, 2024
a2249c4
[FIX] l10n_br_base: get address view
antoniospneto Aug 29, 2024
6e5d52a
copier update repository
antoniospneto Sep 4, 2024
8d602cd
[FIX] equal Estadual Inscription detection
Tiago370 Oct 17, 2024
c84f4a1
[FIX] l10n_br_base: form padding 0
CristianoMafraJunior Oct 31, 2024
087b389
[UPD] README.rst
OCA-git-bot Nov 28, 2024
6d639da
[UPD] Update l10n_br_base.pot
Nov 28, 2024
29f0cd2
[FIX] l10n_br_base: update requirements
rvalyi Nov 28, 2024
9919649
[BOT] post-merge updates
OCA-git-bot Nov 28, 2024
1137802
[REF] l10n_br_base: Deprecated class SavepointCase
antoniospneto Dec 7, 2024
b06be78
[BOT] post-merge updates
OCA-git-bot Dec 7, 2024
b98ff37
[FIX] Avoid res.partner.vat warning message
renatonlima Dec 10, 2024
0f2e785
[BOT] post-merge updates
OCA-git-bot Dec 11, 2024
311658d
[REF] l10n_br_base: company name
CristianoMafraJunior Dec 12, 2024
ceaa2f2
[BOT] post-merge updates
OCA-git-bot Jan 7, 2025
4b70d4f
[REM] l10n_br_base: hook not needed anymore
rvalyi Feb 25, 2025
ff579df
[BOT] post-merge updates
OCA-git-bot Feb 26, 2025
1979951
[IMP] l10n_br_base: pre-commit auto fixes
marcelsavegnago Apr 23, 2025
c0015fb
[MIG] l10n_br_base: Migration to 17.0
marcelsavegnago Apr 23, 2025
8ed50e5
[MIG] l10n_br_base: Migration to 17.0 - (res_config_settings_view)
marcelsavegnago Apr 28, 2025
bf63060
[REF] l10n_br_base: robust BRL for main_company
rvalyi Apr 20, 2025
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
196 changes: 196 additions & 0 deletions l10n_br_base/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,196 @@
===========================
Brazilian Localization Base
===========================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
:target: https://odoo-community.org/page/development-status
:alt: Mature
.. |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/17.0/l10n_br_base
: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_base
: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|

Este é o módulo 'raiz' da localização brasileira. Ele traz adaptações
nos modelos do módulo ``base`` do Odoo como Parceiros, Empresas e
Endereços:

- Campo CNPJ e CPF com formatação e validação destes campos;
- Campo de Inscrição Estadual com validação;
- Formatação dos campos de endereço;
- Código do Banco Central e Siscomex para países;
- Código do IBGE para estados e municípios;
- Lista dos Bancos brasileiros;
- Contas bancarias e chaves PIX dos parceiros;
- Lista dos municípios brasileiros.

Se trata de um módulo muito simples e maduro. Existem alguns outros
módulos simples que dependem apenas desse módulo ou quase como
``l10n_br_crm`` ou ``l10n_br_portal``.

Mas se você quiser emitir ou apenas gerenciar algum tipo de documento
fiscal como NF-e ou NFS-e, o próximo módulo que você deve olhar é o
``l10n_br_fiscal`` que é porém um módulo muito mais complexo.

**Table of contents**

.. contents::
:local:

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

Este módulo depende dos pacotes Python:

- `erpbrasil.base <https://github.com/erpbrasil/erpbrasil.base>`__
- num2words
- phonenumbers
- email_validator

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

Após a instalação do módulo deve ser preenchido o endereço da empresa
para que a formação e validações necessárias para o Brasil funcione os
objetos parceiros e nos endereços.

Usage
=====

Após ter o endereço da empresa configurado, no cadastro do parceiro você
encotrar os campos CNPJ, CPF, IE, RG e os campos de endereço formatado
para o Brasil. Caso você tenha apenas o módulo base instalado, você pode
instalar o módulo Contact para acessar o cadastro de parceiros.

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

- Formatação da Inscrição Estadual de acordo com cada UF.

Changelog
=========

12.0.1.0.0 (2019)
-----------------

A partir da versão 12.0 foi extraído o pacote de validações cadastrais
``erpbrasil.base`` no intuito de minimizar o código que depende de uma
versão especifica do Odoo e para desenvolver sinergias com outras
comunidades de código aberto.

11.0 (unreleased)
-----------------

Devido ao atraso com a versão 11.0 foi decido de pular a versão 11.0 e
trabalhar direitamente para a versão 12.0.

10.0.1.0.0 (2017)
-----------------

Devido ao trabalho enorme com a reescritura do módulo de contabilidade
na versão 9 e a problemas pessoas de um dos autores, essa versão atrasou
um pouco para sair.

9.0.1.0.0 (2015)
----------------

8.0.1.0.0 (2014)
----------------

7.0.1.0.0 (2013)
----------------

Mudança do Launchpad para Github. Mudança importante com a unificação
das tabelas de parceiros e endereços.

6.1.1.0.0 (2012)
----------------

6.0.1.0.0 (2011)
----------------

5.0.1.0.0 (2009)
----------------

Este módulo foi criado na versão 5.0 do Odoo então chamado OpenERP. Era
inicialmente hospedado na plataforma Launchpad.

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_base%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://www.akretion.com/pt-BR>`__:

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

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

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

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

- Antônio S. Pereira Neto <neto@engenere.one>

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_base>`_ project on GitHub.

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

from . import models

from odoo.addons import account
from odoo import api, tools, SUPERUSER_ID

# Install Simple Chart of Account Template for Brazilian Companies
_auto_install_l10n_original = account._auto_install_l10n


def _auto_install_l10n_br_generic_module(env):
country_code = env.company.country_id.code

Check warning on line 14 in l10n_br_base/__init__.py

View check run for this annotation

Codecov / codecov/patch

l10n_br_base/__init__.py#L14

Added line #L14 was not covered by tests
if country_code and country_code.upper() == "BR":
if (
hasattr(env.user.company_id, "tax_framework")
and env.company.tax_framework == "3"
):
module_name_domain = [("name", "=", "l10n_br_coa_generic")]
else:
module_name_domain = [("name", "=", "l10n_br_coa_simple")]

# Load all l10n_br COA's in demo mode:
env.cr.execute("select demo from ir_module_module where name='l10n_br_base';")

Check warning on line 25 in l10n_br_base/__init__.py

View check run for this annotation

Codecov / codecov/patch

l10n_br_base/__init__.py#L25

Added line #L25 was not covered by tests
if env.cr.fetchone()[0]:
module_name_domain = [
(
"name",
"in",
("l10n_br_coa_simple", "l10n_br_coa_generic", "l10n_generic_coa"),
)
]

module_ids = env["ir.module.module"].search(
module_name_domain + [("state", "=", "uninstalled")]
)
module_ids.sudo().button_install()
else:
_auto_install_l10n_original(env)

Check warning on line 40 in l10n_br_base/__init__.py

View check run for this annotation

Codecov / codecov/patch

l10n_br_base/__init__.py#L40

Added line #L40 was not covered by tests


account._auto_install_l10n = _auto_install_l10n_br_generic_module
51 changes: 51 additions & 0 deletions l10n_br_base/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Copyright (C) 2009 - TODAY Renato Lima - Akretion
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html

{
"name": "Brazilian Localization Base",
"summary": "Customization of base module for implementations in Brazil.",
"category": "Localization",
"license": "AGPL-3",
"author": "Akretion,Odoo Community Association (OCA)",
"maintainers": ["renatonlima", "rvalyi"],
"website": "https://github.com/OCA/l10n-brazil",
"depends": ["base", "base_setup", "base_address_extended"],
"version": "17.0.1.0.0",
"data": [
"security/ir.model.access.csv",
"data/res.city.csv",
"data/res.country.state.csv",
"data/res.bank.csv",
"views/res_partner_address_view.xml",
"views/res_config_settings_view.xml",
"data/res_country_data.xml",
"views/res_city_view.xml",
"views/res_bank_view.xml",
"views/res_partner_bank_view.xml",
"views/res_country_view.xml",
"views/res_partner_view.xml",
"views/res_company_view.xml",
],
"assets": {
"web.assets_backend": [
"l10n_br_base/static/src/scss/form.scss",
],
},
"demo": [
"demo/l10n_br_base_demo.xml",
"demo/res_partner_demo.xml",
"demo/res_company_demo.xml",
"demo/res_users_demo.xml",
"demo/res_partner_pix_demo.xml",
],
"installable": True,
"development_status": "Mature",
"external_dependencies": {
"python": [
"num2words",
"erpbrasil.base>=2.3.0",
"phonenumbers",
"email-validator",
]
},
}
Loading