Monday, March 4, 2024
3 changes · saas-17.1
New functionality added to Odoo
This update introduces a new payment method for point-of-sale transactions using Razorpay, a popular payment gateway. This allows businesses to accept payments directly through Odoo's POS system, expanding payment options for customers.
Original PR description
This commit adds the module pos_razorpay to add a new payment method of razorpay to point_of_sale. Task: 3691186 Forward-Port-Of: odoo/odoo#153627
Resolved issues and error corrections
This update fixes a bug preventing detailed account changes (like invoice account modifications) from being visible in financial reports. This ensures accountants and auditors have accurate tracking of financial transactions, improving reporting reliability and compliance. The fix addresses a technical limitation related to sub-model tracking.
Original PR description
Steps to reproduce: - Create an invoice and confirm it - reset to draft - change the account of an aml (product sales -> asset) -> on the log note you will see the detail of the modification `Account: 400000 Product Sales -> 101000 Current Assets` - connect with Demo - go on the same invoice Issue: You will not see the details of the aml account change This is problematic since Accountant and auditors should be able to see it. Cause: Sub-model tracking is not supported. Although we override this constraint in accounting (refer to https://github.com/odoo/odoo/blob/f56de22f10d09e6e34b25cbff04bbb6bf0823e54/addons/account/models/account_move.py#L5058-L5071), it remains inaccessible for users other than base.system. This is because we attempt to locate the account_id field on the model account.move defined in tracking.mail_message_id. opw-3632295 Forward-Port-Of: odoo/odoo#155034 Forward-Port-Of: odoo/odoo#151096
A recent update to the website's header caused dropdown menus (like the user menu and language selection) to disappear when the page was scrolling. This commit corrects this issue by adjusting how the header's height is managed, ensuring dropdowns appear correctly. A new test has been added to prevent this issue from recurring.
Original PR description
Since the commit [1], a new element called "o_header_hide_on_scroll" was introduced in some header templates. This element has the feature of gradually decreasing its height as you start scrolling…
Since the commit [1], a new element called "o_header_hide_on_scroll" was introduced in some header templates. This element has the feature of gradually decreasing its height as you start scrolling the page until it completely disappears. To reduce the height of this element without leaving its contents fully visible (because they maintain their height), we added an "overflow: hidden" property on it. However, this "overflow: hidden" introduced a bug fixed by this commit. Due to this, the dropdowns within the "o_header_hide_on_scroll" element, like "user menu" dropdown or "language selection" dropdown, became invisible. Steps to reproduce the bug: - Go to Website edit mode. - Click on the header. - Choose the "Menu - Sales 2" template from the options. - Select the "Fixed" Scroll Effect from the options. - Click on the "User Menu" dropdown in the header. - Bug: The dropdown menu does not appear. The same issue occurs if you type something in the search bar; the dropdown with the results does not appear either. To fix this, we don't apply "overflow: hidden" on the "o_header_hide_on_scroll" element when the page hasn't been scrolled yet. And if the page has been scrolled just a bit and the user clicks on a dropdown or the search bar, we scroll the page to the top first, and then display the dropdown menu. This commit also add a test tour to prevent the bug from reappearing. [1]: https://github.com/odoo/odoo/commit/143d475c3ab8d755906807bda8edb655c6dd22eb opw-3698887 Forward-Port-Of: odoo/odoo#154979