Daily updates from Odoo
Navigate
Branch
Friday, July 29, 2022
14 changes
Enhancements to existing features
Helpdesk ticket analysis now includes metrics for how long customers wait for the first support reply and the average time between customer messages and support responses. This gives managers clearer visibility into service responsiveness and helps identify where support processes can improve.
Original PR description
The following measures have been added to ticket analysis. Hours to first response: nb working hours between the date on which the ticket was received and the date on which the first message was sent by the support (exclude emails sent automatically through the stages). Hours to respond: avg nb of working hours between a message from the customer and a message from the support (only applicable for messages sent when the ticket was in a non folded stage). task-2847937
Resolved issues and error corrections
The Helpdesk Overview now correctly shows the pencil icon when users hover over the Daily Target field. This makes it clearer that the target can be edited and restores the expected visual cue.
Original PR description
In Helpdesk's Overview, on hover, the Daily Target should display a pencil icon to highlight the editable aspect of the field. This issue is due to the fact that `opacity-*` classes were manually generated before and are now handled by BS5... which adds an `!important` to them. This commit has to also apply the `!important` to the :hover rule that displays the icon.
Code cleanup and technical improvements
This update moves several enterprise apps to a newer internal environment used by Odoo's messaging framework. It should not change day-to-day workflows, but it helps keep approvals, appraisals, signing, and VoIP features easier to maintain and evolve.
Original PR description
*: approvals, hr_appraisal, sign, voip Task-2582313 community PR: https://github.com/odoo/odoo/pull/72816
Subscription pricing data has been moved from a shared sales timing area into the subscription area where it is actually used. This makes the system easier to maintain and may slightly improve performance without changing what users see.
Original PR description
The pricing_id field is defined and stored in sale_temporal but only used in sale_subscription. This commits moves its logic to sale_subscription to improve code clarity, maintenance, performance, ...
Miscellaneous changes
This commit is a followup to odoo/enterprise#29551 The context wasn't properly updated prior to the fix above. However the solution used is not optimal as a function already exists to update the context. Forward-Port-Of: odoo/enterprise#29968
Original PR description
This commit is a followup to odoo/enterprise#29551 The context wasn't properly updated prior to the fix above. However the solution used is not optimal as a function already exists to update the context. Forward-Port-Of: odoo/enterprise#29968
The tour `test_inventory_adjustment_tracked_product` was randomly failing at a specific step. This commit makes triggers more precise to avoid that. Build error id: 3920 Forward-Port-Of: odoo/enterprise#28868
Original PR description
The tour `test_inventory_adjustment_tracked_product` was randomly failing at a specific step. This commit makes triggers more precise to avoid that. Build error id: 3920 Forward-Port-Of: odoo/enterprise#28868
This commit aims to make the form being accepted by belcotax. Before this commit: - if the sender phone number > 12 characters, the xml gets rejected. - if a partner with a name longer than 41 character gets a 281.50 form generated for him, the xml gets rejected After this commit: - Phone number gets rid of all non digits character - Partner name > 41 characters gets truncated ticket: 2882001 Enterprise-PR: Forward-Port-Of: odoo/enterprise#29943 Forward-Port-Of: odoo/enterprise#2
Original PR description
This commit aims to make the form being accepted by belcotax. Before this commit: - if the sender phone number > 12 characters, the xml gets rejected. - if a partner with a name longer than 41 character gets a 281.50 form generated for him, the xml gets rejected After this commit: - Phone number gets rid of all non digits character - Partner name > 41 characters gets truncated ticket: 2882001 Enterprise-PR: Forward-Port-Of: odoo/enterprise#29943 Forward-Port-Of: odoo/enterprise#28313
Description of the issue/feature this PR addresses: When going to Quality / Configuration / Quality Worksheet template, we can create and design one with studio. The problem is that if industry_fsm_report is not installed, the QWeb report view will not be updated. Current behavior before PR: When going to a MO / Quality Checks and printing. The report will not be correct. It will have the default fields of when we start to design a new template. All the changes we have made have not been
Original PR description
Description of the issue/feature this PR addresses: When going to Quality / Configuration / Quality Worksheet template, we can create and design one with studio. The problem is that if industry_fsm_report is not installed, the QWeb report view will not be updated. Current behavior before PR: When going to a MO / Quality Checks and printing. The report will not be correct. It will have the default fields of when we start to design a new template. All the changes we have made have not been applied to the report. Desired behavior after PR is merged: The report should have the worksheet just like it was designed. Should be forwarded OPW-2867753 Forward-Port-Of: odoo/enterprise#29531
Fixes an error thrown if a batch with pickings related to different partners is accessed from the barcode app. Task ID: 2871679 Forward-Port-Of: odoo/enterprise#29906
Original PR description
Fixes an error thrown if a batch with pickings related to different partners is accessed from the barcode app. Task ID: 2871679 Forward-Port-Of: odoo/enterprise#29906
Step to reproduce : - With demo data : log in as Marc Demo - Go to sign - Edit YC_Form_SaaS_Agreement.pdf Current Behaviour : - YC_Form_SaaS_Agreement.pdf was already used by Mitchell Admin but you can modify the template Behaviour after PR : - You're notified that the template has been use and that you should duplicate it Backport of https://github.com/odoo/enterprise/pull/21518/commits/742c402f74bd5230662d373a59b7d95b00bec7de Original author - CWG opw-2781908 Forward-Por
Original PR description
Step to reproduce : - With demo data : log in as Marc Demo - Go to sign - Edit YC_Form_SaaS_Agreement.pdf Current Behaviour : - YC_Form_SaaS_Agreement.pdf was already used by Mitchell Admin but you can modify the template Behaviour after PR : - You're notified that the template has been use and that you should duplicate it Backport of https://github.com/odoo/enterprise/pull/21518/commits/742c402f74bd5230662d373a59b7d95b00bec7de Original author - CWG opw-2781908 Forward-Port-Of: odoo/enterprise#28088 Forward-Port-Of: odoo/enterprise#25661
Steps to reproduce: - Install data_cleaning module - Create a partner with name `jean-francois dupont` - Go to Data Cleaning -> Configuration -> Field Cleaning - Create a new rule: - Select `Contact` as model - Add a new rule : - Field to clean : Name - Action : Set Type Case - Case : First Letters to Uppercase - Save and click on `Clean` Issue: Suggested solution is `Jean-francois Dupont` instead of `Jean-Francois Dupont`. Cause: Using
Original PR description
Steps to reproduce:
- Install data_cleaning module
- Create a partner with name `jean-francois dupont`
- Go to Data Cleaning -> Configuration -> Field Cleaning
- Create a new rule:
- Select `Contact` as model
- Add a new rule :
- Field to clean : Name
- Action : Set Type Case
- Case : First Letters to Uppercase
- Save and click on `Clean`
Issue:
Suggested solution is `Jean-francois Dupont` instead of `Jean-Francois
Dupont`.
Cause:
Using built-in function `capwords` to capitalize first letters of each
word, however, it does not take into account composed words (with
a `-` inside the word).
Solution:
Use `title` function instead.
opw-2920113
Forward-Port-Of: odoo/enterprise#29839Just added an assertion to check a flow (compute asset's depreciation board before validate the asset should lead to draft depreciation moves) that was broken by 33998d754761f8fa31033414898e11bb86264190. The fix has been modified but the flow has not been tested yet. Forward-Port-Of: odoo/enterprise#28592
Original PR description
Just added an assertion to check a flow (compute asset's depreciation board before validate the asset should lead to draft depreciation moves) that was broken by 33998d754761f8fa31033414898e11bb86264190. The fix has been modified but the flow has not been tested yet. Forward-Port-Of: odoo/enterprise#28592
Before this commit, when a rental line duration was a multiple of years, a traceback would occurs: ``` File "/home/arj/PycharmProjects/enterprise/sale_renting/wizard/rental_configurator.py", line 89, in _compute_duration wizard.update(values) File "/home/arj/PycharmProjects/odoo/odoo/models.py", line 5686, in update self[name] = value File "/home/arj/PycharmProjects/odoo/odoo/models.py", line 5973, in __setitem__ return self._fields[key].__set__(self, value) File "/home/arj/PycharmPro
Original PR description
Before this commit, when a rental line duration was a multiple of years,
a traceback would occurs:
```
File "/home/arj/PycharmProjects/enterprise/sale_renting/wizard/rental_configurator.py", line 89, in _compute_duration
wizard.update(values)
File "/home/arj/PycharmProjects/odoo/odoo/models.py", line 5686, in update
self[name] = value
File "/home/arj/PycharmProjects/odoo/odoo/models.py", line 5973, in __setitem__
return self._fields[key].__set__(self, value)
File "/home/arj/PycharmProjects/odoo/odoo/fields.py", line 1262, in __set__
self.write(protected_records, value)
File "/home/arj/PycharmProjects/odoo/odoo/fields.py", line 1080, in write
cache_value = self.convert_to_cache(value, records)
File "/home/arj/PycharmProjects/odoo/odoo/fields.py", line 2620, in convert_to_cache
raise ValueError("Wrong value for %s: %r" % (self, value))
ValueError: Wrong value for rental.wizard.duration_unit: 'year'
```
taskid: 2925638
Forward-Port-Of: odoo/enterprise#29709Part of: https://github.com/odoo/odoo/pull/96329 Forward-Port-Of: odoo/enterprise#29841
Original PR description
Part of: https://github.com/odoo/odoo/pull/96329 Forward-Port-Of: odoo/enterprise#29841