# Custom modules not loading in Tryton 7.0 with Docker setup

**URL:** https://discuss.tryton.org/t/custom-modules-not-loading-in-tryton-7-0-with-docker-setup/8681
**Category:** User
**Created:** [June 21, 2025, 2:38am UTC](https://discuss.tryton.org/t/custom-modules-not-loading-in-tryton-7-0-with-docker-setup/8681 "2025-06-21T02:38:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Hugo10](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/h/ba8739/32.png) [@Hugo10](https://discuss.tryton.org/u/Hugo10)
#### Post date: [June 21, 2025, 2:38am UTC](https://discuss.tryton.org/t/custom-modules-not-loading-in-tryton-7-0-with-docker-setup/8681/1 "2025-06-21T02:38:25Z")

</div>

# Custom modules not loading in Tryton 7.0 with Docker setup

Hello Tryton community,

I am running Tryton 7.0 using Docker with a PostgreSQL database. The core services start properly, and I was able to install the official modules like `account` successfully.

However, I am having trouble loading my custom modules (`inventario_basilos` and `basilios_proveedores`). They do not appear in the Tryton client under the module list.

Here is a summary of my setup:

- Docker Compose file includes services for `postgres`, `tryton-init`, `tryton-server`, and `tryton-cron`.
- The `trytond.conf` configuration includes the following relevant parts:

```ini
[database]
uri = postgresql://tryton:tryton@postgres:5432/tryton
path = /var/lib/trytond

[web]
listen = 0.0.0.0:8000

[modules]
activate_depends = True
path = /usr/lib/python3.10/site-packages/modules:/usr/local/lib/python3.11/dist-packages/trytond/modules

```

My custom modules are located in the host folder ./modules, which is mounted into the container at /usr/lib/python3.10/site-packages/modules.

Example of the module inventario\_basilos/tryton.cfg:

```ini
Copiar
Editar
[tryton]
name = inventario_basilos
version = 7.0.0
category = Inventory
description = Custom inventory management module
author = Hugo Ramirez
depends = stock,product,party
xml =
    view/inventario_linea.xml
    view/conciliacion_diaria.xml
    view/ir.model.access.csv

```

I have verified that the module files exist inside the container at /usr/lib/python3.10/site-packages/modules/inventario\_basilos.

What I have tried so far:

Restarting all containers.

Running trytond-admin -d tryton --all -c /etc/trytond.conf via the init container to update modules.

Verifying file permissions and paths.

Installing standard Tryton modules like account works fine.

My question is:

What could be the reason that my custom modules do not show up in the client?

Is there any recommended way to mount and configure custom modules in Tryton 7.0 Docker setup?

Could the path configuration in trytond.conf be wrong or incomplete?

Any help or advice would be greatly appreciated!

Thank you very much.

---

<div class="post-metadata">

### Author: ![udono](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/udono/32/2114_2.png) [@udono](https://discuss.tryton.org/u/udono)
#### Post date: [June 23, 2025, 9:18am UTC](https://discuss.tryton.org/t/custom-modules-not-loading-in-tryton-7-0-with-docker-setup/8681/2 "2025-06-23T09:18:21Z")

</div>

Hello Hugo,

> [@Hugo10](#):
>
> ```auto
> [modules]
> activate_depends = True
> path = /usr/lib/python3.10/site-packages/modules:/usr/local/lib/python3.11/dist-packages/trytond/modules
> 
> ```

AFAIK these two options are not available in Tryton. [Please have a look in the Tryton documentation](https://docs.tryton.org/latest/server/topics/configuration.html#topics-configuration).

Also your module setup is quite old

> [@Hugo10](#):
>
> ```auto
> [tryton]
> name = inventario_basilos
> version = 7.0.0
> category = Inventory
> description = Custom inventory management module
> author = Hugo Ramirez
> depends = stock,product,party
> xml =
> view/inventario_linea.xml
> view/conciliacion_diaria.xml
> view/ir.model.access.csv
> 
> ```

[Today a `tryton.cfg` looks different.](https://docs.tryton.org/latest/server/topics/modules/index.html#topics-modules-tryton-cfg)

… especially the `depends` should look like:

```auto
depends =
    stock
    product
    party

```

> [@Hugo10](#):
>
> Running trytond-admin -d tryton --all -c /etc/trytond.conf via the init container to update modules.

If the module is defined correctly, you can refresh the module list with:

```auto
trytond-admin -d tryton --all -c /etc/trytond.conf -m

```

Hope it helps. I am interested from which source your information come from? Is it a LLM output?

---

<div class="post-metadata">

### Author: ![Hugo10](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/h/ba8739/32.png) [@Hugo10](https://discuss.tryton.org/u/Hugo10)
#### Post date: [June 23, 2025, 3:32pm UTC](https://discuss.tryton.org/t/custom-modules-not-loading-in-tryton-7-0-with-docker-setup/8681/3 "2025-06-23T15:32:37Z")

</div>

Hello Udono,

Thank you for your helpful feedback. You were right about the config entries — after reviewing the official Tryton documentation, I realized those options (`activate_depends` and `path`) do not belong in the configuration and are not needed in my current setup. Also, I’ve decided to **discontinue using custom modules** for my university project, since after analyzing the project requirements more deeply, I noticed that the base Tryton modules already cover all necessary functionalities.

Now I am trying to resolve a formatting issue with the **sale price field** for products. For example, when I input **310** , the system still displays it as **310.0000**.

I have already:

- Configured the local currency as **HNL (Honduran Lempira)**,
- 
  - Assigned this currency to the user I log in with,

- And verified that the decimal precision is set to **2 digits** in the “Decimal Accuracy” configuration.

Despite all this, the field still shows **four decimal places**.  
Do you have any advice on how to **force the output to format as 310.00** instead of 310.0000?

Thanks again for your time and support.

Best regards,  
Hugo

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [June 23, 2025, 3:58pm UTC](https://discuss.tryton.org/t/custom-modules-not-loading-in-tryton-7-0-with-docker-setup/8681/4 "2025-06-23T15:58:44Z")

</div>

Please start a new topic for your new issue.
