This question has been flagged

Hello,

I have Purchase Request App and tied to understand how on "Create" button click is creating 2 mail.message records with mail.message.subtype name = 'Note'. In purchase request app I can't find any of mail.message.subtype fields or relations which name is 'Note'...
As I understand for creating these records (I mean 2 mail.message records) is calling mail.message object create method but I can't understand how it's called or what method called this method. Hands down for I while...

In purchase.request object there are some fields with track_visibility='onchange'. So maybe because of that. But I still can't understand how it works.. Some fields of purchase.request object with track_visibility='onchange':

    requested_by = fields.Many2one('res.users','Requested by', required=True, track_visibility='onchange', default=_get_default_requested_by)
    assigned_to = fields.Many2one('res.users', 'Approver', track_visibility='onchange')


Maybe do you have some examples or can explain how does it works.

Thank you in advance

Avatar
Discard