Skip to content
Open
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions project_task_stock/models/stock_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ def _prepare_analytic_line_from_task(self):
# Prevent incoherence when hr_timesheet addon is installed.
if "project_id" in analytic_line_fields:
vals["project_id"] = False
if "task_id" in analytic_line_fields:
vals["task_id"] = task.id
# distributions
if task.stock_analytic_distribution:
new_amount = 0
Expand Down
Loading