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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
1
Trả lời
2555
Lượt xem
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.
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
1
thg 11 23
|
2010 | ||
|
2
thg 12 23
|
5554 | ||
|
1
thg 11 22
|
2473 | ||
|
2
thg 1 22
|
5646 | ||
|
1
thg 7 20
|
3442 |