Initial commit/port of stock_warehouse_procurement for 11.0

This commit is contained in:
Jared Kipe
2018-08-26 13:31:21 -07:00
parent 61b72bdf4c
commit e4f64b4c72
7 changed files with 65 additions and 0 deletions

View File

@@ -0,0 +1 @@
from . import procurement

View File

@@ -0,0 +1,12 @@
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