Daily updates from Odoo
Monday, October 29, 2018
4 changes · master
Enhancements to existing features
Payroll calculations and contract lookup logic were reorganized to use more efficient internal data handling. This should improve performance and maintainability without changing the day-to-day payroll workflow for users.
Original PR description
Purpose ======= Some parts of the code are quite old-api-style and could be modified to use recordsets and thus improve performances.
Resolved issues and error corrections
This fixes a setup issue that could cause the weekly digest email process to crash in a new database when accounting was installed. The digest feature now has the dependency it needs, so scheduled digest emails can run reliably.
Original PR description
Steps:
- Create DB without demo data
- Install account
- Enable debug
- Go to Technical, Email, Digest emails
- Open Weekly Digest, set Next Send Date to today
- Go to Scheduled Actions, open Digest Emails
- Click Run Manually
Get
```
digest/models/digest.py", line 161, in _compute_timeframes
tz_name = company.resource_calendar_id.tz
AttributeError: 'res.company' object has no attribute 'resource_calendar_id'
```
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prCode cleanup and technical improvements
This change reorganizes styling variables so they follow Odoo’s standard asset structure. It should not change day-to-day behavior, but it helps keep the Accounting and HR Org Chart areas easier to maintain and less prone to future styling issues.
Original PR description
Some variables were placed at the beginning of the backend helper. While it was working, the normal convention is to place them at the end of the variables helper.
Marketing Automation now uses the correct asset bundles for its styling and interface resources. This internal cleanup helps keep the module aligned with the platform’s asset structure and reduces the risk of loading or maintenance issues.
Original PR description
See https://github.com/odoo/odoo/pull/28203