Skip to content

[19.0][MIG] stock_available_immediately: Migration to version 19.0 - #84

Merged
OCA-git-bot merged 34 commits into
OCA:19.0from
Tecnativa:19.0-mig-stock_available_immediately
Aug 24, 2026
Merged

OCA-git-bot merged 34 commits into
OCA:19.0from
Tecnativa:19.0-mig-stock_available_immediately

Conversation

@carlos-lopez-tecnativa

Copy link
Copy Markdown
Contributor

TT64140
@Tecnativa @pedrobaeza @victoralmau @CarlosRoca13 @bizzappdev could you please review this?

nbessi and others added 30 commits August 21, 2026 07:33
(lp:c2c-addons/6.1  rev 28.1.10)
…PL-3 with author agreement, improved help messages and pep8

(lp:c2c-addons/6.1  rev 45.1.8)
[UPG] Upgraded to version 8, fixed references to new 8.0  views and  moved fields that were in  product.product to product.template

[fix] remove duplicate view and correct view name

[UPG][FIX] added outgoing field XML, that was in the base stock field in 7.0.

[UPG] stock available immediately, corrected the calculation method of
immediately_usable_qty to take in accountthe sign change in outgoing_qty
(from negative to positive) in version 8.

[FLAKE8]

[FIX] renaming of a class, comment removing, useless code.

[UPD] move out from unported to 8 for update

[fix] remove duplicate view and correct view name

[UPG][FIX] added outgoing field XML, that was in the base stock field in 7.0.

[FIX] renaming of a class, comment removing, useless code.

[fix] remove duplicate view and correct view name

[UPG][FIX] added outgoing field XML, that was in the base stock field in 7.0.

[UPD] move out from unported to 8 for update

[fix] remove duplicate view and correct view name

[UPG][FIX] added outgoing field XML, that was in the base stock field in 7.0.

[FIX] renaming of a class, comment removing, useless code.

[UPD] move out from unported to 8 for update

[fix] remove duplicate view and correct view name

[UPG][FIX] added outgoing field XML, that was in the base stock field in 7.0.

[FIX] renaming of a class, comment removing, useless code.

[UPD] move out from unported to 8 for update

[fix] remove duplicate view and correct view name

[UPG][FIX] added outgoing field XML, that was in the base stock field in 7.0.

[FIX] renaming of a class, comment removing, useless code.

[fix] remove duplicate view and correct view name

[UPG][FIX] added outgoing field XML, that was in the base stock field in 7.0.

[UPD] move out from unported to 8 for update

[fix] remove duplicate view and correct view name

[UPG][FIX] added outgoing field XML, that was in the base stock field in 7.0.

[FIX] renaming of a class, comment removing, useless code.
Generic module to compute the stock quantity available to promise using several implementations.
stock_available_immediatly is changed to become the first optional implementation.
Cherry pick of commit 0b060f619fa5d60f9fb343afe1154acd5c730148 from the v7 branch

[IMP] stock_available* uses new API

[IMP] READMEs and TODOs

Cherry-picked from v7 at 8add4bea7e91924983fb29966e14a1f0d4d5332e

Conflicts:
	__unported__/stock_available_mrp/__openerp__.py
	stock_available/__openerp__.py
	stock_available_immediately/__openerp__.py
…uct and

product.template, now takes in account variants and correctly displays value.
[FLAKE8]

Removing duplicate modules and moving README.rst into __unported__
* fix the dependencies for the computed field

* use api.multi instead of api.one to avoid calling
  super()._immediately_usable_qty in a loop (this improves perfs on a tree view
  display)
There are cases where we dot NOT want to simply sum the quantities of all the
variants. For example when dealing with manufacturing capacities, we may have
to chose between variants because we can't make ALL of them with the same
components.

So instead of a simple non-modular implementation, we'll let each module define
his own implementation of how to compute the product template's quantity
available for sale.

Conflicts:
	stock_available/__openerp__.py
	stock_available_immediately/__openerp__.py
optimize stock computation by avoiding to call useless compute
Due to merge mess, we need to restore current code this way
* New README by fragments
* Bump manifest version
* Adapted tests
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-availability-16.0/stock-logistics-availability-16.0-stock_available_immediately
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-availability-16-0/stock-logistics-availability-16-0-stock_available_immediately/
Currently translated at 100.0% (1 of 1 strings)

Translation: stock-logistics-availability-16.0/stock-logistics-availability-16.0-stock_available_immediately
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-availability-16-0/stock-logistics-availability-16-0-stock_available_immediately/hr/
Currently translated at 100.0% (1 of 1 strings)

Translation: stock-logistics-availability-16.0/stock-logistics-availability-16.0-stock_available_immediately
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-availability-16-0/stock-logistics-availability-16-0-stock_available_immediately/es/
Currently translated at 100.0% (1 of 1 strings)

Translation: stock-logistics-availability-16.0/stock-logistics-availability-16.0-stock_available_immediately
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-availability-16-0/stock-logistics-availability-16-0-stock_available_immediately/it/
Currently translated at 100.0% (1 of 1 strings)

Translation: stock-logistics-availability-16.0/stock-logistics-availability-16.0-stock_available_immediately
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-availability-16-0/stock-logistics-availability-16-0-stock_available_immediately/pt_BR/
Currently translated at 100.0% (1 of 1 strings)

Translation: stock-logistics-availability-16.0/stock-logistics-availability-16.0-stock_available_immediately
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-availability-16-0/stock-logistics-availability-16-0-stock_available_immediately/fr/
weblate and others added 4 commits August 21, 2026 07:33
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-availability-17.0/stock-logistics-availability-17.0-stock_available_immediately
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-availability-17-0/stock-logistics-availability-17-0-stock_available_immediately/
Currently translated at 100.0% (1 of 1 strings)

Translation: stock-logistics-availability-18.0/stock-logistics-availability-18.0-stock_available_immediately
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-availability-18-0/stock-logistics-availability-18-0-stock_available_immediately/sl/
@OCA-git-bot OCA-git-bot added mod:stock_available_immediately Module stock_available_immediately series:19.0 labels Aug 21, 2026
@pedrobaeza

Copy link
Copy Markdown
Member

/ocabot migration stock_available_immediately

@OCA-git-bot OCA-git-bot added this to the 19.0 milestone Aug 24, 2026
@OCA-git-bot OCA-git-bot mentioned this pull request Aug 24, 2026
3 of 10 tasks

@pedrobaeza pedrobaeza left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
Contributor

On my way to merge this fine PR!
Prepared branch 19.0-ocabot-merge-pr-84-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit 8b494bd into OCA:19.0 Aug 24, 2026
7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 0c5a1fc. Thanks a lot for contributing to OCA. ❤️

@pedrobaeza
pedrobaeza deleted the 19.0-mig-stock_available_immediately branch August 24, 2026 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.