Ir al contenido
Menú
Se marcó esta pregunta
1300 Vistas

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
0
mar 21
3537
1
jul 25
2353
2
jul 25
7842
2
jul 25
4236
2
jul 25
4010