My code:
######------------------------------------------------------------------------------#########################
class DataField(models.Model)
_name = 'data.field'
cycle_start_1 = fields.Integer("Cycle Start 1" ,default=0)
cycle_end_1 = fields.Integer("Cycle End 1")
cycle_start_2 = fields.Integer("Cycle Start 2", related='cycle_end_1')
cycle_end_2 = fields.Integer("Cycle End 2")
cycle_start_3 = fields.Integer("Cycle Start 3", related='cycle_end_2')
cycle_end_3 = fields.Integer("Cycle End 3")
######------------------------------------------------------------------------------#########################
Now, when I save my 1st form and go to create 2nd form, in that form the value of the field 'cycle_start_1' should be equal to the last saved field 'cycle_end_3' value.
How can I get the previously saved value into my new form?
Thanks in advance,
Kind regards,
Arpit Thakar