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
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscrever-se| Publicações relacionadas | Respostas | Visualizações | Atividade | |
|---|---|---|---|---|
|
Form view aligned to the left side
Resolvido
|
1
nov. 25
|
3837 | ||
|
1
abr. 24
|
4703 | |||
|
3
jun. 23
|
4397 | |||
|
1
set. 21
|
11690 | |||
|
1
jan. 24
|
19256 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.