İçereği Atla
Menü
Bu soru işaretlendi
1363 Görünümler

hello community, 

Is there a way to override the function that creates a new line in a one2many. It is trigered by the following code:

<create name="add_product_control" string="Add a product"/>  

I did a search of the full code for the string: "add_product_control" but I couldn't find it"

I want to set certain values on the sale order or decide if it is allowed to create a new order or not. 

I tried to override the create function in the sale.order.line, but this is only called when the "save" button is pressed, by then multiple lines can already be added in the view. 

I might be able to set some values by using default values, but still it is missing some functionalities that I need. 

Thank you for your answers.

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Mar 21
3680
3
Eyl 25
2726
0
Ağu 25
328
1
Ağu 25
2356
2
Tem 25
8149