Initial commit: OCA Workflow Process packages (456 packages)

This commit is contained in:
Ernad Husremovic 2025-08-29 15:43:00 +02:00
commit d366e42934
18799 changed files with 1284507 additions and 0 deletions

View file

@ -0,0 +1,26 @@
# Copyright 2018-2019 ForgeFlow, S.L.
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0)
from odoo import models
class Orderpoint(models.Model):
_inherit = "stock.warehouse.orderpoint"
def _quantity_in_progress(self):
res = super(Orderpoint, self)._quantity_in_progress()
for prline in self.env["purchase.request.line"].search(
[
(
"request_id.state",
"in",
("draft", "approved", "to_approve", "in_progress"),
),
("orderpoint_id", "in", self.ids),
("purchase_state", "=", False),
]
):
res[prline.orderpoint_id.id] += prline.product_uom_id._compute_quantity(
prline.product_qty, prline.orderpoint_id.product_uom, round=False
)
return res