hi.
im looking for a method that runs when a form opens and can be overriden in odoo 16 to run custom code before the form opens.
i want to run custom code when crm pipeline opens.
hope someone can help
hi.
im looking for a method that runs when a form opens and can be overriden in odoo 16 to run custom code before the form opens.
i want to run custom code when crm pipeline opens.
hope someone can help
Hi,
You can use the '_get_view' method in the crm_lead model.
@api.model
def _get_view(self, view_id=None, view_type='form', **options):
arch, view = super()._get_view(view_id, view_type, **options)
custom code here
return arch, view
Hope it helps
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อ| Related Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
|---|---|---|---|---|
|
Form view aligned to the left side
แก้ไขแล้ว
|
1
พ.ย. 25
|
3967 | ||
|
1
เม.ย. 24
|
4743 | |||
|
3
มิ.ย. 23
|
4415 | |||
|
1
ก.ย. 21
|
11802 | |||
|
1
ม.ค. 24
|
19352 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.