Pas de réservation possible sur ensemble produit depuis portail

Bonjour,

Il n’est plus possible de réserver un ensemble produit depuis le front mais on peut encore le faire depuis le back.

J’ai crée sur la démo un ensemble produit :

Mais quand je veux faire une réservation j’ai une erreur de permissions:

Voici les logs que j’avais sur ma test si cela peut aider:

Traceback (most recent call last):
09:45:41 web.1 | File « apps/frappe/frappe/app.py », line 114, in application
09:45:41 web.1 | response = frappe.api.handle(request)
09:45:41 web.1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
09:45:41 web.1 | File « apps/frappe/frappe/api/init.py », line 49, in handle
09:45:41 web.1 | data = endpoint(**arguments)
09:45:41 web.1 | ^^^^^^^^^^^^^^^^^^^^^
09:45:41 web.1 | File « apps/frappe/frappe/api/v1.py », line 36, in handle_rpc_call
09:45:41 web.1 | return frappe.handler.handle()
09:45:41 web.1 | ^^^^^^^^^^^^^^^^^^^^^^^
09:45:41 web.1 | File « apps/frappe/frappe/handler.py », line 49, in handle
09:45:41 web.1 | data = execute_cmd(cmd)
09:45:41 web.1 | ^^^^^^^^^^^^^^^^
09:45:41 web.1 | File « apps/frappe/frappe/handler.py », line 85, in execute_cmd
09:45:41 web.1 | return frappe.call(method, **frappe.form_dict)
09:45:41 web.1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
09:45:41 web.1 | File « apps/frappe/frappe/init.py », line 1761, in call
09:45:41 web.1 | return fn(*args, **newargs)
09:45:41 web.1 | ^^^^^^^^^^^^^^^^^^^^
09:45:41 web.1 | File « apps/frappe/frappe/utils/typing_validations.py », line 30, in wrapper
09:45:41 web.1 | return func(*args, **kwargs)
09:45:41 web.1 | ^^^^^^^^^^^^^^^^^^^^^
09:45:41 web.1 | File « apps/bookings/bookings/ui/api_handlers/book.py », line 85, in book_new_slot
09:45:41 web.1 | doc.insert(ignore_permissions=True)
09:45:41 web.1 | File « apps/frappe/frappe/model/document.py », line 320, in insert
09:45:41 web.1 | self.run_post_save_methods()
09:45:41 web.1 | File « apps/frappe/frappe/model/document.py », line 1201, in run_post_save_methods
09:45:41 web.1 | self.run_method(« on_update »)
09:45:41 web.1 | File « apps/frappe/frappe/model/document.py », line 1019, in run_method
09:45:41 web.1 | out = Document.hook(fn)(self, *args, **kwargs)
09:45:41 web.1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
09:45:41 web.1 | File « apps/frappe/frappe/model/document.py », line 1412, in composer
09:45:41 web.1 | return composed(self, method, *args, **kwargs)
09:45:41 web.1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
09:45:41 web.1 | File « apps/frappe/frappe/model/document.py », line 1394, in runner
09:45:41 web.1 | add_to_return_value(self, fn(self, *args, **kwargs))
09:45:41 web.1 | ^^^^^^^^^^^^^^^^^^^^^^^^^
09:45:41 web.1 | File « apps/frappe/frappe/model/document.py », line 1016, in fn
09:45:41 web.1 | return method_object(*args, **kwargs)
09:45:41 web.1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
09:45:41 web.1 | File « apps/erpnext/erpnext/venue/doctype/item_booking/item_booking.py », line 411, in on_update
09:45:41 web.1 | self.synchronize_child_bookings()
09:45:41 web.1 | File « apps/erpnext/erpnext/venue/doctype/item_booking/item_booking.py », line 440, in synchronize_ch
09:45:41 web.1 | update_child(item.item_code)
09:45:41 web.1 | File « apps/erpnext/erpnext/venue/doctype/item_booking/item_booking.py », line 427, in update_child
09:45:41 web.1 | child.save()
09:45:41 web.1 | File « apps/frappe/frappe/model/document.py », line 343, in save
09:45:41 web.1 | return self._save(*args, **kwargs)
09:45:41 web.1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
09:45:41 web.1 | File « apps/frappe/frappe/model/document.py », line 365, in _save
09:45:41 web.1 | return self.insert()
09:45:41 web.1 | ^^^^^^^^^^^^^
09:45:41 web.1 | File « apps/frappe/frappe/model/document.py », line 286, in insert
09:45:41 web.1 | self.check_permission(« create »)
09:45:41 web.1 | File « apps/frappe/frappe/model/document.py », line 220, in check_permission
09:45:41 web.1 | self.raise_no_permission_to(permtype)
09:45:41 web.1 | File « apps/frappe/frappe/model/document.py », line 243, in raise_no_permission_to
09:45:41 web.1 | raise frappe.PermissionError

Merci et bonne journée,

Nathalie

Bonjour Nathalie,

Pour les bugs, pouvez-vous créer un ticket sur Gitlab s’il vous plait ?

Ca ressemble à un problème d’autorisations, nous allons regarder.

Merci

Bonjour,

C’est fait Pas de réservation possible sur ensemble produit depuis portail (#627) · Issues · Dokos / Dokos · GitLab

1 « J'aime »

Merci @nath_univ ,

On a publié un correctif hier soir:

Bonne journée !