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

Feature/cnab multiple payments #112

Open
wants to merge 894 commits into
base: 12.0-mig-l10n_br_account_payment_cobranca
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
894 commits
Select commit Hold shift + click to select a range
227a961
[ADD] Filtros no modelo l10n_br.cnab.evento
luismalta Sep 13, 2019
4667adc
[ADD] Campos na empresa para configuração da API do Banco
hugouchoasborges Sep 14, 2019
c6d098b
[FIX] Validação na impressão de boletos
hugouchoasborges Sep 14, 2019
4cafc99
[ADD] Estrutura para registro de faturas no banco via API
hugouchoasborges Sep 14, 2019
7100fda
[REF] XML account_invoice movido para novo arquivo
hugouchoasborges Sep 17, 2019
ee0b60a
[ADD] Novo modelo para salvar operações bancárias via API
hugouchoasborges Sep 17, 2019
76a4171
[ADD] Criação de histórico das operações bancárias realizadas
hugouchoasborges Sep 17, 2019
59c19a1
[ADD] Permissões de acesso à Api Bancária
hugouchoasborges Sep 17, 2019
334c82c
[ADD] Instruções de cobrança adicionais na Fatura
hugouchoasborges Sep 18, 2019
b7b7ec1
[ADD] Informação de Cobrança - Boleto em homologação.
hugouchoasborges Sep 18, 2019
920913f
[ADD] Search View bank_api_operation
hugouchoasborges Sep 18, 2019
700ef60
[FIX] Validação das Instruções de fatura
hugouchoasborges Sep 19, 2019
dfe762c
[IMP] Mensagem de confirmação de utilização da API Bancária
hugouchoasborges Sep 19, 2019
f4e3995
[ADD] situacao_pagamento + state_cnab nas visões da Fatura
hugouchoasborges Sep 19, 2019
3eb0ebe
[ADD] Filtros no modelo bank_api_operation
hugouchoasborges Sep 19, 2019
39e379e
[ADD] Validações para cancelamento de faturas
hugouchoasborges Sep 19, 2019
c2b2aea
[FIX] Instrução de cobrança vazia na fatura
hugouchoasborges Sep 19, 2019
f21bdf9
[FIX] API Bancária registrando fatura parcelada
hugouchoasborges Sep 19, 2019
9ea5796
[FIX] Verificando se uma fatura foi emitida em homologação
hugouchoasborges Sep 20, 2019
19a09ca
[FIX] Permissões extras de escrita\leitura no modelo res.company
Sep 25, 2019
06ce158
[ADD] Tela de confirmação de fatura via API Bancária
Sep 25, 2019
6aab960
[IMP] Registro de faturas via API utilizando job
hugouchoasborges Oct 4, 2019
179acc0
[ADD] Obtenção de Token separado do processo de registro
hugouchoasborges Oct 4, 2019
88b3244
[IMP] Elemento removido da tela para otimização
hugouchoasborges Oct 4, 2019
010b536
[ADD] Recalculo do campo move_line_receivable_id
hugouchoasborges Oct 4, 2019
91f91c6
[FIX] Geração de arquivo CNAB remessa com baixa de pagamentos
Oct 11, 2019
6d2d24a
[IMP] Botão "Registrar fatura via API" invisível quando pagamento est…
Oct 11, 2019
462035a
[IMP] Removendo faturas das órdens de débito após confirmação de regi…
Oct 14, 2019
543eb74
[FIX] Filtrando bank_payment_line por nosso_numero
Oct 15, 2019
d215ac1
[ADD] Criando Órdens de débito para faturas registradas via API
Oct 15, 2019
3032986
[ADD] Processar retorno multi
Oct 15, 2019
1af01d0
[FIX] group_by_partner_id
Oct 16, 2019
f99d188
[IMP] Campos de situação cnab+pagamento indexados
Oct 16, 2019
fc48785
[ADD] Campo active no modelo das faturas
Oct 16, 2019
84f2967
[IMP] Melhora no filtro "Não Pago"
Oct 17, 2019
ecf1de1
[FIX] Ambiente na busca por um novo Token - Api Bancária
Oct 29, 2019
8510e39
[ADD] Cron para processamento de Ordens de Débito da API Bancária
hugouchoasborges Oct 31, 2019
8843fb7
[IMP] Permissão para validar faturas sem modo de pagamento
Nov 11, 2019
1d4aa75
[FIX] company environment
Nov 19, 2019
af3e3d0
[ADD] Juros no payment.term cartão
hugouchoasborges Nov 27, 2019
adcb846
[IMP] account_analytic_tag data noupdate=1
hugouchoasborges Nov 27, 2019
f3ff27d
[FIX] Recomputar receivable_invoice após adicionar pagamento
hugouchoasborges Dec 3, 2019
7b0e1bb
[ADD] Valor residual na account.move.line
hugouchoasborges Dec 3, 2019
68e8e7a
[IMP] Validação para apenas poder registrar pagamentos em faturas ain…
hugouchoasborges Dec 3, 2019
9e4097d
[FIX] data_arquivo ao processar retorno
hugouchoasborges Dec 4, 2019
d97782e
[ADD] Taxa adicional no modo de pagamento
hugouchoasborges Dec 4, 2019
309e995
[ADD] CNAB Ondelete
hugouchoasborges Dec 5, 2019
99a9c3a
[IMP] situacao_pagamento constrains on write
hugouchoasborges Dec 5, 2019
8519c68
[FIX] Bock assing outstanding credit in invoices paid in credit card
mileo Dec 6, 2019
dbe2655
[NEW] Extraction erpbrasil.febraban from l10n_br_account_payment_cobr…
mileo Dec 18, 2019
e790eaa
[IMP] l10n_br_account_payment_cobranca black, isort
mileo Dec 18, 2019
7b0c17b
[IMP] black, isort
mileo Dec 19, 2019
73edf88
[REM] openerp from .isort.cfg file
sadamo Dec 19, 2019
3c28e26
[MIG] Bump version to 12.0.1.0.0
sadamo Dec 19, 2019
7a269e6
[FIX] Typo
mileo Jan 30, 2020
b739620
[MIG] Make module installable
mileo Jan 30, 2020
380d98e
[NEW] README files
mileo Feb 6, 2020
dd8cc55
[NEW] Menu, view and operation type for cobranca
sadamo Feb 18, 2020
e9de8be
[REF] View separation for payment_order model
sadamo Feb 18, 2020
6d37489
[NEW] View for Cobranca
sadamo Feb 18, 2020
d8b7b16
[REM] base_transaction_id dependency
sadamo Mar 2, 2020
3fab02e
[NEW] Receivables computed field
sadamo Mar 2, 2020
fbede37
[IMP] Operation type field in invoice and clean invoice view
sadamo Mar 2, 2020
12104a1
[ADD] Company view for own_number_type field
sadamo Mar 2, 2020
8682293
[NEW] Demo data for cobranca
sadamo Mar 2, 2020
fba42c0
[FIX] pre-commit improvements
sadamo Apr 21, 2020
406fec3
[FIX] pep8 + lint
sadamo Apr 21, 2020
497484d
[12.0][MIG][FIX] PEP8.
mbcosta Jun 3, 2020
412d9cd
[12.0][MIG][FIX] Paylines can have more than one ID.
mbcosta Jun 17, 2020
5b93923
[12.0][MIG][REF] Included field for CNAB Sequence.
mbcosta Jun 18, 2020
29bd2dd
[12.0][MIG][REF][IMP] Demo data.
mbcosta Jun 18, 2020
eb7a545
[12.0][MIG][FIX] Included field CNAB Sequence on the view.
mbcosta Jun 18, 2020
734a3d4
[12.0][MIG][FIX] Demo data.
mbcosta Jun 22, 2020
714f904
[12.0][MIG][REF] Removed unused Demo data.
mbcosta Jun 22, 2020
26039bd
[12.0][MIG][IMP] Included fields used in Boletos from Sicred, Unicred…
mbcosta Jun 22, 2020
7e8ec4a
[12.0][MIG][REF] Split Demo data by model.
mbcosta Jun 22, 2020
eb332ba
[12.0][MIG][REF] Rename demo data by model.
mbcosta Jun 22, 2020
703dac0
[12.0][MIG][REF] Constants.
mbcosta Jun 22, 2020
e3876d0
[12.0][MIG][FIX] Security access to CNAB File return.
mbcosta Jun 23, 2020
ad9f7e9
[12.0][MIG][IMP] Demo data, configure users access to CNAB File return.
mbcosta Jun 23, 2020
fcad9db
[12.0][MIG][FIX] Code mistake.
mbcosta Jun 24, 2020
8a4e11b
[12.0][MIG][FIX] Field date should receive date not datetime.
mbcosta Jun 24, 2020
fe36c64
[12.0][MIG][IMP] Tests.
mbcosta Jun 24, 2020
f5c6548
[12.0][MIG][FIX] Demo data.
mbcosta Jun 24, 2020
8ad5453
[12.0][MIG][FIX] PEP8.
mbcosta Jun 24, 2020
daa5172
[12.0][MIG][REF] Demo data to use Unicred Bank.
mbcosta Jul 2, 2020
c5598ac
[12.0][MIG][FIX] Field Codigo de Instrucao should have two digits.
mbcosta Jul 2, 2020
01f1dd3
[12.0][MIG][REF] Field Tipo Conta implemented in module l10n_br_base …
mbcosta Jul 2, 2020
0fee83b
[12.0][MIG][REF] Removed unused code.
mbcosta Jul 2, 2020
76bdc7f
[12.0][MIG][REF] Removed unnecessary view, partner_id is already requ…
mbcosta Jul 3, 2020
8ca5d81
[12.0][MIG][REF] Removed unnecessary field.
mbcosta Jul 3, 2020
a9c8ad8
[12.0][MIG][IMP] Included field used to make invisible banks specific…
mbcosta Jul 5, 2020
b8dba3b
[12.0][MIG][REF] Renamed fields related to Protesto of Boletos.
mbcosta Jul 6, 2020
9909b42
[12.0][MIG][IMP] Demo data, details of Unicred Payment Mode.
mbcosta Jul 8, 2020
1f8c5c0
[12.0][MIG][FIX] Method Write can receive more than one record.
mbcosta Jul 8, 2020
6260677
[12.0][MIG][IMP] Configure admin and system group security access to …
mbcosta Jul 14, 2020
07930c0
[12.0][MIG][FIX] Avoid error by inform parameter.
mbcosta Jul 14, 2020
ab0a360
[12.0][MIG][FIX] Field vencimento missing create as data_vencimento.
mbcosta Jul 14, 2020
fd4410d
[12.0][MIG][IMP] Demo data, full access in acount to admin user.
mbcosta Jul 14, 2020
35baa8a
[12.0][MIG][FIX] Inform Nosso Numero sequence in the Payment Mode.
mbcosta Aug 5, 2020
c69a9e7
[12.0][MIG][FIX] Reimplement fields used in Boletos.
mbcosta Jun 12, 2020
9fd1e0d
[12.0][MIG][IMP] Included fields used in Boletos(Tipo Mora e Multa).
mbcosta Jul 6, 2020
54a6244
[REF] prepare l10n_br_account_payment_order to merge with l10n_br_pay…
renatonlima Aug 18, 2020
4f14c71
Move files from cobranca module to new module to separe Bank API feature
renatonlima Aug 18, 2020
26ae159
[REF] move objects from cobranca module to bank api
renatonlima Aug 18, 2020
4291562
Comment l10n_br_account_payment_order menus file
renatonlima Aug 18, 2020
65bae49
[REF] remove field operation_type in l10n_br_account_payment_order
renatonlima Aug 18, 2020
2b05e73
[REF] remove field operation_type in l10n_br_account_payment_cobranca
renatonlima Aug 18, 2020
f1f1229
[12.0][MIG][REF] Change name fields from portuguese to english.
mbcosta Aug 19, 2020
39ccf88
Moved files from l10n_br_account_payment_cobranca to l10n_br_account_…
renatonlima Aug 19, 2020
fcf5129
Moved res.partner.bank field to l10n_br_account_payment_order
renatonlima Aug 19, 2020
2557e48
Move account move line fields to l10n_br_account_payment_order
renatonlima Aug 19, 2020
f6ee44f
Move account payment mode fields to l10n_br_account_payment_order
renatonlima Aug 19, 2020
5672848
Move account payment order and line fields to l10n_br_account_payment…
renatonlima Aug 19, 2020
e452989
Remove fields from account payment term
renatonlima Aug 19, 2020
f71d15f
call super method
renatonlima Aug 19, 2020
2f56b2c
Move account payment to l10n_br_account_payment_order
renatonlima Aug 19, 2020
64f9d2f
Move data, demo, report and test files to l10n_br_account_payment_order
renatonlima Aug 19, 2020
9496a97
Move security and wizard to l10n_br_account_payment_order
renatonlima Aug 19, 2020
c0c760d
move migration script to l10n_br_account_payment_order
renatonlima Aug 19, 2020
b8dc98a
Update manifest files
renatonlima Aug 19, 2020
cc49e80
Remove l10n_br_account_payment_cobranca
renatonlima Aug 19, 2020
68e2eec
[FIX] imports
renatonlima Aug 19, 2020
4ebadc7
[FIX] security permissions
renatonlima Aug 19, 2020
7c921e8
[FIX] refs in demo and data files
renatonlima Aug 19, 2020
4ebc1f5
[ADD] description for objects
renatonlima Aug 19, 2020
fbfd2e0
Rename demo files
renatonlima Aug 19, 2020
32d530e
[FIX] cleanup objects, views and data
renatonlima Aug 19, 2020
79ca9bd
[FIX] migration file
renatonlima Aug 20, 2020
a932b40
[FIX] demo data
renatonlima Aug 20, 2020
567192d
[FIX] wrong field names
renatonlima Aug 20, 2020
4094594
[FIX] tests
renatonlima Aug 20, 2020
3d7a8c5
Rename demo file
renatonlima Aug 20, 2020
55c02ef
pep8
renatonlima Aug 20, 2020
3a03190
[MIG][REF] Translate name fields from portuguese to english.
mbcosta Aug 20, 2020
8ca0a92
[MIG][FIX] Created field to inform Boleto Discount in the Payment Mode.
mbcosta Aug 20, 2020
390f8ad
[MIG][IMP] Created fields to inform Discount, Rebate and Fee/Interest…
mbcosta Aug 20, 2020
0a56d25
[MIG][FIX] Validate discount percent.
mbcosta Aug 20, 2020
2a7437d
[MIG][REF] PEP8, single and double quotes.
mbcosta Aug 20, 2020
ab2a673
[MIG][REF] Field refer to 'Codigo Beneficiario' are informed in payme…
mbcosta Aug 20, 2020
3e1c397
[MIG][FIX] Methods after change name fields.
mbcosta Aug 20, 2020
1ea835c
[MIG][REF] Removed unnecessary constant.
mbcosta Aug 20, 2020
c355b27
[MIG][FIX] Change name fields.
mbcosta Aug 20, 2020
9739e86
[MIG][FIX] Process of canceling invoice.
mbcosta Aug 21, 2020
160c8b4
[MIG][REF] Separation of Tariff Charge Account from Product Tax Account.
mbcosta Aug 21, 2020
4a7d09a
[MIG][REF] Move method to get own number sequence from invoice to pay…
mbcosta Aug 22, 2020
69ea2f5
[MIG][FIX] Field missing in extract to API module.
mbcosta Aug 24, 2020
e5c5f87
[MIG][FIX] Name of class.
mbcosta Aug 24, 2020
054b4b1
[MIG][FIX] Validate Invoice without Payment Mode or Payment Mode that…
mbcosta Aug 24, 2020
f1f28ce
[MIG][REF] Removed deprecated code.
mbcosta Aug 24, 2020
4f68e85
[MIG][FIX] Name of field has changed.
mbcosta Aug 25, 2020
652bbad
[MIG][IMP] Demo data.
mbcosta Aug 25, 2020
d50ec54
[MIG][IMP] Tests.
mbcosta Aug 25, 2020
3888e54
[MIG][FIX] Method missing in extract to Bank API module.
mbcosta Aug 25, 2020
a48e223
[FIX][DEMO] Don't generate paymets after confirm order
mileo Sep 3, 2020
32ba7c0
[MIG][FIX] Demo data after rebase.
mbcosta Sep 3, 2020
5a07f24
[MIG][REF] Removed deprecated fields.
mbcosta Sep 3, 2020
bce8ccd
[MIG][IMP] New class create to allow registering the return movement …
mbcosta Sep 16, 2020
f80740a
[MIG][REF] Commented deprecated code.
mbcosta Sep 16, 2020
7037bb6
[MIG][IMP] Demo data.
mbcosta Sep 16, 2020
0cef702
[MIG][FIX] When is possible fields used in Boleto/CNAB should not hav…
mbcosta Sep 29, 2020
896387e
[MIG][FIX] Field has default value what makes constraint method call …
mbcosta Sep 29, 2020
defee99
[MIG][IMP] Validate fields that should not be used in Boleto/CNAB pay…
mbcosta Sep 29, 2020
b3e3590
[MIG][IMP] CNAB Return Move Code, banks Itau and Bradesco CNAB400.
mbcosta Sep 29, 2020
2ea6840
[MIG][IMP] Demo data.
mbcosta Sep 29, 2020
7a92bf3
[MIG][FIX] PEP8.
mbcosta Sep 29, 2020
5d64832
[MIG][FIX] Tests, field group_lines can be used for BOLETO/CNAB Payme…
mbcosta Sep 29, 2020
47940a4
[REM] ir.cron Boleto API
mileo Sep 30, 2020
f479c33
[REF] Index and code improve cnab.return.move.code
mileo Sep 30, 2020
8e10af6
[REF] Code otimization and comments
mileo Sep 30, 2020
a73876a
[NEW] Boleto test cases
mileo Oct 1, 2020
a98e485
fixup! [NEW] Boleto test cases
mileo Oct 1, 2020
d975ea7
[MIG][FIX] File was removed.
mbcosta Oct 5, 2020
3cffc48
[MIG][WIP] Prepare extraction of objects l10n_br.cnab/lote/evento to …
mbcosta Oct 5, 2020
54c8c04
[FIX] invoice without payment_mode_id
renatonlima Oct 7, 2020
f59560f
[MIG][REF] Security groups.
mbcosta Oct 14, 2020
a90f3c1
[FIX] Name views.
mbcosta Oct 21, 2020
089f024
[REF] Splitted objects used to import CNAB return file to have the Lo…
mbcosta Oct 21, 2020
9d0b256
[IMP] Boleto demo data
mileo Oct 22, 2020
7b48262
[NEW] AML Changes
mileo Oct 22, 2020
c1d161d
[IMP] AML Changes
mileo Oct 22, 2020
696dbd6
[REF] Move field movement_intruction_code ( Codigo de Instrução da Mo…
mbcosta Oct 28, 2020
e5aaf54
[IMP] Included return movement code for CNAB 240.
mbcosta Oct 30, 2020
cf95562
[FIX] Demo data.
mbcosta Oct 30, 2020
2fcc473
[FIX] Missing link between bank.payment.line and CNAB return events.
mbcosta Oct 30, 2020
ecde991
[REF] Default and domain value for CNAB Return Move Codes.
mbcosta Nov 3, 2020
ef98ff6
[FIX] Using standard name for the objects related to CNAB Return Log.
mbcosta Nov 3, 2020
697a0fd
[FIX] Update name of files and views related to CNAB Return Log.
mbcosta Nov 3, 2020
8990a58
[REF] Rename objects related to CNAB Return Move Code to has standard…
mbcosta Nov 3, 2020
b8a7288
[REF] Rename models and views related to CNAB Return Move Code to has…
mbcosta Nov 3, 2020
df57f0a
[REF] Payment Mode views to be more clear for users.
mbcosta Nov 3, 2020
478cf40
[IMP] Demo data.
mbcosta Nov 3, 2020
bccbb5c
fixed flake8
rvalyi Nov 4, 2020
c9da926
[FIX] Data of rename objects need migrations scripts to avoid error.
mbcosta Nov 4, 2020
f8bfd2b
added account.move.line.change descr
rvalyi Nov 4, 2020
a78e1b3
fix open2generated (tested in demo)
rvalyi Nov 5, 2020
f06b599
[FIX] Inform Movemnt Intruction Code in bank.payment.line .
mbcosta Nov 5, 2020
ae5586f
[WIP] CNAB Movement Instruction Code 02 - Pedido de Baixa.
mbcosta Nov 6, 2020
7b3a220
[WIP] CNAB Movement Instruction Code 02 - Pedido de Baixa.
mbcosta Nov 9, 2020
fef8d68
[REF] Remove .po and .pot files to be create automatic by weblate.
mbcosta Nov 9, 2020
bde9f92
flake8 fix
rvalyi Nov 10, 2020
6b698e5
[IMP+FIX] CNAB Movement Instruction Code 02, forbidden register accou…
mbcosta Nov 10, 2020
5e1e479
[FIX] Payment out CNAB can be made when there is CNAB file created.
mbcosta Nov 12, 2020
03c450e
[IMP] Created fields to be able search account_move_line related to e…
mbcosta Nov 12, 2020
1357077
[FIX+WIP] Tests.
mbcosta Nov 12, 2020
eae09cd
[FIX] CNAB : Movement Instruction Code can be different.
mbcosta Nov 14, 2020
409c667
[IMP] Created abstract model to CNAB Codes.
mbcosta Nov 14, 2020
98e2b7a
[IMP] Check/Uncheck fields related to CNAB.
mbcosta Nov 17, 2020
cf92a36
[FIX] Field already implemented in inherit module.
mbcosta Nov 17, 2020
8eea1bf
[FIX+REF] CNAB: Movement Instruction and Return Code.
mbcosta Nov 17, 2020
717d1e0
[REF] Make invisible fields by Payment Type.
mbcosta Nov 17, 2020
cdc2537
[IMP] Log and validations for CNAB Codes.
mbcosta Nov 17, 2020
3c70142
[FIX] Code Convention in Payment Order can't be different from define…
mbcosta Nov 18, 2020
5501476
[FIX] Field Movement Type defined by line not by order.
mbcosta Nov 18, 2020
ac59065
[REF] Views: make invisible,readonly or domain in CNAB case.
mbcosta Nov 18, 2020
aec2957
[FIX] Message error.
mbcosta Nov 18, 2020
36675f1
[IMP] Relation between Journal Entry and CNAB Log.
mbcosta Nov 18, 2020
a567881
[FIX] The sequence creation of own_number in move line need to use da…
mbcosta Nov 18, 2020
06f1d8e
[FIX] CNAB 240 is not standardized.
mbcosta Nov 24, 2020
dfb6f30
[REF] Included date_maturity in _order for account.move.line to creat…
mbcosta Nov 24, 2020
30fb758
[IMP] Included track_visibility in important fields used by CNAB.
mbcosta Nov 24, 2020
5581510
[IMP] Included amout total of tariff charge in CNAB return log.
mbcosta Nov 24, 2020
0a2ff60
[IMP] Included another total amounts in return Log.
mbcosta Nov 24, 2020
749efef
[REF] Field used to Own Number Sequence.
mbcosta Nov 24, 2020
ffebf9d
[REF] Removed fields because information already in code_convetion.
mbcosta Nov 24, 2020
20a41ff
[REF] Removed unused fields.
mbcosta Nov 24, 2020
626321b
[IMP] res.company view
mileo Nov 25, 2020
fe208ef
[NEW] bc_code no account.journal
mileo Nov 25, 2020
9154c84
[REF] Prepare bank.line vals
mileo Nov 25, 2020
11f850e
fixup! [IMP] res.company view
mileo Nov 25, 2020
94550cb
fixup! [NEW] bc_code no account.journal
mileo Nov 25, 2020
2c2e0c7
fixup! [REF] Prepare bank.line vals
mileo Nov 25, 2020
376cd32
fixup! [REF] Prepare bank.line vals
mileo Nov 25, 2020
9986ab0
[FIX] Field boleto_type was removed.
mbcosta Nov 26, 2020
e2b251b
[FIX] Field was changed from Char to Many2one.
mbcosta Nov 26, 2020
191883b
[ADD] Constants and Fields
gabrielcardoso21 Sep 11, 2020
6f9975e
[ADD] New model for cnab options
gabrielcardoso21 Sep 18, 2020
818f884
[ADD] Data entries for cnab options
gabrielcardoso21 Sep 18, 2020
cc9e698
[REF] Correções pós rebase
mileo Nov 27, 2020
c098244
[ADD] Account Payment Mode Line
gabrielcardoso21 Sep 18, 2020
06b14bb
[REM] Old cnab option selection fields
gabrielcardoso21 Sep 18, 2020
5351de8
[FIX] pos cherry pick
mileo Nov 27, 2020
9b6dd0a
[ADD] Demo data
gabrielcardoso21 Sep 18, 2020
593b1ce
[FIX] Demo data
gabrielcardoso21 Sep 28, 2020
f70a11c
[FIX] Rebase Import Order
mileo Sep 30, 2020
5446a00
[REF] Code comments and otimization
mileo Sep 30, 2020
1583100
[REM] Model account.payment.mode.line
gabrielcardoso21 Oct 15, 2020
23f19ec
[ADD] Field payment_mode_ids
gabrielcardoso21 Oct 15, 2020
ab451e7
[REF] Adapt demo data to new changes
gabrielcardoso21 Oct 15, 2020
dbe1df2
[FIX] Tests
gabrielcardoso21 Oct 15, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .isort.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[settings]
known_third_party = OpenSSL,dateutil,erpbrasil,lxml,odoo,openupgradelib,requests,setuptools
known_third_party = OpenSSL,dateutil,erpbrasil,lxml,odoo,openerp,openupgradelib,pytz,requests,setuptools,workalendar
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,23 +76,27 @@ Available addons
----------------
addon | version | summary
--- | --- | ---
[l10n_br_account](l10n_br_account/) | 12.0.2.0.0 | Brazilian Localization Account
[l10n_br_account](l10n_br_account/) | 12.0.2.1.1 | Brazilian Localization Account
[l10n_br_account_payment_order](l10n_br_account_payment_order/) | 12.0.1.0.0 | Brazilian Payment Order
[l10n_br_base](l10n_br_base/) | 12.0.1.0.1 | Customization of base module for implementations in Brazil.
[l10n_br_coa](l10n_br_coa/) | 12.0.2.0.0 | Base Brasilian Localization of Chart of Account
[l10n_br_coa_generic](l10n_br_coa_generic/) | 12.0.2.0.0 | Plano de Contas para empresas do Regime normal (Micro e pequenas empresas)
[l10n_br_coa_simple](l10n_br_coa_simple/) | 12.0.2.0.0 | Brazilian Simple Chart of Account
[l10n_br_coa](l10n_br_coa/) | 12.0.2.1.0 | Base Brasilian Localization for the Chart of Accounts
[l10n_br_coa_generic](l10n_br_coa_generic/) | 12.0.2.1.0 | Plano de Contas para empresas do Regime normal (Micro e pequenas empresas)
[l10n_br_coa_simple](l10n_br_coa_simple/) | 12.0.2.1.0 | Brazilian Simple Chart of Account
[l10n_br_crm](l10n_br_crm/) | 12.0.1.0.0 | Brazilian Localization CRM
[l10n_br_currency_rate_update](l10n_br_currency_rate_update/) | 12.0.1.0.0 | Update exchange rates using OCA modules for Brazil
[l10n_br_fiscal](l10n_br_fiscal/) | 12.0.3.5.1 | Brazilian fiscal core module.
[l10n_br_fiscal](l10n_br_fiscal/) | 12.0.4.0.0 | Brazilian fiscal core module.
[l10n_br_hr](l10n_br_hr/) | 12.0.1.0.0 | Brazilian Localization HR
[l10n_br_hr_contract](l10n_br_hr_contract/) | 12.0.1.0.0 | Brazilian Localization HR Contract
[l10n_br_nfse](l10n_br_nfse/) | 12.0.1.3.0 | NFS-e
[l10n_br_mis_report](l10n_br_mis_report/) | 12.0.1.1.0 | Templates de relatórios contábeis brasileiros: Balanço Patrimonial e DRE
[l10n_br_nfse](l10n_br_nfse/) | 12.0.1.4.0 | NFS-e
[l10n_br_portal](l10n_br_portal/) | 12.0.1.0.0 | Campos Brasileiros no Portal
[l10n_br_resource](l10n_br_resource/) | 12.0.1.0.0 | This module extend core resource to create important brazilian informations. Define a Brazilian calendar and some tools to compute dates used in financial and payroll modules
[l10n_br_sale](l10n_br_sale/) | 12.0.1.0.0 | Brazilian Localization Sale
[l10n_br_stock](l10n_br_stock/) | 12.0.1.0.0 | Brazilian Localization Warehouse
[l10n_br_stock_account](l10n_br_stock_account/) | 12.0.1.0.0 | Brazilian Localization WMS Accounting
[l10n_br_website_sale](l10n_br_website_sale/) | 12.0.1.0.1 | Website sale localização brasileira.
[l10n_br_zip](l10n_br_zip/) | 12.0.2.0.0 | Brazilian Localisation ZIP Codes
[payment_cielo](payment_cielo/) | 12.0.3.2.0 | Payment Acquirer: Cielo Implementation


Unported addons
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_account/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"license": "AGPL-3",
"author": "Akretion, Odoo Community Association (OCA)",
"website": "http://github.com/OCA/l10n-brazil",
"version": "12.0.2.0.0",
"version": "12.0.2.1.1",
"depends": ["account_cancel", "l10n_br_coa", "l10n_br_fiscal"],
"data": [
# security
Expand Down
2 changes: 1 addition & 1 deletion l10n_br_account/data/account_tax_group.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<odoo noupdate="1">

<!-- Account Tax Group -->
<record id="l10n_br_coa.tax_group_icms" model="account.tax.group">
Expand Down
22 changes: 12 additions & 10 deletions l10n_br_account/i18n/pt_BR.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-04-07 09:02+0000\n"
"PO-Revision-Date: 2020-06-13 17:19+0000\n"
"Last-Translator: Maurício Liell <mauricio@liell.com.br>\n"
"PO-Revision-Date: 2020-11-05 07:08+0000\n"
"Last-Translator: Eder Brito <britoederr@gmail.com>\n"
"Language-Team: \n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
Expand All @@ -25,7 +25,7 @@ msgstr "Conta"
#. module: l10n_br_account
#: model:ir.model,name:l10n_br_account.model_l10n_br_account_document_line_mixin
msgid "Account Document Line Mixin"
msgstr ""
msgstr "Mixin de Linha de Documento da Conta"

#. module: l10n_br_account
#: model:ir.model.fields,field_description:l10n_br_account.field_l10n_br_fiscal_operation__journal_id
Expand Down Expand Up @@ -69,7 +69,7 @@ msgstr "Anotação de crédito"
#. module: l10n_br_account
#: model:ir.model.fields,field_description:l10n_br_account.field_l10n_br_account_document_line_mixin__display_name
msgid "Display Name"
msgstr ""
msgstr "Nome de Exibição"

#. module: l10n_br_account
#: code:addons/l10n_br_account/wizards/account_invoice_refund.py:68
Expand Down Expand Up @@ -143,7 +143,7 @@ msgstr "Forçar Operação Fiscal"
#. module: l10n_br_account
#: model:ir.model.fields,field_description:l10n_br_account.field_l10n_br_account_document_line_mixin__id
msgid "ID"
msgstr ""
msgstr "ID"

#. module: l10n_br_account
#: model:ir.model,name:l10n_br_account.model_account_invoice
Expand All @@ -163,22 +163,22 @@ msgstr "Item de Diário"
#. module: l10n_br_account
#: model:ir.model.fields,field_description:l10n_br_account.field_l10n_br_account_document_line_mixin____last_update
msgid "Last Modified on"
msgstr ""
msgstr "Última Modificação em"

#. module: l10n_br_account
#: model_terms:ir.ui.view,arch_db:l10n_br_account.invoice_search
msgid "Legal Name"
msgstr ""
msgstr "Razão Social"

#. module: l10n_br_account
#: model_terms:ir.ui.view,arch_db:l10n_br_account.invoice_line_form
msgid "Outros Custos"
msgstr ""
msgstr "Outros Custos"

#. module: l10n_br_account
#: model_terms:ir.ui.view,arch_db:l10n_br_account.invoice_search
msgid "State Tax Number"
msgstr ""
msgstr "Número de Imposto Estadual"

#. module: l10n_br_account
#: model:ir.model,name:l10n_br_account.model_account_tax
Expand All @@ -194,7 +194,7 @@ msgstr "Grupo de Imposto"
#. module: l10n_br_account
#: model_terms:ir.ui.view,arch_db:l10n_br_account.invoice_line_form
msgid "Taxes"
msgstr ""
msgstr "Impostos"

#. module: l10n_br_account
#: model:ir.model,name:l10n_br_account.model_account_tax_template
Expand All @@ -211,6 +211,8 @@ msgstr "Usado nos documentos fiscais"
#, python-format
msgid "You cannot delete a fiscal document which is not draft state."
msgstr ""
"Você não pode excluir um documento fiscal que não esteja no estado de "
"rascunho."

#~ msgid "Tax Account"
#~ msgstr "Conta de imposto"
Expand Down
3 changes: 3 additions & 0 deletions l10n_br_account/models/account_invoice_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ def create(self, values):
def write(self, values):
dummy_doc_line = self.env.ref(
'l10n_br_fiscal.fiscal_document_line_dummy')
if values.get('invoice_id'):
values['document_id'] = self.env[
"account.invoice"].browse(values['invoice_id']).fiscal_document_id.id
result = super().write(values)
for line in self:
if line.fiscal_document_line_id != dummy_doc_line:
Expand Down
8 changes: 8 additions & 0 deletions l10n_br_account/tests/test_customer_invoice_dummy.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,3 +228,11 @@ def test_invoice_other_currency(self):
assert self.invoice_3.move_id, "Move Receivable not created for open invoice"
self.assertEquals(
self.invoice_3.state, "open", "Invoice should be in state Open")

def test_invoice_line_ids_write(self):
self.invoice_3.invoice_line_ids.write({'invoice_id': self.invoice_3.id})
for line in self.invoice_3.invoice_line_ids:
self.assertEquals(
line.document_id.id,
self.invoice_3.fiscal_document_id.id,
"line.document_id should be equal account.fiscal_document_id")
28 changes: 14 additions & 14 deletions l10n_br_account/wizards/account_invoice_refund.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,59 +35,59 @@ def compute_refund(self, mode="refund"):

if (
not self.force_fiscal_operation_id
and not invoice.operation_id
and not invoice.fiscal_operation_id
):
raise UserError(_("Document without Operation !"))

if (
not self.force_fiscal_operation_id
and not invoice.operation_id.return_operation_id
and not invoice.fiscal_operation_id.return_operation_id
):
raise UserError(
_(
"Fiscal Operation: There is not Return Operation "
"for %s !"
)
% invoice.operation_id.name
% invoice.fiscal_operation_id.name
)

invoice.operation_id = (
invoice.fiscal_operation_id = (
self.force_fiscal_operation_id.id
or invoice.operation_id.return_operation_id.id
or invoice.fiscal_operation_id.return_operation_id.id
)

invoice_values = {
"operation_id": invoice.operation_id.id,
"fiscal_operation_id": invoice.fiscal_operation_id.id,
}

for line in invoice.invoice_line_ids:
if (
not self.force_fiscal_operation_id
and not line.operation_id
and not line.fiscal_operation_id
):
raise UserError(_("Document line without Operation !"))

if (
not self.force_fiscal_operation_id
and not line.operation_id.refund_operation_id
and not line.fiscal_operation_id.refund_operation_id
):
raise UserError(
_(
"Fiscal Operation: There is not Return "
"Operation for %s !"
)
% line.operation_id.name
% line.fiscal_operation_id.name
)

line.operation_id = (
line.fiscal_operation_id = (
self.force_fiscal_operation_id.id
or line.operation_id.return_operation_id
or line.fiscal_operation_id.return_operation_id
)

line._onchange_operation_id()

line_values = {
"operation_id": line.operation_id.id,
"fiscal_operation_id": line.fiscal_operation_id.id,
"fiscal_operation_line_id": line.fiscal_operation_line_id.id,
}
line.write(line_values)
Expand All @@ -104,10 +104,10 @@ def fields_view_get(self, view_id=None, view_type="form", toolbar=False,
fiscal_operation_type = REFUND_TO_OPERATION[invoice_type]
fiscal_type = FISCAL_TYPE_REFUND[fiscal_operation_type]
eview = etree.fromstring(result["arch"])
operation_id = eview.xpath(
fiscal_operation_id = eview.xpath(
"//field[@name='force_fiscal_operation_id']")

for field in operation_id:
for field in fiscal_operation_id:
field.set(
"domain",
"[('fiscal_operation_type', '=', '%s'), ('fiscal_type', 'in', %s)]"
Expand Down
8 changes: 0 additions & 8 deletions l10n_br_account_payment_order/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,6 @@ Contributors
* Magno Costa <[email protected]>


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

The development of this module has been financially supported by:

* KMEE INFORMATICA LTDA - www.kmee.com.br
* AKRETION LTDA - www.akretion.com

Maintainers
~~~~~~~~~~~

Expand Down
1 change: 1 addition & 0 deletions l10n_br_account_payment_order/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from . import models
from . import wizards
from . import tests
52 changes: 49 additions & 3 deletions l10n_br_account_payment_order/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@

{
'name': 'Brazilian Payment Order',
'version': '12.0.1.0.0',
'version': '12.0.3.0.0',
'license': 'AGPL-3',
'author': "KMEE, "
"Akretion, "
"Odoo Community Association (OCA)",
'website': 'https://github.com/OCA/l10n-brazil',
'category': 'Banking addons',
Expand All @@ -17,16 +18,61 @@
'account_cancel',
],
'data': [
'views/account_due_list.xml',
# Security
'security/cnab_cobranca_security.xml',
'security/ir.model.access.csv',

# Data
'data/cnab_data.xml',
'data/l10n_br_payment_export_type.xml',
'data/boleto_data.xml',
'data/account_analytic_tag_data.xml',
'data/l10n_br_cnab_return_move_code_data.xml',
'data/l10n_br_cnab_mov_instruction_code_data.xml',
'data/l10n_br_cnab_option_data.xml',

# Reports
'reports/report_print_button_view.xml',

# Wizards
'wizards/account_payment_line_create_view.xml',
'wizards/account_move_line_change.xml',

# Views
'views/account_journal.xml',
'views/account_payment_order.xml',
'views/account_payment_order_menu_views.xml',
'views/account_payment_line.xml',
'views/account_payment_mode.xml',
'views/res_company.xml',
'views/bank_payment_line.xml',
# TODO - Separação dos dados de importação para um objeto especifico
# cnab.return.log armazenando o LOG do Arquivo de Retorno CNAB
# de forma separada e permitindo a integração com a alteração feita no
# modulo do BRCobranca onde se esta utilizando o modulo
# account_base_move_import para fazer essa tarefa de wizard de importação,
# o objeto l10n_br_cnab esta comentado para permitir, caso seja necessário,
# a implementação de outra forma de importação pois tem os metodos que eram
# usados pela KMEE e o historico git do arquivo
# 'views/l10n_br_cnab_retorno_view.xml',
# 'views/l10n_br_cnab_evento_views.xml',
# 'views/l10n_br_payment_cnab.xml',
# 'views/l10n_br_cobranca_cnab.xml',
# 'views/l10n_br_cobranca_cnab_lines.xml',
'views/l10n_br_cnab_return_log_view.xml',
'views/account_invoice.xml',
'views/account_move_line.xml',
'views/l10n_br_cnab_return_move_code_view.xml',
'views/account_payment_views.xml',
'views/l10n_br_cnab_mov_instruction_code_view.xml',
'views/account_move_view.xml'
],
'demo': [
'demo/res_partner_bank.xml',
'demo/account_account.xml',
'demo/account_journal.xml',
'demo/account_payment_mode.xml',
'demo/account_invoice.xml',
'demo/res_users.xml',
'demo/account_payment_order.xml',
],
'installable': True,
Expand Down
Loading