c9da1571498ad1ded6b16d1483b8cb084d71f9de
TaskID: 2088586 Timer in the list and kanban views : ---------------------------------- In kanban and list views, It's possible to update the 'unit_amount' field with a timer. The user can easily launch the timer in these views for one of his timesheets. One timesheet can be launched at the same time, when the user start a timer for a timesheet and start another timer for another timesheet, the first timer stop and the new timer start. The timer is usable only if the encoding unit is 'Hours' and the timesheet is not validated. To do this : a new computed field 'display_timer' is created in account.analytic.line, this field is set to True is the encoding unit is 'Hours'. With this field, we can easily hide and display the timer in different views. The user can only use the timer for his timesheets. Because the user with the access rights to see all timesheets might launch and/or stop a timer of a timesheet of other user. That is the timer must be accessed only in 'My Timesheets' menu. Add pivot view for 'All timesheets' menu. Creation a timer_mixin : ---------------------- With this timer mixin, we can have a generic timer to use in other models that they need to use a timer like account.analytic.line and project.task models The timer in account.analytic.line model has changed to use the timer mixin. Specific behaviour of the timer : ------------------------------- When the user use the timer and the minutes spent with the timer is less than 1 minute, we don't add in unit_amount of timesheet. If the unit_amount is equals to 0 and minutes spent of timer is less than 0. Then the timesheet created by the timer is deleted because it is useless to have a timesheet with unit_amount set on 0. Misc : ---- Add some styles for the timer button and for the 'unit_amount' field when the timer is running. remove duplicated fields in tree view (record id='timesheet_view_tree_user')
…
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%