From c5b8dd1880d18d1ddfaf9e99c02a479ca035ef93 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Tue, 16 Dec 2014 13:41:22 +0100 Subject: [PATCH 1/4] [ADD] web_sheet_full_width --- web_sheet_full_width/__init__.py | 20 +++++++ web_sheet_full_width/__openerp__.py | 51 ++++++++++++++++++ .../static/description/icon.png | Bin 0 -> 411 bytes .../static/src/css/web_sheet_full_width.css | 8 +++ web_sheet_full_width/view/qweb.xml | 10 ++++ 5 files changed, 89 insertions(+) create mode 100644 web_sheet_full_width/__init__.py create mode 100644 web_sheet_full_width/__openerp__.py create mode 100644 web_sheet_full_width/static/description/icon.png create mode 100644 web_sheet_full_width/static/src/css/web_sheet_full_width.css create mode 100644 web_sheet_full_width/view/qweb.xml diff --git a/web_sheet_full_width/__init__.py b/web_sheet_full_width/__init__.py new file mode 100644 index 00000000..9dd152f9 --- /dev/null +++ b/web_sheet_full_width/__init__.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# This module copyright (C) 2014 Therp BV (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## diff --git a/web_sheet_full_width/__openerp__.py b/web_sheet_full_width/__openerp__.py new file mode 100644 index 00000000..6411ac7b --- /dev/null +++ b/web_sheet_full_width/__openerp__.py @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# This module copyright (C) 2014 Therp BV (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## +{ + "name": "Show sheets with full width", + "version": "1.0", + "author": "Therp BV", + "license": "AGPL-3", + "summary": "Use the whole available screen width when displaying sheets", + "description": """ +Description +----------- +This addon displays sheets making use of the whole screen, thereby avoiding +to narrow columns in ie. sale orders or purchase orders. + + +Acknowledgements +---------------- +Icon courtesy of http://www.picol.org/ (size_width.svg) + """, + "category": "Tools", + "depends": [ + 'web', + ], + "data": [ + "view/qweb.xml", + ], + "auto_install": False, + "installable": True, + "application": False, + "external_dependencies": { + 'python': [], + }, +} diff --git a/web_sheet_full_width/static/description/icon.png b/web_sheet_full_width/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..18295d8f03c33f256c3b623ae040b5b7bdcbba54 GIT binary patch literal 411 zcmeAS@N?(olHy`uVBq!ia0vp^0U*r51|<6gKdl8)Y)RhkE)4%caKYZ?lYt_f1s;*b zKpodXn9)gNb_Gz7y~NYkmHi%%0FMTT_S8*t85kHfJY5_^DsH{KwUO_T0gr3o(2^9Rx&9%xgdbZ{_ewn^XmUpuI|uL&foEYhmk{};Yw)b zXQ7p|Ux({You>O*|3j9-0W0B+HoRRd7OWd{*j$-QTy?CQm6&!ZynE=%Ce!tUPv7c+ zz!ConNd|w#y2GcLZnRdg=nE$ZKMLHl__{sgyuH_MR$OGTR}x#!yqNKwlGyRXN=*9{ z#GW@VVhR(C6c^n2>2ypvzx7kjoP9af3z%;7Kkt;_y|7Pq4a2v`Tb0s&X{E1a7CBJ2 zXK{xl!`n9kzC0O=k7YPHNZWb{GtRoM;meS5@34u%g0oV~85wiGIqzopr06`>{q5uE@ literal 0 HcmV?d00001 diff --git a/web_sheet_full_width/static/src/css/web_sheet_full_width.css b/web_sheet_full_width/static/src/css/web_sheet_full_width.css new file mode 100644 index 00000000..671094c4 --- /dev/null +++ b/web_sheet_full_width/static/src/css/web_sheet_full_width.css @@ -0,0 +1,8 @@ +.openerp .oe_form_sheet_width +{ + max-width: none; +} +.openerp .oe_form_sheetbg +{ + padding: 16px; +} diff --git a/web_sheet_full_width/view/qweb.xml b/web_sheet_full_width/view/qweb.xml new file mode 100644 index 00000000..5485c918 --- /dev/null +++ b/web_sheet_full_width/view/qweb.xml @@ -0,0 +1,10 @@ + + + + + + From 02810c5b26f6a32211e2058d1b3a65c18daeaa8e Mon Sep 17 00:00:00 2001 From: Nicolas JEUDY Date: Thu, 1 Jan 2015 21:33:08 +0100 Subject: [PATCH 2/4] new:[web_sheet_full_width] give openchatter full width too. --- .../static/src/css/web_sheet_full_width.css | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/web_sheet_full_width/static/src/css/web_sheet_full_width.css b/web_sheet_full_width/static/src/css/web_sheet_full_width.css index 671094c4..ecc79ec6 100644 --- a/web_sheet_full_width/static/src/css/web_sheet_full_width.css +++ b/web_sheet_full_width/static/src/css/web_sheet_full_width.css @@ -6,3 +6,15 @@ { padding: 16px; } + +.openerp .oe_form div.oe_chatter { + max-width: 100%; +} + +.openerp .oe_followers { + width: 250px; +} + +.openerp .oe_record_thread { + margin-right: 293px; +} From a8ebfb4239e569686210b707b1ee4d06b77d41d5 Mon Sep 17 00:00:00 2001 From: Alexandre Fayolle Date: Mon, 2 Mar 2015 17:29:19 +0100 Subject: [PATCH 3/4] Add OCA as author of OCA addons In order to get visibility on https://www.odoo.com/apps the OCA board has decided to add the OCA as author of all the addons maintained as part of the association. --- web_sheet_full_width/__openerp__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_sheet_full_width/__openerp__.py b/web_sheet_full_width/__openerp__.py index 6411ac7b..58c4d9ba 100644 --- a/web_sheet_full_width/__openerp__.py +++ b/web_sheet_full_width/__openerp__.py @@ -21,7 +21,7 @@ { "name": "Show sheets with full width", "version": "1.0", - "author": "Therp BV", + "author": "Therp BV,Odoo Community Association (OCA)", "license": "AGPL-3", "summary": "Use the whole available screen width when displaying sheets", "description": """ From 42fa9155819a3ab710913d5a82bc8e1994e2aff2 Mon Sep 17 00:00:00 2001 From: dufresnedavid Date: Tue, 15 Sep 2015 22:06:19 -0400 Subject: [PATCH 4/4] Backport web_sheet_full_width to 7.0 --- web_sheet_full_width/__openerp__.py | 4 +++- .../static/src/css/web_sheet_full_width.css | 4 +++- .../static/{description => src/img}/icon.png | Bin web_sheet_full_width/view/qweb.xml | 10 ---------- 4 files changed, 6 insertions(+), 12 deletions(-) rename web_sheet_full_width/static/{description => src/img}/icon.png (100%) delete mode 100644 web_sheet_full_width/view/qweb.xml diff --git a/web_sheet_full_width/__openerp__.py b/web_sheet_full_width/__openerp__.py index 58c4d9ba..82f06ff6 100644 --- a/web_sheet_full_width/__openerp__.py +++ b/web_sheet_full_width/__openerp__.py @@ -40,7 +40,9 @@ Icon courtesy of http://www.picol.org/ (size_width.svg) 'web', ], "data": [ - "view/qweb.xml", + ], + 'css': [ + 'static/src/css/web_sheet_full_width.css', ], "auto_install": False, "installable": True, diff --git a/web_sheet_full_width/static/src/css/web_sheet_full_width.css b/web_sheet_full_width/static/src/css/web_sheet_full_width.css index ecc79ec6..48a6ea3e 100644 --- a/web_sheet_full_width/static/src/css/web_sheet_full_width.css +++ b/web_sheet_full_width/static/src/css/web_sheet_full_width.css @@ -1,7 +1,9 @@ .openerp .oe_form_sheet_width { - max-width: none; + min-width: 650px; + max-width: none !important; } + .openerp .oe_form_sheetbg { padding: 16px; diff --git a/web_sheet_full_width/static/description/icon.png b/web_sheet_full_width/static/src/img/icon.png similarity index 100% rename from web_sheet_full_width/static/description/icon.png rename to web_sheet_full_width/static/src/img/icon.png diff --git a/web_sheet_full_width/view/qweb.xml b/web_sheet_full_width/view/qweb.xml deleted file mode 100644 index 5485c918..00000000 --- a/web_sheet_full_width/view/qweb.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - -