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

Hello,

I'm trying to create a custom FormView using the js_class method, but it does not seem to work when the Form is opened from a one2many field.
I think the FormViewDialog doesn't take into consideration the js_class attribute at all, see open function  here: 
https://github.com/odoo/odoo/blob/6b1a676cdf60cb43ab58481a14caedc4e37dad10/addons/web/static/src/js/views/view_dialogs.js#L187

var FormView = view_registry.get('form'); 

It brings always the default FormView from the registry !

Is there any other solution ? Or i should create a custom one2many field and a custom FormViewDialog  and edit the open function to link it to my custom FormView ?


Thanks for your help,



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

Just came here to tell you that this still is an issue.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
เม.ย. 22
2477
2
ก.ค. 23
3132
1
เม.ย. 23
1913
1
ก.ค. 22
2485
1
ธ.ค. 21
3819