mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[IMP] procurement_auto_create_group
Regroup the creation of the procurement group in a method.
This commit is contained in:
committed by
Sébastien Alix
parent
91f8edf75c
commit
44592fefa9
@@ -19,7 +19,5 @@ class ProcurementGroup(models.Model):
|
||||
and rule.auto_create_group
|
||||
and values.get("date_planned")
|
||||
):
|
||||
group_data = rule._prepare_auto_procurement_group_data()
|
||||
group = self.env["procurement.group"].create(group_data)
|
||||
values["group_id"] = group
|
||||
values["group_id"] = rule._get_auto_procurement_group(product_id)
|
||||
return rule
|
||||
|
||||
Reference in New Issue
Block a user