mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
15 lines
436 B
Python
15 lines
436 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from odoo import models
|
|
|
|
|
|
class ProcurementOrder(models.Model):
|
|
_inherit = "procurement.order"
|
|
|
|
def _get_orderpoint_domain(self, company_id=False):
|
|
domain = super(ProcurementOrder, self)._get_orderpoint_domain(company_id)
|
|
warehouse_id = self.env.context.get('warehouse_id', None)
|
|
if warehouse_id:
|
|
domain += [('warehouse_id', '=', warehouse_id)]
|
|
return domain
|