Skip to Content
Menu
This question has been flagged
457 Views

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
Discard

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

Related Posts Replies Views Activity
2
Jul 25
1792
1
Jan 25
1934
2
Oct 24
2638
1
Mar 24
1816
0
Oct 24
1930