-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
9.0 mig qweb_usertime #700
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Hey @GillesTephaneMeyomesse, thank you for your Pull Request. It looks like some users haven't signed our Contributor License Agreement, yet.
Appreciation of efforts, |
|
Welcome to OCA, Gilles! Does Acsone an ECLA (Entity CLA) signed or are they individual? |
|
Looking at the module, maybe its functionality is duplicated with datetime_formatter. Have you tried it? Anyway, this module should go better to OCA/reporting-engine I think. |
|
@pedrobaeza IMO this functionality is not provided by |
|
OK, no problem. How do you see to move the module to OCA/reporting-engine with the name report_qweb_usertime? This repo is quite crowded and the goal is very closed to the other repo. |
|
@pedrobaeza The module can be used everywhere where QWEB is used. (website, report, ...). Therefore |
|
OK, but AFAIK, Odoo web client already handles user tz in datetime fields. I don't get the user case, but I'm not going to block this anymore because you are going to really hate me 👅 |
|
@pedrobaeza If you put |
|
@pedrobaeza I'll recheck if we can find a 'standard way' to correctly display datetime.now in a report... |
|
Thanks for the explanation. I get the user case: the typical "printing time" in the footer. I'm going also to investigate if there's a standard way of doing that as well. |
|
@pedrobaeza After some more investigations and a retry of an unsuccessful attempt, we finally found the standard way to do it without an additional module : <t t-esc="context_timestamp(datetime.datetime.now()).strftime('%H:%M:%S')"/>Therefore we close this PR |
|
Cool that you found it! Then I remove the module from the repo and put the explanation in the migration issue. |
As stated in #700 (comment), you can put `<t t-esc="context_timestamp(datetime.datetime.now()).strftime('%H:%M:%S')"/>` for achieving the same result.
|
Hey @GillesTephaneMeyomesse, Appreciation of efforts, |
Syncing from upstream OCA/server-tools (14.0)
No description provided.