mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[MIG] stock_free_quantity: Migration to 15.0
This commit is contained in:
1
setup/stock_free_quantity/odoo/addons/stock_free_quantity
Symbolic link
1
setup/stock_free_quantity/odoo/addons/stock_free_quantity
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../stock_free_quantity
|
||||
6
setup/stock_free_quantity/setup.py
Normal file
6
setup/stock_free_quantity/setup.py
Normal file
@@ -0,0 +1,6 @@
|
||||
import setuptools
|
||||
|
||||
setuptools.setup(
|
||||
setup_requires=['setuptools-odoo'],
|
||||
odoo_addon=True,
|
||||
)
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
{
|
||||
"name": "Stock Free Quantity",
|
||||
"version": "14.0.1.0.0",
|
||||
"version": "15.0.1.0.0",
|
||||
"author": "akretion,Odoo Community Association (OCA)",
|
||||
"website": "https://github.com/OCA/stock-logistics-warehouse",
|
||||
"development_status": "Production/Stable",
|
||||
|
||||
@@ -20,6 +20,7 @@ class ProductTemplate(models.Model):
|
||||
res = self._compute_quantities_dict()
|
||||
for template in self:
|
||||
template.free_qty = res[template.id]["free_qty"]
|
||||
return
|
||||
|
||||
def _search_free_qty(self, operator, value):
|
||||
return [("product_variant_ids.free_qty", operator, value)]
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
|
||||
|
||||
from odoo.tests import common
|
||||
from odoo.tests.common import TransactionCase
|
||||
|
||||
|
||||
class TestTemplateFreeQty(common.SavepointCase):
|
||||
class TestTemplateFreeQty(TransactionCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super().setUpClass()
|
||||
|
||||
Reference in New Issue
Block a user