Skip to content

[IMP] base_geoengine: Work around missing required field - #479

Open
SirPyTech wants to merge 1 commit into
OCA:18.0from
PyTech-SRL:18.0-imp-base_geoengine-conditional_required_projection
Open

[IMP] base_geoengine: Work around missing required field#479
SirPyTech wants to merge 1 commit into
OCA:18.0from
PyTech-SRL:18.0-imp-base_geoengine-conditional_required_projection

Conversation

@SirPyTech

Copy link
Copy Markdown

Steps:

  1. In the filesystem, delete a view from module database_cleanup
  2. Install base_geoengine and database_cleanup
  3. Restore the deleted view
  4. Update database_cleanup

Current:
ERROR: null value in column "projection" of relation "ir_ui_view" violates not-null constraint

Expected:
The module updates

Work around for odoo/odoo#286530.

Steps:

1. In the filesystem, delete a view from module `database_cleanup`
2. Install `base_geoengine` and `database_cleanup`
3. Restore the deleted view
4. Update `database_cleanup`

Current:
ERROR: null value in column "projection" of relation "ir_ui_view" violates not-null constraint

Expected:
The module updates

Work around for odoo/odoo#286530.

@HekkiMelody HekkiMelody left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

This is necessary to avoid a sneaky but scary update error.

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