Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LoisRForgeFlow committed Jan 3, 2018
1 parent 2c9cc48 commit 0d41688
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stock_cycle_count/models/stock_location.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def create_zero_confirmation_cycle_count(self):
self.ensure_one()
date = datetime.today().strftime(DEFAULT_SERVER_DATETIME_FORMAT)
wh_id = self.get_warehouse().id
date_horizon = self.get_warehouse().get_horizon_date()[0].strftime(
date_horizon = self.get_warehouse().get_horizon_date().strftime(
DEFAULT_SERVER_DATETIME_FORMAT)
counts_planned = self.env['stock.cycle.count'].search([
('date_deadline', '<', date_horizon), ('state', '=', 'draft'),
Expand Down
2 changes: 1 addition & 1 deletion stock_cycle_count/tests/test_stock_cycle_count.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def test_view_methods(self):
self.rule_accuracy,
self.zero_rule]
for r in rules:
r._get_rule_description()
r._compute_rule_description()
self.assertTrue(r.rule_description, 'No description provided')
self.rule_accuracy._get_warehouses()
self.assertEqual(self.rule_accuracy.warehouse_ids.ids, self.big_wh.ids,
Expand Down

0 comments on commit 0d41688

Please sign in to comment.