Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Load views_migration_17 in Doodba Development Environment #509

Closed
rrebollo opened this issue Nov 29, 2024 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@rrebollo
Copy link

Issue Description

When attempting to load the views_migration_17 module in a Doodba Odoo 17.0 development environment, the operation fails with the following error:

ERROR devel odoo.addons.views_migration_17.patch_xml_import: FAIL ! [target_addon] (/opt/odoo/auto/addons/[some xml in target_addon]) [Errno 30] Read-only file system: '/opt/odoo/auto/addons/[some xml in target_addon]

The views_migration_17 module is designed to address issues with the attrs attribute in XML views during migrations from Odoo versions prior to v17.

Steps to Reproduce

Affected Version: Odoo 17.0

Reproduction Steps:

  1. Set up an Odoo 17.0 development environment using Doodba.
  2. Add to addons.yaml:
server-tools: '*'
  1. Run:
inv git-aggregate
  1. Run:
docker compose run --rm odoo odoo -d devel -i [some addon you want to fix] --load=base,web,views_migration_17 --stop-after-init
  1. Observe the error message.

Additional Context

This issue appears to be linked to the read-only nature of the /opt/odoo/auto/addons/ directory in the Doodba setup.

A similar problem was reported in OCA/server-tools#2793

Expected Outcome

A workaround or hack to be able to load views_migration_17.

@rrebollo rrebollo added the bug Something isn't working label Nov 29, 2024
@pedrobaeza
Copy link
Member

This is not a problem of the Doodba copier template, but the module. The module should allow to write on another path, and thus, you invoke it adding a volume with rw permissions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants