تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال

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.

 



 

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
مايو 21
6353
1
مارس 18
7969
1
أغسطس 25
493
1
يوليو 25
392
1
فبراير 25
1506