mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[FIX] stock_cycle_count (usage cannot be 'view')
This commit is contained in:
@@ -148,7 +148,7 @@ class TestStockCycleCount(common.TransactionCase):
|
||||
self.assertFalse(
|
||||
counts, 'Existing cycle counts before execute planner.')
|
||||
date_pre_existing_cc = datetime.today() + timedelta(days=30)
|
||||
loc = locs[0]
|
||||
loc = locs.filtered(lambda l: l.usage != 'view')[0]
|
||||
pre_existing_count = self.cycle_count_model.create({
|
||||
'name': 'To be cancelled when running cron job.',
|
||||
'cycle_count_rule_id': self.rule_periodic.id,
|
||||
|
||||
Reference in New Issue
Block a user