Reputation: 137
i have a custom field in purchase order (order_line), when i click on the confirm button that that field should pass to the receipt in stock along with all product information. how can i achieve this, like in sales we have _prepare_procurement_values method. so here which method is available?
def _prepare_account_move_line(self, move):
res = super(InheritPurchaseOrder, self)._prepare_account_move_line(move)
#mycode
return res
i have tried this but got no success.
Upvotes: 3
Views: 541
Reputation: 2444
milan vala
Use this method _prepare_stock_moves
to pass the value from order line to stock.move
.
Thanks
Upvotes: 5