Tuesday, February 21, 2023
6 changes · master
Enhancements to existing features
When an address has already been validated through Avalara, the geolocation refresh action can now be disabled. This helps avoid unnecessary location updates and keeps latitude and longitude information aligned with the validated address.
Original PR description
This PR allows to disable the refresh button of the geolocalize module when the user has validated his address with the avalara module. Task-id: 3186071 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Employees can now enter their attendance kiosk PIN using a physical keyboard, not just the on-screen keypad. This makes check-in and check-out faster and more convenient for workplaces using keyboard-equipped kiosks.
Original PR description
The kiosk's PIN mode was only accepting codes entered using the keyboard shown on screen, dismissing keys entered on a real keyboard. task-3127253
Odoo now asks its PDF generation tool to report actual errors instead of staying almost silent. This helps administrators diagnose failed PDF reports, such as invoices or documents, faster when network or asset loading problems occur.
Original PR description
# Description of the issue/feature this PR addresses: Odoo neither successfully disables wkhtmltopdf logging, nor logs enough information to be helpful. # Workaround A workaround for this is to…
# Description of the issue/feature this PR addresses:
Odoo neither successfully disables wkhtmltopdf logging, nor logs enough information to be helpful.
# Workaround
A workaround for this is to override `_build_wkhtmltopdf_args` on `ir.actions.report`.
```python
from odoo import api, models
class IrActionsReport(models.Model):
_inherit = 'ir.actions.report'
@api.model
def _build_wkhtmltopdf_args(self, *args, **kwargs):
command_args = super()._build_wkhtmltopdf_args(*args, **kwargs)
command_args.remove('--quiet')
command_args.extend(['--log-level', 'error'])
return command_args
```
# Current behavior before PR:
Per wkhtmltopdf documentation [^1], the current `--quiet` setting claims to set log level to none...
> -q, --quiet Be less verbose, maintained for backwards
> compatibility; Same as using --log-level
> none
> --log-level <level> Set log level to: none, error, warn or
> info (default info)
...but I still get a thin warning in the logs
> WARNING odoo odoo.addons.base.models.ir_actions_report: wkhtmltopdf: b'Exit with code 1 due to network error: TimeoutError\n'
# Desired behavior after PR is merged:
More robust error logging, i.e.
> WARNING odoo odoo.addons.base.models.ir_actions_report: wkhtmltopdf: b'Error: Failed to load https://example.com/web/assets/155-6d97960/web.report_assets_pdf.min.css, with network status code 4 and http status code 0 - Socket operation timed out\nError: Failed to load https://example.com/web/assets/153-cd2922c/web.report_assets_common.min.css, with network status code 4 and http status code 0 - Socket operation timed out\nExit with code 1 due to network error: TimeoutError\n'
[^1]: https://wkhtmltopdf.org/usage/wkhtmltopdf.txt
---
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prMarketing users can now allocate more than 100% across A/B mailing variants, with a warning replacing the previous hard limit. This supports campaigns where different audience filters overlap while still preventing duplicate emails to the same address.
Original PR description
A/B testing was used in the past to create mutually-exclusive mailings. Since then a 100% limit for the recipients of an A/B campaign. As there is no technical reason for this limit and not having it allows for a special usecase, it is replaced here with a text warning. task - 3008627 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The error log shown when a language translation import fails has been updated to state that the file import failed. This makes failures easier for support and operations teams to understand and diagnose.
Original PR description
before this commit, if the translation import is failed, in the log it shows "unsuccessfully imported" after this commit, the logger message is improved and show file import failed --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Subscription records now show when their payment terms are changed. This gives teams a clearer history of billing-related updates and helps avoid confusion when reviewing customer agreements.
Original PR description
Before this commit, when the 'payment terms' field in a subscription was changed, there was no information about the change anywhere. Now, when this field it is changed, this change is tracked on the chatter. Task-id: 3117413