[ADD][stock_ux] import excel file#938
Closed
jcadhoc wants to merge 2 commits into
Closed
Conversation
Collaborator
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds an import template for products in the stock_ux module, allowing users to download a pre-formatted XLSX template when importing products from the product list view.
Changes:
- Override
get_import_templatesonproduct.templateto return a custom XLSX template when thestock_product_templatecontext key is set. - Extend the
stock.product_template_action_productaction context to includestock_product_template: 1. - Bump module version to
19.0.1.9.0.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| stock_ux/models/product_template.py | Adds get_import_templates override returning a custom XLSX template based on context. |
| stock_ux/views/product_template_views.xml | Adds context key to the product action to trigger the custom import template. |
| stock_ux/manifest.py | Version bump. |
| </record> | ||
|
|
||
| <record id="stock.product_template_action_product" model="ir.actions.act_window"> | ||
| <field name="context">{"search_default_goods": 1, "default_is_storable": True, "stock_product_template": 1}</field> |
afa84e8 to
1fc2d6a
Compare
1fc2d6a to
94afbf0
Compare
Contributor
|
@roboadhoc r+ nobump |
Collaborator
|
@jcadhoc @mav-adhoc because this PR has multiple commits, I need to know how to merge it:
|
Contributor
|
@roboadhoc rebase-ff |
Collaborator
|
Merge method set to rebase and fast-forward. |
roboadhoc
pushed a commit
that referenced
this pull request
Jun 3, 2026
Part-of: #938 Signed-off-by: Matias Velazquez <mav@adhoc.com.ar>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

No description provided.