Skip to content

[ADD] documentation for OpenUpgrade manager. how to create reference database. - #4575

Open
legalsylvain wants to merge 1 commit into
OCA:documentationfrom
grap:documentation-create-reference-database
Open

[ADD] documentation for OpenUpgrade manager. how to create reference database.#4575
legalsylvain wants to merge 1 commit into
OCA:documentationfrom
grap:documentation-create-reference-database

Conversation

@legalsylvain

Copy link
Copy Markdown
Contributor

replace old wiki. see https://github.com/grap/openupgrade_wiki_backup/blob/master/How-to-create-a-reference-database.md

What I did.

  • copy paste old wiki page into OpenUpgrade documentation
  • split into a rst part and a sh part
  • add an extra comment to mention that we have to make some retries, if some odoo modules requires extra python lib. see for exemple : asn1crypto remarks.
  • I changed shell command, using cat & pipe. it avoid to have to copy paste orm commands.

blocking point
I have a blocking problem regarding force_storage. here is the log of the error, generated by l10n_de module in V17.

  File "/home/sylvain/grap_dev/grap-odoo-env-17.0/src/odoo/odoo/addons/base/models/ir_attachment.py", line 81, in force_storage
    ]))._migrate()
  File "/home/sylvain/grap_dev/grap-odoo-env-17.0/src/odoo/odoo/addons/base/models/ir_attachment.py", line 89, in _migrate
    attach.write({'raw': attach.raw, 'mimetype': attach.mimetype})
  File "/home/sylvain/grap_dev/grap-odoo-env-17.0/src/odoo/addons/l10n_de/models/ir_attachment.py", line 31, in write
    self._except_audit_trail()
  File "/home/sylvain/grap_dev/grap-odoo-env-17.0/src/odoo/addons/l10n_de/models/ir_attachment.py", line 27, in _except_audit_trail
    raise UserError(_("You cannot remove parts of the audit trail."))
odoo.exceptions.UserError: You cannot remove parts of the audit trail.

-> What is the best way to move forward ? I'd like to avoid to have to write / maintain odoo patches in the database creation process.
-> is this step mandatory ?

@OCA/openupgrade-maintainers : thanks for your help here !

@legalsylvain legalsylvain added this to the documentation milestone Oct 1, 2024
@legalsylvain legalsylvain mentioned this pull request Oct 1, 2024
4 tasks
@StefanRijnhart

Copy link
Copy Markdown
Member

You could consider moving towards an Odoo style backup package that includes the filestore. Alternatively, you can just comment out this code temporarily while you move the filestore into the database: https://github.com/odoo/odoo/blob/17.0/addons/l10n_de/models/ir_attachment.py#L29-L32

@legalsylvain

Copy link
Copy Markdown
Contributor Author

Thanks !

@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions Bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale PR/Issue without recent activity, it'll be soon closed automatically.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants