Hello everyone,
I have two models product_template and sale_order_line.
In the product_template template I have some fields that are characteristic
of this product this field calls product characteristic
class productCharacteristcs (models.Model):
_inherit = 'product.template'
caractheristic_product = fields.Many2many (comodel_name = 'caracteristic.product.')
In my model sale_order_line there is this same field, but now it is
related to another table, which may or may not be different for each sale.
saleProductCharacteristcs (models.Model):
_inherit = 'sale.order.line
sale_caractheristic_product = fields.Many2many (comodel_name = 'sale.caracteristic.product.')
I would like the event onchange to automatically populate sale.order.line but
based on the product information and change as i like
I found information like this:
self.update ({
'attendance_line': [(0, 0, {values})],
})
But I tried here and unfortunately it was unsuccessful