-
Notifications
You must be signed in to change notification settings - Fork 30.1k
[IMP] purchase_stock: monthy demand #196620
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
Closed
svs-odoo
wants to merge
6
commits into
odoo:master
from
odoo-dev:master-imp-purchase-suggest-vendor-qty-svs
Closed
[IMP] purchase_stock: monthy demand #196620
svs-odoo
wants to merge
6
commits into
odoo:master
from
odoo-dev:master-imp-purchase-suggest-vendor-qty-svs
Conversation
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
52fc302 to
27825c7
Compare
27825c7 to
096c886
Compare
06eac08 to
aa8dc9f
Compare
7c664cb to
5e11d53
Compare
jeanschoenlaub
added a commit
to odoo-dev/odoo
that referenced
this pull request
Oct 15, 2025
Pass order_state and back_button_label from the backend to product catalogs simplifying JS patching and saving 1 search_read on sale and purchase catalog open. BEFORE: Order state was fetched with a search_read for sales and purchase catalogs. NOW: Order state passed as props with: `'product_catalog_order_state': self.state if "state" in self._fields else None` (When opening a BoM catalog there is no state). Logic for determining the label is done on the backend and passed to the action context with a new fallback. reverting changes from this odoo#196620 task#5114649
jeanschoenlaub
added a commit
to odoo-dev/odoo
that referenced
this pull request
Oct 17, 2025
Pass order_state and back_button_label from the backend to product catalogs simplifying JS patching and saving 1 search_read on sale and purchase catalog open. BEFORE: Order state was fetched with a search_read for sales and purchase catalogs. NOW: Order state passed as props with: `'product_catalog_order_state': self.state if "state" in self._fields else None` (When opening a BoM catalog there is no state). Logic for determining the label is done on the backend and passed to the action context with a new fallback. reverting changes from this odoo#196620 task#5114649
jeanschoenlaub
added a commit
to odoo-dev/odoo
that referenced
this pull request
Oct 17, 2025
Pass order_state and back_button_label from the backend to product catalogs simplifying JS patching and saving 1 search_read on sale and purchase catalog open. BEFORE: Order state was fetched with a search_read for sales and purchase catalogs. NOW: Order state passed as props with: `'product_catalog_order_state': self.state if "state" in self._fields else None` (When opening a BoM catalog there is no state). Logic for determining the label is done on the backend and passed to the action context with a new fallback. reverting changes from this odoo#196620 task#5114649
jeanschoenlaub
added a commit
to odoo-dev/odoo
that referenced
this pull request
Oct 17, 2025
Pass order_state and back_button_label from the backend to product catalogs simplifying JS patching and saving 1 search_read on sale and purchase catalog open. BEFORE: Order state was fetched with a search_read for sales and purchase catalogs. NOW: Order state passed as props with: `'product_catalog_order_state': self.state if "state" in self._fields else None` (When opening a BoM catalog there is no state). Logic for determining the label is done on the backend and passed to the action context with a new fallback. reverting changes from this odoo#196620 task#5114649
jeanschoenlaub
added a commit
to odoo-dev/odoo
that referenced
this pull request
Oct 20, 2025
Pass order_state and back_button_label from the backend to product catalogs simplifying JS patching and saving 1 search_read on sale and purchase catalog open. BEFORE: Order state was fetched with a search_read for sales and purchase catalogs. NOW: Order state passed as props with: `'product_catalog_order_state': self.state if "state" in self._fields else None` (When opening a BoM catalog there is no state). Logic for determining the label is done on the backend and passed to the action context with a new fallback. reverting changes from this odoo#196620 task#5114649
jeanschoenlaub
added a commit
to odoo-dev/odoo
that referenced
this pull request
Oct 20, 2025
Pass order_state and back_button_label from the backend to product catalogs simplifying JS patching and saving 1 search_read on sale and purchase catalog open. BEFORE: Order state was fetched with a search_read for sales and purchase catalogs. NOW: Order state passed as props with: `'product_catalog_order_state': self.state if "state" in self._fields else None` (When opening a BoM catalog there is no state). Logic for determining the label is done on the backend and passed to the action context with a new fallback. reverting changes from this odoo#196620 task#5114649
jeanschoenlaub
added a commit
to odoo-dev/odoo
that referenced
this pull request
Oct 20, 2025
Pass order_state and back_button_label from the backend to product catalogs simplifying JS patching and saving 1 search_read on sale and purchase catalog open. BEFORE: Order state was fetched with a search_read for sales and purchase catalogs. NOW: Order state passed as props with: `'product_catalog_order_state': self.state if "state" in self._fields else None` (When opening a BoM catalog there is no state). Logic for determining the label is done on the backend and passed to the action context with a new fallback. reverting changes from this odoo#196620 task#5114649
jeanschoenlaub
added a commit
to odoo-dev/odoo
that referenced
this pull request
Oct 20, 2025
Pass order_state and back_button_label from the backend to product catalogs simplifying JS patching and saving 1 search_read on sale and purchase catalog open. BEFORE: Order state was fetched with a search_read for sales and purchase catalogs. NOW: Order state passed as props with: `'product_catalog_order_state': self.state if "state" in self._fields else None` (When opening a BoM catalog there is no state). Logic for determining the label is done on the backend and passed to the action context with a new fallback. reverting changes from this odoo#196620 task#5114649
jeanschoenlaub
added a commit
to odoo-dev/odoo
that referenced
this pull request
Oct 20, 2025
Pass order_state and back_button_label from the backend to product catalogs simplifying JS patching and saving 1 search_read on sale and purchase catalog open. BEFORE: Order state was fetched with a search_read for sales and purchase catalogs. NOW: Order state passed as props with: `'product_catalog_order_state': self.state if "state" in self._fields else None` (When opening a BoM catalog there is no state). Logic for determining the label is done on the backend and passed to the action context with a new fallback. reverting changes from this odoo#196620 task#5114649
jeanschoenlaub
added a commit
to odoo-dev/odoo
that referenced
this pull request
Oct 20, 2025
Pass order_state and back_button_label from the backend to product catalogs simplifying JS patching and saving 1 search_read on sale and purchase catalog open. BEFORE: Order state was fetched with a search_read for sales and purchase catalogs. NOW: Order state passed as props with: `'product_catalog_order_state': self.state if "state" in self._fields else None` (When opening a BoM catalog there is no state). Logic for determining the label is done on the backend and passed to the action context with a new fallback. reverting changes from this odoo#196620 task#5114649
jeanschoenlaub
added a commit
to odoo-dev/odoo
that referenced
this pull request
Oct 21, 2025
Pass order_state and back_button_label from the backend to product catalogs simplifying JS patching and saving 1 search_read on sale and purchase catalog open. BEFORE: Order state was fetched with a search_read for sales and purchase catalogs. NOW: Order state passed as props with: `'product_catalog_order_state': self.state if "state" in self._fields else None` (When opening a BoM catalog there is no state). Logic for determining the label is done on the backend and passed to the action context with a new fallback. reverting changes from this odoo#196620 task#5114649
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.

This commit adds an action to automatically populate a Purchase Order from the Product Catalog. This action displays a wizard to let the user selects the period of time, the warehouse to take in consideration, for how much time the replenish is needed and a percentage to manually adapt the quantity.
Once the wizard is set, the total price for all the product's need is displayed and the user can confirm and a PO line will be created for every product.
The products displayed in the catalog are the ones who will be replenished. Their done outgoing moves are used to compute the "monthly demand".
task-4536728
Enterprise PR: odoo/enterprise#79704