Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
625 Vizualizări

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

Imagine profil
Abandonează

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 Răspunsuri Vizualizări Activitate
2
iul. 25
1957
1
ian. 25
2065
2
oct. 24
2810
1
mar. 24
1926
0
oct. 24
2049