Files
stock-logistics-warehouse/stock_putaway_method/tests/test_putaway_method.py
Alexandre Saunier 941162ee04 Putaway strategy: add module to restore the method field
The method field was removed in module 'stock' of Odoo 11. See
f2926823e8

Since the field is used by OCA modules such as stock_putaway_product
(eg. to add a 'per_product' method), the new stock_putaway_method module
is added to restore this feature if needed.
2021-07-06 16:42:53 -07:00

13 lines
414 B
Python

# Copyright 2018 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo.tests.common import TransactionCase
class TestPutawayMethod(TransactionCase):
# Check if "fixed" is a valid putaway method
def test_01_putaway_methods(self):
field_method = self.env['product.putaway']._fields.get('method')
self.assertIn('fixed', field_method.get_values(self.env))