Skip to content

Commit

Permalink
[FIX] stock_cycle_count: use company of the location when creating cy…
Browse files Browse the repository at this point in the history
…cle_count
  • Loading branch information
JoanSForgeFlow committed Nov 21, 2024
1 parent bbba2f8 commit 2c9ecf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions stock_cycle_count/models/stock_cycle_count_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ def _propose_cycle_count(self, date, location):
"date": fields.Datetime.from_string(date),
"location": location,
"rule_type": self,
"company_id": location.company_id,
}
return cycle_count

Expand Down
1 change: 1 addition & 0 deletions stock_cycle_count/models/stock_warehouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def _prepare_cycle_count(self, cycle_count_proposed):
"location_id": cycle_count_proposed["location"].id,
"cycle_count_rule_id": cycle_count_proposed["rule_type"].id,
"state": "draft",
"company_id": cycle_count_proposed["company_id"].id,
}

def action_compute_cycle_count_rules(self):
Expand Down

0 comments on commit 2c9ecf6

Please sign in to comment.