تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
لقد تم إغلاق هذا السؤال والسبب: لا علاقة له أو قديم
بواسطة Yanael Feuillet Garcia في 08 أبريل, 2024 08:45:49
689 أدوات العرض

Hello,


I'm currently working on Odoo v16 SaaS Studio reports (tested on Runbot). My goal is to make certain fields visible using the "Visible if" function of the Studio module.


My condition for invisibility is based on tags/labels, such as tag IDs of sales orders.


The error occurs only if multiple tags are selected and you try to apply an invisibility condition on one of them (In the XML view).


Here's the modification you should have in your XML view after applying the condition in Studio:


```xml

 

    your_tag_ids == 8

 

```


Here's a typical example of the error you might encounter:


```

ValueError: Expected singleton: crm.tag(1, 8)

Template: studio_customization.studio_report_docume_ac48d7d3-a5b4-4b14-95e2-970f66b1f11e_document

Path: /t/div/table/thead/tr/th[3]

Node:

doc.x_studio_etiquette_sales.id == 2"/>

```


How in my XML can I interpret the different tags?


I haven't found any solutions other than "Resorting to development, which is not possible because we are on SaaS and intend to stay that way..."


Thank you.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
سبتمبر 24
1314
0
أبريل 24
1251
0
أبريل 24
877
0
أبريل 24
486
2
مارس 23
2085