mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[FIX] stock_cycle_count: use company of the location when creating cycle_count
This commit is contained in:
committed by
ArnauCForgeFlow
parent
ecdeba21c7
commit
490c19abe7
@@ -160,6 +160,7 @@ class StockCycleCountRule(models.Model):
|
||||
"date": fields.Datetime.from_string(date),
|
||||
"location": location,
|
||||
"rule_type": self,
|
||||
"company_id": location.company_id,
|
||||
}
|
||||
return cycle_count
|
||||
|
||||
|
||||
@@ -74,6 +74,7 @@ class StockWarehouse(models.Model):
|
||||
"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):
|
||||
|
||||
Reference in New Issue
Block a user