In the Employees module, the Work Email field has Enable Ordered Tracking check box is disabled and greyed out. How do enable this to allow tracking of changes in the chatter? Same question for Working Hours. Also, how do I enable tracking for custom many-to-many fields created in Odoo Studio? Using Odoo.sh, so in-depth modifications to python code not possible
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
The "Enable Ordered Tracking" checkbox is disabled and greyed out for fields that are not set as track_visibility in the corresponding model. To enable tracking for the Work Email and Working Hours fields in the Employees module, you can create a custom module and add the track_visibility attribute to the fields.
Here's an example of how to add track_visibility to the Work Email field:
Create a new custom module or use an existing one.
In the models directory of your module, create a new Python file and import the necessary modules:
javascript
from odoo import fields, models
Define a new model that extends the hr.employee model:
arduino
class HrEmployee(models.Model):
_inherit = 'hr.employee'
Add the track_visibility attribute to the Work Email field:
Save the file and update your custom module.
Install the module and restart the Odoo server.
Repeat the same steps for the Working Hours field.
For custom many-to-many fields created in Odoo Studio, you can follow similar steps by adding the track_visibility attribute to the field definition in the Studio interface. To do this, open the Studio app, navigate to the model that contains the many-to-many field, and click on the field to edit its properties. In the "Advanced Properties" tab, you can add the track_visibility attribute and set it to 'onchange'.
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
1
Jul 22
|
3142 | ||
|
1
Agu 21
|
3436 | ||
|
0
Jun 23
|
1610 | ||
Tracking One2many fields of a model
Diselesaikan
|
|
1
Mei 25
|
116 | |
|
2
Okt 24
|
1075 |