Ir al contenido
Menú
Se marcó esta pregunta
465 Vistas

Hello everyone,


i'm using the point of sale in odoo 17 community edition for managing a restaurant, i noticed many orders cancelled with 0 in the price and the order line is empty. I want to restrict waiters from cancelling order and only the manager can do this. i tried to do this with the group rules and by disabling the delete order or order line after sending to kitchen but still the same problem. how can i defintely restrict this option to my employees

Avatar
Descartar

Unless your staff is actually deleting order lines or orders, preventing deletion (or 'unlink') using access rights wont do anything. The cancel action is, from the ORM's point of view, just another update (or 'write') operation. You will have to catch the cancellation of orders in the actual method that is providing that functionality, or, modify the 'write' behavior to catch these specific updates.
Alternatively - but that is applicable to Enterprise setups only - one could try to work it out using approval workflows as outlined here: https://www.odoo.com/slides/slide/10494

Publicaciones relacionadas Respuestas Vistas Actividad
2
jul 25
1801
1
ene 25
1954
2
oct 24
2653
1
mar 24
1818
0
oct 24
1934