Skip to content

Conversation

@svs-odoo
Copy link
Contributor

@svs-odoo svs-odoo commented Feb 5, 2025

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

@robodoo
Copy link
Contributor

robodoo commented Feb 5, 2025

Pull request status dashboard

@C3POdoo C3POdoo added the RD research & development, internal work label Feb 5, 2025
@svs-odoo svs-odoo force-pushed the master-imp-purchase-suggest-vendor-qty-svs branch 3 times, most recently from 52fc302 to 27825c7 Compare February 11, 2025 10:31
@svs-odoo svs-odoo marked this pull request as ready for review February 11, 2025 12:11
@svs-odoo svs-odoo changed the title [IMP] purchase_stock: monthy demand - WIP [IMP] purchase_stock: monthy demand Feb 11, 2025
@C3POdoo C3POdoo requested review from a team and Whenrow and removed request for a team February 11, 2025 12:14
@svs-odoo svs-odoo force-pushed the master-imp-purchase-suggest-vendor-qty-svs branch from 27825c7 to 096c886 Compare February 18, 2025 16:57
@C3POdoo C3POdoo requested a review from a team February 18, 2025 16:59
@svs-odoo svs-odoo force-pushed the master-imp-purchase-suggest-vendor-qty-svs branch 12 times, most recently from 06eac08 to aa8dc9f Compare February 25, 2025 14:35
@Feyensv Feyensv removed the request for review from a team February 25, 2025 14:54
@svs-odoo svs-odoo force-pushed the master-imp-purchase-suggest-vendor-qty-svs branch 5 times, most recently from 7c664cb to 5e11d53 Compare March 4, 2025 14:31
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

Labels

18.3 RD research & development, internal work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants