I know how to track of certain events:
What is the _track proprerty of mail.thread model used for ?
I need to track reports print time, is it possible? Have any ideas?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I know how to track of certain events:
What is the _track proprerty of mail.thread model used for ?
I need to track reports print time, is it possible? Have any ideas?
you can track fields with track_visibility property.
class claim_submitted(osv.osv):
_name = "claim_submitted"
_description = "claims submitted"
_inherit = ['mail.thread', 'ir.needaction_mixin']
_columns = { 'note':fields.text('Description'),
'verified_id':fields.many2one('res.users','Verified employee'),
'verified_date':fields.date('Verified date:'),
'approved_id':fields.many2one('res.users','Verified employee'),
'approved_date':fields.date('Approved date:'),
'cancelled_id':fields.many2one('res.users','Verified employee'),
'cancel_date':fields.date('Cancellation date:'),
'state': fields.selection([
('draft', 'Draft'),
('verify', 'Verified'),
('cancel', 'Cancelled'),
('done', 'Approved')],
'Status',
readonly=True, track_visibility='onchange',),
}
this will track the field status if the value in the field is changed
I am not interested in tracking the status but in tracking print action
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
Registrati| Post correlati | Risposte | Visualizzazioni | Attività | |
|---|---|---|---|---|
|
2
ott 25
|
3286 | |||
|
1
ott 25
|
1071 | |||
|
1
ago 25
|
1733 | |||
|
1
apr 25
|
2388 | |||
|
0
ott 24
|
1913 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.
Hello, did you find a solution for this