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

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 21
3606
1
thg 7 25
2491
2
thg 7 25
7935
2
thg 7 25
4369
2
thg 7 25
4084