Skip to Content
Menu
This question has been flagged
1 Reply
1551 Views

hello community

i have an one2many record which contain 3 field : name and start_date and end_date  and i want to set the end_date to start_date of the next row ? how to do this ?

Avatar
Discard
Best Answer

Hello,

you can achieve this by referring the standard code in account.move.line , default_get method

for move_line_dict in move_obj.resolve_2many_commands(cr, uid, 'line_id', context.get('line_id'), context=context):


you can find the above line and follow the steps you can achieve it.


Avatar
Discard