base_usability: add 2 patches
This commit is contained in:
13
base_usability/fix-mimetypes_application_xml.diff
Normal file
13
base_usability/fix-mimetypes_application_xml.diff
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git a/odoo/tools/mimetypes.py b/odoo/tools/mimetypes.py
|
||||
index d104198a4ae..6eeabcc63a3 100644
|
||||
--- a/odoo/tools/mimetypes.py
|
||||
+++ b/odoo/tools/mimetypes.py
|
||||
@@ -123,7 +123,7 @@ _mime_mappings = (
|
||||
_Entry('image/png', [b'\x89PNG\r\n\x1A\n'], []),
|
||||
_Entry('image/gif', [b'GIF87a', b'GIF89a'], []),
|
||||
_Entry('image/bmp', [b'BM'], []),
|
||||
- _Entry('image/svg+xml', [b'<'], [
|
||||
+ _Entry('application/xml', [b'<'], [
|
||||
_check_svg,
|
||||
]),
|
||||
_Entry('image/x-icon', [b'\x00\x00\x01\x00'], []),
|
||||
16
base_usability/web-buttons_14_max_instead_of_7.diff
Normal file
16
base_usability/web-buttons_14_max_instead_of_7.diff
Normal file
@@ -0,0 +1,16 @@
|
||||
diff --git a/addons/web/static/src/js/views/form/form_renderer.js b/addons/web/static/src/js/views/form/form_renderer.js
|
||||
index e4c1b187169..ccd8110478f 100644
|
||||
--- a/addons/web/static/src/js/views/form/form_renderer.js
|
||||
+++ b/addons/web/static/src/js/views/form/form_renderer.js
|
||||
@@ -516,7 +516,10 @@ var FormRenderer = BasicRenderer.extend({
|
||||
* @returns {integer}
|
||||
*/
|
||||
_renderButtonBoxNbButtons: function () {
|
||||
- return [2, 2, 2, 4][config.device.size_class] || 7;
|
||||
+ /* AKRETION HACK 24/04/2024
|
||||
+ * show 14 buttons before adding 'More' dropdown list (instead of 7 by default
|
||||
+ */
|
||||
+ return [2, 2, 2, 4][config.device.size_class] || 14;
|
||||
},
|
||||
/**
|
||||
* Do not render a field widget if it is always invisible.
|
||||
Reference in New Issue
Block a user