Commit Graph
132 Commits
Author SHA1 Message Date
nie 19d4b71d52 [FIX] sale_timesheet_enterprise: Timesheet date not respecting timezone
Steps to reproduce the bug:
- Set the timezone of the user to Australia/Melbourne
- Set the country of the company to Australia
- Set the time of the system to 20:00 UTC
- Have Project and Sales installed
- Enable Timesheet and Timesheet Timer on project (A)
- Create a task in project (A)
- Click Start and then Stop
- Confirm the wizard

Bug:
The date of the new timesheet line is set to yesterday.

opw:2351204

Original PR: odoo/enterprise#14023

closes odoo/odoo#59966

X-original-commit: b85a5fc39887660992b5dd0f49ca331e38dd6030
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: backspac <backspac@users.noreply.github.com>
2020-10-14 10:25:22 +00:00
Mithilesh Rao 6f0458147f [IMP] hr_timesheet: Allow to cancel entry when using the timer on a task
Prupose of the task is, if the user misclicks on the 'start' button to
launch the timer, he doesn't have any option to discard the timer.

So in this commit , added a 'delete' button so user can stop the timer
from wizard.

closes odoo/odoo#57316

Taskid: 2334036
Related: odoo/enterprise#13072
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-09-10 12:51:30 +00:00
Prakash Prajapati a866452637 [FIX] hr_timesheet: Prevent the stoping timer when time dialog cancelled
Currently, When some one start the timer and click on stop button at
that time it was first stop the timer by super method and then open
the time dialog so timer vanishes and the Start button is displayed again.

After this commit, when click on stop button do not stop the timer by
calling super method of mixin just open the dialog with minutes spent
and on click of SAVE in dialog stop the time and unlink
the related timer entry and on click of CANCEL of dialog
it will not stop the timer.

closes odoo/odoo#55744

Task-id: 2230217
X-original-commit: 96bc68be7f6eae7845c3c5c228b3af34a7f75864
Related: odoo/enterprise#12347
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-11 11:32:52 +00:00
Victor Feyens 5dc8b7bdd8 [IMP] *: replace default_get overrides by default attribute on fields.
Leave the generic management of fields default to the orm as much as
possible.

* Default method is not called unless necessary.
* Default values are correctly post-processed by the orm when necessary.
2020-07-23 16:38:17 +00:00
Hardik Prajapati 63cbe8678a [IMP] project,sale,hr(_timesheet): Generic improments for project
Done the below several improvement on project:

- move the stage description and tooltips to the debug mode
- remove the 'need assistance' tag
- Change the app description in manifest file 'Organize and
plan your projects.'
- Change the burger menu sequence into: Edit/Delete/Share/Set Cover Image
- change the description of the pad feature into, 'edit tasks
  description collaboratively in real time. see each author's
  text in a distinct color.'
- add the following tooltip for the allow_billable field,
  'invoice your time and material from tasks.'
- add an fa-stopwatch icon in front of the Start & the Stop buttons
  in task's form view
- rename the 'validate time spent' modal into 'confirm time spent '
  + increase the size of the description field
  + this field should not be required
- project overview: rename 'Hours recorded' into' Recorded Hours'
- project form view: disable the creation for the portal users field
- Rename the 'ready for next stage' kanban state into 'Ready'

TaskID: 2232051
Related Enterprise PR: https://github.com/odoo/enterprise/pull/9961

closes odoo/odoo#49694

Closes: #49694
Related: odoo/enterprise#9961
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-06-24 11:10:33 +00:00
jbm-odoo d6a23144d5 [MOV] timer: Move to Enterprise
taskId: 2217930
2020-06-15 15:51:20 +02:00
Xavier Morel 28fdaf1229 [FIX] hr_timesheet: precision_digits should be digits, probably?
closes odoo/odoo#47917

Related: odoo/enterprise#9346
Related: odoo/upgrade#1047
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2020-04-07 09:25:08 +00:00
Okan SUMER (osu) 3bcef3a050 [IMP] hr_timesheet: Adapt timer with new timer mixin
Purpose
=======

Now that we have a new timer mixin that offers more possibilities
than what was currently implemented, we can reuse it in the timesheet
management module.

TaskID: 2149450
2020-02-05 16:44:37 +01:00
Xavier Bol (xbo) 15e41f59c7 [MOV] hr_timesheet: move timer from timesheet_grid to hr_timesheet
TaskID: 2088586

The timer use in project > task can be usable in community and not only in enterprise.

move timer constraint from sale_timesheet_enterprise to hr_timesheet
2019-12-19 10:20:27 +01:00
Yannick Tivisse 74f3cbc6a6 [IMP] New design : menus reorganization
- Several Modules have been splitted into several apps
  Examples :
      Human Resources : Splitted into Leaves, Recruitment, Expenses, Appraisals, Timesheets, Employees, Payroll
      Marketing : Mass Mailing, Events, ...
      Messaging : Chat, Agenda, Notes, Address Book, ...
- Generally, the related reports have been moved in the apps, as last menu
- Also, configuration menu (no_one group) have been moved into a config root menu
  exception made for the warehouse and lunch modules
- Configuration for typical frontend modules have been moved into the website settings
  Related modules : Ecommerce, blog, slides, forum
- When they are present, menus like 'product' or 'customers' have been moved
  ex : Customers in Sales menu, Product in POS menu
- A lot of sequences and xmlids have been added or modified in this commit
- List of apps :
1  Chat : Inbox, Channels
2  Agenda : Calendar
3  Notes
4  Address Book : The view contact is still laying in the mail module (1 app => 2 icons)
5  eCommerce : Still to define : Config + Orders Analysis + Shipping + incoming Amazon module
6  Sales : Dashboard (Sales Team Kanban), CRM, Sales (note that they are splitted into 2 submenus)
         Assignation, After-Sales (Invoicing and Services), Reports
7  Point of Sale : Dashboard (POS status), Orders, Reports
8  Project : Dashboard (Project Kanban), Search (all tasks, issues), Incoming Forecasts module, Reports
   Project.issue.version feature has been removed completely
9  Members : Dashboard (Members Kanban), Report, Config
10 Timesheets : Time Tracking, Approvals, Reports
11 Purchase : Purchase, Control (Products and Bills)
12 Warehouse : Dashboard (Warehouse Kanban), Operations, Inventory Control, Schedulers, Configuration
13 Manufacturing : Same menu structure
14 Mass Mailing : Mailings, Campaigns, Reports
15 Events : Events, Reports
16 Lead Automation : Campaigns, Reports
17 Surveys : Surveys, Reports
18 Human Resources : Dashboard (Departments Kanban), Employees, Contracts, Engagement (Gamification)
19 Recruitment : Job Positions, Applications, Resumes & Letters, Reports
20 Expenses : Expenses, Approvals, Reports
21 Leaves : My Leaves, Approvals, Reports
22 Appraisals : Appraisals, Interview, Reports --> Will probably be modified by the incoming refactoring
23 Payroll : Current Menu
24 Lunch : My Lunch, Manager, Configuration
25 Accounting : Same menus currently, waiting the new accounting to be merged
26 Fleet : Current menu
27 Sign : Incoming docusign module
28 No root menuitem with this sequence
29 Attendance : Attendance, Reports
   Sign in/out by project feature has been removed completely
30 Link Tracker (group_no_one) : Link Tracker, UTMs
   New view added : URL Shortner, which is the frontend view embedded in backend
31 Versionning : Website domain, Versions, Experiments
32 Slides (group_no_one) : Channels, Categories, Slides, Tags
33 No root menu item with this sequence
34 Livechat : Channels, History, Reports
35 Dashboards : My Boards, Configuration
36 App Store : Local Modules, Apps, Updates
Last Settings : Incoming Dashboard Settings, Sales, ...., Website Settings
General Pattern for all modules' settings :
| Module_name
|-- Settings : General Config view (checkbox screen)
|-- Record setting 1
|-- ...
|-- Record setting n
Example for Sale module
| Sales
|-- Settings : Checkbox screen
|-- Quotations
|---- Quotation Templates
|---- Report Layout Categories
|---- Contract Template
|---- Invoice Type
|-- Contract
|---- Deduplicate Contacts
|-- Delivery
|---- Delivery Methods
|---- Delivery Pricelist
2015-04-24 16:41:08 +02:00
Goffin Simon 0fd773a486 [IMP] Cleanup and refactoring of exception handling
Unify and refactor exception handling in framework and addons.

The generic `except_osv` is now deprecated, and replaced by more specialized exception subtypes:
 - `UserError` (renamed from Warning, as it conflicts with the built-in `Warning`) raised when a non-technical error occurs during a business operation. It could be a missing information in the data provided by the user, or a misconfiguration.
 - `AccessError`: raised when any operation is denied because the user conducting it does not have the required access rights.
 - `AccessDenied`: raised when an operation that requires authenticated access is attempted via an unauthenticated request.
 - `MissingError`: raised when an operation is attempted on a record that does not exist.
 - `ValidationError`: raised when an operation violates a SQL or Python constraint.
 - All other exceptions are internal errors due to a system problem or bug, and raised untouched to the client-side, which should display a traceback.

All exceptions take a single message argument.

The `test_exceptions` module has been updated to showcase both new and old (deprecated) exceptions.

A great many old `except_osv` had a useless title with "Error!" or "Warning", those have been removed, as this is handled by the client-side widget that displays the messages.

This commit introduces a more consistent policy for logging errors and warnings:
 - All messages that do not require administrator attention should be logged at INFO level or lower. This includes all errors that are notified to the user in a friendly manner, even for access right problems or validation errors during business operations.
 - All messages that indicate a likely misconfiguration or malicious use by the users should be logged at WARNING level, as they typically require administrator attention.
 - All other unhandled internal errors cannot typically be handled by the user and should be logged at ERROR or higher level, as they require immediate administrator attention.
2015-01-16 17:15:18 +01:00
Leonardo Donelli 4a0b13ed92 [REF] remove vim modelines and resulting trailing blank lines
Let 2015 be a year without modelines!
cf #4174
2014-12-31 15:52:13 +01:00
Jaydeep Barot 026e38b48f [REM] Unnecessary size parameters on char fields 2014-06-25 17:13:43 +02:00
Fabien Meghazi faa09da325 Removed version="7.0" from form views 2014-06-12 09:09:59 +02:00
Gery Debongnie a584ba9ed2 [IMP] removes 'Employee Timesheet' and 'Employees Timesheet' reports in HR reporting (addon hr_timesheet)
bzr revid: ged@openerp.com-20140127132020-qhxgkygxx38vecab
2014-01-27 14:20:20 +01:00
Raphael Collet 8c32ff49e9 [FIX] hr_timesheet: missing positional argument in call to default_get()
bzr revid: rco@openerp.com-20131008112422-ebgj08a4emmhjghp
2013-10-08 13:24:22 +02:00
Thibault Delavallée 8c054f1bd2 [MERGE] [IMP] hr_timesheet: sign_in / sign_out wizard form view usability improvement
[IMP] account: form view usability improvement: compute balance field visible in bank statement

Coming from an old PS task.

bzr revid: tde@openerp.com-20130723111935-22sm7ung473mcyf0
2013-07-23 13:19:35 +02:00
Atul Patel (OpenERP) fa4c6c9ddb [MERGE]: Merged with addons
bzr revid: atp@tinyerp.com-20130617043251-u68mctnl61391f7c
2013-06-17 10:02:51 +05:30
Atul Patel (OpenERP) 8c4fe4779a [FIX]: REMOVE ACTION from selection
bzr revid: atp@tinyerp.com-20130613091926-9aixud1f0h2mcnoe
2013-06-13 14:49:26 +05:30
Atul Patel (OpenERP) 7bd70a095a [IMP]: change field string employee name
bzr revid: atp@tinyerp.com-20130613074224-7y8ec47hrpcd1ahw
2013-06-13 13:12:24 +05:30
Chandni Machchhar (OpenERP Trainee) b01c8dfafd [FIX] Aligned the employee field in employee timesheet wizard and change the parent of the Employee Timesheet menu.
bzr revid: chandni.machchhar3@gmail.com-20130603100814-r12y6aw1m6bzvwv3
2013-06-03 15:38:14 +05:30
Nimesh Contractor (OpenERP) ec9bddf2b3 [IMP] add action type in selection
bzr revid: nco@tinyerp.com-20130529075129-o0031upq7wqd6jep
2013-05-29 13:21:29 +05:30
Nimesh Contractor (OpenERP) 8e35f17897 [IMP] Employees name.
bzr revid: nco@tinyerp.com-20130529055624-pcsyqbm0s5mkm3oo
2013-05-29 11:26:24 +05:30
Nimesh Contractor (OpenERP) b5346ce6bb [IMP] remove unused import.
bzr revid: nco@tinyerp.com-20130529045844-e03p9l3rgu17n2xk
2013-05-29 10:28:44 +05:30
Nimesh Contractor (OpenERP) 8c8a9378d8 [FIX] set the missing selection on related field currunt status.
bzr revid: nco@tinyerp.com-20130529044835-a3faab0nasqfntvk
2013-05-29 10:18:35 +05:30
Nimesh Contractor (OpenERP) 6644f6555b [IMP] improve string Employee Name
bzr revid: nco@tinyerp.com-20130528103119-569eqxi0hyb7906t
2013-05-28 16:01:19 +05:30
Nimesh Contractor (OpenERP) 2208354292 [IMP] Sign In/ Sing out by project wizard, imporve the usability issues.
bzr revid: nco@tinyerp.com-20130528093517-h4zc0t6op8xt033y
2013-05-28 15:05:17 +05:30
Vo Minh Thu e69326ee3b [REF] removed explicit model instanciations.
bzr revid: vmt@openerp.com-20130415102349-vgcrfok2k5y10cwz
2013-04-15 12:23:49 +02:00
Cecile Tonglet 15fe515601 [MERGE] From trunk
bzr revid: cto@openerp.com-20121217144306-tkodwpox30cuvb28
2012-12-17 15:43:06 +01:00
Vo Minh Thu e7f4891d46 [IMP] use the openerp namespace.
bzr revid: vmt@openerp.com-20121206145632-0h1coh5aaem65wsy
2012-12-06 15:56:32 +01:00
Mohammed Shekha(Open ERP) aa97fe51a9 [FIX]hr_timesheet: Fixed the issue of translation for the action string for wizard
bzr revid: mma@tinyerp.com-20121120060611-m42lsfsvyf7vmkfw
2012-11-20 11:36:11 +05:30
Fabien Pinckaers 93385fc652 [MERGE] fields are transalted
bzr revid: fp@tinyerp.com-20121112102840-oi7lw9vt352ex4co
2012-11-12 11:28:40 +01:00
Stéphane Bidoul da8fcd15e1 hr_timesheet: enumerate list of month in English
lp bug: https://launchpad.net/bugs/1060224 fixed

bzr revid: stephane.bidoul@acsone.eu-20121002141943-efh2cea9zrkzh6u2
2012-10-02 16:19:43 +02:00
Fabien Pinckaers a7368145ca [MERGE] typo
bzr revid: fp@openerp.com-20121024201424-98la8f2wkhfjrtae
2012-10-24 22:14:24 +02:00
Mayur Maheshwari (OpenERP) 0b87880029 [IMP]all: imporve string state to status
bzr revid: mma@tinyerp.com-20121012114258-w2q3hg1wb5wlt8wi
2012-10-12 17:12:58 +05:30
pankita shah (Open ERP) 12c0f14d39 [FIX] remove duplicate name when click sign in/out project
bzr revid: shp@tinyerp.com-20121005084213-d4qkc25iyy5maq0m
2012-10-05 14:12:13 +05:30
Harry (OpenERP) 86b4fac6dc [MERGE]
bzr revid: hmo@tinyerp.com-20120905133804-6fmqbv70oun3y3cn
2012-09-05 19:08:04 +05:30
Vo Minh Thu 9822629548 [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20120813160657-ilujdek8ys4fzhp9
2012-08-13 18:06:57 +02:00
Twinkle Christian (OpenERP) 721adad01e [IMP]Remove type field from the whole hr module
bzr revid: tch@tinyerp.com-20120808124839-ecd1uic8mscg3s7f
2012-08-08 18:18:39 +05:30
Antonin Bourguignon b0e8ae4c7d [IMP] error messages
fix errors ending with an exclamation point; use a point instead
remove uniques (or almost) error messages titles, like 'Encoding Error' (1 occurrence in addons), 'Integrity Error' (1 occurrence in addons), 'Report Name' (1 occurrence in addons), 'Value Error' (1 occurrence in addons), 'Wrong Period Code' (1 occurrence in addons); replace these with 'Error'
add newline character after some messages titles, when necessary
fix 'UserError': should be 'User Error'
remove spaces before exclamation marks
add capital letters to messages titles words (e.g.: 'Invalid action' becomes 'Invalid Action')

bzr revid: abo@openerp.com-20120807110616-u3nlnybtgaebro18
2012-08-07 13:06:16 +02:00
Saurang Suthar(OpenERP) 25d650e96e [IMP] Improved warning messages for hr* modules
bzr revid: pso@tinyerp.com-20120725121354-hypwxo74c43jm5gp
2012-07-25 17:43:54 +05:30
Pinakin Nayi (OpenERP) 881148d4b1 [IMP]hr-warning-message
bzr revid: pna@tinyerp.com-20120713121613-poze6x6838cr9xpe
2012-07-13 17:46:13 +05:30
Pinakin Nayi (OpenERP) 27226c12b2 [IMP]hr-warning-message
bzr revid: pna@tinyerp.com-20120713070425-b3envibswfdt6umq
2012-07-13 12:34:25 +05:30
Fabien Pinckaers 64a9321d56 [IMP] footer on forms
bzr revid: fp@tinyerp.com-20120710164011-unqi1okf2uu8yhts
2012-07-10 18:40:11 +02:00
Quentin (OpenERP) f8f85c7cb2 [FIX] fixed tag mismatch in xml
bzr revid: qdp-launchpad@openerp.com-20120704095714-m6a9vxn4csaxzx9b
2012-07-04 11:57:14 +02:00
Quentin (OpenERP) f3b26e970f [FIX] fixed runbot
bzr revid: qdp-launchpad@openerp.com-20120704082726-v6b2zrdkatzeytm6
2012-07-04 10:27:26 +02:00
Quentin (OpenERP) 42f996d653 [IMP] hr_timesheet: kept the wizard to print employees timesheet instead that the one to print my timesheet only
bzr revid: qdp-launchpad@openerp.com-20120704080030-jtqzvlmrstfs70gm
2012-07-04 10:00:30 +02:00
Quentin (OpenERP) 66922c7199 [IMP] code review
bzr revid: qdp-launchpad@openerp.com-20120703155843-awb230fppn22wbs1
2012-07-03 17:58:43 +02:00
Kuldeep Joshi (OpenERP) 8f7be97676 [IMP] set button class
bzr revid: kjo@tinyerp.com-20120702110747-s3f0iv72d6iv3wzj
2012-07-02 16:37:47 +05:30
Kuldeep Joshi (OpenERP) 8ad41e791d [IMP] change menu sequence
bzr revid: kjo@tinyerp.com-20120702103111-blnzv4b6jb6xola0
2012-07-02 16:01:11 +05:30