Thursday, May 18, 2023
3 changes · master
Resolved issues and error corrections
Project task time updates now show in the activity history as hours and minutes, matching what users see in the Allocated Time field. This prevents confusion when reviewing changes, such as showing 2.5 hours as 02:30 instead of a decimal value.
Original PR description
Description of the issue/feature this PR addresses: **Purpose**: In Project module, in a task when we change the value of field 'Allocated Time', which is of float type with widget 'float_time' ,a log is entered in chatter. Now if we enter '2.5' in field, it gets converted to '02:30' in field, but in chatter log of '2.5' is entered. **Specification**: To solve this problem we added a new field called 'floattime'. - Added new class of Floattime in fields.py. - In mail_tracking_value.py, we added new elif in 'create_tracking_values' and in '_get_display_value' functions to handle floattime field. - In message_patch.js, we added a new case to handle fieldtype 'floattime'. - Used this floattime field in project module.
Dragging an existing document within a Documents workspace no longer creates an unwanted duplicate. This keeps document organization reliable and prevents users from having to clean up extra copies.
Original PR description
Before this commit: Drag and drop the file inside the workspace. The file is duplicated. Reason: It is due to the change in behaviour of the 'ev.dataTransfer'. The existing condition fails because 'ev.dataTransfer.types' now returns 'Files' in both the cases. Case 1, drag & drop a new file or Case 2, drag and drop an existing file, as the issue above. After this commit: Now we check for the key, which is only present in existing records. As a result, the existing documents are no longer duplicated. task-3299263
Miscellaneous changes
Problem: The error "There is no chart of accounts installed for this company..." appears for POS shop configurations if they don't have a chart template configured for the company. It doesn't take into account if the company has its own set of accounts so it will always show the error unless the chart template is set. Solution: Include an additional condition to check if the company has accounting entries which is used to check if the company has used its own set of chart of accounts for acco
Original PR description
Problem: The error "There is no chart of accounts installed for this company..." appears for POS shop configurations if they don't have a chart template configured for the company. It doesn't take into account if the company has its own set of accounts so it will always show the error unless the chart template is set. Solution: Include an additional condition to check if the company has accounting entries which is used to check if the company has used its own set of chart of accounts for accounting. Purpose: The error will only appear if the company has no chart template set or no accounting entries. opw-3291399 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#121316 Forward-Port-Of: odoo/odoo#119901