mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
15 lines
458 B
Python
15 lines
458 B
Python
from odoo import api, fields, models
|
|
|
|
|
|
class StockSchedulerCompute(models.TransientModel):
|
|
_inherit = 'stock.scheduler.compute'
|
|
|
|
warehouse_id = fields.Many2one('stock.warehouse', string='Warehouse')
|
|
|
|
@api.multi
|
|
def procure_calculation(self):
|
|
self.ensure_one()
|
|
if self.warehouse_id:
|
|
self = self.with_context(warehouse_id=self.warehouse_id.id)
|
|
return super(StockSchedulerCompute, self).procure_calculation()
|