Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ

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.model

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.

 



 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 5 21
6377
1
thg 3 18
8000
1
thg 8 25
529
1
thg 7 25
412
1
thg 2 25
1546