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

ok i have this scenario if the credit limit of any customer is exceed we got the little notification on the top of sale order i have set this condition on the confirm button using studio
[["partner_credit_warning","!=",False]]
and only sale/Admin can approve this 
here is Screen short 
https://drive.google.com/file/d/1lZ2OCZjz4SrM3hJPQ9TVVifak_pGcpbN/view?usp=sharing
problem is that this thing work fine in the demo odoo + in online 15 days db but this condition is not working in my local db it just let it confirm so no error in logs.
my local db version is odoo16.0 e

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

I have solved this problem by replacing the studio module with the new code and it work fine now

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

Hi 

Try the following code in your custom module 


Regards

الصورة الرمزية
إهمال
الكاتب

i didn't created any custom module working on the orginal code all the things in my question is done using studio in demo /local

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
نوفمبر 22
2935
1
أبريل 24
3253
2
فبراير 24
3494
2
يوليو 23
2128
1
مارس 24
1647