14 lines
505 B
Python
14 lines
505 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import models
|
|
from odoo.osv import expression
|
|
|
|
|
|
class ProductReplenish(models.TransientModel):
|
|
_inherit = 'product.replenish'
|
|
|
|
def _get_allowed_route_domain(self):
|
|
domains = super()._get_allowed_route_domain()
|
|
return expression.AND([domains, [('id', '!=', self.env.ref('mrp_subcontracting_dropshipping.route_subcontracting_dropshipping', raise_if_not_found=False).id)]])
|