Skip to content

Commit

Permalink
[IMP] oxigen_purchase: add modifier like follower
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankC013 committed Jan 5, 2024
1 parent 23d17ec commit cff6cae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oxigen_purchase/models/purchase_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class PurchaseOrder(models.Model):
_inherit = "purchase.order"

def request_validation(self):
self.filtered(lambda r: not r.user_id).write({"user_id": self.env.uid})
self._message_auto_subscribe({"user_id": self.env.uid})
return super().request_validation()

@api.model
Expand Down

0 comments on commit cff6cae

Please sign in to comment.