Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
3366 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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


Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
lip 25
7144
1
maj 25
1201
2
sty 25
1987
1
sie 24
1948
1
lip 24
2762