تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
868 أدوات العرض

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,

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
أكتوبر 23
5266
1
نوفمبر 23
2740
3
أغسطس 25
2311
1
مايو 25
2541
1
أبريل 25
3513