Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! Add module partner_tz
Browse files Browse the repository at this point in the history
  • Loading branch information
grindtildeath committed Apr 16, 2020
1 parent b30b914 commit 14765e0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 14 deletions.
1 change: 0 additions & 1 deletion partner_tz/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
from . import models
from . import tools
1 change: 0 additions & 1 deletion partner_tz/models/__init__.py

This file was deleted.

10 changes: 0 additions & 10 deletions partner_tz/models/res_partner.py

This file was deleted.

3 changes: 1 addition & 2 deletions partner_tz/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
This module removes timezone default value on res.partner and display the field
on form view.
This module displays the timezone field on partner form view.
Moreover it provides a few tools function in `tools/tz_utils.py`.
8 changes: 8 additions & 0 deletions partner_tz/readme/ROADMAP.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
* Odoo default value for timezone field uses the tz set on the connected user.
So if a user creates a partner located in a different timezone than his own,
the created partner will be set in the user's timezone instead of having the
timezone from its own location.
Ideally, we should change this behaviour to get the timezone from the country
and city of the partner when they are defined.
http://www.geonames.org/export/web-services.html#timezone might be a good
starting point.

0 comments on commit 14765e0

Please sign in to comment.