Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2621 Zobrazení

I am trying to enrich the event registration form (Attendee) with the partner_id from res.partner using a lookup over the email provided in the event registration and the one saved in res.partner.
To do this I am setting up an automated action which looks like this:

Model: Event Registration

Action: Update record

Trigger: On Creation

Field: Booked by (event.registration)

Evaluation Type: Python expression

Value: if event\.registration\.email\ ==\ res.partner.email:
record.res.partner.partner_id

Unfortunately it doesn't work properly and as soon as I activate it, the event registration over the website doesn't work anymore and gives an Error 500.
Maybe it is an easy one to solve.

Every help is highly appreciated.
Thanks
Nick

Avatar
Zrušit
Nejlepší odpověď

you can get more info on the error if you do the automated action in a v14 database. Open runbot.odoo.com find a v14 database and setup your code. Then the 500 error will popup but with more information on what is wrong.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
lis 23
2082
2
pro 23
5654
1
lis 22
2563
2
led 22
5760
1
čvc 20
3519