summaryrefslogtreecommitdiff
path: root/addons/project/static
diff options
context:
space:
mode:
authorKevin Baptiste <kba@odoo.com>2020-06-23 13:26:42 +0000
committerKevin Baptiste <kba@odoo.com>2020-08-12 08:39:32 +0000
commit1b62bd9508c58c5a4f2e41f2176d737a2e404656 (patch)
tree61ed108841e5a9506d5bb3b49641c2d66733bbb4 /addons/project/static
parent0dd48767623dd9e6e53d943e8b87d4bfd18ca53c (diff)
[IMP] project: add recurring tasks
Some interventions are done on a regular basis (e.g. maintenance of fire alarms, safety inspections). Having tasks auto-generate would facilitate the process and would ensure that the next intervention isn't missed/forgotten. closes odoo/odoo#55517 Taskid: 2172156 Related: odoo/enterprise#12246 Related: odoo/upgrade#1604 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/project/static')
-rw-r--r--addons/project/static/src/css/project.css4
-rw-r--r--addons/project/static/src/scss/project_dashboard.scss12
-rw-r--r--addons/project/static/src/xml/project_templates.xml17
3 files changed, 33 insertions, 0 deletions
diff --git a/addons/project/static/src/css/project.css b/addons/project/static/src/css/project.css
index 19f265cd2c6..a88d7d1b7b7 100644
--- a/addons/project/static/src/css/project.css
+++ b/addons/project/static/src/css/project.css
@@ -70,3 +70,7 @@
margin-right: 150px;
padding-left: 1rem;
}
+
+.o_form_project_recurrence_message *:last-child {
+ margin-bottom: 0;
+}
diff --git a/addons/project/static/src/scss/project_dashboard.scss b/addons/project/static/src/scss/project_dashboard.scss
index 5e0b0c7da39..73539824e82 100644
--- a/addons/project/static/src/scss/project_dashboard.scss
+++ b/addons/project/static/src/scss/project_dashboard.scss
@@ -37,3 +37,15 @@
}
}
+.o_dow_widget {
+ th {
+ padding: 10px 10px 0 10px;
+ }
+
+ .o_dow_days {
+ td {
+ text-align: center;
+ vertical-align: middle;
+ }
+ }
+}
diff --git a/addons/project/static/src/xml/project_templates.xml b/addons/project/static/src/xml/project_templates.xml
new file mode 100644
index 00000000000..f30d8c95a0e
--- /dev/null
+++ b/addons/project/static/src/xml/project_templates.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<templates id="template" xml:space="preserve">
+ <t t-name="day_of_week_widget">
+ <table class="o_dow_widget">
+ <thead>
+ <tr>
+ <th t-foreach="widget.labels" t-as="label">
+ <t t-esc="label"/>
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr class="o_dow_days" />
+ </tbody>
+ </table>
+ </t>
+</templates>