mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
IMP stock_warehouse_procurement also filter 'exception' stock moves by warehouse
Note that there are 'to assign' moves that do not use a method to get the domain, this is a known limitation.
This commit is contained in:
@@ -10,3 +10,10 @@ class ProcurementGroup(models.Model):
|
|||||||
if warehouse_id:
|
if warehouse_id:
|
||||||
domain.append(('warehouse_id', '=', warehouse_id))
|
domain.append(('warehouse_id', '=', warehouse_id))
|
||||||
return domain
|
return domain
|
||||||
|
|
||||||
|
def _get_exceptions_domain(self):
|
||||||
|
domain = super(ProcurementGroup, self)._get_exceptions_domain()
|
||||||
|
warehouse_id = self.env.context.get('warehouse_id')
|
||||||
|
if warehouse_id:
|
||||||
|
domain.append(('warehouse_id', '=', warehouse_id))
|
||||||
|
return domain
|
||||||
|
|||||||
Reference in New Issue
Block a user