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

I have been tasked to put a buffer time to allow modifying this deadline field. 

E.g 
After confirming the SO. Sales team could adjust and adjust the deadline date, as long as they are allowed to. This needs to put a buffer time so that they couldn't just it if they can't commit with the delivery date. So, after they confirm the Qoutation, the delivery date will count 7 days they could edit it, and after 7 days, they are not allowed to change it anymore.

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

Hello Anton,

It will be possible to put buffer and restrict afterwards. 
We need to override write method to do that customization
1. Check if Order date exist that check further
2. Check for buffer time + order date not greater than current date
3. If all condition is true then allow to update the delivery date

Please check below code for that.


Thanks,
Vimal Rughani (Founder and CTO)
Himanjali Intelligent Automation Pvt Ltd
Contact:
 +91- 972-606-7737
Emailhello@himanjali.com 
NewsletterThe Odoo Scoop
Websitewww.himanjali.co

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

Unfortunately, we're using online odoo. Is there a way to do it using studio tho?

Anton, Odoo Studio doesn't support that technical feature to override write method.

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
مارس 25
1557
1
مايو 24
1915
2
يونيو 25
666
1
يناير 25
1484
2
فبراير 24
7177