Skip to content
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

[17.0] [MIG] stock_available_immediately: Migration to 17.0 #22

Draft
wants to merge 36 commits into
base: 17.0
Choose a base branch
from

Conversation

bizzappdev
Copy link

@bizzappdev bizzappdev commented Apr 29, 2024

Dependency MR for module stock_available #20

@rousseldenis
Copy link
Contributor

/ocabot migration stock_available_immediately

@OCA-git-bot OCA-git-bot added this to the 17.0 milestone Apr 29, 2024
@OCA-git-bot OCA-git-bot mentioned this pull request Apr 29, 2024
6 tasks
@bizzappdev bizzappdev marked this pull request as ready for review April 29, 2024 12:52
Copy link

github-actions bot commented Sep 1, 2024

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Sep 1, 2024
@abdounasser202
Copy link

Any update regarding this PR ?

@rousseldenis
Copy link
Contributor

@bizzappdev Could you remove dependency as merged ? Thanks

@bizzappdev bizzappdev force-pushed the 17.0-mig-stock_available_immediately-BAD branch from f19fbe9 to d86869a Compare December 2, 2024 11:01
nbessi and others added 18 commits December 2, 2024 16:39
(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
dmsergio and others added 18 commits December 2, 2024 16:39
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/
@bizzappdev bizzappdev force-pushed the 17.0-mig-stock_available_immediately-BAD branch from d86869a to 079f54c Compare December 2, 2024 11:09
@bizzappdev bizzappdev marked this pull request as draft December 2, 2024 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
migration needs review stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

Successfully merging this pull request may close these issues.