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

I created and customized a new module in Odoo 12. I want to add the feature same as the follows.

In HR module, the attendance button ( on the right upper corner ) do not show when Attendance module is not installed.

attendance button show when Attendance module is installed in the HR Employee.


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

Hi,

Here what happens is, the attendance smart button in the employee form is added by inheriting the original form view in the attendance module. Once the Attendance module is installed, you will see the smart button as it get added and once the attendance module is uninstalled, the inherited view will get deleted  and so you wont see that button again.


For inheriting and making changes in an existing view see this blog:   How to Add Custom Fields to Existing Views in Odoo v12

Thanks

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
سبتمبر 19
6953
1
يوليو 15
15575
2
أغسطس 25
1521
3
يوليو 25
2232
1
يوليو 25
1762