Browse Source

[FIX] b_w_shift: Configure highlight of task template

Fix for feature added in commit 24d193d.
pull/105/head
Rémy Taymans 5 years ago
committed by Elouan
parent
commit
5bf57d7878
  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', 'author': 'Rémy Taymans',
'license': 'AGPL-3', 'license': 'AGPL-3',
'version': '9.0.2.3.0',
'version': '9.0.2.3.1',
'website': "https://github.com/beescoop/Obeesdoo", 'website': "https://github.com/beescoop/Obeesdoo",
'category': 'Cooperative management', 'category': 'Cooperative management',

2
beesdoo_website_shift/models/res_config.py

@ -129,7 +129,7 @@ class WebsiteShiftConfigSettings(models.TransientModel):
@api.multi @api.multi
def get_default_regular_highlight_rule(self): def get_default_regular_highlight_rule(self):
return { return {
'regular_next_shift_limit': int(
'regular_highlight_rule': int(
self.env['ir.config_parameter'] self.env['ir.config_parameter']
.get_param('beesdoo_website_shift.regular_highlight_rule') .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"/> <label for="regular_next_shift_limit"/>
<field name="regular_next_shift_limit"/> <field name="regular_next_shift_limit"/>
</div> </div>
<div>
<label for="regular_highlight_rule"/>
<field name="regular_highlight_rule"/>
</div>
</form> </form>
</field> </field>
</record> </record>

Loading…
Cancel
Save