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

Hello,

i want to create a new tree in product.template wich will contain a field with type many2one from hr.employee

so when i just put the field into product.template.common.form it's work without any probleme

but when put the field in the new tree it seems work but when i want to make a test it doesnt work and it cant save and show this error message : 

The operation could not be completed, probably as a result of:

- Deletion: you try to delete a record to which other records refer

- Creation / modification: a required field is not correctly filled

i have joined 4 pictures of what i have already done : 


Ảnh đại diện
Huỷ bỏ

Based on this informations it is difficult to help you. Please post the code you have created for the new tree view. I recommend to create a module for a complete new tree view.

Câu trả lời hay nhất

ok you want to have a tree view in the form view. But for this you need a one2many or many2many field. I did think you want to have an new general tree view.

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

This is the code added in product.template.common.form

 


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Avez vous trouver la solution?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 5 22
3637
1
thg 8 21
6699
3
thg 12 19
5826
0
thg 4 19
3693
2
thg 2 18
5969