[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:
Arnold Moyaux
2020-04-22 07:51:50 +00:00
parent e69c2c7af0
commit b6fe6de9e9
2 changed files with 1 additions and 3 deletions
+1
View File
@@ -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):
-3
View File
@@ -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)]