Passa al contenuto
Menu
La domanda è stata contrassegnata
1355 Visualizzazioni

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
mar 21
3668
3
set 25
2676
0
ago 25
288
1
ago 25
2289
2
lug 25
8116