Skip to content

Commit

Permalink
[FIX] resource_booking: Change combination_id mandatory when autoassi…
Browse files Browse the repository at this point in the history
…gn is false
  • Loading branch information
carolinafernandez-tecnativa committed Jun 27, 2024
1 parent 9f491dd commit 04e684d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resource_booking/tests/test_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ def test_event_show_as_free(self):
rb_f.start = "2021-03-01 09:30:00"
rb_f.duration = 0.5
rb_f.partner_ids.add(self.partner.copy())
with self.assertRaises(AssertionError):
with self.assertRaises(ValidationError):
rb_f.save()

def test_resource_is_available(self):
Expand Down
2 changes: 1 addition & 1 deletion resource_booking/views/resource_booking_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
<field
name="combination_id"
class="oe_inline"
attrs="{'required': [('start', '!=', False)], 'readonly': [('combination_auto_assign', '=', True)]}"
attrs="{'required': [('combination_auto_assign', '=', False)], 'readonly': [('combination_auto_assign', '=', True)]}"
/>
</div>
<field name="categ_ids" widget="many2many_tags" />
Expand Down

0 comments on commit 04e684d

Please sign in to comment.