Browse Source

[FIX] b_w_shift: Configure highlight of task template

Fix for feature added in commit 24d193d.
9.0-bees-highlight_task_template
Rémy Taymans 5 years ago
parent
commit
d037505afd
  1. 2
      beesdoo_website_shift/__openerp__.py
  2. 2
      beesdoo_website_shift/models/res_config.py
  3. 4
      beesdoo_website_shift/views/res_config_views.xml

2
beesdoo_website_shift/__openerp__.py

@ -16,7 +16,7 @@
'author': 'Rémy Taymans',
'license': 'AGPL-3',
'version': '9.0.2.3.0',
'version': '9.0.2.3.1',
'website': "https://github.com/beescoop/Obeesdoo",
'category': 'Cooperative management',

2
beesdoo_website_shift/models/res_config.py

@ -129,7 +129,7 @@ class WebsiteShiftConfigSettings(models.TransientModel):
@api.multi
def get_default_regular_highlight_rule(self):
return {
'regular_next_shift_limit': int(
'regular_highlight_rule': int(
self.env['ir.config_parameter']
.get_param('beesdoo_website_shift.regular_highlight_rule')
)

4
beesdoo_website_shift/views/res_config_views.xml

@ -56,6 +56,10 @@
<label for="regular_next_shift_limit"/>
<field name="regular_next_shift_limit"/>
</div>
<div>
<label for="regular_highlight_rule"/>
<field name="regular_highlight_rule"/>
</div>
</form>
</field>
</record>

Loading…
Cancel
Save