Ignorant Q, but:
Is there any way to link to a task, just like you link to a project / partner in a calendar view?
Currently have the same setup as www [dot] cybrosys [dot] com/blog/how-to-create-a-calendar-view-in-menus-of-the-odoo-15
(excuse the [dots], no idea why links break the post and throws a 403)
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
Yes, you can link to a task in a calendar view in Odoo by creating a button that opens a form view for the selected task. You can do this by defining an action that opens the form view for the selected task. Here's an example code snippet in Python:
python
Copy code
action = {
'type': 'ir.actions.act_window',
'res_model': 'project.task',
'view_mode': 'form',
'target': 'current',
'res_id': task.id,
}
return action
This code defines an action that opens the form view for the selected task with id task.id. You can then attach this action to a button in the calendar view and make the button visible when a task is selected.
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
0
سبتمبر 20
|
3748 | ||
|
2
أغسطس 25
|
1046 | ||
|
0
أكتوبر 20
|
2963 | ||
|
0
أبريل 24
|
1264 | ||
|
1
يونيو 23
|
3385 |