Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tryton
Tryton
Commits
086626927118
Commit
08662692
authored
Jan 09, 2023
by
Cédric Krier
Browse files
Rename check_fifo_quantity_out constraint to check_fifo_quantity
Closes
#1781
parent
49e97d3ca0b5
Pipeline
#61563
passed with stages
in 11 minutes and 17 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
modules/product_cost_fifo/move.py
View file @
08662692
...
...
@@ -29,8 +29,8 @@
t
=
cls
.
__table__
()
cls
.
_sql_constraints
+=
[
(
'check_fifo_quantity
_out
'
,
(
'check_fifo_quantity'
,
Check
(
t
,
t
.
quantity
>=
t
.
fifo_quantity
),
'product_cost_fifo.msg_move_fifo_quantity_greater'
),
]
...
...
@@ -33,7 +33,16 @@
Check
(
t
,
t
.
quantity
>=
t
.
fifo_quantity
),
'product_cost_fifo.msg_move_fifo_quantity_greater'
),
]
@
classmethod
def
__register__
(
cls
,
module
):
table_h
=
cls
.
__table_handler__
(
module
)
super
().
__register__
(
module
)
# Migration from 6.6: rename check_fifo_quantity_out to
# check_fifo_quantity
table_h
.
drop_constraint
(
'check_fifo_quantity_out'
)
@
staticmethod
def
default_fifo_quantity
():
return
0.0
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment