Saturday, July 6, 2024
7 changes · saas-17.3
Miscellaneous changes
Small fix and improvement on dumpstack function Forward-Port-Of: odoo/odoo#171840 Forward-Port-Of: odoo/odoo#171261
Original PR description
Small fix and improvement on dumpstack function Forward-Port-Of: odoo/odoo#171840 Forward-Port-Of: odoo/odoo#171261
[ADD] account: Add tax_tag shortcut formula While we are working on a refactor for italian tax report https://github.com/odoo/odoo/pull/164064 We discovered the need for having tax_tag shortcut as the report was getting huge. So, we thought it's the time to have the tax_tags shortcut Solution: Adding 'tax_tags_formula' for the tax_tags shortcut in a similar way like aggregation_formula task-id#3969688 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/su
Original PR description
[ADD] account: Add tax_tag shortcut formula While we are working on a refactor for italian tax report https://github.com/odoo/odoo/pull/164064 We discovered the need for having tax_tag shortcut as the report was getting huge. So, we thought it's the time to have the tax_tags shortcut Solution: Adding 'tax_tags_formula' for the tax_tags shortcut in a similar way like aggregation_formula task-id#3969688 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#172010 Forward-Port-Of: odoo/odoo#167979
A previous fix was iterating on all the records in `self` in order to remove an issue when multiple companies are involved in the deletion. However the way it is fixed was triggering multiple calls to `check_move_sequence_chain` even though that method is optimized to only check once every move, hence worse perforance. Also, the moves need to be deleted in order if we wanted to do it that way. Fixup of f3863949b95613c4b1d7292f7fc2da2696af467a Forward-Port-Of: odoo/odoo#172067 Forward-Port-O
Original PR description
A previous fix was iterating on all the records in `self` in order to remove an issue when multiple companies are involved in the deletion. However the way it is fixed was triggering multiple calls to `check_move_sequence_chain` even though that method is optimized to only check once every move, hence worse perforance. Also, the moves need to be deleted in order if we wanted to do it that way. Fixup of f3863949b95613c4b1d7292f7fc2da2696af467a Forward-Port-Of: odoo/odoo#172067 Forward-Port-Of: odoo/odoo#171984
This error occurs when we keep the product name empty in the stock move and try to generate the Serials/Lots by clicking on ``Generate Serials/Lots``. Steps to reproduce: - Install the ``stock`` module - Create a new product(eg: test) and set its tracking ``By Lots`` in Traceability - Create a new receipt and add ``test`` as product and ``Mark as ToDo`` - Again add ``test`` as the product and on the right, click on ``bars(fa-icon)`` - Remove the product name > click on ``Generate Serials
Original PR description
This error occurs when we keep the product name empty in the stock move and try to generate the Serials/Lots by clicking on ``Generate Serials/Lots``. Steps to reproduce: - Install the ``stock``…
This error occurs when we keep the product name empty in the stock move and try to generate the Serials/Lots by clicking on ``Generate Serials/Lots``. Steps to reproduce: - Install the ``stock`` module - Create a new product(eg: test) and set its tracking ``By Lots`` in Traceability - Create a new receipt and add ``test`` as product and ``Mark as ToDo`` - Again add ``test`` as the product and on the right, click on ``bars(fa-icon)`` - Remove the product name > click on ``Generate Serials/Lots`` - Click on ``Generate`` Traceback: ``KeyError 'product_id'`` This error occurs at [1] because ``product_id`` is not present in the default values. This commit will fix the above error by not showing the ``Generate Serials/Lots`` and ``Import Serials/Lots`` buttons when ``product`` is empty and also will raise an error if ``product`` is not found. [1]: https://github.com/odoo/odoo/blob/b1ba4018f91f1fd788f48180bd5fc4656ab1e35c/addons/stock/models/stock_move.py#L930 sentry-5072366645 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#172009 Forward-Port-Of: odoo/odoo#170718
Since [1] and [2] the sort field was mistakenly set as a JS array instead of a stringified JSON array with double quotes. In JS we parse them and ignore errors. https://github.com/odoo/odoo/blob/70ac17346b17e07848b1567df7f333e72f07fc73/addons/web/static/src/search/search_model.js#L1959 Current data is wrong and the sort spec never worked. Upgrade PR where we found the bug : - https://github.com/odoo/upgrade/pull/5903 [1]: https://github.com/odoo/odoo/commit/3c0d98bcd8adf9325ee3497e
Original PR description
Since [1] and [2] the sort field was mistakenly set as a JS array instead of a stringified JSON array with double quotes. In JS we parse them and ignore errors. https://github.com/odoo/odoo/blob/70ac17346b17e07848b1567df7f333e72f07fc73/addons/web/static/src/search/search_model.js#L1959 Current data is wrong and the sort spec never worked. Upgrade PR where we found the bug : - https://github.com/odoo/upgrade/pull/5903 [1]: https://github.com/odoo/odoo/commit/3c0d98bcd8adf9325ee3497eb8d25ec7f904d6a5#diff-80650b3ebe3ff7900a5409e2047c91a71c7d86b11cb2dbc1f5c99b77f381ae95 [2]: https://github.com/odoo/odoo/commit/3355dc16235355fe51e894f14e275210464608c6#diff-2c13c95bb9b3423a9150ff5b7fb5a78ba1b7c1f405f0dd40ff951bdb62fe8f95 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#171980 Forward-Port-Of: odoo/odoo#171719
Forward-Port-Of: odoo/enterprise#66060
Original PR description
Forward-Port-Of: odoo/enterprise#66060
This commit fixes the size of studio icons when the window is resized. The w-75 class was applied, which caused the element to be resized instead of keeping the desired width of 70px, like other icons do. Now, the icon keep the same dimensions, like any other app icon. task-3998287 Forward-Port-Of: odoo/enterprise#66123
Original PR description
This commit fixes the size of studio icons when the window is resized. The w-75 class was applied, which caused the element to be resized instead of keeping the desired width of 70px, like other icons do. Now, the icon keep the same dimensions, like any other app icon. task-3998287 Forward-Port-Of: odoo/enterprise#66123