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

[MIG] account_move_name_sequence: Migration to 18.0 #2016

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
8a2933e
Add module account_move_name_sequence
alexis-via Sep 6, 2021
9130541
sequence is now required on journals
alexis-via Sep 8, 2021
617a489
[REF] account_move_name_sequence: Add number_next_actual and date ran…
moylop260 May 5, 2022
4534129
[FIX] ir_sequence: Fix creating date_range_seq with range_month and r…
moylop260 May 10, 2022
c96b75d
[REF] account_move_name_sequence: Discard journals already configured
moylop260 May 11, 2022
eb342d5
[FIX] account_move_name_sequence: Fix sequence domain to assign only …
moylop260 May 13, 2022
fcba769
[REF] account_move_name_sequence: Moves with name '/' can not be posted
moylop260 May 13, 2022
fa4dcdc
[FIX] account_move_name_sequence: Fix required journal fields in view
moylop260 May 13, 2022
ff14789
[REF] account_move_name_sequence: Add maintainers to myself
moylop260 May 13, 2022
b31a2fa
[REF] account_move_name_sequence: Adding concurrency cases in README
moylop260 May 19, 2022
3c39bc0
[REF] account_move_name_sequence: Use Odoo native methods + Typos
frahikLV May 26, 2022
bc65e81
[MIG] account_move_name_sequence: Migration to 15.0
frahikLV May 26, 2022
2337fdb
[FIX] account_move_name_sequence: Exclude no_gap sequences from _is_e…
frahikLV May 25, 2022
21b9b45
[FIX] account_move_name_sequence: Use account move date to compute pr…
petrus-v Jul 7, 2022
52c8db8
[MIG] account_move_name_sequence: Migration to 16.0
RodrigoBM Nov 24, 2022
55b81d0
[FIX] account_move_name_sequence: return sequence names do not add a …
RodrigoBM Nov 24, 2022
cd37461
[FIX] account_move_name_sequence: issue #1465 vals get refund_sequenc…
RodrigoBM Nov 28, 2022
004b221
[FIX] account_move_name_sequence: call flush before _fetch_duplicate_…
RodrigoBM Dec 2, 2022
978a6bb
[REF] account_move_name_sequence: Remove concurrency outdated cases f…
moylop260 Dec 8, 2022
d299b3e
[FIX] account_move_name_sequence: With the "account_move_name_sequenc…
RodrigoBM Jan 20, 2023
14d8678
[FIX] account_move_name_sequence: Now you can unlink moves without ch…
RodrigoBM Jan 31, 2023
bfc9142
Added translation using Weblate (Croatian)
badbole Feb 11, 2023
306c765
[FIX] account_move_name_sequence: computed fields raising warning
remi-filament Mar 15, 2023
62a42dc
Added translation using Weblate (French)
remi-filament Apr 4, 2023
4d761d9
Added translation using Weblate (Spanish)
Gelo-fl Apr 13, 2023
b3853ec
Translated using Weblate (French)
Jun 8, 2023
40d1039
[FIX] account_move_name_sequence: do not create duplicated sequences
astirpe Aug 24, 2023
b516712
Added translation using Weblate (Arabic)
hussain Aug 29, 2023
88b968c
[REF] account_move_name_sequence: rename hooks file
andreagidaltig Oct 8, 2023
4f8dd99
[FIX] account_move_name_sequence: call _inverse_name after computing …
BT-anieto Oct 11, 2023
baf490f
[IMP] account_move_name_sequence: pre-commit stuff
moitabenfdz Nov 13, 2023
67aa20a
[MIG] account_move_name_sequence: Migration to 17.0
moitabenfdz Nov 13, 2023
540409d
[UPD] Update account_move_name_sequence.pot
Mar 28, 2024
b64eeab
[BOT] post-merge updates
OCA-git-bot Mar 28, 2024
025b839
Added translation using Weblate (Italian)
mymage Apr 2, 2024
c9ffd17
Translated using Weblate (Italian)
mymage Apr 2, 2024
f1f668c
[FIX] account_move_name_sequence: redefine _onchange_journal_id
mde-scopea Oct 26, 2023
8cd559e
[FIX] account_move_name_sequence: call flush before to post the moves
fernandahf Nov 30, 2022
dfe7615
[REF] account_move_name_sequence: Added concurrency tests related to …
payen000 Aug 9, 2022
561293a
[FIX] account_move_name_sequence: avoid fallback on odoo sequence name
petrus-v Mar 27, 2023
d6b77ad
Added translation using Weblate (Slovenian)
sysadminmatmoz Mar 30, 2023
c5c35c6
[IMP] account_move_name_sequence: pre-commit auto fixes
moylop260 Apr 8, 2024
f811111
[FW] account_move_name_sequence: Forward-Port of 14.0 to 15.0
moylop260 Apr 8, 2024
9e74406
[FW] account_move_name_sequence: Forward-Port of 15.0 to 16.0
moylop260 Apr 17, 2024
f893691
[IMP] account_move_name_sequence: pre-commit auto fixes
moylop260 Apr 17, 2024
0a05a13
[BOT] post-merge updates
OCA-git-bot Apr 17, 2024
19ea99c
[REF] account_move_name_sequence: Check invoice name based on journal…
ljsalvatierra-factorlibre Apr 17, 2024
0741079
[BOT] post-merge updates
OCA-git-bot Apr 17, 2024
4b7ec55
fix: account_move_name_sequence: tests: Listen to exceptions for each…
Tardo Apr 22, 2024
06ebd17
[BOT] post-merge updates
OCA-git-bot Apr 22, 2024
08a67d0
[REF] account_move_name_sequence: Add unittest to create concurrency …
moylop260 Apr 22, 2024
40b3a79
[UPD] Update account_move_name_sequence.pot
Apr 23, 2024
776a0c5
[BOT] post-merge updates
OCA-git-bot Apr 23, 2024
6b29808
[IMP] account_move_name_sequence: split too long context definition
andreagidaltig Oct 28, 2023
9bf31a8
[IMP] account_move_name_sequence: apply guidelines to name view files
andreagidaltig Oct 27, 2023
3c8c0d9
[BOT] post-merge updates
OCA-git-bot Apr 23, 2024
96d1ec1
Update translation files
weblate Apr 23, 2024
d029b18
Translated using Weblate (Italian)
mymage Apr 23, 2024
e462af2
Translated using Weblate (Spanish)
Ivorra78 Apr 24, 2024
74f77de
[IMP] account_move_name_sequence: pre-commit auto fixes
CLaurelB Jan 29, 2025
9488f45
[IMP] account_move_name_sequence: manual lints fixes
CLaurelB Jan 29, 2025
a909d0d
[MIG] account_move_name_sequence: Migrate to v18.0
CLaurelB Jan 29, 2025
f8a627b
[IMP] account_move_name_sequence: refactor tests and improve field ha…
CLaurelB Jan 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .bandit
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[bandit]
exclude = tests

# B608: hardcoded_sql_expressions they are considered from pylint-odoo
# B313,B314,B315,B316,B317,B318,B319,B320,B405,B406,B407,B408,B409,B410: defusedxml checks
# Odoo's team via inbox twitter is not convinced to repair them and the entire Odoo is raising these checks
skips = B608,B313,B314,B315,B316,B317,B318,B319,B320,B405,B406,B407,B408,B409,B410
format = custom
msg-template={relpath}:{line}:{col} {msg} - [{test_id}] - ({severity})
quiet=True
243 changes: 243 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,243 @@
{
"globals": {
"$": false,
"_": false,
"jQuery": false,
"moment": false,
"odoo": false,
"openerp": false,
"self": false
},
"env": {
"browser": true
},
"rules": {
"capitalized-comments": "off",
"no-alert": "off",
"no-array-constructor": "error",
"no-bitwise": "off",
"no-caller": "error",
"no-case-declarations": "off",
"no-catch-shadow": "error",
"no-class-assign": "error",
"no-cond-assign": "off",
"no-confusing-arrow": "error",
"no-console": "off",
"no-const-assign": "error",
"no-constant-condition": "off",
"no-continue": "off",
"no-control-regex": "error",
"no-debugger": "error",
"no-delete-var": "error",
"no-div-regex": "error",
"no-dupe-args": "error",
"no-dupe-class-members": "error",
"no-dupe-keys": "off",
"no-duplicate-case": "error",
"no-duplicate-imports": "error",
"no-else-return": "off",
"no-empty": "off",
"no-empty-character-class": "error",
"no-empty-function": "off",
"no-empty-pattern": "error",
"no-eq-null": "off",
"no-eval": "error",
"no-ex-assign": "error",
"no-extend-native": "off",
"no-extra-bind": "error",
"no-extra-boolean-cast": "error",
"no-extra-label": "error",
"no-extra-parens": "off",
"no-extra-semi": "off",
"no-fallthrough": "error",
"no-floating-decimal": "error",
"no-func-assign": "error",
"no-global-assign": "off",
"no-implicit-coercion": "off",
"no-implicit-globals": "off",
"no-implied-eval": "error",
"no-inline-comments": "off",
"no-inner-declarations": "off",
"no-invalid-regexp": "error",
"no-invalid-this": "off",
"no-irregular-whitespace": "error",
"no-iterator": "error",
"no-label-var": "error",
"no-labels": "error",
"no-lone-blocks": "error",
"no-lonely-if": "off",
"no-loop-func": "off",
"no-magic-numbers": "off",
"no-mixed-operators": "off",
"no-mixed-requires": "off",
"no-mixed-spaces-and-tabs": "error",
"no-multi-spaces": "off",
"no-multi-str": "error",
"no-multiple-empty-lines": "off",
"no-native-reassign": "off",
"no-negated-condition": "off",
"no-negated-in-lhs": "error",
"no-nested-ternary": "off",
"no-new": "error",
"no-new-func": "error",
"no-new-object": "error",
"no-new-require": "error",
"no-new-symbol": "error",
"no-new-wrappers": "error",
"no-obj-calls": "error",
"no-octal": "error",
"no-octal-escape": "error",
"no-param-reassign": "off",
"no-path-concat": "error",
"no-plusplus": "off",
"no-process-env": "error",
"no-process-exit": "error",
"no-proto": "error",
"no-prototype-builtins": "off",
"no-redeclare": "off",
"no-regex-spaces": "error",
"no-restricted-globals": "error",
"no-restricted-imports": "error",
"no-restricted-modules": "error",
"no-restricted-syntax": "error",
"no-return-assign": "off",
"no-script-url": "error",
"no-self-assign": "off",
"no-self-compare": "error",
"no-sequences": "off",
"no-shadow": "off",
"no-shadow-restricted-names": "error",
"no-whitespace-before-property": "error",
"no-spaced-func": "off",
"no-sparse-arrays": "error",
"no-sync": "error",
"no-tabs": "error",
"no-ternary": "off",
"no-trailing-spaces": "off",
"no-this-before-super": "error",
"no-throw-literal": "error",
"no-undef": "off",
"no-undef-init": "error",
"no-undefined": "off",
"no-unexpected-multiline": "error",
"no-underscore-dangle": "off",
"no-unmodified-loop-condition": "error",
"no-unneeded-ternary": "off",
"no-unreachable": "error",
"no-unsafe-finally": "error",
"no-unused-expressions": "off",
"no-unused-labels": "off",
"no-unused-vars": "off",
"no-use-before-define": "off",
"no-useless-call": "off",
"no-useless-computed-key": "error",
"no-useless-concat": "error",
"no-useless-constructor": "off",
"no-useless-escape": "off",
"no-useless-rename": "error",
"no-void": "error",
"no-var": "off",
"no-warning-comments": "off",
"no-with": "error",
"array-bracket-spacing": "off",
"array-callback-return": "error",
"arrow-body-style": "off",
"arrow-parens": "off",
"arrow-spacing": "off",
"accessor-pairs": "error",
"block-scoped-var": "off",
"block-spacing": "off",
"brace-style": "off",
"callback-return": "error",
"camelcase": "off",
"comma-dangle": "off",
"comma-spacing": "off",
"comma-style": "error",
"complexity": "off",
"computed-property-spacing": "off",
"consistent-return": "off",
"consistent-this": "off",
"constructor-super": "error",
"curly": "off",
"default-case": "off",
"dot-location": ["error", "property"],
"dot-notation": "off",
"eol-last": "error",
"eqeqeq": "off",
"func-names": "off",
"func-style": "off",
"generator-star-spacing": "off",
"global-require": "error",
"guard-for-in": "off",
"handle-callback-err": "error",
"id-blacklist": "error",
"id-length": "off",
"id-match": "error",
"indent": "off",
"init-declarations": "off",
"jsx-quotes": "error",
"key-spacing": "off",
"keyword-spacing": "off",
"linebreak-style": ["error", "unix"],
"lines-around-comment": "off",
"max-depth": "off",
"max-len": "off",
"max-lines": "off",
"max-nested-callbacks": "error",
"max-params": "off",
"max-statements": "off",
"max-statements-per-line": "off",
"multiline-ternary": "off",
"new-cap": "off",
"new-parens": "error",
"newline-after-var": "off",
"newline-before-return": "off",
"newline-per-chained-call": "off",
"object-curly-newline": "off",
"object-curly-spacing": "off",
"object-property-newline": "off",
"object-shorthand": "off",
"one-var": "off",
"one-var-declaration-per-line": "off",
"operator-assignment": "error",
"operator-linebreak": "off",
"padded-blocks": "off",
"prefer-arrow-callback": "off",
"prefer-const": "off",
"prefer-reflect": "off",
"prefer-rest-params": "off",
"prefer-spread": "off",
"prefer-template": "off",
"quote-props": "off",
"quotes": "off",
"radix": "off",
"require-jsdoc": "off",
"require-yield": "error",
"rest-spread-spacing": "off",
"semi": "off",
"semi-spacing": "off",
"sort-imports": "off",
"sort-vars": "off",
"space-before-blocks": "off",
"space-before-function-paren": "off",
"space-in-parens": "off",
"space-infix-ops": "off",
"space-unary-ops": "off",
"spaced-comment": "off",
"strict": "off",
"template-curly-spacing": "off",
"unicode-bom": "error",
"use-isnan": "error",
"valid-jsdoc": "off",
"valid-typeof": "error",
"vars-on-top": "off",
"wrap-iife": "off",
"wrap-regex": "off",
"yield-star-spacing": "off",
"yoda": "error"
},
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module"
}
}
14 changes: 14 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[flake8]
# E123,E133,E226,E241,E242 are ignored by default by pep8 and flake8
# F811 is legal in odoo 8 when we implement 2 interfaces for a method
# F999 pylint support this case with expected tests
# W503 changed by W504 and OCA prefers allow both
# F401 is legal in odoo __init__.py files
# E203 (whitespace before ':') is handled by black and it doesn't consider black syntax like:
# E741 do not use variables named ‘l’, ‘O’, or ‘I’
# chunk = records[index : index + chunk_size]
ignore = E123,E133,E203,E226,E241,E242,E501,E741,F811,F601,W503,W504
max-line-length = 119
per-file-ignores=
__init__.py:F401
jobs = 0
23 changes: 23 additions & 0 deletions .flake8-optional
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[flake8]
max-line-length = 119
jobs = 0
# B = bugbear
# B9 = bugbear opinionated (incl line length +10% tolerance)
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)
# W504: line break after binary operator (black behaviour?)
# E241: E241 multiple spaces after ',' (Better autofixing)
# B023: Function definition does not bind loop variable 'item'. (Odoo needs it [self.filtered(lambda l: l.item_id == item) for item in items])
# E226: missing whitespace around arithmetic operator (Better autofixing)
# B904: Within an `except` clause, raise exceptions with `raise (It is valid for us)
# E123: closing bracket does not match indentation of opening bracket's line (Better autofixing)
# E275: missing whitespace after keyword (Better autofixing)
# B905: zip(strict=True) only works in python >= 3.10
# B907: We sometimes quote for stylistic purposes
# F401: imported but unused (like __init__ already works)
ignore = E203,E501,W503,W504,E241,B023,E226,B904,B905,B907,E123,E275
per-file-ignores =
__init__.py:F401
__manifest__.py:B018
14 changes: 14 additions & 0 deletions .isort.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[settings]
; 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
skip_glob=**/__init__.py
2 changes: 2 additions & 0 deletions .oca_hooks-autofix.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[MESSAGES_CONTROL]
enable=po-pretty-format
2 changes: 2 additions & 0 deletions .oca_hooks.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[MESSAGES_CONTROL]
disable=xml-oe-structure-missing-id,po-pretty-format
Loading
Loading