changeset 6bee5ded03ca in trytond:default
details: https://hg.tryton.org/trytond?cmd=changeset;node=6bee5ded03ca
description:
        Add day view on calendar

        issue7774
        review66441002
diffstat:

 CHANGELOG                  |  1 +
 doc/topics/views/index.rst |  3 ++-
 trytond/ir/ui/calendar.rnc |  3 ++-
 trytond/ir/ui/calendar.rng |  1 +
 4 files changed, 6 insertions(+), 2 deletions(-)

diffs (45 lines):

diff -r 4a2fa4f484af -r 6bee5ded03ca CHANGELOG
--- a/CHANGELOG Wed Mar 27 00:28:58 2019 +0100
+++ b/CHANGELOG Thu Mar 28 12:26:36 2019 +0100
@@ -1,3 +1,4 @@
+* Add day view on calendar
 * Raise NotImplementedError when setting Function field without setter
 * Add exports in view_toolbar_get
 * Add resources method to ModelStorage
diff -r 4a2fa4f484af -r 6bee5ded03ca doc/topics/views/index.rst
--- a/doc/topics/views/index.rst        Wed Mar 27 00:28:58 2019 +0100
+++ b/doc/topics/views/index.rst        Thu Mar 28 12:26:36 2019 +0100
@@ -804,7 +804,8 @@
     * ``dtend``: The name of the field that contains the end date.
 
     * ``mode``: An optional name for the view that will be used first.
-      Available views are: `week` and `month`. The default value is `month`.
+      Available views are: `day`, `week` and `month`. The default value is 
+      `month`.
 
     * ``color``: An optional field name that contains the text color for the
       event. The default value is `black`.
diff -r 4a2fa4f484af -r 6bee5ded03ca trytond/ir/ui/calendar.rnc
--- a/trytond/ir/ui/calendar.rnc        Wed Mar 27 00:28:58 2019 +0100
+++ b/trytond/ir/ui/calendar.rnc        Thu Mar 28 12:26:36 2019 +0100
@@ -6,7 +6,8 @@
 attlist.calendar &=
   attribute dtend { text }?
 attlist.calendar &=
-  attribute mode { "week"
+  attribute mode { "day"
+      | "week"
       | "month" }?
 attlist.calendar &=
    [ a:defaultValue = "black" ] attribute color { text }?
diff -r 4a2fa4f484af -r 6bee5ded03ca trytond/ir/ui/calendar.rng
--- a/trytond/ir/ui/calendar.rng        Wed Mar 27 00:28:58 2019 +0100
+++ b/trytond/ir/ui/calendar.rng        Thu Mar 28 12:26:36 2019 +0100
@@ -29,6 +29,7 @@
       <attribute>
         <name ns="">mode</name>
         <choice>
+          <value>day</value>
           <value>week</value>
           <value>month</value>
         </choice>

Reply via email to