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

Dear all,

I am using Odoo 12 and I need to refresh a form view with a many2one relationship.

I need to refresh the container form view whenever user "Adds an Item..." to the related many2one field.

How can I achieve that?

Thank you in advance

Best regards


อวตาร
ละทิ้ง
ผู้เขียน

Thank you @Cybrosys.

Your help and support is always valueable.

I have tested this module already.

It did not helped me achieve what I want but I am sure it's the way I am using it.

I unable to write the correct python code for achieve what I need and perhaps you can help me once again.

As per my message, I have a "model" which have an integrated many2one field into it.

What I need to do is, refresh the form view whenever user "Adds a new item" to this many2one related field.

Using this module, I have added the following python code on the "Automated Refresh":

- Trigger condition: Based on form modification (also tried on Create and Update);

- Model: The model where user will see the many2one related field.

- On change fields trigger: env["bus.bus"].sendone("refresh",{"model":model._name})

Thank you once again

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

Do you mind sharing your solution !

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
เม.ย. 19
9969
1
มี.ค. 22
11667
3
ม.ค. 20
6839
5
ก.ย. 19
6284
0
มี.ค. 20
3396