Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
3367 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
čvc 25
7149
1
kvě 25
1204
2
led 25
1988
1
srp 24
1948
1
čvc 24
2765