hi dear odooers,
Im using Odoo studio to customize a sale order report, i want to hide all order lines where product name="test" i used the invisible feature with this condition: [["doc.order_line.product_id.name","!=","test"]]
and i got this error msg:
Traceback (most recent call last):
File "/home/odoo/src/odoo/14.0/odoo/addons/base/models/qweb.py", line 331, in _compiled_fn
return compiled(self, append, new, options, log)
File "", line 1, in template_sale_report_saleorder_document_8628
File "", line 2, in body_call_content_8626
File "", line 1, in foreach_8601
File "/home/odoo/src/odoo/14.0/odoo/fields.py", line 963, in __get__
record.ensure_one()
File "/home/odoo/src/odoo/14.0/odoo/models.py", line 4987, in ensure_one
raise ValueError("Expected singleton: %s" % self)
ValueError: Expected singleton: product.product(63, 68)
Error to render compiling AST
ValueError: Expected singleton: product.product(63, 68)
Template: sale.report_saleorder_document
Path: /t/t/div/table/tbody/t[2]/tr/t[1]/td[1]/span
Node: doc.order_line.product_id.name != "test""/>
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Buchhaltung
- Lager
- PoS
- Project
- MRP
Diese Frage wurde gekennzeichnet
1746
Ansichten
Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
Registrieren