Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Coopdevs OCB mirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coopdevs
Odoo
Coopdevs OCB mirror
Commits
6d9e3cbe
Commit
6d9e3cbe
authored
17 years ago
by
Cédric Krier
Browse files
Options
Downloads
Patches
Plain Diff
STOCK: add product_id in the context for product_expiry to calculate dates
bzr revid: ced-6e234782deb1810d799f4cd6f94889743508aa84
parent
b7324422
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
addons/stock/wizard/wizard_track_line.py
+1
-1
1 addition, 1 deletion
addons/stock/wizard/wizard_track_line.py
with
1 addition
and
1 deletion
addons/stock/wizard/wizard_track_line.py
+
1
−
1
View file @
6d9e3cbe
...
...
@@ -86,7 +86,7 @@ def _track_lines(self, cr, uid, data, context):
new_move
.
append
(
current_move
)
else
:
current_move
=
move
.
id
new_prodlot
=
prodlot_obj
.
create
(
cr
,
uid
,
{
'
name
'
:
sequence
,
'
ref
'
:
'
%d
'
%
idx
})
new_prodlot
=
prodlot_obj
.
create
(
cr
,
uid
,
{
'
name
'
:
sequence
,
'
ref
'
:
'
%d
'
%
idx
}
,
{
'
product_id
'
:
move
.
product_id
.
id
}
)
update_val
[
'
prodlot_id
'
]
=
new_prodlot
move_obj
.
write
(
cr
,
uid
,
[
current_move
],
update_val
)
production_ids
=
production_obj
.
search
(
cr
,
uid
,
[(
'
move_lines
'
,
'
in
'
,
[
move
.
id
])])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment