-
-
Notifications
You must be signed in to change notification settings - Fork 99
[MIG][BACKPORT][12.0] ddmrp #63
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
Conversation
Sometimes procurements are over-fulfilled so the subtract qty becomes negative, we don't want to apply it in that case, since we will be taking into account some stock moves twice.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: ddmrp-13.0/ddmrp-13.0-ddmrp Translate-URL: https://translation.odoo-community.org/projects/ddmrp-13-0/ddmrp-13-0-ddmrp/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: ddmrp-13.0/ddmrp-13.0-ddmrp Translate-URL: https://translation.odoo-community.org/projects/ddmrp-13-0/ddmrp-13-0-ddmrp/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: ddmrp-13.0/ddmrp-13.0-ddmrp Translate-URL: https://translation.odoo-community.org/projects/ddmrp-13-0/ddmrp-13-0-ddmrp/
Currently translated at 6.1% (15 of 247 strings) Translation: ddmrp-13.0/ddmrp-13.0-ddmrp Translate-URL: https://translation.odoo-community.org/projects/ddmrp-13-0/ddmrp-13-0-ddmrp/fr/
Currently translated at 15.0% (37 of 247 strings) Translation: ddmrp-13.0/ddmrp-13.0-ddmrp Translate-URL: https://translation.odoo-community.org/projects/ddmrp-13-0/ddmrp-13-0-ddmrp/fr/
Signed-off-by: Luis Felipe Mileo <[email protected]>
Signed-off-by: Luis Felipe Mileo <[email protected]>
Signed-off-by: Luis Felipe Mileo <[email protected]>
Signed-off-by: Luis Felipe Mileo <[email protected]>
Hi @JordiBForgeFlow, @LoisRForgeFlow, |
@mileo I get the following error message when confirming a purchase order created from the buffer:
|
ddmrp/models/stock_move.py
Outdated
if "state" in vals and self.company_id.ddmrp_auto_update_nfp: | ||
self._update_ddmrp_nfp() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if "state" in vals and self.company_id.ddmrp_auto_update_nfp: | |
self._update_ddmrp_nfp() | |
if "state" in vals: | |
for move in self.filtered(lambda m: m.company_id.ddmrp_auto_update_nfp): | |
move._update_ddmrp_nfp() |
[FIX] ddmrp: ValueError: Expected singleton: stock.move(...)
def _calc_execution_priority(self): | ||
# TODO: handle serveral buffers? worst scenario, average? | ||
to_compute = self.filtered( | ||
lambda r: r.buffer_ids and r.state not in ["done", "cancel"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mileo If you activate the purchase lock option in Purchase settings, when confirming the PO, the lines are already in state done when reaching this line and so the execution_priority_level
and on_hand_percent
are set to None.
CC: @LoisRForgeFlow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mileo @LoisRForgeFlow See kmee#2 for a possible solution. Feel free to implement a better one.
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. |
No description provided.