Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
2402 Tampilan

why this is not valid in xml?

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

Avatar
Buang
Penulis

it works...

Thank you so much

Jawaban Terbai

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
Buang