Files
enterprise-addons/sale_management_renting/models/sale_order_template_line.py
T

14 lines
449 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, models
from odoo.fields import Domain
class SaleOrderTemplateLine(models.Model):
_inherit = 'sale.order.template.line'
@api.model
def _product_id_domain(self):
""" Override to allow users to add a rental product to a quotation template line """
return Domain.OR([super()._product_id_domain(), [('rent_ok', '=', True)]])