Skip to Content
Menu
This question has been flagged

In the sale order lines, I created a new column as a checkbox. I want when checking the items to appear in the stock.move.line (Delivery) as checked. I am creating a column also inside the stock move lines and the process will go when checking these items in sales order lines they will be automatically checked inside the stock move lines. Any help please?

Avatar
Discard
Best Answer

In stock_move_line we have move_id field (many2one - stock_move) and in stock move you will get sale_line_id field

Avatar
Discard
Author

Can I get a solution to implement? or the way its implemented?

create this field in stock move line
checkbox_field = fields.Boolean(related='move_id.sale_line_id.sale_line_checkbox_field')

Author

Much Appreciated!! It worked

Related Posts Replies Views Activity
1
Feb 23
1376
0
Sep 24
121
3
Aug 24
523
0
Feb 24
263
0
Feb 24
157