This question has been flagged
2 Replies
2338 Views

Hi,

How to know the user's who confirmed (the button) SO or invoice ? and print the name in the tree view for example


Thanks

Avatar
Discard
Best Answer

You can inherit sale.order add field "confirmed_by",

confirmed_by = fields.Many2one("res.users","Confirmed By")

 Set confirm by users on confirmed button

  @api.multi

    def action_confirm(self):

        for order in self:

   --- add this line ---

   order.confirmed_by = self._uid  # set user who confirmed sale order

    ---then rest method ---

  add confirmed_by field in to Tree view


Avatar
Discard
Best Answer

You can see what happened to a document in the chatter history below of every document. To see it in the tree view you would have to create a module extending the existing tree view, but be aware that as time goes by a document can be confirmed multiple times by multiple persons.

Avatar
Discard