summaryrefslogtreecommitdiff
path: root/addons/hr_timesheet
AgeCommit message (Collapse)Author
2021-05-30[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-05-23[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-05-16[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-05-09[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-05-02[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-04-29[FIX] hr_timesheet: Analytic account without companyGoffin Simon
Steps to reproduce the bug: - Let's consider a project P set with analytic account AA and company C - Allow timesheet on P - Let's consider a task T belonging to P - Set AA with comapny = False - Try to encode a timesheet on T Bug: A UserError was raised because the field company_id on account.analytic.line is required opw:2486034 closes odoo/odoo#70071 X-original-commit: b3dc922cb45bdd4c2778bea784b540b1723c8fc1 Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
2021-04-25[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-04-18[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-04-11[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-04-04[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-03-28[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-03-21[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-03-14[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-03-07[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-02-28[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-02-21[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-02-14[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-02-07[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-01-31[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-01-24[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-01-17[I18N] Update translation terms from TransifexOdoo Translation Bot
2021-01-10[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-12-27[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-12-21[MERGE] hr_timesheet: Fix global UXOdoo's Mergebot
### Goal of the PR This PR is in the continuity of odoo#62360. ### Details - Display remaining hours in task sales_line_id (name_get + task form view) - Remove internal reference from services demo data - Display sol in project timesheets list if project is billable - Remove use of non_allow_billable in timesheets as it has been removed from project and task in previous PR (see above) - Only recompute planned_hours for service product - Determine the correct SOL for timesheet - Set the last SOL of customer on timesheet if none is set on task or project - Allow edition of so_line in timesheet - Restrict SOL on project to sale lines with a service product - Use same widget on partner_id many2One than in sale.order (using ranking) - Remove timesheets table in SO and invoice portal.They were added in previous PR (see above). This introduces the use of links to /my/timesheets/. - Review portal timesheets (my/timesheets/ and link from orders and invoices) - Activate group_uom "Units of Measure" on sale_timesheet install - Hide partner phone number in task form view - Only determine SOL of task and timesheet if allow_billable=True - Filter SOL in task so that it matches the SOL of the project SO - Display red label if remaining hours is negative - Change SO compute behavior - Only open SO for salesman on project overview task-2409761 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr closes odoo/odoo#62900 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-12-21[IMP] {hr,sale}_timesheet: review portal timesheetsXavier BOL (xbo)
This commit improves the portal view containing the timesheets list (this view is available in the '/my/timesheets' route. In sale_timesheet module, we * add new group by and a search on SOL, * add an SOL field on the left of the unit_amount one, * change the group by by default, to group the timesheets by SOL * display the following information in the group: 'x Hours ordered, x Remaining', when the timesheets are grouped by SOL. However, the 'x Remaining' part should only be visible if the number of timesheets is greater than 0. * move the total number of hours in the group itself and align it to the right. * change the number of items displayed per page, 100 items instead of 20. * reduce the size of the font in tbody tag (0.8rem instead of 0.875rem) * display the content of the field on hover, it's usefull when the field it's cropped. * Add 'View Timesheets' button in portal SO: this new button button called 'View timesheets' is displayed next the name of the product of a SO in Sale Order Portal. it is only visible if the number of timehseets is greater than 0 for this SOL. The button redirects the user to /my/timesheets page with a filter on the corresponding SOL + a group by SOL. task-2409761
2020-12-20[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-12-13[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-11-30[FIX] hr_timesheet: trigger compute on project_id / task_idKevin Baptiste
Before this commit the fields project_id and task_id on account.analytic.line were sharing the same compute method which was not triggered when one of those fields were changed. Here the fields get their very own compute method. closes odoo/odoo#62071 Taskid: 2389727 Related: odoo/enterprise#14880 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-12-06[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-11-29[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-11-22[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-11-15[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-11-08[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-11-02[FIX] *: fix image parsing error on saving res configIEL
WHAT: apply 93a7695f65baf00d1f82481d6a2a97e6c11940a8 for all res.config.settings menus WHY: the same reason as in 93a7695f65baf00d1f82481d6a2a97e6c11940a8: When saving, a read is called. By default, read has bin_size to true to avoid performances issues. It will return the image size instead of the content it may lead to image dissapearing or "Incorrect padding" error HOW: find . -iname "*.xml"|xargs grep "\"context\".*'module'" -l | xargs sed -i "s/\(\"context\".*'module'.*\)\}/\1, 'bin_size': False}/" git checkout -- addons/base_setup/views/res_config_settings_views.xml --- PR for General Settings: https://github.com/odoo/odoo/pull/47297 opw-2346644 closes odoo/odoo#61212 X-original-commit: 7c55efa88b72bd1f3f0f32f7f738e2fda5aa4abd Related: odoo/enterprise#14545 Signed-off-by: Ivan Yelizariev // IEL <yelizariev@users.noreply.github.com>
2020-10-27[I18N] *: Update translation terms from TransifexMartin Trigaux
Except Spanish, waiting for cleanup closes odoo/odoo#60848 Related: odoo/enterprise#14421 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-10-21[REV] *: revert fb7407c for spanish translationsOlivier Dony
There was a problem in the Transifex translations for Spanish and all translations were overwritten by mistake with english defaults. This commit reverts all modified es.po files to their previous version while we work to restore the translations on Transifex.
2020-10-20[IMP] hr_timesheet: chrome app icon should not be displayed on mobilePrakash Prajapati
The icon of the chrome app from the timesheet setting should not be displayed on mobile. closes odoo/odoo#59333 Task-id: 2323254 Related: odoo/enterprise#13615 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-10-18[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-10-07[FIX] hr_timesheet, project: let user disable Timesheets in configDominik Rubo
This change allows uninstallation of hr_timesheet from the configuration of Project. Previously, attempting to disable the Timesheets feature from the configuration of Project resulted in a user error that requested the user to first remove tasks in projects that were linked to analytic accounts. This was caused by the removal of demo data during the uninstallation of hr_timesheet, which attempted to unlink analytic accounts before unlinking the projects that were referencing those accounts. The order in which demo data are removed during uninstallation of a module is currently not fixed. This change avoids the problem by instead removing the explicit creation of analytic accounts as demo data. Furthermore, hr_timesheet would be immediately re-installed upon uninstallation through project_timesheet_synchro and project_timesheet_holidays. Disabling those modules along with hr_timesheet fixes this. Task 2339016 closes odoo/odoo#58759 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-10-15[IMP] project: enable config-selected features in projectsDominik Rubo
This change ensures that when the user activates optional features of the project app, they are enabled in existing projects as well as newly created projects automatically, which is likely what the user expects. For most optional features, this behavior was already in place. It was not in place yet for the sub-tasks and timesheets features, which this change fixes. Two added tests check the behavior described above for features that are activated through a `group_*` field on `res.config.settings` (sub-tasks, recurring tasks and ratings). The tests do not cover features that are activated through a `module_*` field, as such fields require the installation of further modules and we cannot simulate this. Task 2297054 closes odoo/odoo#58692 Related: odoo/enterprise#13641 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com> Co-authored-by: Kevin Baptiste <50135801+kba-odoo@users.noreply.github.com>
2020-10-14[FIX] sale_timesheet_enterprise: Timesheet date not respecting timezonenie
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#59961 X-original-commit: b85a5fc39887660992b5dd0f49ca331e38dd6030 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com> Signed-off-by: backspac <backspac@users.noreply.github.com>
2020-10-11[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-09-29[FIX] hr_timesheet : fix timesheet visibility on portalfw-bot
If a portal user was a customer but not a follower of a project he didn't have access to the timesheets linked to the project. Task-2299286 closes odoo/odoo#58621 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-10-05[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-09-29[I18N] *: export 14.0 source termsMartin Trigaux
Including demo data this time closes odoo/odoo#58821 Related: odoo/enterprise#13682 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-09-27[I18N] Update translation terms from TransifexOdoo Translation Bot
2020-09-17[FIX] hr_timesheet: Fix invalid caracters before QR codeGiacomello Nathan (ngi)
In Timesheets module, in Configuration => Settings, when clicking on "Download on the App Store" or "Get it on Google Play", a popup is displayed with a QR code. This QR code is composed of an url with some strange data before it: - 002 - 1 - <the url> This commit removes datas that are before the url so only the url is displayed. Task id: 2326324 closes odoo/odoo#57862 Related: odoo/enterprise#13319 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-09-17[FIX] hr_timesheet: default employee not set on timesheetNasreddin (bon)
Issue - Install 'hr_timesheet' module - Go to any employee and click on stat button 'Timesheets' - Create timesheet - Remove employee from filter then add it back No timesheets displayed for current employee. Cause There is no "employee_id" in list view. However, 'timesheet_view_tree_user' view (who inherit from concerned list view) does have an "employee_id" field but the mode is "primary" and therefore not available for the main view. Solution Add "employee_id" in main list view and alter inherited view to update attributes of "employee_id" field. opw-2338055 closes odoo/odoo#57928 X-original-commit: cae352a90b2d8a562fbf57391ce88fde4488e8cf Signed-off-by: bon-odoo <nboulif@users.noreply.github.com>
2020-09-16[IMP] hr_timesheet: Add argument so method can be override by other modulekoz-odoo
Currently, method _apply_timesheet_label will add label on field unit_amount with widget timesheet_uom but the widget on this field is changed in another module as timesheet_uom_timer so it will not work when that module is installed. So in this method pass the view_type as argument so it can be easily override in another module based on view_type. closes odoo/odoo#57838 Taskid: 2287390 Related: https://github.com/odoo/enterprise/pull/11884 Related: odoo/enterprise#13276 X-original-commit: 6ce434b6d6ab686c91c111d2f86503176fec6517 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-09-16[FIX] hr_timesheet: Remove unused filejbm-odoo
Remove file that was removed from assets file in commit https://github.com/odoo/odoo/pull/52585/commits/d6a23144d5c5b85c2a02097bcbb3e006a9c2c52a closes odoo/odoo#57832 Taskid: 2327552 X-original-commit: 171a17420b12b8ea3712b58e89b6e2bd0b377a4a Related: odoo/enterprise#13271 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com> Signed-off-by: jbm-odoo <jbm-odoo@users.noreply.github.com>