Browse Source

Merge pull request #222 from savoirfairelinux/8.0_super_calendar_filters

[IMP] Add filters to super_calendar
pull/230/head
Yannick Vaucher 9 years ago
parent
commit
f6925ec8d7
  1. 132
      super_calendar/i18n/fr.po
  2. 126
      super_calendar/i18n/super_calendar.pot
  3. 45
      super_calendar/views/super_calendar_view.xml

132
super_calendar/i18n/fr.po

@ -6,16 +6,16 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-06-19 15:56+0000\n"
"PO-Revision-Date: 2015-06-19 12:06-0500\n"
"POT-Creation-Date: 2015-07-29 20:39+0000\n"
"PO-Revision-Date: 2015-07-29 16:43-0500\n"
"Last-Translator: Agathe Mollé <agathe.molle@savoirfairelinux.com>\n"
"Language-Team: Savoir-faire Linux <support@savoirfairelinux.com>\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Poedit 1.5.4\n"
"Language: fr\n"
"X-Poedit-SourceCharset: UTF-8\n"
#. module: super_calendar
@ -69,10 +69,24 @@ msgstr "Créé par"
msgid "Created on"
msgstr "Créé le"
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Current month"
msgstr "Mois courant"
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Current week"
msgstr "Semaine courante"
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Day"
msgstr "Jour"
#. module: super_calendar
#: field:super.calendar,name:0
#: view:super.calendar.configurator:super_calendar.super_calendar_configurator_form
#: field:super.calendar.configurator.line,description:0
msgid "Description"
msgstr "Description"
@ -87,6 +101,26 @@ msgstr "Type de Description"
msgid "Description field"
msgstr "Champ Description"
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Display all elements in the current month."
msgstr "Afficher tous les éléments du mois courant."
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Display all elements in the current week."
msgstr "Afficher tous les éléments de la semaine courante."
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Display all elements in the next month."
msgstr "Afficher tous les éléments du mois prochain."
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Display all elements in the next week."
msgstr "Afficher tous les éléments de la semaine prochaine."
#. module: super_calendar
#: field:super.calendar.configurator.line,domain:0
msgid "Domain"
@ -107,12 +141,6 @@ msgstr "Champ Durée"
msgid "End date field"
msgstr "Champ Date de fin"
#. module: super_calendar
#: code:addons/super_calendar/models/super_calendar.py:100
#, python-format
msgid "Error"
msgstr "Erreur"
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Extended Filters..."
@ -128,6 +156,36 @@ msgstr "Champ"
msgid "Generate Calendar"
msgstr "Générer le calendrier"
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Group By"
msgstr "Grouper par"
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Group all elements in the same day."
msgstr "Regrouper les éléments par jour."
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Group all elements in the same month."
msgstr "Regrouper les éléments par mois."
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Group all elements in the same quarter."
msgstr "Regrouper les éléments par trimestre."
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Group all elements in the same week."
msgstr "Regrouper les éléments par semaine."
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Group all elements in the same year."
msgstr "Regrouper les éléments par année."
#. module: super_calendar
#: field:super.calendar,id:0 field:super.calendar.configurator,id:0
#: field:super.calendar.configurator.line,id:0
@ -166,9 +224,9 @@ msgid "Model"
msgstr "Modèle"
#. module: super_calendar
#: field:super.calendar,model_description:0
msgid "Model Description"
msgstr "Description du modèle"
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Month"
msgstr "Mois"
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
@ -180,6 +238,26 @@ msgstr "Mes éléments"
msgid "Name"
msgstr "Nom"
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Next month"
msgstr "Mois prochain"
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Next week"
msgstr "Semaine prochaine"
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Period"
msgstr "Période"
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Quarter"
msgstr "Trimestre"
#. module: super_calendar
#: field:super.calendar,res_id:0
msgid "Resource"
@ -207,16 +285,24 @@ msgid "Super Calendar"
msgstr "Super Calendrier"
#. module: super_calendar
#: code:addons/super_calendar/models/super_calendar.py:101
#: code:addons/super_calendar/models/super_calendar_configurator.py:112
#, python-format
msgid "The 'User' field of record %s (%s) does not refer to res.users"
msgstr ""
"Le champ 'Utilisateur' de l'enregistrement %s (%s) ne réfère pas à res.users"
#. module: super_calendar
#: view:super.calendar.configurator:super_calendar.super_calendar_configurator_form
#: help:super.calendar.configurator.line,description_code:0
msgid ""
"Use '${o}' to refer to the involved object.\n"
"E.g.: '${o.project_id.name}'"
msgstr ""
"Utilisez '${o}' pour référer à l'objet concerné. \n"
"Par exemple : '${o.project_id.name}'"
#. module: super_calendar
#: view:super.calendar.configurator:super_calendar.super_calendar_configurator_form
msgid ""
"Use '${o}' to refer to the involved object. E.g.: '${o.project_id.name}'"
msgstr ""
"Utilisez '${o}' pour référer à l'objet concerné. Par exemple : '${o."
@ -231,3 +317,19 @@ msgstr "Utilisateur"
#: field:super.calendar.configurator.line,user_field_id:0
msgid "User field"
msgstr "Champ Utilisateur"
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Week"
msgstr "Semaine"
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Year"
msgstr "Année"
#~ msgid "Error"
#~ msgstr "Erreur"
#~ msgid "Model Description"
#~ msgstr "Description du modèle"

126
super_calendar/i18n/super_calendar.pot

@ -6,9 +6,9 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-06-19 15:56+0000\n"
"PO-Revision-Date: 2015-06-19 15:56+0000\n"
"Last-Translator: <>\n"
"POT-Creation-Date: 2015-07-29 20:39+0000\n"
"PO-Revision-Date: 2015-07-29 16:40-0500\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@ -66,10 +66,24 @@ msgstr ""
msgid "Created on"
msgstr ""
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Current month"
msgstr ""
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Current week"
msgstr ""
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Day"
msgstr ""
#. module: super_calendar
#: field:super.calendar,name:0
#: view:super.calendar.configurator:super_calendar.super_calendar_configurator_form
#: field:super.calendar.configurator.line,description:0
msgid "Description"
msgstr ""
@ -84,6 +98,26 @@ msgstr ""
msgid "Description field"
msgstr ""
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Display all elements in the current month."
msgstr ""
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Display all elements in the current week."
msgstr ""
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Display all elements in the next month."
msgstr ""
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Display all elements in the next week."
msgstr ""
#. module: super_calendar
#: field:super.calendar.configurator.line,domain:0
msgid "Domain"
@ -104,12 +138,6 @@ msgstr ""
msgid "End date field"
msgstr ""
#. module: super_calendar
#: code:addons/super_calendar/models/super_calendar.py:100
#, python-format
msgid "Error"
msgstr ""
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Extended Filters..."
@ -126,8 +154,37 @@ msgid "Generate Calendar"
msgstr ""
#. module: super_calendar
#: field:super.calendar,id:0
#: field:super.calendar.configurator,id:0
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Group By"
msgstr ""
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Group all elements in the same day."
msgstr ""
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Group all elements in the same month."
msgstr ""
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Group all elements in the same quarter."
msgstr ""
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Group all elements in the same week."
msgstr ""
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Group all elements in the same year."
msgstr ""
#. module: super_calendar
#: field:super.calendar,id:0 field:super.calendar.configurator,id:0
#: field:super.calendar.configurator.line,id:0
msgid "ID"
msgstr ""
@ -164,8 +221,8 @@ msgid "Model"
msgstr ""
#. module: super_calendar
#: field:super.calendar,model_description:0
msgid "Model Description"
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Month"
msgstr ""
#. module: super_calendar
@ -178,6 +235,26 @@ msgstr ""
msgid "Name"
msgstr ""
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Next month"
msgstr ""
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Next week"
msgstr ""
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Period"
msgstr ""
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Quarter"
msgstr ""
#. module: super_calendar
#: field:super.calendar,res_id:0
msgid "Resource"
@ -205,15 +282,22 @@ msgid "Super Calendar"
msgstr ""
#. module: super_calendar
#: code:addons/super_calendar/models/super_calendar.py:101
#: code:addons/super_calendar/models/super_calendar_configurator.py:112
#, python-format
msgid "The 'User' field of record %s (%s) does not refer to res.users"
msgstr ""
#. module: super_calendar
#: view:super.calendar.configurator:super_calendar.super_calendar_configurator_form
#: help:super.calendar.configurator.line,description_code:0
msgid "Use '${o}' to refer to the involved object. E.g.: '${o.project_id.name}'"
msgid ""
"Use '${o}' to refer to the involved object.\n"
"E.g.: '${o.project_id.name}'"
msgstr ""
#. module: super_calendar
#: view:super.calendar.configurator:super_calendar.super_calendar_configurator_form
msgid ""
"Use '${o}' to refer to the involved object. E.g.: '${o.project_id.name}'"
msgstr ""
#. module: super_calendar
@ -225,3 +309,13 @@ msgstr ""
#: field:super.calendar.configurator.line,user_field_id:0
msgid "User field"
msgstr ""
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Week"
msgstr ""
#. module: super_calendar
#: view:super.calendar:super_calendar.super_calendar_search
msgid "Year"
msgstr ""

45
super_calendar/views/super_calendar_view.xml

@ -134,6 +134,51 @@
<field name="date_start" />
<field name="duration" />
</group>
<group expand="0" string="Period">
<filter string="Current week"
name="current_week"
domain="[('date_start','&lt;=', (context_today() + relativedelta(weeks=0, weekday=6)).strftime('%%Y-%%m-%%d')),
('date_start','&gt;',(context_today() - relativedelta(weeks=1, weekday=6)).strftime('%%Y-%%m-%%d'))]"
help="Display all elements in the current week." />
<filter string="Current month"
name="current_month"
domain="[('date_start','&lt;',(context_today()+relativedelta(months=1)).strftime('%%Y-%%m-01')),
('date_start','&gt;=',time.strftime('%%Y-%%m-01'))]"
help="Display all elements in the current month." />
<filter string="Next week"
name="next_week"
domain="[('date_start','&gt;',(context_today()+relativedelta(weeks=0, weekday=6)).strftime('%%Y-%%m-%%d')),
('date_start','&lt;=',(context_today()+relativedelta(weeks=1, weekday=6)).strftime('%%Y-%%m-%%d'))]"
help="Display all elements in the next week." />
<filter string="Next month"
name="next_month"
domain="[('date_start','&gt;=',(context_today()+relativedelta(months=1)).strftime('%%Y-%%m-01')),
('date_start','&lt;',(context_today()+relativedelta(months=2)).strftime('%%Y-%%m-01'))]"
help="Display all elements in the next month." />
</group>
<group expand="1" string="Group By">
<filter string="Day"
name="group_day"
context="{'group_by':'date_start:day'}"
help="Group all elements in the same day."/>
<filter string="Week"
name="group_week"
context="{'group_by':'date_start:week'}"
help="Group all elements in the same week."/>
<filter string="Month"
name="group_month"
context="{'group_by':'date_start:month'}"
help="Group all elements in the same month."/>
<filter string="Quarter"
name="group_quarter"
context="{'group_by':'date_start:quarter'}"
help="Group all elements in the same quarter."/>
<filter string="Year"
name="group_year"
context="{'group_by':'date_start:year'}"
help="Group all elements in the same year."/>
</group>
</search>
</field>
</record>

Loading…
Cancel
Save