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

[16.0][MIG] l10n_br_account_payment_brcobranca #3226

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
308 commits
Select commit Hold shift + click to select a range
a02e1b3
[IMP] Constants are not necessary anymore because Return Move Code no…
mbcosta Sep 29, 2020
5f14d37
[IMP] Demo data.
mbcosta Sep 29, 2020
4d2d5b7
[MIG][REF] Code and view become deprecated by adoption of account_mov…
mbcosta Oct 5, 2020
b247b55
[FIX] Journal Entries and invoice reconciliation.
mbcosta Oct 7, 2020
29e173d
[FIX] Removed prints in the code.
mbcosta Oct 8, 2020
07bd635
[FIX] Demo data.
mbcosta Oct 8, 2020
b89c74f
[FIX] Journal Entries and invoice reconciliation.
mbcosta Oct 8, 2020
d6240bd
[REF] CNAB return log.
mbcosta Oct 14, 2020
c788911
[REF] Update changes made in inherit module about security groups.
mbcosta Oct 14, 2020
4ff203a
[IMP] Include menu to import return file on the Payments Menu.
mbcosta Oct 14, 2020
4c56682
[REF] CNAB Return Log now is in inherit module l10n_br_account_paymen…
mbcosta Oct 21, 2020
021760e
[FIX] Check zero value and position of decimal in tariff value.
mbcosta Oct 29, 2020
62cfef3
[REF] Use short name of Bank in Log and Journal Entry.
mbcosta Oct 30, 2020
65dceec
[REF] Method to used to change value from string to float for work wi…
mbcosta Oct 30, 2020
46762b7
[REF] CNAB return code in 240 should be more standarized.
mbcosta Oct 30, 2020
7ac145b
[REF] Name of objects related to CNAB Return Log has been changed to …
mbcosta Nov 3, 2020
d120510
[REF] Name of objects related to CNAB Return Move Code has been chang…
mbcosta Nov 3, 2020
6820162
[FIX] Change in the name of variable was missing.
mbcosta Nov 3, 2020
829ee80
[FIX] boleto_post field name
marcelsavegnago Nov 5, 2020
ce8a280
[FIX] add noupdate=1 res_config_settings_data.xml
marcelsavegnago Nov 5, 2020
4b4152a
[IMP] add files for readme (perfumaria)
marcelsavegnago Nov 5, 2020
e518f3c
[REF][FIX] Send Movement Intruction Code and fix Interest Code/Percent.
mbcosta Nov 5, 2020
b8c314c
[FIX] Update CNAB Status, necessary to know to process 02-Pedido_Baixa.
mbcosta Nov 9, 2020
283211f
[FIX] Search for account_move_line in Return CNAB.
mbcosta Nov 12, 2020
451c448
[FIX] Update cnab_state of account_move_line in CNAB Return.
mbcosta Nov 12, 2020
5a57553
[FIX] CNAB Movement Instruction Code can be different.
mbcosta Nov 14, 2020
1382b29
[REF] Implementation moved to inherit module.
mbcosta Nov 18, 2020
f445d7c
[REF] Button Print Boleto only appear in CNAB payment mode.
mbcosta Nov 18, 2020
6cc66a4
[FIX] CNAB Return Reconciliation.
mbcosta Nov 23, 2020
6fd1c62
[FIX] Demo data.
mbcosta Nov 23, 2020
b11eea9
[IMP] Demo data.
mbcosta Nov 23, 2020
e90c4a3
[FIX] CNAB 240 is not standardized.
mbcosta Nov 24, 2020
3a43aae
[FIX] Received Value in Log need to be the same informed in CNAB file.
mbcosta Nov 24, 2020
7c6cfa5
[IMP] Included amout total of tariff charge in CNAB return log.
mbcosta Nov 24, 2020
76a54a6
[IMP] Included another total amounts in return Log.
mbcosta Nov 24, 2020
e5f6d11
[FIX] Field removed, information in code_covention.
mbcosta Nov 24, 2020
e0ee1f5
[REF] Code was moved to dependency module.
mbcosta Nov 26, 2020
51c7272
[IMP+REF] Inform Return CNAB Event in move line.
mbcosta Mar 9, 2021
c881cc4
[REF] Payment Mode demo has changed Own Number Sequence.
mbcosta Mar 9, 2021
c2675cc
[IMP] Included CNAB Return of Accept Instruction before payment to ha…
mbcosta Mar 9, 2021
fa65092
[FIX] Button Print Boleto.
mbcosta Mar 9, 2021
cd15e5a
[REF] Field name has changed.
mbcosta Mar 9, 2021
cd6c35e
[REM] Unused test.
mbcosta Mar 26, 2021
fa809c7
[IMP] Tests.
mbcosta Mar 26, 2021
2f08682
[IMP] Test CNAB change methods.
mbcosta Mar 29, 2021
271fefd
[IMP] Test Cancel Invoice.
mbcosta Mar 29, 2021
bd82013
[IMP] Test for payment by assign_outstanding_credit.
mbcosta Apr 8, 2021
3cddbca
[REF] Separated method for prepare Boleto bank lines.
mbcosta Apr 8, 2021
968cb0e
[REF+FIX] It is better create one account.move for each CNAB line to …
mbcosta Apr 23, 2021
9019474
[FIX] Account line of Value Paid should be Liquid Paid Value plus Tar…
mbcosta Apr 26, 2021
e824e61
[FIX] Open tree view without Filter.
mbcosta Apr 26, 2021
c83876f
[FIX] Account Entries and use just one line to make reconciliation.
mbcosta Apr 29, 2021
92ec930
[FIX] Payment Line can has N Bank Payment Line.
mbcosta Apr 29, 2021
1197013
[REF] In case of Invoice Cancel the account move lines related will b…
mbcosta May 7, 2021
14c129e
flake8
rvalyi Jun 14, 2021
e2865d9
[IMP] l10n_br_account_payment_brcobranca: black, isort, prettier
rvalyi Jun 14, 2021
d106d7e
flake8: post Black indent/line breaks fixes
rvalyi Jun 14, 2021
58009f1
deprecation assertEquals -> assertEqual
rvalyi Jun 14, 2021
21c9903
remove useless @api.multi
rvalyi Jun 14, 2021
ad9fafc
added minimalist CNAB return tests
rvalyi Jun 14, 2021
dfaeb09
[FIX] Pre commit.
mbcosta Jun 14, 2021
5fcb23c
[REF+FIX] Splitted method, flake8 'is too complex'.
mbcosta Jun 14, 2021
3cdc709
[REF+FIX] Splitted method, model account.journal, flake8 'is too comp…
mbcosta Jun 14, 2021
3ea0ea6
[FIX] Flake8.
mbcosta Jun 14, 2021
f7e1736
[REF] Splitted method to get BRCobranca data to can be able make mock…
mbcosta Jun 15, 2021
b6f3b66
[REF] Tests mock BRCobranca return.
mbcosta Jun 15, 2021
38a74ff
[FIX+REF] Call super to create CNAB file to send when Payment Mode it…
mbcosta Jun 16, 2021
f8917b7
[FIX] Tests mock return of Remessa file.
mbcosta Jun 16, 2021
a4e5d55
[MOV] To configure pre-commit ignore file type REM.
mbcosta Jun 16, 2021
1d9f024
[MOV] To configure pre-commit ignore file type RET.
mbcosta Jun 16, 2021
c97f1f8
[REF] Separated method to get Boleto from BRCobranca to be able to mo…
mbcosta Jun 16, 2021
acac2e2
[FIX] Test, mock Boleto creation from BRCobranca.
mbcosta Jun 16, 2021
96ab543
[REF] Tests, change self for cls.
mbcosta Jun 18, 2021
cf6bd42
[FIX] Method should use lstrip to keep right zeros.
mbcosta Jun 21, 2021
25f3482
[IMP] Demo data for use in tests.
mbcosta Jun 21, 2021
ab74f4f
[IMP] Tests, make automatic reconciliation.
mbcosta Jun 21, 2021
1d11277
[FIX] Pre commmit.
mbcosta Jun 21, 2021
c5d66f0
[REF] Moved code to allow tests running in the code that should not b…
mbcosta Jun 25, 2021
d6e2052
[REF] Check if tests should be mock or not.
mbcosta Jun 25, 2021
af654a4
[REF] Split methods to change CNAB.
mbcosta Jun 25, 2021
fe7d9c5
[FIX] Just check for CI for mock tests.
mbcosta Jun 28, 2021
1cd7ee0
[REF] Tests, reduced code.
mbcosta Jun 28, 2021
965e160
[REF] BRCobranca API URL should be an OS Environment variable.
mbcosta Jun 28, 2021
275441c
[FIX] Pre commit.
mbcosta Jun 28, 2021
4b9052a
[REM] Unnecessary api.multi .
mbcosta Jun 30, 2021
6eca89a
[REF] Invisible button attribute can be done in view.
mbcosta Jun 30, 2021
e00a15b
[REF] Check CNAB restriction can be done by method in payment mode ob…
mbcosta Jun 30, 2021
0d1a813
[REF] Specific name of methods to get data from BRCobranca.
mbcosta Jun 30, 2021
5c4ea15
[IMP] README.
mbcosta Jun 30, 2021
73ad176
[FIX] Pre commit.
mbcosta Jun 30, 2021
7904055
[FIX+REM] BRCobranca API URL should be an OS Environment variable.
mbcosta Jun 30, 2021
5880f71
[FIX] Test, method to mock.
mbcosta Jun 30, 2021
464a955
[FIX] Button Print Boleto should open pop-up to Save or Download the …
mbcosta Jul 1, 2021
05436c8
[UPD] Update l10n_br_account_payment_brcobranca.pot
oca-travis Jul 7, 2021
1028895
[UPD] README.rst
OCA-git-bot Jul 7, 2021
1776286
[FIX] Test, Date used should be dynamic.
mbcosta Jul 15, 2021
febf63e
[IMP] Test CNAB 400 Boleto and Remessa for Banco do Brasil, Itau and …
mbcosta Aug 9, 2021
6e2a561
[FIX] Removed unnecessary fixed fields in Remessa File CNAB 400 Banco…
mbcosta Aug 11, 2021
0c0e765
[FIX] Name of Bank SICREDI used to map function and fields for create…
mbcosta Aug 11, 2021
68f0a24
[IMP] Test SICREDI CNAB 240 Boleto and Remessa.
mbcosta Aug 11, 2021
d1e9bfc
[FIX+IMP] Correct Field with value Boleto Discount and filled field i…
mbcosta Aug 12, 2021
8e796a1
[FIX+IMP] Validate if Bank and CNAB are implemented in BRCobranca and…
mbcosta Aug 12, 2021
8b50df2
[UPD] Update l10n_br_account_payment_brcobranca.pot
oca-travis Aug 23, 2021
629b1c1
l10n_br_account_payment_brcobranca 12.0.2.0.0
OCA-git-bot Aug 23, 2021
be72560
[REM+WIP] Removed Boleto from invoice Print menu(it's seems just work…
mbcosta Aug 27, 2021
0c34f91
[REF] The lenght of Document Number field in CNAB-Remessa for UNICRED…
mbcosta Aug 27, 2021
23425de
[UPD] README.rst
OCA-git-bot Aug 27, 2021
523edc2
[FIX] cancel, see https://github.com/OCA/bank-payment/pull/860
rvalyi Oct 12, 2021
202495b
fix endereço cedente e sacado
antoniospneto Oct 25, 2021
592ede0
l10n_br_account_payment_brcobranca 12.0.2.0.1
OCA-git-bot Oct 25, 2021
c3fd7f5
fix nosso_numero para retorno itaú
antoniospneto Nov 16, 2021
e6d37d9
fix payment_line search
antoniospneto Nov 16, 2021
23e0f65
l10n_br_account_payment_brcobranca 12.0.2.0.2
OCA-git-bot Nov 17, 2021
8b2bb2e
l10n_br_account_payment_brcobranca 12.0.2.0.3
OCA-git-bot Nov 18, 2021
cfbb9df
fix for itau cnab
antoniospneto Dec 3, 2021
13c71af
add implementations for ailos bank
antoniospneto Dec 5, 2021
21c0939
[UPD] Update l10n_br_account_payment_brcobranca.pot
oca-travis Dec 6, 2021
c9b5138
l10n_br_account_payment_brcobranca 12.0.2.0.4
OCA-git-bot Dec 6, 2021
9f495e0
ailos bank implementation in brcobranca
antoniospneto Dec 10, 2021
996e7e9
[UPD] Update l10n_br_account_payment_brcobranca.pot
oca-travis Dec 14, 2021
2cb44e2
[UPD] README.rst
OCA-git-bot Dec 14, 2021
5d72ffa
l10n_br_account_payment_brcobranca 12.0.3.0.0
OCA-git-bot Dec 14, 2021
e7c42b0
l10n_br_account_payment_brcobranca 12.0.3.1.0
OCA-git-bot Dec 15, 2021
2383708
[IMP] l10n_br_account_payment_brcobranca: pre-commit execution
mbcosta Feb 3, 2022
64981ea
[MIG] l10n_br_account_payment_brcobranca: Migration to 13.0
mbcosta Feb 3, 2022
14ee2e8
[MIG] Objects account.invoice and account.invoice.line was merged in …
mbcosta Feb 3, 2022
b9389de
[MIG] Rename files because of merged account.invoice in to account.mo…
mbcosta Feb 3, 2022
41bb8cf
[MIG] In ir.attachment field datas_fname changed to store_fname .
mbcosta Feb 3, 2022
65675ce
[MIG] All account.move.lines created from Return CNAB file has field …
mbcosta Feb 3, 2022
beebce7
[MIG] Created new field cnab_returned_ref to be able find the right a…
mbcosta Feb 3, 2022
570ee9d
[MIG] Import Wizard in the CNAB menu.
mbcosta Feb 3, 2022
e4e02f1
[MIG] Tests.
mbcosta Feb 3, 2022
7214f4c
[FIX] Made Returned CNAB File for Ailos Bank reconciable.
mbcosta Feb 3, 2022
fa0658d
[MIG] l10n_br_account_payment_brcobranca: migration to version 14.0 .
mbcosta May 26, 2022
dba2903
[MIG] Changed field to keep Boleto attachment.
mbcosta May 26, 2022
54954e3
[MIG] Keep field order in the View.
mbcosta May 26, 2022
a30ac75
[MIG] Method for_xml_id become _for_xml_id .
mbcosta May 26, 2022
8e3ffc2
[MIG] There no more method action_done .
mbcosta May 26, 2022
b5f8c05
[FIX] Occurrence Date register in Return CNAB Log should try to use d…
mbcosta Apr 18, 2022
17fa325
[FIX] l10n_br_account_payment_brcobranca: Check no zero in data_venci…
mbcosta Apr 18, 2022
a94c12b
[MIG] l10n_br_account_payment_brcobranca: Reconciliantion process in …
mbcosta May 26, 2022
d7dd997
[MIG] l10n_br_account_payment_brcobranca: Tests.
mbcosta May 26, 2022
23dad41
[MIG] l10n_br_account_payment_brcobranca: Method post become action_p…
mbcosta May 26, 2022
3dc5c07
[MIG][UPD] l10n_br_account_payment_brcobranca: README files.
mbcosta May 26, 2022
e9e6f34
[IMP] l10n_br_account_payment_brcobranca: Related the Journal Entries…
mbcosta May 26, 2022
fb9a379
[MIG] l10n_br_account_payment_brcobranca: Tests, account_invoice beco…
mbcosta May 26, 2022
14ebe2b
[UPD] Update l10n_br_account_payment_brcobranca.pot
oca-travis Jun 13, 2022
2b3e7e0
[UPD] README.rst
OCA-git-bot Jun 13, 2022
4fb9a53
[IMP] l10n_br_account_payment_brcobranca: update library BRcobranca t…
mbcosta Jul 6, 2022
8881a9f
[FIX] (brcobranca) add convenio_lider for bank Banco do Brasil
antoniospneto Jul 10, 2022
2c9ed1e
l10n_br_account_payment_brcobranca 14.0.1.0.1
OCA-git-bot Jul 11, 2022
642f771
l10n_br_account_payment_brcobranca 14.0.1.1.0
OCA-git-bot Jul 12, 2022
d7b6019
[IMP] l10n_br_account_payment_brcobranca: adding other ways to set a …
marcelsavegnago Jul 19, 2022
999a5ed
l10n_br_account_payment_brcobranca 14.0.1.2.0
OCA-git-bot Jul 20, 2022
9512b5f
[FIX] cnab banco do brasil, map field cod_primeira_instrucao
antoniospneto Jul 22, 2022
d871f8b
[FIX] brcobranca: add cep in sacado_endereco"
antoniospneto Jul 26, 2022
d8cfa89
l10n_br_account_payment_brcobranca 14.0.1.3.0
OCA-git-bot Jul 27, 2022
edb3646
Added translation using Weblate (Portuguese (Brazil))
marcelsavegnago Jul 28, 2022
cab95b6
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Jul 28, 2022
672388b
l10n_br_account_payment_brcobranca 14.0.1.3.1
OCA-git-bot Jul 31, 2022
ce82594
[REF] brcobranca: state abbreviation in address
antoniospneto Jul 30, 2022
dfe92ff
l10n_br_account_payment_brcobranca 14.0.1.3.2
OCA-git-bot Aug 1, 2022
ad88d41
[FIX] brcobranca: add check for banco_brasil in cnab parser
antoniospneto Sep 14, 2022
df511fa
l10n_br_account_payment_brcobranca 14.0.1.3.3
OCA-git-bot Sep 14, 2022
acf32f1
Translated using Weblate (Portuguese (Brazil))
douglascstd Sep 16, 2022
5ee17c5
[IMP] brcobranca: check cnab_processor to generate file
felipemotter Sep 27, 2022
fea6f81
[IMP] brcobranca: cnab_processor migration script
felipemotter Oct 1, 2022
bf5f2f1
[UPD] Update l10n_br_account_payment_brcobranca.pot
Oct 19, 2022
abc97f6
Update translation files
weblate Oct 19, 2022
e32e410
[REF] do not import tests l10n_br_account_payment_brcobranca
mileo Oct 21, 2022
6066b73
[REF] Context better using kwargs l10n_br_account_payment_brcobranca
mileo Oct 21, 2022
a432f0f
[REF] l10n_br_account_payment_brcobranca logger exception
mileo Oct 21, 2022
baefe97
[REF] str-format-used l10n_br_account_payment_brcobranca
mileo Oct 21, 2022
7e58a06
[UPD] Update l10n_br_account_payment_brcobranca.pot
Oct 22, 2022
081358b
l10n_br_account_payment_brcobranca 14.0.2.0.1
OCA-git-bot Oct 22, 2022
37caf1c
Update translation files
weblate Oct 22, 2022
7f63119
[REF] missing-return l10n_br_account_payment_brcobranca
mileo Oct 22, 2022
60fbc2a
l10n_br_account_payment_brcobranca 14.0.2.0.2
OCA-git-bot Oct 22, 2022
90659a2
[REF] raise-missing-from l10n_br_account_payment_brcobranca
mileo Oct 22, 2022
d7bc208
l10n_br_account_payment_brcobranca 14.0.2.0.3
OCA-git-bot Oct 23, 2022
8abbc05
[REF] l10n_br_account_payment_brcobranca: change cnab processor selec…
antoniospneto Oct 28, 2022
4935c40
[UPD] Update l10n_br_account_payment_brcobranca.pot
Oct 31, 2022
8908aaa
l10n_br_account_payment_brcobranca 14.0.3.0.0
OCA-git-bot Oct 31, 2022
55d7d8c
Update translation files
weblate Oct 31, 2022
4639d1f
[REF] l10n_br_account_payment_brcobranca: Check the model more precisely
antoniospneto Nov 1, 2022
0b10177
l10n_br_account_payment_brcobranca 14.0.3.0.1
OCA-git-bot Nov 5, 2022
02ed1ab
Translated using Weblate (Portuguese (Brazil))
douglascstd Nov 23, 2022
705dcfe
[FIX] brcobranca: disccount message
antoniospneto Jul 26, 2022
b136cca
[FIX] brcobranca: add discount value for ailos bank
antoniospneto Jul 26, 2022
ec0d7c5
[REF] l10n_br_account_payment_brcobranca: pre-load discount value
antoniospneto Jan 24, 2023
acab15f
l10n_br_account_payment_brcobranca 14.0.3.0.2
OCA-git-bot Jan 27, 2023
0f807d7
l10n_br_account_payment_brcobranca 14.0.3.1.0
OCA-git-bot Jan 27, 2023
8ea0e7c
l10n_br_account_payment_brcobranca 14.0.3.1.1
OCA-git-bot Jan 27, 2023
7143934
[FIX] l10n_br_account_payment_brcobranca: discount account
felipemotter Jan 27, 2023
90f839b
l10n_br_account_payment_brcobranca 14.0.3.1.2
OCA-git-bot Jan 28, 2023
53e76cd
[FIX] l10n_br_account_payment_brcobranca: return our number bb
felipemotter Mar 20, 2023
42036f8
l10n_br_account_payment_brcobranca 14.0.3.1.3
OCA-git-bot Mar 27, 2023
cc7417a
[REF] l10n_br_account_payment_brcobranca: The object bank.payment.lin…
mbcosta Mar 8, 2023
bc8fb0e
[REF] l10n_br_account_payment_brcobranca: Rename file because the obj…
mbcosta Mar 8, 2023
9df9ce9
[REF] l10n_br_account_payment_brcobranca: Unnecessary Warning in Log,…
mbcosta Mar 8, 2023
5ab7a31
[IMP] l10n_br_account_payment_brcobranca: Associate Payment Lines wit…
mbcosta Mar 14, 2023
54b7b8f
[LINT] no copyright in init + maintainers
rvalyi May 28, 2023
0fa8704
l10n_br_account_payment_brcobranca 14.0.4.0.0
rvalyi May 28, 2023
8fdf3d7
[UPD] Update l10n_br_account_payment_brcobranca.pot
May 28, 2023
8a7b291
[UPD] README.rst
OCA-git-bot May 28, 2023
6dc3456
Update translation files
weblate May 28, 2023
591166c
[UPD] README.rst
OCA-git-bot Sep 3, 2023
cbf4653
[REF] l10n_br_account_payment_brcobranca: Account Precision should us…
mbcosta Sep 5, 2023
98b3696
l10n_br_account_payment_brcobranca 14.0.4.1.0
OCA-git-bot Sep 6, 2023
884381a
[UPD] README.rst
OCA-git-bot Sep 6, 2023
16ec918
[FIX] l10n_br_account_payment_brcobranca: due_date referenced before …
felipemotter Sep 21, 2023
ee77820
[BOT] post-merge updates
OCA-git-bot Sep 22, 2023
ef9e24d
[REF] l10n_br_account_payment_brcobranca: Move Button Print Boleto to…
mbcosta Sep 29, 2023
4d6d6ef
[DOC] l10n_br_account_payment_brcobranca: Removed unnecessary License…
mbcosta Sep 29, 2023
0b15763
[UPD] Update l10n_br_account_payment_brcobranca.pot
Sep 30, 2023
5139ddb
[BOT] post-merge updates
OCA-git-bot Sep 30, 2023
802f223
Update translation files
weblate Oct 9, 2023
3a53e5f
[REF] l10n_br_account_payment_brcobranca: Inform python external depe…
mbcosta Oct 25, 2023
9a1a868
[REF] l10n_br_account_payment_brcobranca: Remove empty Lines, necessa…
mbcosta Oct 25, 2023
4d5d296
[BOT] post-merge updates
OCA-git-bot Oct 25, 2023
51c9702
[BOT] post-merge updates
OCA-git-bot Oct 27, 2023
ea622d7
[IMP] l10n_br_account_payment_brcobranca: major migration script
antoniospneto Dec 10, 2023
a08807a
[FIX] l10n_br_account_payment_brcobranca: 14.0.2.0.0 migration script
antoniospneto Dec 10, 2023
d1b3263
[BOT] post-merge updates
OCA-git-bot Dec 11, 2023
8b29963
[IMP] l10n_br_account_payment_brcobranca: message UserError API
kaynnan Dec 12, 2023
6a2b1f5
[UPD] Update l10n_br_account_payment_brcobranca.pot
Dec 13, 2023
3de7c5c
[BOT] post-merge updates
OCA-git-bot Dec 13, 2023
e89f924
Update translation files
weblate Dec 14, 2023
92e8f79
[FIX] brcobranca for bank Santander
antoniospneto Jul 12, 2022
59c2151
[BOT] post-merge updates
OCA-git-bot Jan 9, 2024
cbfa116
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Feb 6, 2024
d7b8e33
[FIX] l10n_br_account_payment_brcobranca: In Santander case there is …
mbcosta Feb 23, 2024
1f69862
[REF] l10n_br_account_payment_brcobranca: Santander 400 case in BRCob…
mbcosta Feb 23, 2024
4d2d720
[REF+IMP] l10n_br_account_payment_brcobranca: Rename fields code_cove…
mbcosta Feb 23, 2024
2c33c49
[IMP] l10n_br_account_payment_brcobranca: Included Demo Data for Sant…
mbcosta Feb 23, 2024
2312839
[IMP] l10n_br_account_payment_brcobranca: Tests for CNAB Santader 400…
mbcosta Feb 27, 2024
f869c90
[BOT] post-merge updates
OCA-git-bot Mar 4, 2024
7c098d1
[FIX] l10n_br_account_payment_brcobranca: sequential file_number REM
CristianoMafraJunior Mar 4, 2024
4b47984
[BOT] post-merge updates
OCA-git-bot Mar 5, 2024
da42a71
[REF] l10n_br_account_payment_brcobranca: Moved method get_file_name …
mbcosta Mar 6, 2024
0414557
[BOT] post-merge updates
OCA-git-bot Mar 7, 2024
f6154c3
[IMP] l10n_br_account_payment_order: add short name for 'boleto espec…
antoniospneto Mar 22, 2024
48feb10
[BOT] post-merge updates
OCA-git-bot Mar 26, 2024
7645fdc
[REF] l10n_br_account_payment_brcobranca: lint fixes
antoniospneto Jul 25, 2024
ef265d9
[IMP] l10n_br_account_payment_brcobranca: pre-commit execution
antoniospneto Jul 25, 2024
b0d32cb
[MIG] l10n_br_account_payment_brcobranca: Migration to 15.0
antoniospneto Jul 25, 2024
712f94f
[IMP] l10n_br_account_payment_brcobranca: pre-commit execution
antoniospneto Jul 25, 2024
1756314
[MIG] l10n_br_account_payment_brcobranca: Migration to 16.0
antoniospneto Jul 25, 2024
5ea553e
[REF] l10n_br_account_payment_brcobranca: request post timeout
antoniospneto Jul 25, 2024
80df2c9
[MIG] l10n_br_account_payment_order: Migration to 16.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/16.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-16-0/l10n-brazil-16-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=16.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:%2016.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/16.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": "16.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 = (

Check warning on line 65 in l10n_br_account_payment_brcobranca/constants/br_cobranca.py

View check run for this annotation

Codecov / codecov/patch

l10n_br_account_payment_brcobranca/constants/br_cobranca.py#L65

Added line #L65 was not covered by tests
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(

Check warning on line 72 in l10n_br_account_payment_brcobranca/constants/br_cobranca.py

View check run for this annotation

Codecov / codecov/patch

l10n_br_account_payment_brcobranca/constants/br_cobranca.py#L72

Added line #L72 was not covered by tests
_(
"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

Check warning on line 85 in l10n_br_account_payment_brcobranca/constants/br_cobranca.py

View check run for this annotation

Codecov / codecov/patch

l10n_br_account_payment_brcobranca/constants/br_cobranca.py#L85

Added line #L85 was not covered by tests
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