Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
F
fumoc_sale
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Analyse
Données d'analyse des chaînes de valeur
Analyse des contributeurs
Données d'analyse du dépôt
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté GitLab
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Le Filament
Fumaison Occitane
fumoc_sale
Validations
d459e7dd
Valider
d459e7dd
rédigé
Il y a 2 ans
par
Rémi - Le Filament
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
[ADD] behaviour depending on invoicing_by_email
parent
c64243f3
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
4
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
4 fichiers modifiés
.eslintrc.yml
+9
-2
9 ajouts, 2 suppressions
.eslintrc.yml
.pre-commit-config.yaml
+13
-11
13 ajouts, 11 suppressions
.pre-commit-config.yaml
.pylintrc
+0
-1
0 ajout, 1 suppression
.pylintrc
models/account_move.py
+7
-0
7 ajouts, 0 suppression
models/account_move.py
avec
29 ajouts
et
14 suppressions
.eslintrc.yml
+
9
−
2
Voir le fichier @
d459e7dd
env
:
env
:
browser
:
true
browser
:
true
es6
:
true
# See https://github.com/OCA/odoo-community.org/issues/37#issuecomment-470686449
# See https://github.com/OCA/odoo-community.org/issues/37#issuecomment-470686449
parserOptions
:
parserOptions
:
ecmaVersion
:
2017
ecmaVersion
:
2019
overrides
:
-
files
:
-
"
**/*.esm.js"
parserOptions
:
sourceType
:
module
# Globals available in Odoo that shouldn't produce errorings
# Globals available in Odoo that shouldn't produce errorings
globals
:
globals
:
...
@@ -14,7 +21,7 @@ globals:
...
@@ -14,7 +21,7 @@ globals:
moment
:
readonly
moment
:
readonly
odoo
:
readonly
odoo
:
readonly
openerp
:
readonly
openerp
:
readonly
Promise
:
readonly
owl
:
readonly
# Styling is handled by Prettier, so we only need to enable AST rules;
# 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
# see https://github.com/OCA/maintainer-quality-tools/pull/618#issuecomment-558576890
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
.pre-commit-config.yaml
+
13
−
11
Voir le fichier @
d459e7dd
...
@@ -5,7 +5,7 @@ exclude: |
...
@@ -5,7 +5,7 @@ exclude: |
# Files and folders generated by bots, to avoid loops
# Files and folders generated by bots, to avoid loops
^setup/|/static/description/index\.html$|
^setup/|/static/description/index\.html$|
# We don't want to mess with tool-generated files
# We don't want to mess with tool-generated files
.svg$|/tests/([^/]+/)?cassettes/|
.svg$|/tests/([^/]+/)?cassettes/|
^.copier-answers.yml$|^.github/|
# Library files can have extraneous formatting (even minimized)
# Library files can have extraneous formatting (even minimized)
/static/(src/)?lib/|
/static/(src/)?lib/|
# Repos using Sphinx to generate docs don't need prettying
# Repos using Sphinx to generate docs don't need prettying
...
@@ -26,10 +26,12 @@ repos:
...
@@ -26,10 +26,12 @@ repos:
language
:
fail
language
:
fail
files
:
"
\\
.rej$"
files
:
"
\\
.rej$"
-
repo
:
https://github.com/oca/maintainer-tools
-
repo
:
https://github.com/oca/maintainer-tools
rev
:
ab1d7f6
rev
:
7d8a9f9ad73db0976fb03cbee43d953bc29b89e9
hooks
:
hooks
:
# update the NOT INSTALLABLE ADDONS section above
# update the NOT INSTALLABLE ADDONS section above
-
id
:
oca-update-pre-commit-excluded-addons
-
id
:
oca-update-pre-commit-excluded-addons
-
id
:
oca-fix-manifest-website
args
:
[
"
https://le-filament.com"
]
-
repo
:
https://github.com/myint/autoflake
-
repo
:
https://github.com/myint/autoflake
rev
:
v1.4
rev
:
v1.4
hooks
:
hooks
:
...
@@ -42,11 +44,11 @@ repos:
...
@@ -42,11 +44,11 @@ repos:
-
--remove-duplicate-keys
-
--remove-duplicate-keys
-
--remove-unused-variables
-
--remove-unused-variables
-
repo
:
https://github.com/psf/black
-
repo
:
https://github.com/psf/black
rev
:
2
0.8b1
rev
:
2
2.3.0
hooks
:
hooks
:
-
id
:
black
-
id
:
black
-
repo
:
https://github.com/pre-commit/mirrors-prettier
-
repo
:
https://github.com/pre-commit/mirrors-prettier
rev
:
v2.
1
.2
rev
:
v2.
6
.2
hooks
:
hooks
:
-
id
:
prettier
-
id
:
prettier
name
:
prettier (with plugin-xml)
name
:
prettier (with plugin-xml)
...
@@ -57,7 +59,7 @@ repos:
...
@@ -57,7 +59,7 @@ repos:
-
--plugin=@prettier/plugin-xml
-
--plugin=@prettier/plugin-xml
files
:
\.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
files
:
\.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
-
repo
:
https://github.com/pre-commit/mirrors-eslint
-
repo
:
https://github.com/pre-commit/mirrors-eslint
rev
:
v
7.
8.1
rev
:
v8.1
5.0
hooks
:
hooks
:
-
id
:
eslint
-
id
:
eslint
verbose
:
true
verbose
:
true
...
@@ -65,7 +67,7 @@ repos:
...
@@ -65,7 +67,7 @@ repos:
-
--color
-
--color
-
--fix
-
--fix
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
rev
:
v
3
.2.0
rev
:
v
4
.2.0
hooks
:
hooks
:
-
id
:
trailing-whitespace
-
id
:
trailing-whitespace
# exclude autogenerated files
# exclude autogenerated files
...
@@ -87,12 +89,12 @@ repos:
...
@@ -87,12 +89,12 @@ repos:
-
id
:
mixed-line-ending
-
id
:
mixed-line-ending
args
:
[
"
--fix=lf"
]
args
:
[
"
--fix=lf"
]
-
repo
:
https://github.com/asottile/pyupgrade
-
repo
:
https://github.com/asottile/pyupgrade
rev
:
v2.
7.2
rev
:
v2.
32.1
hooks
:
hooks
:
-
id
:
pyupgrade
-
id
:
pyupgrade
args
:
[
"
--keep-percent-format"
]
args
:
[
"
--keep-percent-format"
]
-
repo
:
https://github.com/PyCQA/isort
-
repo
:
https://github.com/PyCQA/isort
rev
:
5.
5
.1
rev
:
5.
10
.1
hooks
:
hooks
:
-
id
:
isort
-
id
:
isort
name
:
isort except __init__.py
name
:
isort except __init__.py
...
@@ -100,13 +102,13 @@ repos:
...
@@ -100,13 +102,13 @@ repos:
-
--settings=.
-
--settings=.
exclude
:
/__init__\.py$
exclude
:
/__init__\.py$
-
repo
:
https://gitlab.com/PyCQA/flake8
-
repo
:
https://gitlab.com/PyCQA/flake8
rev
:
3.
8.3
rev
:
3.
9.2
hooks
:
hooks
:
-
id
:
flake8
-
id
:
flake8
name
:
flake8
name
:
flake8
additional_dependencies
:
[
"
flake8-bugbear==20.1.4"
]
additional_dependencies
:
[
"
flake8-bugbear==20.1.4"
]
-
repo
:
https://github.com/PyCQA/pylint
-
repo
:
https://github.com/PyCQA/pylint
rev
:
pylint-2.5.3
rev
:
v2.11.1
hooks
:
hooks
:
-
id
:
pylint
-
id
:
pylint
name
:
pylint with optional checks
name
:
pylint with optional checks
...
@@ -115,7 +117,7 @@ repos:
...
@@ -115,7 +117,7 @@ repos:
-
--exit-zero
-
--exit-zero
verbose
:
true
verbose
:
true
additional_dependencies
:
&pylint_deps
additional_dependencies
:
&pylint_deps
-
pylint-odoo==
3.
5.0
-
pylint-odoo==5.0
.5
-
id
:
pylint
-
id
:
pylint
name
:
pylint with mandatory checks
name
:
pylint with mandatory checks
args
:
args
:
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
.pylintrc
+
0
−
1
Voir le fichier @
d459e7dd
...
@@ -73,7 +73,6 @@ enable=anomalous-backslash-in-string,
...
@@ -73,7 +73,6 @@ enable=anomalous-backslash-in-string,
invalid-commit,
invalid-commit,
missing-manifest-dependency,
missing-manifest-dependency,
missing-newline-extrafiles,
missing-newline-extrafiles,
# missing-readme,
no-utf8-coding-comment,
no-utf8-coding-comment,
odoo-addons-relative-import,
odoo-addons-relative-import,
old-api7-method-defined,
old-api7-method-defined,
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
models/account_move.py
+
7
−
0
Voir le fichier @
d459e7dd
...
@@ -16,3 +16,10 @@ class FumocAccountMove(models.Model):
...
@@ -16,3 +16,10 @@ class FumocAccountMove(models.Model):
lot_id
=
self
.
env
[
"
stock.production.lot
"
].
browse
(
lot_values
.
get
(
"
lot_id
"
))
lot_id
=
self
.
env
[
"
stock.production.lot
"
].
browse
(
lot_values
.
get
(
"
lot_id
"
))
lot_values
[
"
expiration_date
"
]
=
lot_id
.
expiration_date
lot_values
[
"
expiration_date
"
]
=
lot_id
.
expiration_date
return
result
return
result
def
action_invoice_sent
(
self
):
result
=
super
(
FumocAccountMove
,
self
).
action_invoice_sent
()
result
[
"
context
"
][
"
default_is_email
"
]
=
self
.
commercial_partner_id
.
invoicing_by_email
return
result
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter