blob: 6feab37901a116878af58ae7392d605143f16396 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, models
class ReportStockRule(models.AbstractModel):
_inherit = 'report.stock.report_stock_rule'
@api.model
def _get_routes(self, data):
res = super(ReportStockRule, self)._get_routes(data)
if data.get('so_route_ids'):
res = self.env['stock.location.route'].browse(data['so_route_ids']) | res
return res
|