oca-ocb-pos/odoo-bringout-oca-ocb-pos_restaurant/pos_restaurant/tests/test_pos_restaurant_flow.py
Ernad Husremovic 3ca647e428 19.0 vanilla
2026-03-09 09:29:53 +01:00

14 lines
581 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo.tests import tagged
from odoo.addons.pos_restaurant.tests.test_frontend import TestFrontendCommon
@tagged('post_install', '-at_install')
class TestPosRestaurantFlow(TestFrontendCommon):
def test_floor_plans_archive(self):
floors = self.main_floor + self.second_floor
floors.action_archive()
# All floors should be archived successfully
self.assertTrue(all(floor.active is False for floor in floors), "All floors should be archived")