Skip to content

Conversation

@fw-bot-adhoc
Copy link
Contributor

When product_id differs between sale order line and stock move, the move
is treated as a potential BOM component. If no valid BOM is found or no
components match, the picking_avg and done_avg lists remain empty,
causing a ZeroDivisionError when calculating averages.

Add validation to ensure lists are not empty before division.

Forward-Port-Of: #807

@roboadhoc
Copy link
Collaborator

Pull request status dashboard

@fw-bot-adhoc
Copy link
Contributor Author

@ced-adhoc @jcadhoc cherrypicking of pull request #807 failed.

stdout:

Auto-merging stock_voucher/models/stock_picking.py
CONFLICT (content): Merge conflict in stock_voucher/models/stock_picking.py

Either perform the forward-port manually (and push to this branch, proceeding as usual) or close this PR (maybe?).

In the former case, you may want to edit this PR message as well.

⚠️ after resolving this conflict, you will need to merge it via @roboadhoc.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@fw-bot-adhoc
Copy link
Contributor Author

@ced-adhoc @jcadhoc this forward port of #807 is awaiting action (not merged or closed).

3 similar comments
@fw-bot-adhoc
Copy link
Contributor Author

@ced-adhoc @jcadhoc this forward port of #807 is awaiting action (not merged or closed).

@fw-bot-adhoc
Copy link
Contributor Author

@ced-adhoc @jcadhoc this forward port of #807 is awaiting action (not merged or closed).

@fw-bot-adhoc
Copy link
Contributor Author

@ced-adhoc @jcadhoc this forward port of #807 is awaiting action (not merged or closed).

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.

3 participants