You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
460 B

  1. If you install the module, you will find a tab on the company form allowing
  2. to define the technical user.
  3. In your code you can use the following helper that will return you
  4. - a self with the user tech if configured
  5. - or a self with sudo user
  6. .. code-block:: python
  7. self_tech = self.sudo_tech()
  8. If you want to raise an error if the tech user in not configured just call it with
  9. .. code-block:: python
  10. self_tech = self.sudo_tech(raise_if_missing)