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

Hello,


From CRM module, you have an option to create new Quotation from a Button, and if I check as developer, I see that is pointting to an action id=429. If I search "New Quotation" string I see a button that is calling "sale_action_quotations_new" that is inside a xml calling Quotation sales orders, but I'd like before calling this button, add some checks but I don't know how to access the py code function associate and I don't know how to extend it. Can you help me?


Thanks


This is the code:


الصورة الرمزية
إهمال
أفضل إجابة

Hi,

It seems the button you have specified is calling action defined in the view level, that is why you are seeing it as 429 in the UI, which is the ID of related action.

If you need to alter the same and execute some python codes, you can make it as button that calls a python function and then execute your logic and then returns the same action from the python code.


Inherit the button, change type to object and call a python function by specifying name as function name or hide the existing button and define a new one.

Thanks

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يونيو 23
1774
2
يناير 23
2811
3
مارس 15
9118
0
مارس 15
2875
1
مارس 15
5736