跳至内容
菜单
此问题已终结
1 回复
2644 查看

why this is not valid in xml?

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

形象
丢弃
编写者

it works...

Thank you so much

最佳答案

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



形象
丢弃