Hello,
I have 2 models which is shown below with fields.
Class ProductHistory(models.Model):
_name = 'product.history'
product_history_ids = fields.One2many('product.history.details', 'history_id', string='Product History', track_visibility='onchange')
Class ProductHistoryDetails(models.Model):
_name = 'product.history.details'
history_id = fields.Many2one('product.history', 'History', track_visibility='onchange')
product_id = fields.Many2one('product.product', 'Product', track_visibility='onchange')
price = fields.Float('Price', track_visibility='onchange')
Now, If i am changing price in the one2many fields, create log for that.
How to do it ?
Any suggestion will be Appreciated.
Thanks,
Did you get the answer?
No. I didn't get any answer