Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

I have a server action that performs some operation based on the value of the current record context, but odoo forbids calling a server action on a record when write permission is not accorded.

I'm questioning why is it necessary to check for write permission before launching the server action and how can I work around this.

I can inherit the model and override the method but I want to know if there is another solution.

 This is the link to the code that checks for the permission is located in the run method of IrActionsServer model inside the ir_actions file


Thanks,

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
paź 23
5261
1
lis 23
2737
3
sie 25
2307
1
maj 25
2538
1
kwi 25
3510