Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP]14.0-pms_housekeeping: new hr_employee inherit and housekeeping_… #254

Merged
merged 8 commits into from
Apr 2, 2024
Merged
2 changes: 1 addition & 1 deletion pms_housekeeping/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Housekeeping
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:20e74e9aef367010d0747e723279da0e6888174bdbc3a21577fc71504fb9fe12
!! source digest: sha256:ad6a062413114aacf03fe2fbca31a04c8247dd80589f13cc1f21d890a478f2eb
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
Expand Down
15 changes: 7 additions & 8 deletions pms_housekeeping/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,17 @@
"depends": [
"pms",
"hr",
"pms_hr_property",
],
"data": [
# "wizard/housekeeping_rack.xml",
"views/pms_room_view.xml",
"views/pms_reservation_view.xml",
"views/pms_housekeeping_task_view.xml",
"views/pms_housekeeping_views.xml",
"security/ir.model.access.csv",
"data/pms_housekeeping_data.xml",
"data/cron_jobs.xml",
],
"demo": [
"demo/pms_housekeeping.xml",
"views/hr_employee_views.xml",
"views/pms_housekeeping_task_type_views.xml",
"views/pms_housekeeping_views.xml",
"views/pms_housekeeping_task_views.xml",
"views/pms_room_views.xml",
],
"installable": True,
}
28 changes: 14 additions & 14 deletions pms_housekeeping/data/cron_jobs.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Set all task -->
<record model="ir.cron" id="add_all_today_tasks">
<field name="name">Automatic add all today housekeeping tasks</field>
<field name="interval_number">1</field>
<field name="user_id" ref="base.user_root" />
<field name="interval_type">days</field>
<field name="numbercall">-1</field>
<field name="doall" eval="False" />
<field name="state">code</field>
<field name="model_id" ref="model_pms_room" />
<field
<!-- Generate housekeeping tasks-->
<record model="ir.cron" id="generate_tasks">
<field name="name">Generate Housekeeping Tasks</field>
<field name="interval_number">1</field>
<field name="user_id" ref="base.user_root" />
<field name="interval_type">days</field>
<field name="numbercall">-1</field>
<field name="doall" eval="False" />
<field name="state">code</field>
<field name="model_id" ref="model_pms_housekeeping_task" />
<field
name="nextcall"
eval="(DateTime.now() + timedelta(days=1)).strftime('%Y-%m-%d 03:00:00')"
eval="(DateTime.now() + timedelta(days=1)).strftime('%Y-%m-%d 05:00:00')"
/>
<field name="code">model.add_all_today_tasks()</field>
</record>
<field name="code">model.generate_task_properties()</field>
</record>
</odoo>
15 changes: 15 additions & 0 deletions pms_housekeeping/data/pms_housekeeping_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<odoo noupdate="1">
<record id="housekeeping_job_id" model="hr.job">
<field name="name">Housekeeper</field>
<field name="state">open</field>
</record>
<record
id="cancellation_type_dont_disturb"
model="pms.housekeeping.cancellation.type"
>
<field name="name">Don´t disturb</field>
</record>
<record id="cancellation_type_promotion" model="pms.housekeeping.cancellation.type">
<field name="name">Promotion</field>
</record>
</odoo>
63 changes: 0 additions & 63 deletions pms_housekeeping/demo/pms_housekeeping.xml

This file was deleted.

Loading
Loading