Skip to Content
Menu
This question has been flagged
1 Reply
2399 Views

why this is not valid in xml?

attrs="{'invisible': [('service_id', '=', ref('service.service_1'))]}"

Avatar
Discard
Author

it works...

Thank you so much

Best Answer

Using ref to get id is not a valid in xml. Instead  of ref, you can try below code for this purpose

attrs="{'invisible': [('service_id', '=', %(service.service_1)d)]}"

Thank You!


Karan BK

Junior Odoo Developer

Tel: +353 1 886 5684 (IE) +44 121 285 5684 (UK)  +91 124 634 5684 (IN)

Target Integration | CRM • ERP • Cloud

Website | LinkedIn | Twitter | Facebook | YouTube | Instagram



Avatar
Discard