This question has been flagged

Hi,

When adding order lines, when chosing the product, we can click on "Search more" and we chose the product in the list of product.

For some reasons, i would like to chose the product in the supplier pricelist. For that i added a custom field to sale.order.line, linked to supplierinfo.product and in the order lines of the view sale.order.form. I can now chose the product with the vendor price list.

When chosen, I need the product to be copied to the base field product of the order line so everything is linked for the normal process (order validation, delivery, invoice, etc). I also need the price to be copied from the supplier vendor list, and not the lst_price of the product. 

How can i do that ? I could not find which method i need to inherit to do it, and with what kind of code can do that.

Thank for your help

Matz

Avatar
Discard