Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
2227 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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​

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
nov. 25
2433
1
apr. 24
3179
3
iun. 23
3115
1
sept. 21
10154
1
ian. 24
17748