Buonasera a tutti,
ho aggiornato il mio odoo10 con la versione di oggi di nighty build. Non ho più accesso al sistema:
QWebException: (u'Sorry, you are not allowed to access this document. Please contact your system administrator if you think this is an error.\n\n(Document model: product.pricelist)', None)
Traceback (most recent call last):
File "/opt/odoo/odoo10/lib/python2.7/site-packages/odoo/addons/base/ir/ir_qweb/qweb.py", line 318, in _compiled_fn
return compiled(self, append, values, options, log)
File "<template>", line 1, in template_website_layout_31
File "<template>", line 3, in body_call_content_30
File "/opt/odoo/odoo10/lib/python2.7/site-packages/odoo/addons/website_sale/models/sale_order.py", line 371, in sale_get_order
available_pricelists = self.get_pricelist_available()
File "/opt/odoo/odoo10/lib/python2.7/site-packages/odoo/addons/website_sale/models/sale_order.py", line 273, in get_pricelist_available
website.pricelist_ids,
File "/opt/odoo/odoo_10n/lib/python2.7/site-packages/odoo/fields.py", line 927, in __get__
value = record._cache[self]
File "/opt/odoo/odoo_10n/lib/python2.7/site-packages/odoo/models.py", line 5621, in __getitem__
return value.get() if isinstance(value, SpecialValue) else value
File "/opt/odoo/odoo_10n/lib/python2.7/site-packages/odoo/fields.py", line 48, in get
raise self.exception
AccessError: (u'Sorry, you are not allowed to access this document. Please contact your system administrator if you think this is an error.\n\n(Document model: product.pricelist)', None)Error to render compiling AST
AccessError: (u'Sorry, you are not allowed to access this document. Please contact your system administrator if you think this is an error.\n\n(Document model: product.pricelist)', None)
Template: website.layout
Path: /templates/t/t/div[1]/header/div/div/div[2]/ul/t[2]
Node: <t t-set="website_sale_order" t-value="website.sale_get_order()"/>
Ho aggiornato tutti moduli del database più volte, ma non ne vuole sapere di andare.
L'unica differenza che ritengo rilevante fra la vecchia versione e l'aggiornamento è questa:
diff -r lib/python2.7/site-packages/odoo/addons/website_sale/models/sale_order.py ../odoo10/lib/python2.7/site-packages/odoo/addons/website_sale/models/sale_order.py
459c459
< elif code is not None and sale_order.pricelist_id.code and code != sale_order.pricelist_id.code:
---
Può essere questo il mio problema? Grazie mille per il supporto.