Skip to content

[ADD] stock_ux: add post-migration script to force update stock views#943

Closed
matiasperalta1 wants to merge 1 commit into
ingadhoc:19.0from
adhoc-dev:19.0-t-67574-mnp
Closed

[ADD] stock_ux: add post-migration script to force update stock views#943
matiasperalta1 wants to merge 1 commit into
ingadhoc:19.0from
adhoc-dev:19.0-t-67574-mnp

Conversation

@matiasperalta1

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 8, 2026 21:19
@roboadhoc

Copy link
Copy Markdown
Collaborator

Pull request status dashboard

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds an OpenUpgrade post-migration hook to force-refresh a core Stock view definition during migration to version 19.0.1.11.0.

Changes:

  • Introduces a post-migration.py script decorated with @openupgrade.migrate()
  • Logs the action and reloads stock/views/stock_warehouse_views.xml via openupgrade.load_data



@openupgrade.migrate()
def migrate(env, version):
Comment on lines +9 to +11
def migrate(env, version):
logger.info("Forzamos la actualización de la vista stock_warehouse_views en stock")
openupgrade.load_data(env, "stock", "views/stock_warehouse_views.xml")
@rov-adhoc

Copy link
Copy Markdown
Contributor

@roboadhoc r+ bump

@roboadhoc roboadhoc closed this in e238500 Jun 8, 2026
roboadhoc added a commit that referenced this pull request Jun 8, 2026
@roboadhoc roboadhoc added the 18.1 label Jun 8, 2026
@roboadhoc roboadhoc deleted the 19.0-t-67574-mnp branch June 8, 2026 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants