Daily updates from Odoo
Navigate
Branch
Wednesday, June 5, 2019
16 changes
New functionality added to Odoo
Mexican localization now adds tax groups so VAT, excise, and income taxes can be categorized correctly when generating CFDI electronic invoices. This helps ensure the required tax code is placed in the official XML, supporting successful invoice signing after the older tax tag field was removed.
Original PR description
To be able to sign an XML document from Mexican Localization the Taxes should have the right category (IVA, IEPS or ISR) to be able to assign the corresponding code for the 'Impuesto' tag in the XML. Due to the removal of the Tag field in the taxes, a new way of getting the tax code is needed. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Website editors can now review and optimize uploaded images before using them, including adjusting size, quality, and filenames. This helps pages load faster and improves search performance while giving users more control over image quality.
Original PR description
Merge commit for PR #31208 Before this task, many websites were slow due to big images. Most users upload images without understanding the impact on SEO and speed. Each upload of an image is important and require some configuration to find the best solution between speed and quality according to the situation. After this task, users will have more control on the upload of images, especially they are given the possibility to reduce their size, quality, and change the filename. task-1930726
Enhancements to existing features
Odoo now loads automated test scripts only when test mode is enabled, reducing unnecessary JavaScript on normal pages and improving page load performance, especially on the website frontend. Debug/test mode also persists across navigation via the user session, making testing more reliable without adding special links everywhere.
Original PR description
Coming with https://github.com/odoo/enterprise/pull/4281 This commit goal is to encapsulate every tour-test into a separate assets bundle that would be called only during tests (command line) or by…
Coming with https://github.com/odoo/enterprise/pull/4281 This commit goal is to encapsulate every tour-test into a separate assets bundle that would be called only during tests (command line) or by URL (debug=tests). That way, a lot of .js files would not be loaded anymore uselessly outside test mode and will speed up the page loads (especially in the frontend as the backend do not reload the page anyway). In order to do that, we needed to propagate the `debug` state from page to page. Otherwise, every page change during a test would simply lose the debug mode and the test would stop as the test assets would not be loaded. As we could not add the `&debug=tests` on every link (either hardcoded or preprocess during the rendering), it has been decided to store it in session. Technical summary: 1. `debug` state (currently only stored in URL) will be stored in session. Either when adding the `debug` param in URL (handled with _dispatch) or by starting Odoo with `test-enable` or `test-file` (handled by session init). 2. Once activated (and so set in session), debug mode will be remain activated even if not visible in URL (after a page navigation eg). To remove it, set its value to nothing, `debug=`. That will exit debug mode (whatever mode it is: debug, assets, tests). 3. As tour-test files are now in a separate bundle, every layout (when needed) should `t-call="web.compiled_assets_tests"`. As it would be redundant and verbose, no `t-if` is needed on the t-call to load it only in test debug mode. That will be handled by `compiled_assets_tests` that will actually do the conditionnal t-call-assets to web.assets_tests, if tests debug mode is activated. 4. In addition to separating the tour-tests files in a separate bundle, we also moved those files to a specific folder under /static/tests/tours next to QUnit tests. 5. Also, tour files will be moved in a specific folder /static/src/js/tours for cleanness purpose (those files will still be kept in their 'normal' assets as needed outside test mode since it is tours).
Point of Sale payment references now include the order ticket number printed on the receipt. This makes it easier for staff to match customer-known ticket numbers with payments during manual reconciliation.
Original PR description
Before this commit, when creating a payment from a pos, the reference was: Main/0000: After this patch, it is now: Main/0000 - Order 00000-000-0000 The number of the ticket is useful as it what is printed on the ticket and what the customer knows (when trying to reconcile order and payment manually) Closes odoo/odoo#33696
The website forum index has been redesigned with a more visual card layout and header, making it easier for visitors to browse available forums. Forum managers can now add images to individual forums, helping each forum stand out and improving the overall presentation.
Original PR description
it cool -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update reorganizes automated test and guided tour files into a clearer structure and connects them to a dedicated test asset bundle. It also makes debug settings persist through the user session, reducing repeated setup and improving reliability for development and testing workflows.
Original PR description
Counterpart of https://github.com/odoo/odoo/pull/33213
Document thumbnails are now generated using a more reliable image processing flow that better handles different image types. If thumbnail creation fails, the system now safely records that no thumbnail is available instead of risking incorrect results.
Original PR description
rebase-ff
Resolved issues and error corrections
This fix prevents resource attendance values from being set when they were not requested. It reduces unnecessary processing and helps avoid duplicate or unintended attendance data during resource setup.
Original PR description
Don't set attendance_ids default value if the field is not in the field list parameter. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
PayPal payments in test mode no longer cause an error when shoppers return to Odoo after a successful checkout. Canceled PayPal transactions now bring users back to a proper Odoo flow instead of leaving them on a dead-end screen, improving the checkout experience.
Original PR description
[1] Paypal configured in test mode in Odoo-> traceback after successful payment when going back to Odoo in an ecommerce checkout. [2] Cancel transaction in paypal interface heads to a deadend screen in Odoo. task-1997961 pad link- https://pad.odoo.com/p/r.390991ba2d29a56232ba3abdc58ec8a3
Point of Sale reports now convert order amounts into the company currency before calculating totals. This helps businesses using multiple currencies see correct sales totals and clearer order values.
Original PR description
We're now able to make correct report regardless the currency use in POS. Added a currency_rate in Pos.order to be able to take it into account during the calculation. Also added a monetary widget to the order view to have correct information displayed. Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fix ensures the Belgian payroll module correctly fills in required values when creating a standard 38-hour work schedule. It prevents missing working-time information that could affect payroll setup or calculations.
Original PR description
fields `hours_per_day` is set by an onchange, therefore the value was not set when calling create. + add missing `full_time_required_hours`
Payroll leave calculations now use the employee's contract schedule instead of the general employee calendar. This helps produce more accurate days and hours for payroll when contract working times differ from the employee calendar.
Original PR description
In order to have the real number_of_days/number_of_hours we need to use the calendar defined on the contract of the employee instead of using directly the employee's calendar
Creating a task from Documents no longer triggers an error when the Field Service Report module is installed. This helps users continue their workflow smoothly without being blocked by a system traceback.
Original PR description
**Description of the issue/feature this PR addresses**: - Task: https://www.odoo.com/web#id=2002519&action=333&active_id=1278&model=project.task&view_type=form&menu_id=4720 - Pad: https://pad.odoo.com/p/r.8cf7a783c72cc22071fd37f064a10262 **Description:** Previously when user tried to create a task from documents with the module industry_fsm_report installed, it was giving an error. Corrected that. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Code cleanup and technical improvements
This update removes a redundant attachment file-name field that usually duplicated existing attachment information. It simplifies how attachments are stored and handled across many Odoo apps, reducing maintenance overhead without changing the core user experience.
Original PR description
*base, account_facturx, attachment_indexation, base_import_module, calendar, crm, hr_recruitment, l10n_be_edi, l10n_generic_coa, l10n_it_edi, mail, mass_mailing, mrp, snailmail, test_mail, web, web_editor, web_unsplash, website, website_blog, website_form, website_sale_digital, website_theme_install. This commit removes the field `datas_fname` from `ir.attachment` as it was unnecessary and most of the time the duplicate of `name` or `url`. task: #1909865
The General Ledger, Partner Ledger, and Chart of Accounts reports were reworked to make them easier to maintain and significantly faster on large accounting datasets. Users should see quicker report loading and expanding, especially in multi-company or high-volume environments, with no intended change to report content.
Original PR description
Main information is in the title. See commit messages for more details. --task: https://www.odoo.com/web?#id=1888408&action=333&active_id=967&model=project.task&view_type=form&menu_id=4720
This update aligns several document-related apps with a core platform change by using the standard attachment name instead of an older filename field. It reduces duplicated data handling and helps keep document, invoice, signing, and localization workflows compatible with the updated platform.
Original PR description
*account_invoice_extract, account_reports, documents, documents_account, documents_product, documents_projet, documents_sign, hr_contract_salary, l10n_mx_edi, sign. Following the removal of the field from `base/ir.attachement` This commit replaces all relevant usage of `datas_fname` by `name` and removes redundant usages of `datas_fname`. related to: odoo/odoo#32976 task: #1909865