Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 24 additions & 9 deletions qweb_usertime/README.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:alt: License: AGPL-3
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: Licence: AGPL-3

=================
QWeb Usertime Tag
=================

This module adds a new tag renderer to QWeb, "usertime", which allows adding
the current time in the timezone of the user. It can be used as::
the current time in the timezone of the user.


Usage
=====

It can be used as::

<t t-usertime="%Y-%m-%d %H:%M:%S" />

Expand All @@ -14,24 +22,31 @@ language::

<t t-usertime="" />


.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/149/9.0

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
`here <https://github.com/OCA/server-tools/issues/new?body=module:%20qweb_usertime%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Bugs are tracked on `GitHub Issues
<https://github.com/OCA/server-tools/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smash it by providing detailed and welcomed feedback.`here <https://github.com/OCA/server-tools/issues/new?body=module:%20qweb_usertime%0Aversion:%209.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Credits
=======

Images
------
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.


Contributors
------------

* Vincent Vinet <vincent.vinet@savoirfairelinux.com>
* Gilles Meyomesse <meyomesse.gilles@gmail.com>

Maintainer
----------
Expand All @@ -44,5 +59,5 @@ This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

To contribute to this module, please visit http://odoo-community.org.
To contribute to this module, please visit https://odoo-community.org.

25 changes: 3 additions & 22 deletions qweb_usertime/__init__.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,6 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# This module copyright (C) 2015 Savoir-faire Linux
# (<http://www.savoirfairelinux.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
# Copyright 2015 Savoir-faire Linux
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

""" QWeb usertime addon """
from . import models

from . import qweb
33 changes: 3 additions & 30 deletions qweb_usertime/__openerp__.py
Original file line number Diff line number Diff line change
@@ -1,41 +1,14 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# This module copyright (C) 2015 Savoir-faire Linux
# (<http://www.savoirfairelinux.com>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

# Copyright 2015 Savoir-faire Linux
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'QWeb User Time',
'version': '8.0.1.0.0',
'version': '9.0.1.0.0',
'author': 'Savoir-faire Linux,Odoo Community Association (OCA)',
'maintainer': 'Odoo Community Association (OCA)',
'website': 'http://www.savoirfairelinux.com',
'license': 'AGPL-3',
'category': 'Tools',
'summary': 'Add user time rendering support in QWeb',
'depends': [
'base',
],
'external_dependencies': {
'python': [],
},
'data': [
],
'installable': False,
}
38 changes: 38 additions & 0 deletions qweb_usertime/i18n/am.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * qweb_usertime
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: server-tools (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-09-16 09:29+0000\n"
"PO-Revision-Date: 2015-09-18 13:55+0000\n"
"Last-Translator: <>\n"
"Language-Team: Amharic (http://www.transifex.com/oca/OCA-server-tools-8-0/language/am/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: am\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. module: qweb_usertime
#: field:ir.qweb,create_uid:0
msgid "Created by"
msgstr "Creado por"

#. module: qweb_usertime
#: field:ir.qweb,create_date:0
msgid "Created on"
msgstr "Creado en"

#. module: qweb_usertime
#: field:ir.qweb,write_uid:0
msgid "Last Updated by"
msgstr "Última actualización por"

#. module: qweb_usertime
#: field:ir.qweb,write_date:0
msgid "Last Updated on"
msgstr "Última actualización en"
38 changes: 38 additions & 0 deletions qweb_usertime/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * qweb_usertime
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: server-tools (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-11-28 21:29+0000\n"
"PO-Revision-Date: 2015-09-18 13:55+0000\n"
"Last-Translator: <>\n"
"Language-Team: Arabic (http://www.transifex.com/oca/OCA-server-tools-8-0/language/ar/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: ar\n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"

#. module: qweb_usertime
#: field:ir.qweb,create_uid:0
msgid "Created by"
msgstr "أنشئ بواسطة"

#. module: qweb_usertime
#: field:ir.qweb,create_date:0
msgid "Created on"
msgstr "أنشئ في"

#. module: qweb_usertime
#: field:ir.qweb,write_uid:0
msgid "Last Updated by"
msgstr "آخر تحديث بواسطة"

#. module: qweb_usertime
#: field:ir.qweb,write_date:0
msgid "Last Updated on"
msgstr "آخر تحديث في"
38 changes: 38 additions & 0 deletions qweb_usertime/i18n/bg.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * qweb_usertime
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: server-tools (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-09-21 00:47+0000\n"
"PO-Revision-Date: 2015-09-18 13:55+0000\n"
"Last-Translator: <>\n"
"Language-Team: Bulgarian (http://www.transifex.com/oca/OCA-server-tools-8-0/language/bg/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: bg\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: qweb_usertime
#: field:ir.qweb,create_uid:0
msgid "Created by"
msgstr "Създадено от"

#. module: qweb_usertime
#: field:ir.qweb,create_date:0
msgid "Created on"
msgstr "Създадено на"

#. module: qweb_usertime
#: field:ir.qweb,write_uid:0
msgid "Last Updated by"
msgstr "Последно обновено от"

#. module: qweb_usertime
#: field:ir.qweb,write_date:0
msgid "Last Updated on"
msgstr "Последно обновено на"
38 changes: 38 additions & 0 deletions qweb_usertime/i18n/bs.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * qweb_usertime
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: server-tools (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-11-28 21:29+0000\n"
"PO-Revision-Date: 2015-09-18 13:55+0000\n"
"Last-Translator: <>\n"
"Language-Team: Bosnian (http://www.transifex.com/oca/OCA-server-tools-8-0/language/bs/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: bs\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"

#. module: qweb_usertime
#: field:ir.qweb,create_uid:0
msgid "Created by"
msgstr "Kreirao"

#. module: qweb_usertime
#: field:ir.qweb,create_date:0
msgid "Created on"
msgstr "Kreirano"

#. module: qweb_usertime
#: field:ir.qweb,write_uid:0
msgid "Last Updated by"
msgstr "Zadnji ažurirao"

#. module: qweb_usertime
#: field:ir.qweb,write_date:0
msgid "Last Updated on"
msgstr "Zadnje ažurirano"
38 changes: 38 additions & 0 deletions qweb_usertime/i18n/ca.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * qweb_usertime
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: server-tools (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-09-16 09:29+0000\n"
"PO-Revision-Date: 2015-09-18 13:55+0000\n"
"Last-Translator: <>\n"
"Language-Team: Catalan (http://www.transifex.com/oca/OCA-server-tools-8-0/language/ca/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: ca\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: qweb_usertime
#: field:ir.qweb,create_uid:0
msgid "Created by"
msgstr "Creat per"

#. module: qweb_usertime
#: field:ir.qweb,create_date:0
msgid "Created on"
msgstr "Creat el"

#. module: qweb_usertime
#: field:ir.qweb,write_uid:0
msgid "Last Updated by"
msgstr "Darrera Actualització per"

#. module: qweb_usertime
#: field:ir.qweb,write_date:0
msgid "Last Updated on"
msgstr "Darrera Actualització el"
38 changes: 38 additions & 0 deletions qweb_usertime/i18n/cs.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * qweb_usertime
#
# Translators:
msgid ""
msgstr ""
"Project-Id-Version: server-tools (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-11-28 21:29+0000\n"
"PO-Revision-Date: 2015-09-18 13:55+0000\n"
"Last-Translator: <>\n"
"Language-Team: Czech (http://www.transifex.com/oca/OCA-server-tools-8-0/language/cs/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: cs\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"

#. module: qweb_usertime
#: field:ir.qweb,create_uid:0
msgid "Created by"
msgstr "Vytvořil(a)"

#. module: qweb_usertime
#: field:ir.qweb,create_date:0
msgid "Created on"
msgstr "Vytvořeno"

#. module: qweb_usertime
#: field:ir.qweb,write_uid:0
msgid "Last Updated by"
msgstr "Naposled upraveno"

#. module: qweb_usertime
#: field:ir.qweb,write_date:0
msgid "Last Updated on"
msgstr "Naposled upraveno"
Loading