[REM] hr_timesheet, im_livechat: Awesome Timesheet

Our intentions is to push people to use the Timesheet app inside
Odoo instead of this old mobile app.

Task ID: 3168693

closes odoo/odoo#112558

Related: odoo/enterprise#37035
Related: odoo/upgrade#4331
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
This commit is contained in:
Adrien Dieudonne
2023-02-22 20:25:22 +01:00
committed by Adrien Dieudonné
parent 1648c25cc9
commit 9ebec424c2
3 changed files with 1 additions and 26 deletions
@@ -7,8 +7,6 @@ from odoo import api, fields, models
class ResConfigSettings(models.TransientModel):
_inherit = 'res.config.settings'
module_project_timesheet_synchro = fields.Boolean("Awesome Timesheet",
compute="_compute_timesheet_modules", store=True, readonly=False)
module_project_timesheet_holidays = fields.Boolean("Time Off",
compute="_compute_timesheet_modules", store=True, readonly=False)
reminder_user_allow = fields.Boolean(string="Employee Reminder")
@@ -44,6 +42,5 @@ class ResConfigSettings(models.TransientModel):
@api.depends('module_hr_timesheet')
def _compute_timesheet_modules(self):
self.filtered(lambda config: not config.module_hr_timesheet).update({
'module_project_timesheet_synchro': False,
'module_project_timesheet_holidays': False,
})
@@ -16,28 +16,6 @@
<field name="timesheet_encode_method" class="col-lg-5 ps-0" widget="radio"/>
<field name="is_encode_uom_days" invisible="1"/>
</setting>
<setting help="Track your time from anywhere, even offline, with our web/mobile apps" id="synchronize_web_mobile_setting">
<field name="module_project_timesheet_synchro" widget="upgrade_boolean"/>
<div class="content-group">
<div class="row mt16 oe_center">
<div class="col-lg-3 pe-0 o_chrome_store_link d-none d-sm-inline-block">
<a href="http://www.odoo.com/app/timesheet?platform=chrome" class="align-middle" target="_blank">
<img alt="Google Chrome Store" class="img img-fluid align-middle mt-1" style="height: 85% !important;" src="project/static/src/img/chrome_store.png"/>
</a>
</div>
<div class="col-lg-3 pe-0">
<a href="https://apps.apple.com/be/app/awesome-timesheet/id1078657549" class="align-middle" target="_blank">
<img alt="Apple App Store" class="img img-fluid h-100 o_config_app_store" src="project/static/src/img/app_store.png"/>
</a>
</div>
<div class="col-lg-3 pe-0">
<a href="https://play.google.com/store/apps/details?id=com.odoo.OdooTimesheets" class="align-middle" target="_blank">
<img alt="Google Play Store" class="img img-fluid h-100 o_config_play_store" src="project/static/src/img/play_store.png"/>
</a>
</div>
</div>
</div>
</setting>
</block>
<block title="Timesheets Control">
<setting id="reminder_user_allow" company_dependent="1" help="Send a periodical email reminder to timesheets users that still have timesheets to encode">
@@ -55,7 +55,7 @@
<field name="res_id" ref="im_livechat.im_livechat_mail_channel_data_0"/>
<field name="message_type">email</field>
<field name="author_id" ref="base.partner_admin"/>
<field name="body">Yes, you can use our Timesheets application and Awesome Timesheets to record your time efficiently!</field>
<field name="body">Yes, you can use our Timesheets application to record your time efficiently!</field>
<field eval="DateTime.today() + relativedelta(months=-1, days=-0, minutes=3)" name="date"/>
</record>
<record id="im_livechat_mail_message_2_data" model="mail.message">