mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
17 lines
544 B
Python
17 lines
544 B
Python
# Copyright 2017 Creu Blanca
|
|
# Copyright 2017 Eficent Business and IT Consulting Services, S.L.
|
|
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
|
|
|
|
from odoo.tests.common import TransactionCase
|
|
from reportlab.graphics.barcode import getCodes
|
|
|
|
|
|
class TestBaseKanban(TransactionCase):
|
|
|
|
def pass_code(self, wizard, code):
|
|
bcc = getCodes()[
|
|
self.env['stock.request.kanban'].get_barcode_format()](value=code)
|
|
bcc.validate()
|
|
bcc.encode()
|
|
wizard.on_barcode_scanned(bcc.encoded[1:-1])
|