Use package name as target for module with prefix

The entrypoint is pointing to the package name when using prefix so the target
should also.

Closes #14814
(grafted from f6f8c6aa4316eeb7a73500c9dbc0ccd196aba62d)

--HG--
branch : 8.0
This commit is contained in:
Cédric Krier
2026-06-18 19:09:35 +02:00
parent 8123288003
commit 75973a9b27
@@ -68,7 +68,7 @@ dev-mode-dirs = ["."]
[tool.hatch.build.targets.wheel.sources]
{%- if cookiecutter.prefix %}
"" = "{{ cookiecutter.module_name }}"
"" = "{{ cookiecutter.package_name }}"
{%- else %}
"" = "trytond/modules/{{ cookiecutter.module_name }}"
{%- endif %}