Daily updates from Odoo
Navigate
Branch
Friday, June 21, 2019
6 changes
Enhancements to existing features
This update makes Odoo's automated web tests able to include the required protection token when sending certain form-style requests. It helps developers test protected website actions more reliably without changing existing test behavior by default.
Original PR description
Description of the issue/feature this PR addresses:
This commit adds a csrf argument to the url_open method in HttpCase. By default this argument is set to False and so the method still behaves as expected. However, a crsf token can be added automatically on request. This is necessary because otherwise no POST queries can be sent to routes which have set crsf to True.
class TestCase(common.HttpCase):
def test_showcase(self):
self.authenticate('admin', 'admin')
...
self.url_open(url, data=data, csrf=True)
Current behavior before PR:
Sending a POST request causes an error because the csrf token validation fails.
Desired behavior after PR is merged:
It is possible to send a POST request in a test case.
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
CLA : https://github.com/odoo/odoo/pull/27816Starting the Odoo shell now saves its process ID in the same way as other startup modes. This improves operational visibility and makes it easier for administrators or automation tools to monitor and manage running Odoo processes.
Original PR description
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
The Documents search panel now avoids showing child records when users search by folder category. This keeps category filtering clearer and helps users find the intended document groups without extra, nested results appearing unexpectedly.
Original PR description
task - https://www.odoo.com/web?#id=1974632&action=333&active_id=131&model=project.task&view_type=form&menu_id=4720 pad - https://pad.odoo.com/p/r.2f3b7fde09e098265e9b19a040f94f85
Resolved issues and error corrections
The web interface now correctly hides or shows the Create option in search dialogs based on configured creation and editing permissions. This prevents users from being offered actions they are not allowed to use, reducing confusion and improving consistency.
Original PR description
Fixes https://github.com/odoo/odoo/issues/32614 Description of the issue/feature this PR addresses: - 'Create' Option on 'Search more...' should respect no_create/no_create_edit - var create_enabled is not needed since we added no_create on can_create initialization - Typo booleean Current behavior before PR: See https://github.com/odoo/odoo/issues/32614 Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Downloaded files from binary fields now include the correct file extension based on their file type. This makes attachments easier for users to recognize and open with the right application.
Original PR description
purpose of this commit is to show an extension of downloaded attachment. Currently, for the binary field downloaded attachment does not show the extension of a file. After applied this commit, a downloaded file contains the proper extension based on the file type Issue: https://www.odoo.com/web#id=2025716&action=327&model=project.task&view_type=form&menu_id=4720 Pad: https://pad.odoo.com/p/r.faf00f167abb657f1fae5ee00693f722 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The employee search panel is simplified by removing the tag filter, which could become unwieldy when many tags exist. Department filtering now includes employees from sub-departments, giving users more complete and expected results when browsing teams.
Original PR description
task - https://www.odoo.com/web?#id=1974632&action=333&active_id=131&model=project.task&view_type=form&menu_id=4720 pad - https://pad.odoo.com/p/r.2f3b7fde09e098265e9b19a040f94f85 - In employee searchpanel (left) view, In 'tag' selection, their could be a lot of records so it seems useless. That's why it has been removed by this commit. - The problem was that, while clicking on 'Department' at left search panel, records of only that particular department were displayed. It was not including its children records as a result records of that department. By this commit, this issue has been fixed.