Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
2423 Ansichten

why this is not valid in xml?

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

Avatar
Verwerfen
Autor

it works...

Thank you so much

Beste Antwort

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
Verwerfen