Friday, June 21, 2019
3 changes · master
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