[IMP] stock: orderpoint order by location
Order by location in order to have a better overview of missing product by location Task: 2161378
This commit is contained in:
@@ -22,6 +22,7 @@ class StockWarehouseOrderpoint(models.Model):
|
||||
_name = "stock.warehouse.orderpoint"
|
||||
_description = "Minimum Inventory Rule"
|
||||
_check_company_auto = True
|
||||
_order = "location_id,company_id,id"
|
||||
|
||||
@api.model
|
||||
def default_get(self, fields):
|
||||
|
||||
@@ -541,9 +541,6 @@ class ProcurementGroup(models.Model):
|
||||
return {}
|
||||
|
||||
@api.model
|
||||
def _procurement_from_orderpoint_get_order(self):
|
||||
return 'location_id,company_id'
|
||||
|
||||
def _get_orderpoint_domain(self, company_id=False):
|
||||
domain = [('company_id', '=', company_id)] if company_id else []
|
||||
domain += [('product_id.active', '=', True)]
|
||||
|
||||
Reference in New Issue
Block a user