Daily updates from Odoo
Wednesday, June 5, 2019
8 changes · master
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
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
Resolved issues and error corrections
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
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
Code cleanup and technical improvements
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