Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4 ตอบกลับ
4093 มุมมอง

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 : 


อวตาร
ละทิ้ง

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.

คำตอบที่ดีที่สุด

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.

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

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

 


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Avez vous trouver la solution?

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
พ.ค. 22
3656
1
ส.ค. 21
6712
Acces field of other product.template แก้ไขแล้ว
3
ธ.ค. 19
5832
0
เม.ย. 19
3703
2
ก.พ. 18
5984