1
0
forked from erp-dev/erp

fix: current_state has been changed to a computed property

This commit is contained in:
2025-11-19 10:23:17 +08:00
parent 7f822b0064
commit 400c0db6db
14 changed files with 964 additions and 87 deletions

View File

@@ -137,7 +137,7 @@ class PlateOrderModelTestCase(TestCase):
customer=self.customer,
)
self.assertEqual(plate_order.status, '未开始')
self.assertEqual(plate_order.status, '') # 废除"未开始",显示空字符串
self.assertFalse(plate_order.is_completed)
self.assertFalse(plate_order.has_started) # 因为没有 business_object
self.assertEqual(plate_order.progress_percentage, 0.0)