diff --git a/stock_available_unreserved/README.rst b/stock_available_unreserved/README.rst index cad36577b..ad650e028 100644 --- a/stock_available_unreserved/README.rst +++ b/stock_available_unreserved/README.rst @@ -49,7 +49,6 @@ Contributors * Stefan Rijnhart * Mykhailo Panarin * Atte Isopuro -* Oscar Garza Maintainer diff --git a/stock_available_unreserved/__init__.py b/stock_available_unreserved/__init__.py index cecd8fd14..a00d71200 100644 --- a/stock_available_unreserved/__init__.py +++ b/stock_available_unreserved/__init__.py @@ -1,7 +1,6 @@ # Copyright 2016 ACSONE SA/NV () # 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 diff --git a/stock_available_unreserved/__manifest__.py b/stock_available_unreserved/__manifest__.py index 490983ecf..11b9efdf2 100644 --- a/stock_available_unreserved/__manifest__.py +++ b/stock_available_unreserved/__manifest__.py @@ -2,7 +2,6 @@ # Copyright 2016 ACSONE SA/NV () # 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", diff --git a/stock_available_unreserved/models/__init__.py b/stock_available_unreserved/models/__init__.py index b5f273ba9..e76114f16 100644 --- a/stock_available_unreserved/models/__init__.py +++ b/stock_available_unreserved/models/__init__.py @@ -1,7 +1,6 @@ # Copyright 2016 ACSONE SA/NV () # 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 diff --git a/stock_available_unreserved/models/product.py b/stock_available_unreserved/models/product.py index 28c018337..8d66c164a 100644 --- a/stock_available_unreserved/models/product.py +++ b/stock_available_unreserved/models/product.py @@ -2,7 +2,6 @@ # Copyright 2016 ACSONE SA/NV () # 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: diff --git a/stock_available_unreserved/models/quant.py b/stock_available_unreserved/models/quant.py index b01868522..625634092 100644 --- a/stock_available_unreserved/models/quant.py +++ b/stock_available_unreserved/models/quant.py @@ -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