mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
13 lines
414 B
Python
13 lines
414 B
Python
from odoo import models
|
|
|
|
|
|
class ProcurementGroup(models.Model):
|
|
_inherit = 'procurement.group'
|
|
|
|
def _get_orderpoint_domain(self, company_id=False):
|
|
domain = super(ProcurementGroup, self)._get_orderpoint_domain(company_id)
|
|
warehouse_id = self.env.context.get('warehouse_id', None)
|
|
if warehouse_id:
|
|
domain.append(('warehouse_id', '=', warehouse_id))
|
|
return domain
|