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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
관련 게시물 | 답글 | 화면 | 활동 | |
---|---|---|---|---|
|
1
11월 24
|
1624 | ||
|
1
4월 24
|
2022 | ||
|
3
6월 23
|
2442 | ||
|
1
9월 21
|
9398 | ||
|
1
1월 24
|
17010 |