Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
To pytanie zostało zamknięte z powodu: zawiera obraźliwe lub złośliwe uwagi
przez Yanael Feuillet Garcia na 08.04.2024 09:04:24

Title: Trouble with "Visible if" function in Odoo Studio Reports


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.


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


 

    name_field_tag == 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 code 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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
maj 25
2466
1
kwi 25
3490
1
kwi 25
4319
1
kwi 25
1793
4
mar 25
6915