[ADD][stock_available_unreserved] - Missing depends on qty_available_not_reserved compute method in order to update the quantity.

This commit is contained in:
ougc27
2019-01-07 12:09:36 -06:00
committed by Lois Rilo
parent 1697f7b719
commit d72daca162
6 changed files with 1 additions and 6 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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",

View File

@@ -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

View File

@@ -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:

View File

@@ -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