Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[15.0][MIG] l10n_br_account_payment_brcobranca #3224

Draft
wants to merge 801 commits into
base: 15.0
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
801 commits
Select commit Hold shift + click to select a range
2763f6d
[REF] Using only the Journal Entry to create the return.
mbcosta Sep 11, 2020
cfe28fd
[REF] Create CNAB Return Log, to store the file and the lines because…
mbcosta Sep 15, 2020
5c58063
[IMP] Field was create in inherit module to registering the return mo…
mbcosta Sep 16, 2020
0add6ae
[FIX] Methods and views of CNAB Return Log.
mbcosta Sep 18, 2020
ee25ec8
[IMP] Constants are not necessary anymore because Return Move Code no…
mbcosta Sep 29, 2020
5eb6e2a
[IMP] Demo data.
mbcosta Sep 29, 2020
859b32e
[MIG][REF] Code and view become deprecated by adoption of account_mov…
mbcosta Oct 5, 2020
2d4108d
[FIX] Journal Entries and invoice reconciliation.
mbcosta Oct 7, 2020
9d90229
[FIX] Removed prints in the code.
mbcosta Oct 8, 2020
3d3dcca
[FIX] Demo data.
mbcosta Oct 8, 2020
0f555de
[FIX] Journal Entries and invoice reconciliation.
mbcosta Oct 8, 2020
7908f25
[REF] CNAB return log.
mbcosta Oct 14, 2020
fba94e7
[REF] Update changes made in inherit module about security groups.
mbcosta Oct 14, 2020
adc737e
[IMP] Include menu to import return file on the Payments Menu.
mbcosta Oct 14, 2020
80006c3
[REF] CNAB Return Log now is in inherit module l10n_br_account_paymen…
mbcosta Oct 21, 2020
b245c00
[FIX] Check zero value and position of decimal in tariff value.
mbcosta Oct 29, 2020
2788c46
[REF] Use short name of Bank in Log and Journal Entry.
mbcosta Oct 30, 2020
f629ec4
[REF] Method to used to change value from string to float for work wi…
mbcosta Oct 30, 2020
d5523bc
[REF] CNAB return code in 240 should be more standarized.
mbcosta Oct 30, 2020
4b0b269
[REF] Name of objects related to CNAB Return Log has been changed to …
mbcosta Nov 3, 2020
bac7480
[REF] Name of objects related to CNAB Return Move Code has been chang…
mbcosta Nov 3, 2020
2ed60a3
[FIX] Change in the name of variable was missing.
mbcosta Nov 3, 2020
a3f05a1
[FIX] boleto_post field name
marcelsavegnago Nov 5, 2020
fcf1479
[FIX] add noupdate=1 res_config_settings_data.xml
marcelsavegnago Nov 5, 2020
75efcfa
[IMP] add files for readme (perfumaria)
marcelsavegnago Nov 5, 2020
cfc159b
[REF][FIX] Send Movement Intruction Code and fix Interest Code/Percent.
mbcosta Nov 5, 2020
ca6f1cd
[FIX] Update CNAB Status, necessary to know to process 02-Pedido_Baixa.
mbcosta Nov 9, 2020
f99c212
[FIX] Search for account_move_line in Return CNAB.
mbcosta Nov 12, 2020
312fe2b
[FIX] Update cnab_state of account_move_line in CNAB Return.
mbcosta Nov 12, 2020
426eb3b
[FIX] CNAB Movement Instruction Code can be different.
mbcosta Nov 14, 2020
9b3fe13
[REF] Implementation moved to inherit module.
mbcosta Nov 18, 2020
4db0a8c
[REF] Button Print Boleto only appear in CNAB payment mode.
mbcosta Nov 18, 2020
1b56146
[FIX] CNAB Return Reconciliation.
mbcosta Nov 23, 2020
9aba8ec
[FIX] Demo data.
mbcosta Nov 23, 2020
2f19b2e
[IMP] Demo data.
mbcosta Nov 23, 2020
57270a3
[FIX] CNAB 240 is not standardized.
mbcosta Nov 24, 2020
42257d0
[FIX] Received Value in Log need to be the same informed in CNAB file.
mbcosta Nov 24, 2020
bdae5bd
[IMP] Included amout total of tariff charge in CNAB return log.
mbcosta Nov 24, 2020
af1bcf9
[IMP] Included another total amounts in return Log.
mbcosta Nov 24, 2020
f2376ee
[FIX] Field removed, information in code_covention.
mbcosta Nov 24, 2020
771c78c
[REF] Code was moved to dependency module.
mbcosta Nov 26, 2020
101c6f8
[IMP+REF] Inform Return CNAB Event in move line.
mbcosta Mar 9, 2021
9482d3a
[REF] Payment Mode demo has changed Own Number Sequence.
mbcosta Mar 9, 2021
08d27bf
[IMP] Included CNAB Return of Accept Instruction before payment to ha…
mbcosta Mar 9, 2021
f7101c0
[FIX] Button Print Boleto.
mbcosta Mar 9, 2021
ee6f5e0
[REF] Field name has changed.
mbcosta Mar 9, 2021
a046f76
[REM] Unused test.
mbcosta Mar 26, 2021
a3627ed
[IMP] Tests.
mbcosta Mar 26, 2021
9af413e
[IMP] Test CNAB change methods.
mbcosta Mar 29, 2021
8c42699
[IMP] Test Cancel Invoice.
mbcosta Mar 29, 2021
d72240c
[IMP] Test for payment by assign_outstanding_credit.
mbcosta Apr 8, 2021
cb81ec4
[REF] Separated method for prepare Boleto bank lines.
mbcosta Apr 8, 2021
6f4effe
[REF+FIX] It is better create one account.move for each CNAB line to …
mbcosta Apr 23, 2021
41fb2e0
[FIX] Account line of Value Paid should be Liquid Paid Value plus Tar…
mbcosta Apr 26, 2021
dd9ac78
[FIX] Open tree view without Filter.
mbcosta Apr 26, 2021
1aaddd1
[FIX] Account Entries and use just one line to make reconciliation.
mbcosta Apr 29, 2021
470aef4
[FIX] Payment Line can has N Bank Payment Line.
mbcosta Apr 29, 2021
d0a2a41
[REF] In case of Invoice Cancel the account move lines related will b…
mbcosta May 7, 2021
3166df6
flake8
rvalyi Jun 14, 2021
ad8d706
[IMP] l10n_br_account_payment_brcobranca: black, isort, prettier
rvalyi Jun 14, 2021
5753983
flake8: post Black indent/line breaks fixes
rvalyi Jun 14, 2021
a9680c0
deprecation assertEquals -> assertEqual
rvalyi Jun 14, 2021
e37ae06
remove useless @api.multi
rvalyi Jun 14, 2021
b116fba
added minimalist CNAB return tests
rvalyi Jun 14, 2021
64778dd
[FIX] Pre commit.
mbcosta Jun 14, 2021
d58f4de
[REF+FIX] Splitted method, flake8 'is too complex'.
mbcosta Jun 14, 2021
8ac8f6a
[REF+FIX] Splitted method, model account.journal, flake8 'is too comp…
mbcosta Jun 14, 2021
a44b144
[FIX] Flake8.
mbcosta Jun 14, 2021
232e5d1
[REF] Splitted method to get BRCobranca data to can be able make mock…
mbcosta Jun 15, 2021
ee6892b
[REF] Tests mock BRCobranca return.
mbcosta Jun 15, 2021
1d6ab86
[FIX+REF] Call super to create CNAB file to send when Payment Mode it…
mbcosta Jun 16, 2021
be2ed29
[FIX] Tests mock return of Remessa file.
mbcosta Jun 16, 2021
2aba515
[MOV] To configure pre-commit ignore file type REM.
mbcosta Jun 16, 2021
4288c43
[MOV] To configure pre-commit ignore file type RET.
mbcosta Jun 16, 2021
ba23311
[REF] Separated method to get Boleto from BRCobranca to be able to mo…
mbcosta Jun 16, 2021
c035837
[FIX] Test, mock Boleto creation from BRCobranca.
mbcosta Jun 16, 2021
8880ac3
[REF] Tests, change self for cls.
mbcosta Jun 18, 2021
5ebfdb2
[FIX] Method should use lstrip to keep right zeros.
mbcosta Jun 21, 2021
bdd37d3
[IMP] Demo data for use in tests.
mbcosta Jun 21, 2021
ab37882
[IMP] Tests, make automatic reconciliation.
mbcosta Jun 21, 2021
e7fa75d
[FIX] Pre commmit.
mbcosta Jun 21, 2021
9311b90
[REF] Moved code to allow tests running in the code that should not b…
mbcosta Jun 25, 2021
0add0e1
[REF] Check if tests should be mock or not.
mbcosta Jun 25, 2021
67204c7
[REF] Split methods to change CNAB.
mbcosta Jun 25, 2021
b931c12
[FIX] Just check for CI for mock tests.
mbcosta Jun 28, 2021
8253266
[REF] Tests, reduced code.
mbcosta Jun 28, 2021
4727d68
[REF] BRCobranca API URL should be an OS Environment variable.
mbcosta Jun 28, 2021
66758eb
[FIX] Pre commit.
mbcosta Jun 28, 2021
691ab43
[REM] Unnecessary api.multi .
mbcosta Jun 30, 2021
7f3f72e
[REF] Invisible button attribute can be done in view.
mbcosta Jun 30, 2021
e9750bf
[REF] Check CNAB restriction can be done by method in payment mode ob…
mbcosta Jun 30, 2021
adc82d9
[REF] Specific name of methods to get data from BRCobranca.
mbcosta Jun 30, 2021
4e84437
[IMP] README.
mbcosta Jun 30, 2021
5077b1e
[FIX] Pre commit.
mbcosta Jun 30, 2021
db6686b
[FIX+REM] BRCobranca API URL should be an OS Environment variable.
mbcosta Jun 30, 2021
b128e84
[FIX] Test, method to mock.
mbcosta Jun 30, 2021
5267f26
[FIX] Button Print Boleto should open pop-up to Save or Download the …
mbcosta Jul 1, 2021
4406c51
[UPD] Update l10n_br_account_payment_brcobranca.pot
oca-travis Jul 7, 2021
28a5d10
[UPD] README.rst
OCA-git-bot Jul 7, 2021
4cb98cc
[FIX] Test, Date used should be dynamic.
mbcosta Jul 15, 2021
9cf83da
[IMP] Test CNAB 400 Boleto and Remessa for Banco do Brasil, Itau and …
mbcosta Aug 9, 2021
16c359e
[FIX] Removed unnecessary fixed fields in Remessa File CNAB 400 Banco…
mbcosta Aug 11, 2021
6a13177
[FIX] Name of Bank SICREDI used to map function and fields for create…
mbcosta Aug 11, 2021
dce9b71
[IMP] Test SICREDI CNAB 240 Boleto and Remessa.
mbcosta Aug 11, 2021
e34ff65
[FIX+IMP] Correct Field with value Boleto Discount and filled field i…
mbcosta Aug 12, 2021
ef04158
[FIX+IMP] Validate if Bank and CNAB are implemented in BRCobranca and…
mbcosta Aug 12, 2021
d7fc587
[UPD] Update l10n_br_account_payment_brcobranca.pot
oca-travis Aug 23, 2021
c7dfee3
l10n_br_account_payment_brcobranca 12.0.2.0.0
OCA-git-bot Aug 23, 2021
05294ef
[REM+WIP] Removed Boleto from invoice Print menu(it's seems just work…
mbcosta Aug 27, 2021
b058d87
[REF] The lenght of Document Number field in CNAB-Remessa for UNICRED…
mbcosta Aug 27, 2021
95c36e5
[UPD] README.rst
OCA-git-bot Aug 27, 2021
90dc2b7
[FIX] cancel, see https://github.com/OCA/bank-payment/pull/860
rvalyi Oct 12, 2021
b57a58e
fix endereço cedente e sacado
antoniospneto Oct 25, 2021
0640c35
l10n_br_account_payment_brcobranca 12.0.2.0.1
OCA-git-bot Oct 25, 2021
be7ed40
fix nosso_numero para retorno itaú
antoniospneto Nov 16, 2021
859c023
fix payment_line search
antoniospneto Nov 16, 2021
8eacf6e
l10n_br_account_payment_brcobranca 12.0.2.0.2
OCA-git-bot Nov 17, 2021
cca41b0
l10n_br_account_payment_brcobranca 12.0.2.0.3
OCA-git-bot Nov 18, 2021
95afadc
fix for itau cnab
antoniospneto Dec 3, 2021
7e84a9c
add implementations for ailos bank
antoniospneto Dec 5, 2021
99459b4
[UPD] Update l10n_br_account_payment_brcobranca.pot
oca-travis Dec 6, 2021
faec0c8
l10n_br_account_payment_brcobranca 12.0.2.0.4
OCA-git-bot Dec 6, 2021
c8ba4d5
ailos bank implementation in brcobranca
antoniospneto Dec 10, 2021
6a51277
[UPD] Update l10n_br_account_payment_brcobranca.pot
oca-travis Dec 14, 2021
ff26bdf
[UPD] README.rst
OCA-git-bot Dec 14, 2021
01e6392
l10n_br_account_payment_brcobranca 12.0.3.0.0
OCA-git-bot Dec 14, 2021
b3ac6c8
l10n_br_account_payment_brcobranca 12.0.3.1.0
OCA-git-bot Dec 15, 2021
3478458
[IMP] l10n_br_account_payment_brcobranca: pre-commit execution
mbcosta Feb 3, 2022
76097fa
[MIG] l10n_br_account_payment_brcobranca: Migration to 13.0
mbcosta Feb 3, 2022
f26556f
[MIG] Objects account.invoice and account.invoice.line was merged in …
mbcosta Feb 3, 2022
12abff5
[MIG] Rename files because of merged account.invoice in to account.mo…
mbcosta Feb 3, 2022
078c2c4
[MIG] In ir.attachment field datas_fname changed to store_fname .
mbcosta Feb 3, 2022
dd453b9
[MIG] All account.move.lines created from Return CNAB file has field …
mbcosta Feb 3, 2022
1a76b2e
[MIG] Created new field cnab_returned_ref to be able find the right a…
mbcosta Feb 3, 2022
26626fc
[MIG] Import Wizard in the CNAB menu.
mbcosta Feb 3, 2022
22a4c14
[MIG] Tests.
mbcosta Feb 3, 2022
2342d60
[FIX] Made Returned CNAB File for Ailos Bank reconciable.
mbcosta Feb 3, 2022
33fe00d
[MIG] l10n_br_account_payment_brcobranca: migration to version 14.0 .
mbcosta May 26, 2022
1919009
[MIG] Changed field to keep Boleto attachment.
mbcosta May 26, 2022
412634d
[MIG] Keep field order in the View.
mbcosta May 26, 2022
85aa7f2
[MIG] Method for_xml_id become _for_xml_id .
mbcosta May 26, 2022
3195dee
[MIG] There no more method action_done .
mbcosta May 26, 2022
7788f46
[FIX] Occurrence Date register in Return CNAB Log should try to use d…
mbcosta Apr 18, 2022
d2b2bbe
[FIX] l10n_br_account_payment_brcobranca: Check no zero in data_venci…
mbcosta Apr 18, 2022
c8a16fb
[MIG] l10n_br_account_payment_brcobranca: Reconciliantion process in …
mbcosta May 26, 2022
56165e7
[MIG] l10n_br_account_payment_brcobranca: Tests.
mbcosta May 26, 2022
4e6c5dc
[MIG] l10n_br_account_payment_brcobranca: Method post become action_p…
mbcosta May 26, 2022
a6fcd29
[MIG][UPD] l10n_br_account_payment_brcobranca: README files.
mbcosta May 26, 2022
c3d38ab
[IMP] l10n_br_account_payment_brcobranca: Related the Journal Entries…
mbcosta May 26, 2022
0b3de21
[MIG] l10n_br_account_payment_brcobranca: Tests, account_invoice beco…
mbcosta May 26, 2022
39a336d
[UPD] Update l10n_br_account_payment_brcobranca.pot
oca-travis Jun 13, 2022
e4d4564
[UPD] README.rst
OCA-git-bot Jun 13, 2022
d26186c
[IMP] l10n_br_account_payment_brcobranca: update library BRcobranca t…
mbcosta Jul 6, 2022
48935b9
[FIX] (brcobranca) add convenio_lider for bank Banco do Brasil
antoniospneto Jul 10, 2022
bf7fe92
l10n_br_account_payment_brcobranca 14.0.1.0.1
OCA-git-bot Jul 11, 2022
27f1d54
l10n_br_account_payment_brcobranca 14.0.1.1.0
OCA-git-bot Jul 12, 2022
27fe77e
[IMP] l10n_br_account_payment_brcobranca: adding other ways to set a …
marcelsavegnago Jul 19, 2022
008f019
l10n_br_account_payment_brcobranca 14.0.1.2.0
OCA-git-bot Jul 20, 2022
cfe2015
[FIX] cnab banco do brasil, map field cod_primeira_instrucao
antoniospneto Jul 22, 2022
9895ab7
[FIX] brcobranca: add cep in sacado_endereco"
antoniospneto Jul 26, 2022
e475d4b
l10n_br_account_payment_brcobranca 14.0.1.3.0
OCA-git-bot Jul 27, 2022
674af98
Added translation using Weblate (Portuguese (Brazil))
marcelsavegnago Jul 28, 2022
34bea94
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Jul 28, 2022
4634011
l10n_br_account_payment_brcobranca 14.0.1.3.1
OCA-git-bot Jul 31, 2022
dde9957
[REF] brcobranca: state abbreviation in address
antoniospneto Jul 30, 2022
32e8772
l10n_br_account_payment_brcobranca 14.0.1.3.2
OCA-git-bot Aug 1, 2022
246ccfb
[FIX] brcobranca: add check for banco_brasil in cnab parser
antoniospneto Sep 14, 2022
608f590
l10n_br_account_payment_brcobranca 14.0.1.3.3
OCA-git-bot Sep 14, 2022
cc0f633
Translated using Weblate (Portuguese (Brazil))
douglascstd Sep 16, 2022
89eadd9
[IMP] brcobranca: check cnab_processor to generate file
felipemotter Sep 27, 2022
b1c3121
[IMP] brcobranca: cnab_processor migration script
felipemotter Oct 1, 2022
4d40f2b
[UPD] Update l10n_br_account_payment_brcobranca.pot
Oct 19, 2022
5236205
Update translation files
weblate Oct 19, 2022
89300da
[REF] do not import tests l10n_br_account_payment_brcobranca
mileo Oct 21, 2022
fc63135
[REF] Context better using kwargs l10n_br_account_payment_brcobranca
mileo Oct 21, 2022
700044f
[REF] l10n_br_account_payment_brcobranca logger exception
mileo Oct 21, 2022
9d97de3
[REF] str-format-used l10n_br_account_payment_brcobranca
mileo Oct 21, 2022
29d1d05
[UPD] Update l10n_br_account_payment_brcobranca.pot
Oct 22, 2022
bdae828
l10n_br_account_payment_brcobranca 14.0.2.0.1
OCA-git-bot Oct 22, 2022
2cc2528
Update translation files
weblate Oct 22, 2022
3f9b464
[REF] missing-return l10n_br_account_payment_brcobranca
mileo Oct 22, 2022
a69d7c1
l10n_br_account_payment_brcobranca 14.0.2.0.2
OCA-git-bot Oct 22, 2022
5ae1e0c
[REF] raise-missing-from l10n_br_account_payment_brcobranca
mileo Oct 22, 2022
28221c8
l10n_br_account_payment_brcobranca 14.0.2.0.3
OCA-git-bot Oct 23, 2022
68201c3
[REF] l10n_br_account_payment_brcobranca: change cnab processor selec…
antoniospneto Oct 28, 2022
5521d24
[UPD] Update l10n_br_account_payment_brcobranca.pot
Oct 31, 2022
609021c
l10n_br_account_payment_brcobranca 14.0.3.0.0
OCA-git-bot Oct 31, 2022
0ac2291
Update translation files
weblate Oct 31, 2022
a8bd432
[REF] l10n_br_account_payment_brcobranca: Check the model more precisely
antoniospneto Nov 1, 2022
2b89c65
l10n_br_account_payment_brcobranca 14.0.3.0.1
OCA-git-bot Nov 5, 2022
58c4f9b
Translated using Weblate (Portuguese (Brazil))
douglascstd Nov 23, 2022
958f29f
[FIX] brcobranca: disccount message
antoniospneto Jul 26, 2022
b19feaa
[FIX] brcobranca: add discount value for ailos bank
antoniospneto Jul 26, 2022
5c3e215
[REF] l10n_br_account_payment_brcobranca: pre-load discount value
antoniospneto Jan 24, 2023
b9279ec
l10n_br_account_payment_brcobranca 14.0.3.0.2
OCA-git-bot Jan 27, 2023
cd6ade2
l10n_br_account_payment_brcobranca 14.0.3.1.0
OCA-git-bot Jan 27, 2023
b7973f4
l10n_br_account_payment_brcobranca 14.0.3.1.1
OCA-git-bot Jan 27, 2023
bf695e1
[FIX] l10n_br_account_payment_brcobranca: discount account
felipemotter Jan 27, 2023
b179f04
l10n_br_account_payment_brcobranca 14.0.3.1.2
OCA-git-bot Jan 28, 2023
ce6d12c
[FIX] l10n_br_account_payment_brcobranca: return our number bb
felipemotter Mar 20, 2023
7ea19d7
l10n_br_account_payment_brcobranca 14.0.3.1.3
OCA-git-bot Mar 27, 2023
99414a9
[REF] l10n_br_account_payment_brcobranca: The object bank.payment.lin…
mbcosta Mar 8, 2023
2c69227
[REF] l10n_br_account_payment_brcobranca: Rename file because the obj…
mbcosta Mar 8, 2023
7eb6979
[REF] l10n_br_account_payment_brcobranca: Unnecessary Warning in Log,…
mbcosta Mar 8, 2023
9857784
[IMP] l10n_br_account_payment_brcobranca: Associate Payment Lines wit…
mbcosta Mar 14, 2023
23898c3
[LINT] no copyright in init + maintainers
rvalyi May 28, 2023
f813898
l10n_br_account_payment_brcobranca 14.0.4.0.0
rvalyi May 28, 2023
6cbc589
[UPD] Update l10n_br_account_payment_brcobranca.pot
May 28, 2023
45067b2
[UPD] README.rst
OCA-git-bot May 28, 2023
feed344
Update translation files
weblate May 28, 2023
58c7e51
[UPD] README.rst
OCA-git-bot Sep 3, 2023
6d74d3f
[REF] l10n_br_account_payment_brcobranca: Account Precision should us…
mbcosta Sep 5, 2023
de06f24
l10n_br_account_payment_brcobranca 14.0.4.1.0
OCA-git-bot Sep 6, 2023
055a6d2
[UPD] README.rst
OCA-git-bot Sep 6, 2023
9b9ee82
[FIX] l10n_br_account_payment_brcobranca: due_date referenced before …
felipemotter Sep 21, 2023
b50fee9
[BOT] post-merge updates
OCA-git-bot Sep 22, 2023
d7df2c9
[REF] l10n_br_account_payment_brcobranca: Move Button Print Boleto to…
mbcosta Sep 29, 2023
ddf33d2
[DOC] l10n_br_account_payment_brcobranca: Removed unnecessary License…
mbcosta Sep 29, 2023
cf5f0cd
[UPD] Update l10n_br_account_payment_brcobranca.pot
Sep 30, 2023
54f7216
[BOT] post-merge updates
OCA-git-bot Sep 30, 2023
08f45b4
Update translation files
weblate Oct 9, 2023
36df642
[REF] l10n_br_account_payment_brcobranca: Inform python external depe…
mbcosta Oct 25, 2023
7738f51
[REF] l10n_br_account_payment_brcobranca: Remove empty Lines, necessa…
mbcosta Oct 25, 2023
4b83415
[BOT] post-merge updates
OCA-git-bot Oct 25, 2023
866b914
[BOT] post-merge updates
OCA-git-bot Oct 27, 2023
d96bda3
[IMP] l10n_br_account_payment_brcobranca: major migration script
antoniospneto Dec 10, 2023
c70eb48
[FIX] l10n_br_account_payment_brcobranca: 14.0.2.0.0 migration script
antoniospneto Dec 10, 2023
f282d5c
[BOT] post-merge updates
OCA-git-bot Dec 11, 2023
5b5a255
[IMP] l10n_br_account_payment_brcobranca: message UserError API
kaynnan Dec 12, 2023
071e3d7
[UPD] Update l10n_br_account_payment_brcobranca.pot
Dec 13, 2023
3a5be77
[BOT] post-merge updates
OCA-git-bot Dec 13, 2023
8525b1e
Update translation files
weblate Dec 14, 2023
9404dd1
[FIX] brcobranca for bank Santander
antoniospneto Jul 12, 2022
3c5b40f
[BOT] post-merge updates
OCA-git-bot Jan 9, 2024
5432ceb
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Feb 6, 2024
2a18a7d
[FIX] l10n_br_account_payment_brcobranca: In Santander case there is …
mbcosta Feb 23, 2024
783c998
[REF] l10n_br_account_payment_brcobranca: Santander 400 case in BRCob…
mbcosta Feb 23, 2024
2ee4321
[REF+IMP] l10n_br_account_payment_brcobranca: Rename fields code_cove…
mbcosta Feb 23, 2024
9d0e830
[IMP] l10n_br_account_payment_brcobranca: Included Demo Data for Sant…
mbcosta Feb 23, 2024
8af80b5
[IMP] l10n_br_account_payment_brcobranca: Tests for CNAB Santader 400…
mbcosta Feb 27, 2024
8b54bc7
[BOT] post-merge updates
OCA-git-bot Mar 4, 2024
4ea5f51
[FIX] l10n_br_account_payment_brcobranca: sequential file_number REM
CristianoMafraJunior Mar 4, 2024
3d8bbec
[BOT] post-merge updates
OCA-git-bot Mar 5, 2024
72acda6
[REF] l10n_br_account_payment_brcobranca: Moved method get_file_name …
mbcosta Mar 6, 2024
e618819
[BOT] post-merge updates
OCA-git-bot Mar 7, 2024
3bf2642
[IMP] l10n_br_account_payment_order: add short name for 'boleto espec…
antoniospneto Mar 22, 2024
38b0971
[BOT] post-merge updates
OCA-git-bot Mar 26, 2024
e41793d
[REF] l10n_br_account_payment_brcobranca: lint fixes
antoniospneto Jul 25, 2024
33e0a19
[IMP] l10n_br_account_payment_brcobranca: pre-commit execution
antoniospneto Jul 25, 2024
4cc21b9
[MIG] l10n_br_account_payment_brcobranca: Migration to 15.0
antoniospneto Jul 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
217 changes: 217 additions & 0 deletions l10n_br_account_payment_brcobranca/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,217 @@
==================================
L10n Br Account Payment BRCobranca
==================================

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

.. |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/15.0/l10n_br_account_payment_brcobranca
: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-15-0/l10n-brazil-15-0-l10n_br_account_payment_brcobranca
: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=15.0
:alt: Try me on Runboat

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

**Português**
Esse modulo implementa o CNAB usando a biblioteca BRCobranca
https://github.com/kivanio/brcobranca .

**English**
This module implement brazilian bank splips('Boletos Bancarios') by using
BRCobranca(https://github.com/kivanio/brcobranca).

**Table of contents**

.. contents::
:local:

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

**Português**
O modulo depende do:

* l10n_br_account_payment_order
* account_move_base_import

**English**
This module depends on:

* l10n_br_account_payment_order
* account_move_base_import

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

**Português**
Para configurar esse modulo é preciso:

* Rodar a biblioteca BRCobranca como um micro-serviço https://github.com/akretion/boleto_cnab_api .
* Informar a variável de ambiente **BRCOBRANCA_API_URL** no arquivo de configuração do Odoo ou se estiver usando o docky na seção enviroment https://github.com/akretion/docky-odoo-brasil/blob/12.0/docker-compose.yml#L3 , exemplo:
**BRCOBRANCA_API_URL=http://boleto_cnab_api:9292**
* Verifique se os Códigos de Movimento do CNAB a ser usado existem em Faturamento > Configurações > Administração > Códigos de Instrução do Movimento CNAB, se for necessário criar considere fazer um PR para adicionar como dados aqui https://github.com/OCA/l10n-brazil/blob/12.0/l10n_br_account_payment_order/data/l10n_br_cnab_mov_instruction_code_data.xml .
* Verifique se os Códigos de Retorno do Movimento do CNAB a ser usado existem em Faturamento > Configurações > Administração > Códigos de Retorno de Movimento CNAB, se for necessário criar considere fazer um PR para adicionar como dados aqui https://github.com/OCA/l10n-brazil/blob/12.0/l10n_br_account_payment_order/data/l10n_br_cnab_return_move_code_data.xml .
* Criar a Conta Bancária referente ao CNAB em Faturamento > Configurações > Contabilidade > Contas Bancárias .
* Automaticamente será criado um Diário Contábil referente a conta bancária em Faturamento > Configurações > Contabilidade > Diários na aba **Informações Referentes a Importação** informe as configurações de Retorno do CNAB nos campos "Tipo de Importação", "Conta de Recebimento/Pagamento", "Criação de Contra-Partida" e se deve ser feita a reconciliação automática ao importar o arquivo em "Reconciliar Automaticamente o Retorno de Pagamento".
* Em Faturamento > Configurações > Administração > Modos de Pagamento criar um Modo de Pagamento com as informações do CNAB, no campo "Diário de Banco Fixo" informar o Diário Contábil da conta bancária e se for o caso, e é recomendado, marcar a opção "Adicionar automaticamente ao validar a fatura" para não ser preciso fazer manualmente.
* Caso o CNAB e Banco escolhidos possua um campo especifico que seja preciso implementar considere fazer um PR no modulo l10n_br_account_payment_order aqui https://github.com/OCA/l10n-brazil/blob/12.0/l10n_br_account_payment_order/models/l10n_br_cnab_boleto_fields.py#L307 .
* Configure as permissões de acesso dos usuários, as opções são CNAB "Usuário" e "Gerente".

**English**
To configure this module, you need to:

* Run BRCobranca as micro-service https://github.com/akretion/boleto_cnab_api.
* Inform the envoriment variable BRCOBRANCA_API_URL in the config odoo file or if are use docky in the section enviroment https://github.com/akretion/docky-odoo-brasil/blob/12.0/docker-compose.yml#L3 , example:
**BRCOBRANCA_API_URL=http://boleto_cnab_api:9292**
* Check if the CNAB Instruction Movement Code to be use exist in Invoicing > Configuration > Management > CNAB Movement Instruction Code if necessary create please consider make PR to add as data in https://github.com/OCA/l10n-brazil/blob/12.0/l10n_br_account_payment_order/data/l10n_br_cnab_mov_instruction_code_data.xml .
* Check if the CNAB Return Move Code to be use exist in Invoicing > Configuration > Management > CNAB Return Move Code if necessary create please consider make PR to add as data in https://github.com/OCA/l10n-brazil/blob/12.0/l10n_br_account_payment_order/data/l10n_br_cnab_return_move_code_data.xml .
* Create an Bank Account referent of CNAB in Invoicing > Configuration > Accounting > Bank Accounts .
* Automatic will be create an Account Journal refer to bank account in Invoicing > Configuration > Accounting > Journals in tab **Import related infos** inform parameters of CNAB Return in fields "Type of Import", "Receivable/Payable Account", "Create Counterpart", and if should make automatic reconciliation when import the file in "Automatic Reconcile payment returns".
* In Invoicing > Configuration > Management > Payment Modes create an Payment Mode with CNAB information, in the field "Fixed Bank Journal" inform the Account Journal of bank account and mark if "Automatically add when validating the invoice" so that you don't have to do it manually.
* Configure user access permissions, CNAB options are "User" and "Manager".

Usage
=====

**Português**

* Ao criar e Confirmar uma Fatura que tem um Modo de Pagamento que seja CNAB deverá aparecer o botão de "Imprimir Boleto".
* Caso esteja marcado no Modo de Pagamento a opção de "Adicionar automaticamente ao validar a fatura" será criada ou adicionada em uma Ordem de Pagamento as linhas de pagamentos do CNAB, se a opção não estiver marcada será preciso fazer isso manualmente podendo ser feito tanto na Fatura quanto na Ordem de Pagamento.
* Ao Confirmar essa Ordem de Pagamento será possível gerar o arquivo de Remessa CNAB a ser enviado ao Banco, é importante confirmar o envio do arquivo alterando o status da ordem para "Arquivo Enviado", essa informação é usada para validar se existe uma instrução CNAB pendente antes de se poder criar outra.
* Alterações de CNAB como Alteração da Data de Vencimento, Protesto, Conceder Abatimento e etc podem ser feitas na própria Fatura em Faturamento > Clientes > Faturas na aba Recebimentos na última coluna existe o botão "Atualizar Informação CNAB" ao clicar em uma linha essa opção também aparece, ao fazer uma alteração é criada ou adicionada em uma Ordem de Pagamento a Instrução de Movimento CNAB selecionada.
* A importação do arquivo CNAB de Retorno pode ser feita em Pagamentos > Importar arquivo Batch ou no próprio Diário em Faturamento > Configurações > Contabilidade > Diários na aba **Informações Referentes a Importação** o botão Importar arquivo Batch.
* Toda importação de arquivo de retorno cria uma LOG que pode ser consultado em Pagamentos > LOG de Retorno CNAB.
* Caso o Código de Retorno CNAB recebido seja um dos "Códigos de Liquidação do Retorno do Movimento" do Modo de Pagamento será criado uma Entrada de Diário com os valores quando existirem de desconto, juros/mora, tarifa bancaria, abatimento e valor a ser reconciliado com a linha da Fatura referente, os lançamentos são separados de acordo com as Contas Contabéis definidas no Modo de Pagamento, a linha para reconciliar a linha da Fatura precisam ser iguais por isso o valor é:
valor_recebido_calculado = (valor_recebido + valor_desconto + valor_abatimento) - valor_juros_mora
* Quando marcada a opção de "Reconciliação Automatica" /a Entrada de Diário será movida para o status Lançado automaticamente ao importar o arquivo, se não estiver marcada isso deverá ser feito manualmente.

**English**

* When creating and confirming an Invoice that has a Payment Mode that is CNAB, the button should appear "Print Boleto".
* If the option to "Add automatically when validating the invoice" is marked in the Payment Mode CNAB payment lines will be created or added to a Payment Order, if the option is not marked, you will need to do this manually, which can be done both in the Invoice and in the Payment Order.
* By confirming this Payment Order it will be possible to generate the CNAB Remessa file to be sent to the Bank, it is important to confirm the upload of the file by changing the order status to "File Uploaded", this information is used to validate if there is a pending CNAB instruction before another one can be created.
* CNAB changes such as Change Due Date, Protest, Grant Rebate, etc. can be made in the Invoice itself in Invoicing > Customers > Invoices in the Receivable tab in the last column there is the button "Update CNAB Information" when clicking on a line this option also appears, when making a change it is created or added to a Payment Order the selected CNAB Movement Instruction.
* The import of the Return CNAB file can be done in Payments > Import Batch file or in the same Journal in Invoicing > Configuration > Accounting > Journals in the tab **Import related infos** the Import Batch File button.
* Every return file import creates a LOG that can be consulted in Payments > CNAB Return LOG.
* If the CNAB Return Code received is one of the "CNAB Liquidity Return Move Code" of the Payment Mode, a Journal Entry will be created with the values when there are discount, interest, tariff charge, rebate and amount to be reconciled with the referring Invoice line, entries are separated according to the Accounts defined in the Payment Mode, the line to reconcile the Invoice line need be equal so the value is:
calculated_value_receive = (receive_amount + discount_amount + rebate_amount) - interest_amount
* When the "Automatic Reconciliation" option is checked, the Entry of Journal will be moved to the status Posted automatically when importing the file, if not checked it should be done manually.

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

* Incluir a posssibilidade de imprimir o boleto no menu Imprimir da Fatura, na v12 aparentemente não é possível chamar um metodo apenas um QWeb, verificar na migração para outras versões.

Changelog
=========

14.0.1.0.0 (2022-05-26)
~~~~~~~~~~~~~~~~~~~~~~~

* [MIG] Migration

12.0.1.0.0 (2021-05-07)
~~~~~~~~~~~~~~~~~~~~~~~

* [MIG] Finish migration
* [IMP] Integrate with module account_move_base_import used to import CNAB file
* [IMP] Make possible automatic reconciliation and register the values of Fees, Tariff Bank, Rebate in configured accounts.

12.0.1.0.0 (2020-06-12)
~~~~~~~~~~~~~~~~~~~~~~~

* [MIG] Start Migration

10.0.1.0.0 (2019-05-30)
~~~~~~~~~~~~~~~~~~~~~~~

* [MIG] Migration

8.0.1.0.0 (2018-01-29)
~~~~~~~~~~~~~~~~~~~~~~~

* [REF] Maked functional to print Boleto, create CNAB file and import CNAB as Extrat Bank the user should be resolved manully the divergences between the values( Fee, Tariff Bank, Rebate, etc).

8.0.1.0.0 (2017-07-01)
~~~~~~~~~~~~~~~~~~~~~~~

* [NEW] First version

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_payment_brcobranca%0Aversion:%2015.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 <[email protected]>
* Magno Costa <[email protected]>

* `Engenere <https://engenere.one>`_:
* Antônio S. Pereira Neto <[email protected]>

Other credits
~~~~~~~~~~~~~

The development of this module has been financially supported by:

* AKRETION LTDA - https://akretion.com/pt-BR

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-rvalyi| image:: https://github.com/rvalyi.png?size=40px
:target: https://github.com/rvalyi
:alt: rvalyi
.. |maintainer-mbcosta| image:: https://github.com/mbcosta.png?size=40px
:target: https://github.com/mbcosta
:alt: mbcosta

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

|maintainer-rvalyi| |maintainer-mbcosta|

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions l10n_br_account_payment_brcobranca/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from . import models
from . import parser
from . import wizard
34 changes: 34 additions & 0 deletions l10n_br_account_payment_brcobranca/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright 2017 Akretion
# @author Raphaël Valyi <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "L10n Br Account Payment BRCobranca",
"version": "15.0.1.0.0",
"license": "AGPL-3",
"author": "Akretion, " "Odoo Community Association (OCA)",
"maintainers": ["rvalyi", "mbcosta"],
"website": "https://github.com/OCA/l10n-brazil",
"depends": [
"l10n_br_account_payment_order",
"account_move_base_import",
],
"data": [
# Security
"security/ir.model.access.csv",
# Views
"views/account_journal_view.xml",
# Wizard
"wizard/import_statement_view.xml",
],
"demo": [
"demo/account_journal_demo.xml",
"demo/account_move_demo.xml",
"demo/account_payment_mode.xml",
],
"external_dependencies": {
"python": [
"erpbrasil.base>=2.3.0",
]
},
}
85 changes: 85 additions & 0 deletions l10n_br_account_payment_brcobranca/constants/br_cobranca.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# Copyright 2020 Akretion
# @author Magno Costa <[email protected]>
# Copyright 2020 KMEE
# @author Luis Felipe Mileo <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

import os
from collections import namedtuple

from odoo import _
from odoo.exceptions import UserError
from odoo.tools import config

DICT_BRCOBRANCA_CNAB_TYPE = {
"240": "cnab240",
"400": "cnab400",
}

BankRecord = namedtuple("Bank", "name, retorno, remessa")

DICT_BRCOBRANCA_BANK = {
"001": BankRecord("banco_brasil", retorno=["400"], remessa=["240", "400"]),
"004": BankRecord("banco_nordeste", retorno=["400"], remessa=["400"]),
"021": BankRecord("banestes", retorno=[], remessa=[]),
"033": BankRecord("santander", retorno=["400", "240"], remessa=["400", "240"]),
"041": BankRecord("banrisul", retorno=["400"], remessa=["400"]),
"070": BankRecord("banco_brasilia", retorno=[], remessa=["400"]),
"085": BankRecord("ailos", retorno=["240"], remessa=["240"]),
"097": BankRecord("credisis", retorno=["400"], remessa=["400"]),
"104": BankRecord("caixa", retorno=["240"], remessa=["240"]),
"136": BankRecord("unicred", retorno=["400"], remessa=["240", "400"]),
"237": BankRecord("bradesco", retorno=["400"], remessa=["400"]),
"341": BankRecord("itau", retorno=["400"], remessa=["400"]),
"399": BankRecord("hsbc", retorno=[], remessa=[]),
"745": BankRecord("citibank", retorno=[], remessa=["400"]),
"748": BankRecord("sicredi", retorno=["240"], remessa=["240"]),
"756": BankRecord("sicoob", retorno=["240"], remessa=["240", "400"]),
}

DICT_BRCOBRANCA_CURRENCY = {
"R$": "9",
}


def get_brcobranca_bank(bank_account_id, payment_method_code):
bank_name_brcobranca = DICT_BRCOBRANCA_BANK.get(bank_account_id.bank_id.code_bc)

# Metodo get_brcobranca_bank chamado apenas nos casos de Remessa,
# por isso apenas esse caso é validado.
cnab_remessa = bank_name_brcobranca[2]
if not bank_name_brcobranca or payment_method_code not in cnab_remessa:
# Lista de bancos não implentados no BRCobranca
raise UserError(
_(
"The Bank %(bank)s CNAB %(cnab_code)s is not implemented "
"in BRCobranca.",
bank=bank_account_id.bank_id.name,
cnab_code=payment_method_code,
)
)
return bank_name_brcobranca


def get_brcobranca_api_url(env):
brcobranca_api_url = (
os.environ.get("BRCOBRANCA_API_URL")
or config.get("brcobranca_api_url")
or env["ir.config_parameter"].sudo().get_param("brcobranca_api_url")
)

if not brcobranca_api_url:
raise UserError(
_(
"BRCobranca API URL is not configured.\n\n"
" Set the URL using one of the these methods:\n\n"
"1. Set the environment variable:"
" BRCOBRANCA_API_URL=http://boleto_cnab_api:9292\n"
"2. Configure the URL in Odoo configuration file:"
" brcobranca_api_url=http://boleto_cnab_api:9292\n"
"3. Set the URL in System Parameters:"
" brcobranca_api_url=http://boleto_cnab_api:9292\n"
)
)

return brcobranca_api_url
26 changes: 26 additions & 0 deletions l10n_br_account_payment_brcobranca/demo/account_journal_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">

<!-- CNAB Return Configuration -->
<!-- Diario Unicred -->
<record id="l10n_br_account_payment_order.unicred_journal" model="account.journal">
<field name="used_for_import">True</field>
<field name="import_type">cnab400</field>
<field
name="bank_account_id"
ref="l10n_br_account_payment_order.main_company_bank_unicredi"
/>
<field name="return_auto_reconcile">True</field>
</record>
<!-- Diario AILOS -->
<record id="l10n_br_account_payment_order.ailos_journal" model="account.journal">
<field name="used_for_import">True</field>
<field name="import_type">cnab240</field>
<field
name="bank_account_id"
ref="l10n_br_account_payment_order.main_company_bank_ailos"
/>
<field name="return_auto_reconcile">True</field>
</record>

</odoo>
Loading
Loading