mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[ADD][stock_available_unreserved] - Missing depends on qty_available_not_reserved compute method in order to update the quantity.
This commit is contained in:
@@ -49,7 +49,6 @@ Contributors
|
||||
* Stefan Rijnhart <stefan@opener.amsterdam>
|
||||
* Mykhailo Panarin <m.panarin@mobilunity.com>
|
||||
* Atte Isopuro <atte.isopuro@avoin.systems>
|
||||
* Oscar Garza <oscar.garza@jarsa.com.mx>
|
||||
|
||||
|
||||
Maintainer
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
# Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# Copyright 2016 Eficent Business and IT Consulting Services S.L.
|
||||
# (http://www.eficent.com)
|
||||
# Copyright 2019 JARSA Sistemas S.A. de C.V.
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from . import models
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
# Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# Copyright 2016 Eficent Business and IT Consulting Services S.L.
|
||||
# (http://www.eficent.com)
|
||||
# Copyright 2019 JARSA Sistemas S.A. de C.V.
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
{
|
||||
"name": "Stock Available Unreserved",
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
# Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# Copyright 2016 Eficent Business and IT Consulting Services S.L.
|
||||
# (http://www.eficent.com)
|
||||
# Copyright 2019 JARSA Sistemas S.A. de C.V.
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from . import product
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
# Copyright 2016 ACSONE SA/NV (<http://acsone.eu>)
|
||||
# Copyright 2016 Eficent Business and IT Consulting Services S.L.
|
||||
# (http://www.eficent.com)
|
||||
# Copyright 2019 JARSA Sistemas S.A. de C.V.
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from odoo import api, fields, models, _
|
||||
@@ -105,6 +104,7 @@ class ProductProduct(models.Model):
|
||||
return res
|
||||
|
||||
@api.multi
|
||||
@api.depends('stock_move_ids.product_qty', 'stock_move_ids.state')
|
||||
def _compute_qty_available_not_reserved(self):
|
||||
res = self._compute_product_available_not_res_dict()
|
||||
for prod in self:
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# Copyright 2018 Camptocamp SA
|
||||
# Copyright 2019 JARSA Sistemas S.A. de C.V.
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from odoo import api, fields, models
|
||||
|
||||
Reference in New Issue
Block a user