Monday, March 11, 2019
5 changes · master
Enhancements to existing features
Image widgets now include a meaningful filename in their URLs, which can help search engines better understand and index images. Images also consistently include alt text, improving accessibility and content quality.
Original PR description
It's better to always have a relevant name in the image URL for SEO. Also make sure there is always an alt on the image. 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
Invoice lines can now automatically use the product’s configured country of origin. This reduces manual data entry and helps Belgian Intrastat reporting stay consistent when invoices are created.
Original PR description
Purpose ======= In order to ease invoice encoding, the country of origin should be set on the invoice line automatically. Development =========== A new field 'Origin Country of Product' is added on the product template form view. On the invoice form view, an onchange on `product_id` retrieves the country from the field previosuly defined on the product template. opw-1943323
Users can now create customer invoices directly from document workflow actions, reducing manual steps in the invoicing process. The update also adds ready-to-use workflow actions for creating customer invoices and credit notes, making document-driven accounting tasks faster and more consistent.
Original PR description
This commit adds the ability to create customer invoices with document's workflow actions. Additionally, two record data for workflow actions are added (create customer invoice and create credit note). Task: #1948832
Resolved issues and error corrections
Consumable products can no longer show or keep lot/serial tracking and related date settings, which were not appropriate for that product type. When a product is changed to consumable, tracking is reset to avoid incorrect inventory behavior and cleaner product configuration.
Original PR description
Before this commit, you can configure tracking for consumable type product. Now, tracking and date settings are hidden when the product's type is set on consumable. Also, resets tracking when change type on consumable. Task #1938594
This update fixes issues that could prevent mobile menu items from appearing correctly and could cause mobile app requests to fail. It improves reliability for users navigating Odoo on mobile devices, especially around company switching and native app communication.
Original PR description
[FIX] web_enterprise: start function don't return the correct promise In start function, initAutoMoreMenu Promise was not expected so the mobile menu wasn't appended in the burger menu.…
[FIX] web_enterprise: start function don't return the correct promise In start function, initAutoMoreMenu Promise was not expected so the mobile menu wasn't appended in the burger menu. Co-authored-by: Vincent Schippefilt vsc@odoo.com ====== [FIX] web_enterprise: SwitchCompanyMenu not include by default anymore In commit odoo/odoo@ab56e63 file /addons/web/static/src/js/widgets/switch_company_menu.js Line 78 If session.user_companies is set the menu will be added in the SystrayMenu Commit has a side effect in mobile it deletes always a menu from Systray After this fix, in mobile, if there is no SwitchCompanyMenu in Systray no menu is deleted anymore. Link to line : https://github.com/odoo/odoo/blob/ab56e637b7f97ddcdbcc9baea99ae097e342409c/addons/web/static/src/js/widgets/switch_company_menu.js#L78 Co-authored-by: Vincent Schippefilt vsc@odoo.com ====== [FIX] web_mobile: native_invoke undefined id In commit 1899b2a file web_mobile/static/src/js/rpc.js Line 27 the unique id was generated in Promise and not accessible outside, so an error was triggered. https://github.com/odoo/enterprise/blob/1899b2a738902f95ac39c4267f166c4ef88e14d9/web_mobile/static/src/js/rpc.js#L27