Browse Source

beesdoo_website_shift : migration to version 10.0

pull/105/head
Elouan 5 years ago
parent
commit
75cf74080b
  1. 0
      beesdoo_website_shift/__manifest__.py
  2. 8
      beesdoo_website_shift/controllers/main.py
  3. 4
      beesdoo_website_shift/data/res_config_data.xml
  4. 2
      beesdoo_website_shift/models/res_config.py
  5. 4
      beesdoo_website_shift/views/my_shift_website_templates.xml
  6. 4
      beesdoo_website_shift/views/res_config_views.xml
  7. 4
      beesdoo_website_shift/views/shift_website_templates.xml

0
beesdoo_website_shift/__openerp__.py → beesdoo_website_shift/__manifest__.py

8
beesdoo_website_shift/controllers/main.py

@ -9,11 +9,11 @@ from datetime import datetime, timedelta
from itertools import groupby
from pytz import timezone, utc
from openerp import http, fields
from openerp.http import request
from odoo import http, fields
from odoo.http import request
from openerp.addons.beesdoo_shift.models.planning import float_to_time
from openerp.addons.beesdoo_shift.models.cooperative_status import PERIOD
from odoo.addons.beesdoo_shift.models.planning import float_to_time
from odoo.addons.beesdoo_shift.models.cooperative_status import PERIOD
class WebsiteShiftController(http.Controller):

4
beesdoo_website_shift/data/res_config_data.xml

@ -3,7 +3,7 @@
Copyright 2017-2018 Rémy Taymans <remytaymans@gmail.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<openerp>
<odoo>
<data noupdate="1">
<record id="beesdoo_website_shift.irregular_shift_limit" model="ir.config_parameter">
<field name="key">beesdoo_website_shift.irregular_shift_limit</field>
@ -38,4 +38,4 @@
<field name="value">20</field>
</record>
</data>
</openerp>
</odoo>

2
beesdoo_website_shift/models/res_config.py

@ -4,7 +4,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from ast import literal_eval
from openerp import fields, models, api
from odoo import fields, models, api
PARAMS = [
('irregular_shift_limit', 'beesdoo_website_shift.irregular_shift_limit'),

4
beesdoo_website_shift/views/my_shift_website_templates.xml

@ -3,7 +3,7 @@
Copyright 2017-2018 Rémy Taymans <remytaymans@gmail.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<openerp>
<odoo>
<!-- Add menu entries -->
<template id="my_shift_link" name="Link to frontend portal" inherit_id="website.layout">
@ -961,4 +961,4 @@
</t>
</template>
</openerp>
</odoo>

4
beesdoo_website_shift/views/res_config_views.xml

@ -3,7 +3,7 @@
Copyright 2017-2018 Rémy Taymans <remytaymans@gmail.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<openerp>
<odoo>
<data>
<record id="view_website_shift_config_irregular" model="ir.ui.view">
@ -101,4 +101,4 @@
sequence="10"/>
</data>
</openerp>
</odoo>

4
beesdoo_website_shift/views/shift_website_templates.xml

@ -3,7 +3,7 @@
Copyright 2017-2018 Rémy Taymans <remytaymans@gmail.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<openerp>
<odoo>
<!-- Add menu entries -->
<data noupdate="1">
@ -206,4 +206,4 @@
</t>
</template>
</openerp>
</odoo>
Loading…
Cancel
Save