Skip to content

Commit 66b7d21

Browse files
[5227][ADD] partner_tz (#45)
1 parent 3ecd022 commit 66b7d21

File tree

19 files changed

+816
-0
lines changed

19 files changed

+816
-0
lines changed

partner_tz/README.rst

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
================
2+
Partner timezone
3+
================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:f6260a8f530380b69a708c80b202ab89d690ada6eb30c74f2370cfe518f74e6e
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpartner--contact-lightgray.png?logo=github
20+
:target: https://github.com/OCA/partner-contact/tree/16.0/partner_tz
21+
:alt: OCA/partner-contact
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/partner-contact-16-0/partner-contact-16-0-partner_tz
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/partner-contact&target_branch=16.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module displays the timezone field on partner form view.
32+
Moreover it provides a few tools function in `tools/tz_utils.py`.
33+
34+
**Table of contents**
35+
36+
.. contents::
37+
:local:
38+
39+
Known issues / Roadmap
40+
======================
41+
42+
* Odoo default value for timezone field uses the tz set on the connected user.
43+
So if a user creates a partner located in a different timezone than his own,
44+
the created partner will be set in the user's timezone instead of having the
45+
timezone from its own location.
46+
Ideally, we should change this behaviour to get the timezone from the country
47+
and city of the partner when they are defined.
48+
http://www.geonames.org/export/web-services.html#timezone might be a good
49+
starting point.
50+
51+
Bug Tracker
52+
===========
53+
54+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/partner-contact/issues>`_.
55+
In case of trouble, please check there if your issue has already been reported.
56+
If you spotted it first, help us to smash it by providing a detailed and welcomed
57+
`feedback <https://github.com/OCA/partner-contact/issues/new?body=module:%20partner_tz%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
58+
59+
Do not contact contributors directly about support or help with technical issues.
60+
61+
Credits
62+
=======
63+
64+
Authors
65+
~~~~~~~
66+
67+
* Camptocamp
68+
69+
Contributors
70+
~~~~~~~~~~~~
71+
72+
* Akim Juillerat <[email protected]>
73+
* Hiep (Nguyen Hoang) <[email protected]>
74+
* Phuc (Tran Thanh) <[email protected]>
75+
* Denis Roussel <[email protected]>
76+
77+
Other credits
78+
~~~~~~~~~~~~~
79+
80+
The development of this module has been financially supported by:
81+
82+
* Camptocamp
83+
84+
Maintainers
85+
~~~~~~~~~~~
86+
87+
This module is maintained by the OCA.
88+
89+
.. image:: https://odoo-community.org/logo.png
90+
:alt: Odoo Community Association
91+
:target: https://odoo-community.org
92+
93+
OCA, or the Odoo Community Association, is a nonprofit organization whose
94+
mission is to support the collaborative development of Odoo features and
95+
promote its widespread use.
96+
97+
This module is part of the `OCA/partner-contact <https://github.com/OCA/partner-contact/tree/16.0/partner_tz>`_ project on GitHub.
98+
99+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

partner_tz/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import tools

partner_tz/__manifest__.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Copyright 2020 Camptocamp SA
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
3+
{
4+
"name": "Partner timezone",
5+
"summary": "Remove partner timezone default value and display on form",
6+
"version": "16.0.1.0.0",
7+
"category": "Uncategorized",
8+
"website": "https://github.com/OCA/partner-contact",
9+
"author": "Camptocamp, Odoo Community Association (OCA)",
10+
"license": "AGPL-3",
11+
"application": False,
12+
"installable": True,
13+
"depends": ["base"],
14+
"data": ["views/res_partner.xml"],
15+
}

partner_tz/i18n/it.po

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
#
4+
msgid ""
5+
msgstr ""
6+
"Project-Id-Version: Odoo Server 16.0\n"
7+
"Report-Msgid-Bugs-To: \n"
8+
"Last-Translator: Automatically generated\n"
9+
"Language-Team: none\n"
10+
"Language: it\n"
11+
"MIME-Version: 1.0\n"
12+
"Content-Type: text/plain; charset=UTF-8\n"
13+
"Content-Transfer-Encoding: \n"
14+
"Plural-Forms: nplurals=2; plural=n != 1;\n"

partner_tz/i18n/partner_tz.pot

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
#
4+
msgid ""
5+
msgstr ""
6+
"Project-Id-Version: Odoo Server 16.0\n"
7+
"Report-Msgid-Bugs-To: \n"
8+
"Last-Translator: \n"
9+
"Language-Team: \n"
10+
"MIME-Version: 1.0\n"
11+
"Content-Type: text/plain; charset=UTF-8\n"
12+
"Content-Transfer-Encoding: \n"
13+
"Plural-Forms: \n"

partner_tz/readme/CONTRIBUTORS.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
* Akim Juillerat <[email protected]>
2+
* Hiep (Nguyen Hoang) <[email protected]>
3+
* Phuc (Tran Thanh) <[email protected]>
4+
* Denis Roussel <[email protected]>

partner_tz/readme/CREDITS.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
The development of this module has been financially supported by:
2+
3+
* Camptocamp

partner_tz/readme/DESCRIPTION.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This module displays the timezone field on partner form view.
2+
Moreover it provides a few tools function in `tools/tz_utils.py`.

partner_tz/readme/ROADMAP.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
* Odoo default value for timezone field uses the tz set on the connected user.
2+
So if a user creates a partner located in a different timezone than his own,
3+
the created partner will be set in the user's timezone instead of having the
4+
timezone from its own location.
5+
Ideally, we should change this behaviour to get the timezone from the country
6+
and city of the partner when they are defined.
7+
http://www.geonames.org/export/web-services.html#timezone might be a good
8+
starting point.
9.23 KB
Loading

0 commit comments

Comments
 (0)