Daily updates from Odoo
Navigate
Branch
Tuesday, December 8, 2020
16 changes
Enhancements to existing features
The Sign app now shows whether an email still needs to be sent to other signatories or has already been sent. This reduces confusion by showing the correct Send or Resend action and recording sent emails in the document activity history.
Original PR description
Currently, in the sign module, it seems that we send an email to the other Signatory, but it's not true. In this commit, we display the 'send' button in the signed document if we never send a mail to other signatories before. Also, we display a message in chatter when a mail has been sent. task - 2275857
This update refreshes the app icons for multiple modules across accounting, helpdesk, field service, expenses, website support, VoIP, timer, project forecasting, and payment areas. The change improves visual consistency and makes the apps easier to recognize in the Odoo interface, without changing business workflows or functionality.
Original PR description
In this commit icons of the following modules are updated: -account_auto_transfer -account_bank_statement_import_ofx -account_bank_statement_import_qif -helpdesk_account -helpdesk_fsm -helpdesk_repair -helpdesk_sale_coupon -helpdesk_stock -helpdesk_timesheet -hr_expense_extract -website_helpdesk_livechat -website_helpdesk_slides -website_helpdesk_forum -voip_onsip -timer -project_forecast -payment_sepa_direct_debit -industry_fsm_stock -industry_fsm_sale TaskID:2378861 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Project reporting now presents timesheet and planning analysis in a clearer default view. Charts are easier to compare because bars are unstacked, results are grouped by month, and the previous default grouping by assignee has been removed.
Original PR description
Purpose of this task is to improve the reporting of Project module by various small improvements. In this commit done the below changes: - Timesheet and Planning Analysis: - bar chart > the bars should be unstacked by default - apply a group by > month - remove the default group by > assigned to LINKS PR: #14960 Task-Id: 2307111
New worksheet templates and planning roles now receive a random color when created instead of using a fixed color or no color. This makes records easier to distinguish visually and reduces confusion when similar colors were already in use.
Original PR description
Before this commit, a fixed color (Worksheet Templates ) or no color (Planning role) was assigned at record creation. It could be confusing if the color was already taken for other records. A random color is now picked to favor clarity at record creation. taskid: 2379133
Employees who click “View Planning” from a planning email are now taken to the schedule period covered by that email instead of the current week. This makes it easier to review the relevant weekly or monthly shifts without manually changing dates.
Original PR description
Before this commit, when the user clicked on the "View Planning" button in the email, they were seeing their planning for the *current week* and not the period of the planning sent. Here the user will see their planning for the corresponding week / month. TaskID: 233547
The expense app onboarding flow has been refined to make first-time setup and initial use easier. These small guided-tour and sample receipt updates help new users understand the app faster and start submitting expenses with less friction.
Original PR description
Small changes to improve the onboarding experience and the first steps in the expenses app. TaskID: 2352746
Sales users can now access the rental Schedule menu, which was previously limited to sales managers. This makes rental planning information easier for regular sales staff to reach and aligns the menu access with its parent menu permissions.
Original PR description
Priori to this commit:
The Schedule menu was only accessible to group_sale_manager.
After this commit:
The Schedule menu will be available to group_sale_salesman
(which is the security rule for its parent menu)
task-2361076Resolved issues and error corrections
Linked to https://github.com/odoo/odoo/pull/62979
Original PR description
Linked to https://github.com/odoo/odoo/pull/62979
Code cleanup and technical improvements
Payroll-related functionality has been consolidated into the main payroll app, reducing separate add-ons and outdated code. This should make payroll maintenance simpler and provide a more consistent experience for payroll teams, with limited direct impact on day-to-day users.
Miscellaneous changes
Replace `_compute_project_task_id` with `_compute_task_id`. See odoo/odoo#62071 TaskID: 2389727 Forward-Port-Of: odoo/enterprise#14880
Original PR description
Replace `_compute_project_task_id` with `_compute_task_id`. See odoo/odoo#62071 TaskID: 2389727 Forward-Port-Of: odoo/enterprise#14880
In the Documents's PdfManager UI on mobile, the rule's action buttons are grouped into a global "buttons" dropdown. Sadly the first rule's action button is both marked with 'btn-primary' and 'btn-secondary' classes (only on mobile). The reason was that the condition to set the 'btn-primary' class was based on both the 'isMobile' flag and its index in the set of rules (only first one). This commit fixes it by removing the index-based part of the condition (as discussed with FLL). F
Original PR description
In the Documents's PdfManager UI on mobile, the rule's action buttons are grouped into a global "buttons" dropdown. Sadly the first rule's action button is both marked with 'btn-primary' and 'btn-secondary' classes (only on mobile). The reason was that the condition to set the 'btn-primary' class was based on both the 'isMobile' flag and its index in the set of rules (only first one). This commit fixes it by removing the index-based part of the condition (as discussed with FLL). Found during reviewing of task 2347584 Forward-Port-Of: odoo/enterprise#15185
Linked to https://github.com/odoo/odoo/pull/62976 Forward-Port-Of: odoo/enterprise#15182
Original PR description
Linked to https://github.com/odoo/odoo/pull/62976 Forward-Port-Of: odoo/enterprise#15182
Steps to reproduce the bug: - Create a vendor bill VB of 1000$ - Register a payment P of 900$ and mark as fully paid with a writeoff WF - Create a batch payment BP for P - Validate BP Bug: A UserError was raised saying "You cannot delete an item linked to a posted entry." PS: Function _send_after_validation made self.payment_ids.write({'is_move_sent': True, 'payment_reference': self.name}) and function self._synchronize_to_moves(set(vals.keys())) was called In _synchroniz
Original PR description
Steps to reproduce the bug:
- Create a vendor bill VB of 1000$
- Register a payment P of 900$ and mark as fully paid with a writeoff WF
- Create a batch payment BP for P
- Validate BP
Bug:
A UserError was raised saying "You cannot delete an item linked to a posted entry."
PS: Function _send_after_validation made
self.payment_ids.write({'is_move_sent': True, 'payment_reference': self.name})
and function self._synchronize_to_moves(set(vals.keys())) was called
In _synchronize_to_moves, line_ids_commands.append((2, line.id)) was
made on a posted move
opw:2409971
Forward-Port-Of: odoo/enterprise#15139In supported method of Ingenico driver we initialize a `IncommingIngenicoMessage` Class without a connected socket. This ends at each box start with a `raise ValueError ('Out of magic!')` Now instead of raised an error we log it and we compare `self.magic` instead of `self._const.magic` to `b'P4Y-ECR!'` Forward-Port-Of: odoo/enterprise#15153
Original PR description
In supported method of Ingenico driver we initialize a
`IncommingIngenicoMessage` Class without a connected socket.
This ends at each box start with a `raise ValueError ('Out of magic!')`
Now instead of raised an error we log it and we compare `self.magic`
instead of `self._const.magic` to `b'P4Y-ECR!'`
Forward-Port-Of: odoo/enterprise#15153The product synchronization was removed in fc04c5c0ed6f736c9dac3fc3e573b2b547ed27c9 opw-2409647 Forward-Port-Of: odoo/enterprise#15173
Original PR description
The product synchronization was removed in fc04c5c0ed6f736c9dac3fc3e573b2b547ed27c9 opw-2409647 Forward-Port-Of: odoo/enterprise#15173
AttributeError: module 'datetime' has no attribute 'strptime' Introduced by https://github.com/odoo/enterprise/commit/50dbedbfc634dd3e861033cdf8f9939abee3e3c9 This wasn't spotted by runbot since 1) pylint test on runbot doesn't check no-member errors since it would raise everywhere because of Odoo architecture 2) the exception is raised inside a try except block, no error is raised. Finetuning of #11433 Forward-Port-Of: odoo/enterprise#15160
Original PR description
AttributeError: module 'datetime' has no attribute 'strptime' Introduced by https://github.com/odoo/enterprise/commit/50dbedbfc634dd3e861033cdf8f9939abee3e3c9 This wasn't spotted by runbot since 1) pylint test on runbot doesn't check no-member errors since it would raise everywhere because of Odoo architecture 2) the exception is raised inside a try except block, no error is raised. Finetuning of #11433 Forward-Port-Of: odoo/enterprise#15160