forked from OCA/partner-contact
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
967e285
commit 705a31d
Showing
8 changed files
with
19 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
from . import models | ||
from . import tools |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
from .tz_utils import * | ||
from .tz_utils import tz_to_tz_naive_datetime | ||
from .tz_utils import tz_to_utc_naive_datetime | ||
from .tz_utils import utc_to_tz_naive_datetime | ||
from .tz_utils import tz_to_tz_time | ||
from .tz_utils import tz_to_utc_time | ||
from .tz_utils import utc_to_tz_time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters