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

Novidades Localização Brasileira Versão 12.0 - Semana 25/2021 #697

Merged
merged 653 commits into from
Jun 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
653 commits
Select commit Hold shift + click to select a range
5c8df88
[WIP] Case CNAB change Suspend Protest and Write Off should be mode d…
mbcosta Mar 29, 2021
d13591d
[REF] Created object to register Boleto and Payment fields to separat…
mbcosta Mar 30, 2021
efb0c30
[FIX] PEP8.
mbcosta Mar 30, 2021
6f52525
[REF] Removed mail.thread from account.move.line and included in acco…
mbcosta Mar 31, 2021
46e7434
[REM] Test of CNAB Change Methods only can be done in module where ch…
mbcosta Mar 31, 2021
adcfefe
[REF+REM] Better code and removed code and method unused.
mbcosta Mar 31, 2021
dcb66eb
[REF] Treatment of payment outside CNAB centralized in method reconci…
mbcosta Apr 8, 2021
acba4ef
[REF] Separated method for prepare Boleto bank lines.
mbcosta Apr 8, 2021
1c9c0bc
[FIX] Field date_maturity only being readonly in CNAB cases.
mbcosta Apr 23, 2021
34b7a04
[REF] CNAB Return Log can have multiple Journal Entries/account.move …
mbcosta Apr 23, 2021
0f89ffa
[FIX] l10n_br_cnab.return.log tree view
renatonlima Apr 24, 2021
c63513e
[REF] Removed default value for field cnab_state and change field use…
mbcosta Apr 29, 2021
6a86f09
[FIX] After remover mail.thread from object there not reason to keep …
mbcosta Apr 29, 2021
615e37e
[REF] Rename payment mode
mileo Apr 10, 2021
8067444
[REF] Code order account.invoice
mileo Apr 10, 2021
3a7944d
[ADD] Test Invoice normal workflow
mileo Apr 10, 2021
55e4edd
[REF] Payment order code constant
mileo Apr 11, 2021
4a15608
[NEW] Manual Test
mileo Apr 11, 2021
4270271
[NEW] Test pay in cash and cancel
mileo Apr 11, 2021
bf307a6
[REF] multiple recordset on _identify_cnab_change
mileo Apr 11, 2021
70f888a
[NEW] Test change wizard
mileo Apr 11, 2021
891e948
[REF] Convert tabs to spaces
mileo Apr 11, 2021
3d8d28a
[FIX] Round
mileo Apr 11, 2021
2da75f9
[FIX] Raise Translations
mileo Apr 11, 2021
f1803ec
[FIX] Tests
mileo Apr 11, 2021
8504e26
[IMP] Test coverage spliting manual and manual_test
mileo Apr 11, 2021
961f86e
[REF] Replace tabs with spaces
mileo Apr 11, 2021
6293d0e
[IMP] Test cases and coverage
mileo Apr 12, 2021
fe68ca9
[NEW] Use account_due_list tree view on invoices
mileo Apr 12, 2021
2b4d76b
[REM] Comment wizard domain code
mileo Apr 12, 2021
97ca2c6
[NEW] auto_create_payment_order
mileo Apr 12, 2021
7270b4c
[REF] api multi for create_payment_line_from_move_line
mileo Apr 13, 2021
a4d29d6
[IMP] auto_create_payment_order on invoice
mileo Apr 13, 2021
f78df22
[FIX] Old test class
mileo Apr 13, 2021
5e7b9ce
[REF] Automatic payment mode tests
mileo Apr 14, 2021
84f4dcc
[NEW] Test base class and manual workflow
mileo Apr 14, 2021
558bda4
[NEW] Test payment order
mileo Apr 14, 2021
20bad65
[REF] Rename BR_CODES_PAYMENT_ORDER
mileo Apr 15, 2021
81cd8b8
[REF] Comment generate_payment_file
mileo Apr 15, 2021
fb9d06f
[REF] Change fields $ from Float to Monetary.
mbcosta May 4, 2021
0c6ca0b
[REF] Included CNAB in field communication_type and in creation of pa…
mbcosta May 7, 2021
821af92
[FIX] Field compute financial_move_line_ids should has depends of mov…
mbcosta May 7, 2021
8812d1a
[FIX] If Invoice Cancel the account move lines related should be dele…
mbcosta May 7, 2021
8a083ef
[REF] README.
mbcosta May 13, 2021
f7ab000
[REF] Included myself, Magno Costa, as author in the files where i ha…
mbcosta May 20, 2021
c0ff6cf
[REF] self -> cls
mileo May 27, 2021
5140c4e
[REF] assertEquals -> assertEqual
mileo May 27, 2021
b8867e4
[REF] Convert self ->cls
mileo May 27, 2021
723b71e
[FIX] Remove unnecessary replace and included priority in view to avo…
mbcosta May 28, 2021
a8f051c
[FIX] Views, included priority in view to avoid inherit errors.
mbcosta May 28, 2021
3617eee
[FIX] Demo data with duplicate field, and field bank_account_link sho…
mbcosta May 28, 2021
a14cc8e
[FIX] Test class definition.
mbcosta May 28, 2021
2938e54
[MIG][MOV] Localization of Invoice report.
mbcosta May 28, 2021
ffd8403
[REF] Remove cls class
mileo May 26, 2021
d235787
[ADD] Escodoo as co-author
mileo May 26, 2021
623647c
[UPD] Readme
mileo May 27, 2021
6be111e
[REF] Website
gabrielcardoso21 May 31, 2021
0be67a4
[FIX] ensure_one
mileo Jun 1, 2021
4b7e88c
Merge PR #1409 into 12.0
OCA-git-bot Jun 1, 2021
20f2b2a
optimize doc importation: no fields_get() query
rvalyi Jun 1, 2021
926baee
Merge PR #1421 into 12.0
OCA-git-bot Jun 2, 2021
a30cd57
[REF] Standard OCA website spec_driven_model
rvalyi Jun 4, 2021
2aa6978
B902 Invalid first arg 'self' used for class meth
rvalyi Jun 4, 2021
e458ee8
B007 Loop variable not used within the loop body
rvalyi Jun 4, 2021
3e1dcca
reduced cyclo complexity of untested/ugly code...
rvalyi Jun 4, 2021
8dc722c
reduced cylomatic complexity of _update_taxes
rvalyi Jun 4, 2021
02507c1
fixed deprecated Dashboard API
rvalyi Jun 4, 2021
9d31fa0
Merge PR #1422 into 12.0
OCA-git-bot Jun 4, 2021
18242c7
[MIG] BR fiscal fields in Invoice report.
mbcosta May 28, 2021
d75c7a2
[FIX] Add nfe40_choice7 to res.partner
luismalta Jun 4, 2021
04cc4f5
[FIX] Depends for _compute_nfe_data
luismalta Jun 4, 2021
6184bdc
Merge PR #768 into 12.0
OCA-git-bot Jun 4, 2021
f14cc3c
[UPD] Update l10n_br_account_payment_order.pot
oca-travis Jun 4, 2021
82b24d3
[UPD] addons table in README.md
OCA-git-bot Jun 4, 2021
406884b
[UPD] README.rst
OCA-git-bot Jun 4, 2021
1e9428c
[FIX] nfe40_uTrib and nfe40_uCom must be related with document line u…
renatonlima May 28, 2021
79d5573
[FIX] _update_fiscal_quantity method
renatonlima May 28, 2021
f4de77e
Rename file name
renatonlima Jun 4, 2021
6bab281
[FIX] match_or_create_m2o in uom object
renatonlima Jun 4, 2021
ab91fa6
[FIX] NF-e document line fiscal quantity and remove uom inverse method
renatonlima Jun 4, 2021
ddc0add
[FIX] _compute_nfe40_xEnder method
renatonlima Jun 4, 2021
2bb9113
Merge PR #1427 into 12.0
OCA-git-bot Jun 5, 2021
b8fa654
l10n_br_nfe 12.0.2.4.1
OCA-git-bot Jun 5, 2021
cfa1693
[UPD] addons table in README.md
OCA-git-bot Jun 5, 2021
48fcb2d
Merge PR #1418 into 12.0
OCA-git-bot Jun 5, 2021
d26d19a
[UPD] Update l10n_br_account.pot
oca-travis Jun 5, 2021
70e818b
l10n_br_account 12.0.6.0.0
OCA-git-bot Jun 5, 2021
44ba5d1
l10n_br_fiscal 12.0.14.0.0
OCA-git-bot Jun 5, 2021
bea9512
[UPD] addons table in README.md
OCA-git-bot Jun 5, 2021
43c544c
Merge PR #1137 into 12.0
OCA-git-bot Jun 5, 2021
6ae39e7
[UPD] Update l10n_br_product_contract.pot
oca-travis Jun 5, 2021
770be81
[UPD] addons table in README.md
OCA-git-bot Jun 5, 2021
6a5e7c1
[UPD] README.rst
OCA-git-bot Jun 5, 2021
12f6d61
[ADD] setup.py
OCA-git-bot Jun 5, 2021
1a68223
m2m column typo fix with migration script
rvalyi Jun 5, 2021
0462753
Merge PR #1416 into 12.0
OCA-git-bot Jun 5, 2021
b9f79a7
[UPD] Update l10n_br_nfe.pot
oca-travis Jun 5, 2021
48e92df
l10n_br_nfe 12.0.2.4.2
OCA-git-bot Jun 5, 2021
704a9a5
l10n_br_fiscal 12.0.14.0.1
OCA-git-bot Jun 5, 2021
504ceab
[UPD] addons table in README.md
OCA-git-bot Jun 5, 2021
91ebbe2
m2m column typo fix with migration script
rvalyi May 27, 2021
842e989
Merge PR #1424 into 12.0
OCA-git-bot Jun 6, 2021
32f7bf2
[UPD] addons table in README.md
OCA-git-bot Jun 6, 2021
7fad018
Merge PR #1428 into 12.0
OCA-git-bot Jun 6, 2021
2ab2c3f
[UPD] addons table in README.md
OCA-git-bot Jun 6, 2021
21b6ce4
Merge PR #1423 into 12.0
OCA-git-bot Jun 6, 2021
71c81c3
[UPD] Update l10n_br_fiscal.pot
oca-travis Jun 6, 2021
4c67f8e
removed incorrect @api.multi
rvalyi Jun 7, 2021
4c1e34a
lint: W0622 Redefining built-in 'property'
rvalyi Jun 7, 2021
ee3b12a
line amount_financial assigned in _compute_amounts
rvalyi Jun 1, 2021
820f3be
Merge PR #1430 into 12.0
OCA-git-bot Jun 7, 2021
30b293e
[IMP] Definition of "idEstrangeiro" in nfe40_choice7
luismalta Jun 7, 2021
b135776
Merge PR #1420 into 12.0
OCA-git-bot Jun 7, 2021
53decce
[FIX] Foreign partner validation
luismalta Jun 7, 2021
f7fa37b
[FIX] Return value for nfe40_idEstrangeiro
luismalta Jun 7, 2021
08c61af
Merge PR #1425 into 12.0
OCA-git-bot Jun 7, 2021
4f55af8
[UPD] Update l10n_br_nfe.pot
oca-travis Jun 7, 2021
2e84dcc
l10n_br_nfe 12.0.2.4.3
OCA-git-bot Jun 7, 2021
f83cdd9
[UPD] addons table in README.md
OCA-git-bot Jun 7, 2021
5a1d5d4
fix ncm ir_model_data name
rvalyi Jun 8, 2021
8a5cf11
Merge PR #1432 into 12.0
OCA-git-bot Jun 8, 2021
59b14a9
Standard OCA pre-commit config - 24 May 2021
rvalyi May 24, 2021
575eab8
adjust for progressive OCA/l10n-brazil application
rvalyi May 24, 2021
cc8efe4
enables pre-commit for l10n_br_base
rvalyi Jun 7, 2021
be39f1f
[IMP] l10n_br_base: black, isort, prettier
rvalyi Jun 7, 2021
b25a514
Merge PR #1433 into 12.0
OCA-git-bot Jun 9, 2021
3a386a1
[UPD] Update l10n_br_base.pot
oca-travis Jun 9, 2021
727040b
enables pre-commit for l10n_br_fiscal
rvalyi Jun 8, 2021
c06b1a5
[IMP] l10n_br_fiscal: black, isort, prettier
rvalyi Jun 8, 2021
e72200a
Merge PR #1434 into 12.0
OCA-git-bot Jun 9, 2021
91f6a6b
[UPD] Update l10n_br_fiscal.pot
oca-travis Jun 9, 2021
b7c15e6
[UPD] README.rst
OCA-git-bot Jun 9, 2021
2e1e3ba
enables pre-commit for l10n_br_coa
rvalyi Jun 9, 2021
5adde00
[IMP] l10n_br_coa: black, isort, prettier
rvalyi Jun 9, 2021
2afb227
Merge PR #1435 into 12.0
OCA-git-bot Jun 9, 2021
a26d4d5
enables pre-commit for l10n_br_crm
rvalyi Jun 9, 2021
9697f35
[IMP] l10n_br_crm: black, isort, prettier
rvalyi Jun 9, 2021
e110109
Merge PR #1443 into 12.0
OCA-git-bot Jun 9, 2021
2970083
enables pre-commit for l10n_br_zip
rvalyi Jun 9, 2021
a1b0f35
[IMP] l10n_br_zip: black, isort, prettier
rvalyi Jun 9, 2021
3410bcd
E722 do not use bare 'except'
rvalyi Jun 9, 2021
eea2cf6
enables pre-commit for l10n_br_sale
rvalyi Jun 7, 2021
19755d3
[IMP] l10n_br_sale: black, isort, prettier
rvalyi Jun 7, 2021
4597b43
E741 ambiguous variable name 'l'
rvalyi Jun 9, 2021
27bbfd3
B902 Invalid 1st arg 'self' used for class method
rvalyi Jun 9, 2021
b99374f
Merge PR #1439 into 12.0
OCA-git-bot Jun 9, 2021
7876e91
enables pre-commit for l10n_br_stock
rvalyi Jun 9, 2021
811d6bd
[IMP] l10n_br_stock: black, isort, prettier
rvalyi Jun 9, 2021
35715e3
Merge PR #1438 into 12.0
OCA-git-bot Jun 10, 2021
b011d33
[UPD] Update l10n_br_stock.pot
oca-travis Jun 10, 2021
19bb018
enables pre-commit for l10n_br_sale_stock
rvalyi Jun 7, 2021
6da05b4
[IMP] l10n_br_sale_stock: black, isort, prettier
rvalyi Jun 7, 2021
0f749b7
E741 ambiguous variable name 'l'
rvalyi Jun 9, 2021
9ec972e
B902 Invalid 1st arg 'self' used for class method
rvalyi Jun 9, 2021
af9d2e9
Merge PR #1440 into 12.0
OCA-git-bot Jun 10, 2021
bde393a
enables pre-commit for l10n_br_currency_rate_update
rvalyi Jun 9, 2021
50a4c1a
B902 Invalid 1st arg 'self' used for class method
rvalyi Jun 9, 2021
aeab12a
[IMP] l10n_br_currency_rate_update: black, isort, prettier
rvalyi Jun 9, 2021
a6170ce
Merge PR #1436 into 12.0
OCA-git-bot Jun 10, 2021
f236335
[UPD] Update l10n_br_currency_rate_update.pot
oca-travis Jun 10, 2021
1f5ec1d
enables pre-commit for l10n_br_stock_account
rvalyi Jun 7, 2021
0c3a2d8
[IMP] l10n_br_stock_account: black, isort, prettier
rvalyi Jun 7, 2021
f29b42f
Merge PR #1437 into 12.0
OCA-git-bot Jun 10, 2021
ffc949d
[UPD] Update l10n_br_stock_account.pot
oca-travis Jun 10, 2021
c8e6cb4
Merge PR #1442 into 12.0
OCA-git-bot Jun 10, 2021
577af22
[UPD] Update l10n_br_zip.pot
oca-travis Jun 10, 2021
62323c3
[FIX] Data abstract fields_view_get
renatonlima Jun 10, 2021
c1d77d0
[ADD] Remove blank spaces
gabrielcardoso21 Jun 11, 2021
cdd7d81
[FIX] Data abstract _name_search
renatonlima Jun 10, 2021
0dfab36
Merge PR #1454 into 12.0
OCA-git-bot Jun 11, 2021
2ea1333
[FIX] Size of description
gabrielcardoso21 Jun 11, 2021
0dbbb0f
Merge PR #1453 into 12.0
OCA-git-bot Jun 11, 2021
1306fc1
enables pre-commit for l10n_br_purchase_stock
rvalyi Jun 7, 2021
dd6b136
[IMP] l10n_br_purchase_stock: black, isort, prettier
rvalyi Jun 7, 2021
5dabc1c
Merge PR #1448 into 12.0
OCA-git-bot Jun 12, 2021
5e9dd37
l10n_br_fiscal 12.0.15.0.1
OCA-git-bot Jun 12, 2021
bba8918
[UPD] addons table in README.md
OCA-git-bot Jun 12, 2021
8007c04
Merge PR #1441 into 12.0
OCA-git-bot Jun 12, 2021
b7af9d1
[UPD] Update l10n_br_purchase_stock.pot
oca-travis Jun 12, 2021
8695d46
[ADD] Demo Regulation ICMS file
ygcarvalh Jun 9, 2021
cc44c78
[IMP] Change ICMS Origin for product
ygcarvalh Jun 9, 2021
2119d0f
[IMP] Annual Revenue for Simple Nacional Company
ygcarvalh Jun 9, 2021
43fe7c8
[FIX] pre-commit errors
ygcarvalh Jun 10, 2021
9c58538
[FIX] pre-commit issue
mileo Jun 10, 2021
487b60a
[FIX] Wizard payment order draft moves (avoid erros if l10n_br_account
mileo Jun 12, 2021
46b304e
Merge PR #1240 into 12.0
OCA-git-bot Jun 12, 2021
dadef15
[UPD] Update l10n_br_fiscal.pot
oca-travis Jun 12, 2021
bc4d8e1
enables pre-commit for l10n_br_account
rvalyi Jun 9, 2021
497f80c
enables pre-commit for l10n_br_purchase
rvalyi Jun 7, 2021
0809651
[IMP] l10n_br_purchase: black, isort, prettier
rvalyi Jun 7, 2021
2efde14
flake8 and pylint fixes:
rvalyi Jun 12, 2021
5af6e54
fixed pylint issues:
rvalyi Jun 12, 2021
3c4cc9e
[IMP] l10n_br_account: black, isort, prettier
rvalyi Jun 12, 2021
6d667e9
update priority to parent l10n_br_purchase change
rvalyi Jun 12, 2021
6870911
enables pre-commit for l10n_br_nfse
rvalyi Jun 12, 2021
dc5eb5c
[IMP] l10n_br_nfse: black, isort, prettier
rvalyi Jun 12, 2021
f3cdaff
enables pre-commit for l10n_br_contract
rvalyi Jun 12, 2021
e2070bd
B902 Invalid 1st arg 'self' used for class method
rvalyi Jun 12, 2021
305f70c
[IMP] l10n_br_contract: black, isort, prettier
rvalyi Jun 12, 2021
b23b2f1
enables pre-commit for l10n_br_resource
rvalyi Jun 12, 2021
8661013
[IMP] l10n_br_resource: black, isort, prettier
rvalyi Jun 12, 2021
c8f4463
B008 Don't perform function calls in arg defaults
rvalyi Jun 12, 2021
edc3dce
remove useless default @api.multi
rvalyi Jun 12, 2021
f90f6aa
enables pre-commit for l10n_br_hr_contract
rvalyi Jun 12, 2021
5b38b03
remove useless default @api.multi
rvalyi Jun 12, 2021
fc8666c
[IMP] l10n_br_hr: black, isort, prettier
rvalyi Jun 12, 2021
4045f5e
add eslint config for pre-commit
rvalyi Jun 12, 2021
ceccb13
enables pre-commit for l10n_br_portal
rvalyi Jun 12, 2021
34ae186
disable eslint checks problematic with Cleave.js
rvalyi Jun 12, 2021
aac44aa
[IMP] l10n_br_portal: black, isort, prettier
rvalyi Jun 12, 2021
3c443db
Merge PR #1459 into 12.0
OCA-git-bot Jun 13, 2021
9dbf26d
DRE: bale->balp everywhere
rvalyi Jun 13, 2021
787089f
Merge PR #1460 into 12.0
OCA-git-bot Jun 13, 2021
e5f4e47
Merge PR #1461 into 12.0
OCA-git-bot Jun 13, 2021
584ee99
[UPD] Update l10n_br_contract.pot
oca-travis Jun 13, 2021
ab5ef04
[UPD] README.rst
OCA-git-bot Jun 13, 2021
d1ff89c
[REM] Unnecessary code
ygcarvalh Jun 9, 2021
db37858
[IMP] 'Simples Nacional' xml tags
ygcarvalh Jun 9, 2021
291552e
[IMP] NF-e Serialize test function
ygcarvalh Jun 9, 2021
e7f9563
[ADD] 'Lucro Presumido' test file functions
ygcarvalh Jun 9, 2021
ec4e8cc
[ADD] 'Simples Nacional' test file functions
ygcarvalh Jun 9, 2021
5fff446
[REM] Unnecessary code
ygcarvalh Jun 9, 2021
dc081a4
[IMP] 'Simples Nacional' xml tags
ygcarvalh Jun 9, 2021
dc687cd
[ADD] Test files
ygcarvalh Jun 10, 2021
637be89
[ADD] XML Files
ygcarvalh Jun 10, 2021
16a45f1
[IMP] Demo for new tests
ygcarvalh Jun 10, 2021
c03e477
[FIX] Flake8
ygcarvalh Jun 14, 2021
43a5d0d
Merge PR #1469 into 12.0
OCA-git-bot Jun 14, 2021
3e5ac5c
l10n_br_mis_report 12.0.1.3.0
OCA-git-bot Jun 14, 2021
a14a16a
[UPD] addons table in README.md
OCA-git-bot Jun 14, 2021
e177704
Merge PR #1464 into 12.0
OCA-git-bot Jun 14, 2021
af91d21
[UPD] README.rst
OCA-git-bot Jun 14, 2021
18f5054
[FIX] pre-commit regression
renatonlima Jun 14, 2021
3ee10d3
Merge PR #1275 into 12.0
OCA-git-bot Jun 14, 2021
0f83764
l10n_br_nfe 12.0.2.5.0
OCA-git-bot Jun 14, 2021
ba9e9cc
[UPD] addons table in README.md
OCA-git-bot Jun 14, 2021
2a63945
Merge PR #1458 into 12.0
OCA-git-bot Jun 14, 2021
e703a0e
[UPD] Update l10n_br_account.pot
oca-travis Jun 14, 2021
d814e2a
[UPD] README.rst
OCA-git-bot Jun 14, 2021
2d73328
Merge PR #1281 into 12.0
OCA-git-bot Jun 15, 2021
ac1ce8e
Merge PR #1462 into 12.0
OCA-git-bot Jun 15, 2021
f11fdb6
[UPD] Update l10n_br_resource.pot
oca-travis Jun 15, 2021
c12a109
[UPD] README.rst
OCA-git-bot Jun 15, 2021
4b40e64
enables pre-commit for l10n_br_hr
rvalyi Jun 12, 2021
c904fa6
[IMP] l10n_br_hr: black, isort, prettier
rvalyi Jun 12, 2021
b1fae41
remove useless default @api.multi
rvalyi Jun 12, 2021
3f13ded
Merge PR #1463 into 12.0
OCA-git-bot Jun 15, 2021
6b5a9aa
[UPD] Update l10n_br_hr.pot
oca-travis Jun 15, 2021
e40d2f7
Merge PR #1465 into 12.0
OCA-git-bot Jun 16, 2021
13c76ad
[UPD] README.rst
OCA-git-bot Jun 16, 2021
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
  •  
  •  
  •  
5 changes: 0 additions & 5 deletions .codeclimate.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[.eslintrc,*.{json,yml,yaml,rst,md}]
[*.{json,yml,yaml,rst,md}]
indent_size = 2

# Do not configure editor for libs and autogenerated content
[*/static/{lib,src/lib}/**,*/static/description/index.html,*/readme/../README.rst]
[{*/static/{lib,src/lib}/**,*/static/description/index.html,*/readme/../README.rst}]
charset = unset
end_of_line = unset
indent_size = unset
Expand Down
180 changes: 180 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
env:
browser: true

# See https://github.com/OCA/odoo-community.org/issues/37#issuecomment-470686449
parserOptions:
ecmaVersion: 2017

# Globals available in Odoo that shouldn't produce errorings
globals:
_: readonly
$: readonly
fuzzy: readonly
jQuery: readonly
moment: readonly
odoo: readonly
openerp: readonly
Promise: readonly

# Styling is handled by Prettier, so we only need to enable AST rules;
# see https://github.com/OCA/maintainer-quality-tools/pull/618#issuecomment-558576890
rules:
accessor-pairs: warn
array-callback-return: warn
callback-return: warn
capitalized-comments:
- warn
- always
- ignoreConsecutiveComments: true
ignoreInlineComments: true
complexity:
- warn
- 15
constructor-super: warn
dot-notation: warn
eqeqeq: warn
global-require: warn
handle-callback-err: warn
id-blacklist: warn
id-match: warn
init-declarations: error
max-depth: warn
max-nested-callbacks: warn
max-statements-per-line: warn
no-alert: warn
no-array-constructor: warn
no-caller: warn
no-case-declarations: warn
no-class-assign: warn
no-cond-assign: error
no-const-assign: error
no-constant-condition: warn
no-control-regex: warn
no-debugger: error
no-delete-var: warn
no-div-regex: warn
no-dupe-args: error
no-dupe-class-members: error
no-dupe-keys: error
no-duplicate-case: error
no-duplicate-imports: error
no-else-return: warn
no-empty-character-class: warn
no-empty-function: error
no-empty-pattern: error
no-empty: warn
no-eq-null: error
no-eval: error
no-ex-assign: error
no-extend-native: warn
no-extra-bind: warn
no-extra-boolean-cast: warn
no-extra-label: warn
no-fallthrough: warn
no-func-assign: error
no-global-assign: error
no-implicit-coercion:
- warn
- allow: ["~"]
no-implicit-globals: warn
no-implied-eval: warn
no-inline-comments: warn
no-inner-declarations: warn
no-invalid-regexp: warn
no-irregular-whitespace: warn
no-iterator: warn
no-label-var: warn
no-labels: warn
no-lone-blocks: warn
no-lonely-if: error
no-mixed-requires: error
no-multi-str: warn
no-native-reassign: error
no-negated-condition: warn
no-negated-in-lhs: error
no-new-func: warn
no-new-object: warn
no-new-require: warn
no-new-symbol: warn
no-new-wrappers: warn
no-new: warn
no-obj-calls: warn
no-octal-escape: warn
no-octal: warn
no-param-reassign: warn
no-path-concat: warn
no-process-env: warn
no-process-exit: warn
no-proto: warn
no-prototype-builtins: warn
no-redeclare: warn
no-regex-spaces: warn
no-restricted-globals: warn
no-restricted-imports: warn
no-restricted-modules: warn
no-restricted-syntax: warn
no-return-assign: error
no-script-url: warn
no-self-assign: warn
no-self-compare: warn
no-sequences: warn
no-shadow-restricted-names: warn
no-shadow: warn
no-sparse-arrays: warn
no-sync: warn
no-this-before-super: warn
no-throw-literal: warn
no-undef-init: warn
no-undef: error
no-unmodified-loop-condition: warn
no-unneeded-ternary: error
no-unreachable: error
no-unsafe-finally: error
no-unused-expressions: error
no-unused-labels: error
no-unused-vars: error
no-use-before-define: error
no-useless-call: warn
no-useless-computed-key: warn
no-useless-concat: warn
no-useless-constructor: warn
no-useless-escape: warn
no-useless-rename: warn
no-void: warn
no-with: warn
operator-assignment: [error, always]
prefer-const: warn
radix: warn
require-yield: warn
sort-imports: warn
spaced-comment: [error, always]
strict: [error, function]
use-isnan: error
valid-jsdoc:
- warn
- prefer:
arg: param
argument: param
augments: extends
constructor: class
exception: throws
func: function
method: function
prop: property
return: returns
virtual: abstract
yield: yields
preferType:
array: Array
bool: Boolean
boolean: Boolean
number: Number
object: Object
str: String
string: String
requireParamDescription: false
requireReturn: false
requireReturnDescription: false
requireReturnType: false
valid-typeof: warn
yoda: warn
12 changes: 12 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[flake8]
max-line-length = 88
max-complexity = 16
# B = bugbear
# B9 = bugbear opinionated (incl line length)
select = C,E,F,W,B,B9
# E203: whitespace before ':' (black behaviour)
# E501: flake8 line length (covered by bugbear B950)
# W503: line break before binary operator (black behaviour)
ignore = E203,E501,W503
per-file-ignores=
__init__.py:F401
20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
/.venv
/.pytest_cache

# C extensions
*.so
Expand All @@ -13,13 +15,15 @@ build/
develop-eggs/
dist/
eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg
*.eggs

# Installer logs
pip-log.txt
Expand All @@ -39,6 +43,19 @@ coverage.xml
# Pycharm
.idea

# Eclipse
.settings

# Visual Studio cache/options directory
.vs/
.vscode

# OSX Files
.DS_Store

# Django stuff:
*.log

# Mr Developer
.mr.developer.cfg
.project
Expand All @@ -53,3 +70,6 @@ docs/_build/
# Backup files
*~
*.swp

# OCA rules
!static/lib/
13 changes: 12 additions & 1 deletion .isort.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
[settings]
known_third_party = OpenSSL,dateutil,erpbrasil,lxml,odoo,openupgradelib,requests,setuptools
; see https://github.com/psf/black
multi_line_output=3
include_trailing_comma=True
force_grid_wrap=0
combine_as_imports=True
use_parentheses=True
line_length=88
known_odoo=odoo
known_odoo_addons=odoo.addons
sections=FUTURE,STDLIB,THIRDPARTY,ODOO,ODOO_ADDONS,FIRSTPARTY,LOCALFOLDER
default_section=THIRDPARTY
ensure_newline_before_comments = True
Loading