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

[13.0][MIG] stock_available_mrp #803

Closed
wants to merge 26 commits into from

Conversation

ps-tubtim
Copy link
Member

@ps-tubtim ps-tubtim commented Dec 19, 2019

This PR is waiting for #802, you can always use this for readability.

  • [13.0][MIG] stock_available

@oca-clabot
Copy link

Hey @ps-tubtim, thank you for your Pull Request.

It looks like some users haven't signed our Contributor License Agreement, yet.
You can read and sign our full Contributor License Agreement here: http://odoo-community.org/page/cla
Here is a list of the users:

Appreciation of efforts,
OCA CLAbot

@m-abdalrahman
Copy link

m-abdalrahman commented Jun 15, 2020

hello @ps-tubtim I can't enter the products screen after installing the module
Screenshot from 2020-06-15 14-18-38

log:
odoo.http: ('product.product(1,).bom_id', None)

after add store=True to bom_id field to fix the previous issue, when I Create new product potential quantities values not calculated, but if I uninstall stock_available and install stock_available_mrp potential quantities values calculated and appear

@ps-tubtim ps-tubtim force-pushed the 13.0-mig-stock_available_mrp branch 2 times, most recently from 941fbe9 to 2bf56e6 Compare June 16, 2020 06:33
@rousseldenis
Copy link
Sponsor Contributor

@ps-tubtim You can rebase as #802 is merged

@i-vyshnevska
Copy link
Member

i-vyshnevska commented Jan 16, 2021

@ps-tubtim can you pls rebase and check travis build for errors

@leemannd
Copy link

leemannd commented Feb 2, 2021

Hello @ps-tubtim a fix is included into #1070

Copy link

@leemannd leemannd left a comment

Choose a reason for hiding this comment

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

Missing returb

or (not b.product_id and b.product_tmpl_id == product.product_tmpl_id)
)
if product_boms:
product.bom_id = first(product_boms)
Copy link

Choose a reason for hiding this comment

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

Suggested change
product.bom_id = first(product_boms)
product.bom_id = first(product_boms)
else:
product.bom_id = False

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you for your review. Edited.

Copy link

@leemannd leemannd left a comment

Choose a reason for hiding this comment

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

Missing return in compute function. This will lead to the impossibility to see products

@chienandalu
Copy link
Member

We just merged this changes due to Odoo upstream changes that intruduced some incompatibilities. https://github.com/OCA/stock-logistics-warehouse/pull/1099/files Please include it in your migration

sbidoul and others added 12 commits March 4, 2021 13:16
Compute potential quantities for both product templates and variants. To keep the code simple, only the biggest potential of any single variant is accounted for in the template's potential.
Take all levels of phantom BoM into account, respects validity dates etc. thanks to the use of the standard method _bom_explode, as suggested by @gdgellatly in OCA#5 (comment)
Improve tests, rewritten in python.
Adhere to new file/manifest/README conventions.
Simplify copyright headers
sudo is not required since mrp.bom are readable to groups with access to the qty_x fields on a product. Moreover using sudo to retrive the bom will ignore the company_id defined on the bom
Record rules used to not be checked on stock quants, but now they are since Odoo's commit 2fd14db (odoo/odoo@2fd14db).
In our test we changed the company of the products and BoMs but we neglected that the stock was not attached to the right company, and that made the test fail.
To fix that, make the test inventory for the right company.
Since there is a little inconsistency in the demo data with a negative quantity of an unrelated product, use the `partial` filter for the inventories instead of the `none` filter, so that no wrong inventory lines are added automatically.
    * mrp_bom.name has been deleted.
    * mrp_bom_line.type moved to mrp_bom.type.
    * Fix missing group_mrp_user issue.
    * Change versions
Cedric-Pigeon and others added 10 commits March 4, 2021 13:16
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_available_mrp
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_available_mrp/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_available_mrp
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_available_mrp/
Currently translated at 100.0% (7 of 7 strings)

Translation: stock-logistics-warehouse-12.0/stock-logistics-warehouse-12.0-stock_available_mrp
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_available_mrp/zh_CN/
@ps-tubtim ps-tubtim force-pushed the 13.0-mig-stock_available_mrp branch 2 times, most recently from 0159bce to 11f612e Compare March 4, 2021 07:39
OCA-git-bot and others added 3 commits March 4, 2021 14:44
After this change odoo/odoo@3d34d58
it isn't possible to have an storable kit product anymore. The main
issue is that we have to drop some uses cases that this module
considered for this kind of situations.
@ps-tubtim ps-tubtim force-pushed the 13.0-mig-stock_available_mrp branch from 11f612e to e38446a Compare March 4, 2021 08:11
@ps-tubtim ps-tubtim force-pushed the 13.0-mig-stock_available_mrp branch from f27011d to fc49cf9 Compare March 4, 2021 10:02
@leemannd
Copy link

This can be closed. The module has been migrated into another PR

@ps-tubtim ps-tubtim closed this Jul 29, 2021
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.

None yet