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

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

Open
wants to merge 1 commit into
base: documentation
Choose a base branch
from

Conversation

legalsylvain
Copy link
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
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
Contributor Author

Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants