A custom model e.g. CALC generates a new product based on size-measurements and production-costs.
There are three fields; calc.name, calc.quantity and calcprice that i need when i select a product from sales Quotation or sales.order.
In other words: I want to be able to select the custom.product, generated by custom.model:Calc when creating a new quotation. For now i can only select product-id from product.product.
1. Is it possible to create / fill a new product into product.template from a custom model object?
Calc.calc_id to product.template .product_id
Calc.name to product.template.name
Calc.price to product.template.list_price
Because of complex calculations I developed a custom model which results in a product. When making a new quote in: Sales / Quotes, I can add order-lines and select div. products. I want to be able to select the products i've made in the custom model/calculations.
Do i have to modify the default product object or do i have to use m2m relations? Not sure how to approach this. Any help would be appreciated.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 12/2/15, 5:17 AM|
|Seen: 491 times|
|Last updated: 12/4/15, 6:02 AM|