sale_product_matrix/models/sale_order_line.py

10 lines
300 B
Python
Raw Normal View History

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class SaleOrderLine(models.Model):
_inherit = 'sale.order.line'
product_add_mode = fields.Selection(related='product_template_id.product_add_mode', depends=['product_template_id'])