This question has been flagged
2 Replies
7376 Views

how i can pass value
when user press confirm button in sale order

picking is generated (stock.move)
i want to pass value from sale.order.line to stock.move while press confirm button ....


i hav custom field in sale.order.line and want to pass in stock.move custome field


how i can pass value while press confirm button in sale order form view




function use is
def action_confirm


but i can't find any dict to pass value in that function ...


i'm using Odoo 13

Avatar
Discard
Best Answer

Hi Usman

The stock.move has field sale_line_id which is linked with the related sale order line.

You can use it.

Regards


Global Creative Concepts Tech Co Ltd.

Avatar
Discard

This should be the simplest solution - you can add related fields to stock.move

Author

yes i use this solution

Best Answer

We have _get_stock_move_values() method in procurement rule object you can use this for passing values


Avatar
Discard