summaryrefslogtreecommitdiff
path: root/addons/web/tests/test_image.py
AgeCommit message (Collapse)Author
2019-06-19[FIX] base, web: set 304 status in binary_contentThanh Dodeur
Before this commit, the No Change status wasn't properly set because the `filehash` wasn't passed to `_binary_set_headers` and because the status was not changed to 304 if it was already set to 200 earlier. This commit fixes this issue and also prevents images to be processed in `content_image` if the status is 304. opw-2008426 closes odoo/odoo#34032 Signed-off-by: Christophe Simonis <chs@odoo.com>
2019-02-18[IMP] base,web,website_sale: add tests for product image and mixinSébastien Theys
This commit will add tests for the PR #30656 which added the following commit: 7daa85dd12ff522be510bc2f8db1d968cae7d891 The tests in the current commit achieve 100% code coverage for: - the `image.mixin` - the overridden `image.mixin` methods in `product.product` - the `_get_images` methods of ecommerce - the size logic in method `content_image` (route `/web/image`) PR: #31181
2019-01-24[FIX] web: bar chart no crazy with 2 group byNicolas Lempereur
In 3d2ca8104e4 some change were introduced to the graph view. But part of it had no sense when displaying data over 2 group by. eg. if the first level has 2 groups (2018, 2019) and each second level 2 groups (Done,Cancelled), we could have: 2018/Done: 0 2018/Cancelled: 5 2019/Done: 8 2019/Cancelled: 9 this gives us two main groups [2018: 5] / [2019: 17], the code remove the 2018 because [2018/Done] is 0 so we have something odd with columns not in order, and in stacked bar chart some part of a bar at the wrong offset opw-1932517 closes #30529