I wish to know how to add values automatically from one class to another.
and if I change the value automatically change in another
for example I have a class limit
class DiningRoomLimit(models.Model):
_name = 'dining.room.limit'
_order = 'sequence'
limit = fields.Monetary(string='Limite de Credito', required=True)
y otra descuento
class DiningRoomDiscount(models.Model):
_name = 'dining.room.discount'
prueba = fields.Monetary(string='Base imponible', )
and I want that when entering a value in limit, I automatically update the test value that is in another class