From 4afc12586dad9e9b84e4bbd1dfe95a1c0a51cf61 Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Sun, 21 Dec 2014 12:17:06 +0100 Subject: [PATCH 1/4] add web_sheet_full_width_selective --- web_sheet_full_width_selective/__init__.py | 21 +++++++ web_sheet_full_width_selective/__openerp__.py | 56 ++++++++++++++++++ .../static/description/icon.png | Bin 0 -> 411 bytes .../static/src/css/sheet.css | 4 ++ .../views/sheet.xml | 12 ++++ 5 files changed, 93 insertions(+) create mode 100755 web_sheet_full_width_selective/__init__.py create mode 100755 web_sheet_full_width_selective/__openerp__.py create mode 100755 web_sheet_full_width_selective/static/description/icon.png create mode 100755 web_sheet_full_width_selective/static/src/css/sheet.css create mode 100755 web_sheet_full_width_selective/views/sheet.xml diff --git a/web_sheet_full_width_selective/__init__.py b/web_sheet_full_width_selective/__init__.py new file mode 100755 index 00000000..5c71b515 --- /dev/null +++ b/web_sheet_full_width_selective/__init__.py @@ -0,0 +1,21 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# +# Copyright (c) 2014 Noviat nv/sa (www.noviat.com). All rights reserved. +# +# 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_selective/__openerp__.py b/web_sheet_full_width_selective/__openerp__.py new file mode 100755 index 00000000..dae518a2 --- /dev/null +++ b/web_sheet_full_width_selective/__openerp__.py @@ -0,0 +1,56 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# +# Copyright (c) 2014 Noviat nv/sa (www.noviat.com). All rights reserved. +# +# 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 selected sheets with full width', + 'version': '0.1', + 'license': 'AGPL-3', + 'author': 'Noviat', + 'category': 'Hidden', + 'description': """ +Description +----------- +This module adds a css class to change a Form Sheet view +to cover the full screen. + +You can activate the Full Screen view by the creation of an +inherited view with the following content: +:: + + + oe_form_sheet_full_screen + + + +Acknowledgements +---------------- +Icon courtesy of http://www.picol.org/ (size_width.svg) + """, + 'depends': [ + 'web', + ], + 'data': [ + 'views/sheet.xml', + ], + 'active': False, + 'installable': True, + } diff --git a/web_sheet_full_width_selective/static/description/icon.png b/web_sheet_full_width_selective/static/description/icon.png new file mode 100755 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_selective/static/src/css/sheet.css b/web_sheet_full_width_selective/static/src/css/sheet.css new file mode 100755 index 00000000..50027d51 --- /dev/null +++ b/web_sheet_full_width_selective/static/src/css/sheet.css @@ -0,0 +1,4 @@ +.openerp .oe_form_sheet_full_screen { + max-width: none; + margin: 0 auto; +} diff --git a/web_sheet_full_width_selective/views/sheet.xml b/web_sheet_full_width_selective/views/sheet.xml new file mode 100755 index 00000000..5f93919c --- /dev/null +++ b/web_sheet_full_width_selective/views/sheet.xml @@ -0,0 +1,12 @@ + + + + + + + + From ab7234728452f789225c236cca1bc5055a1a2836 Mon Sep 17 00:00:00 2001 From: luc-demeyer Date: Sun, 21 Dec 2014 20:22:47 +0100 Subject: [PATCH 2/4] add README.rst --- web_sheet_full_width_selective/README.rst | 15 +++++++++++++++ web_sheet_full_width_selective/__openerp__.py | 3 +++ 2 files changed, 18 insertions(+) create mode 100644 web_sheet_full_width_selective/README.rst diff --git a/web_sheet_full_width_selective/README.rst b/web_sheet_full_width_selective/README.rst new file mode 100644 index 00000000..10b6e186 --- /dev/null +++ b/web_sheet_full_width_selective/README.rst @@ -0,0 +1,15 @@ +Description +----------- +This module adds a css class to change a Form Sheet view +to cover the full screen. + +You can activate the Full Screen view by the creation of an +inherited view with the following content: +:: + + + oe_form_sheet_full_screen + + +Install the 'web_sheet_full_width' module if you want to have a full screen +behaviour in all sheets. diff --git a/web_sheet_full_width_selective/__openerp__.py b/web_sheet_full_width_selective/__openerp__.py index dae518a2..2ec99b8d 100755 --- a/web_sheet_full_width_selective/__openerp__.py +++ b/web_sheet_full_width_selective/__openerp__.py @@ -40,6 +40,9 @@ inherited view with the following content: oe_form_sheet_full_screen +Install the 'web_sheet_full_width' module if you want to have a full screen +behaviour in all sheets. + Acknowledgements ---------------- From 883266f66c60c33429432a11518b668ebaaa3f51 Mon Sep 17 00:00:00 2001 From: luc-demeyer Date: Sun, 21 Dec 2014 22:22:55 +0100 Subject: [PATCH 3/4] remove openerp.py description --- web_sheet_full_width_selective/README.rst | 5 +++++ web_sheet_full_width_selective/__openerp__.py | 22 ------------------- 2 files changed, 5 insertions(+), 22 deletions(-) diff --git a/web_sheet_full_width_selective/README.rst b/web_sheet_full_width_selective/README.rst index 10b6e186..a096b66e 100644 --- a/web_sheet_full_width_selective/README.rst +++ b/web_sheet_full_width_selective/README.rst @@ -13,3 +13,8 @@ inherited view with the following content: Install the 'web_sheet_full_width' module if you want to have a full screen behaviour in all sheets. + + +Acknowledgements +'''''''''''''''' +Icon courtesy of http://www.picol.org/ (size_width.svg) diff --git a/web_sheet_full_width_selective/__openerp__.py b/web_sheet_full_width_selective/__openerp__.py index 2ec99b8d..b795eea4 100755 --- a/web_sheet_full_width_selective/__openerp__.py +++ b/web_sheet_full_width_selective/__openerp__.py @@ -26,28 +26,6 @@ 'license': 'AGPL-3', 'author': 'Noviat', 'category': 'Hidden', - 'description': """ -Description ------------ -This module adds a css class to change a Form Sheet view -to cover the full screen. - -You can activate the Full Screen view by the creation of an -inherited view with the following content: -:: - - - oe_form_sheet_full_screen - - -Install the 'web_sheet_full_width' module if you want to have a full screen -behaviour in all sheets. - - -Acknowledgements ----------------- -Icon courtesy of http://www.picol.org/ (size_width.svg) - """, 'depends': [ 'web', ], From 0da4962afc2a2abc2d9a053dbeb6d686f40db899 Mon Sep 17 00:00:00 2001 From: luc-demeyer Date: Mon, 9 Mar 2015 18:16:46 +0100 Subject: [PATCH 4/4] add OCA to author --- web_sheet_full_width_selective/README.rst | 13 +++++++++++++ web_sheet_full_width_selective/__openerp__.py | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/web_sheet_full_width_selective/README.rst b/web_sheet_full_width_selective/README.rst index a096b66e..547a82b5 100644 --- a/web_sheet_full_width_selective/README.rst +++ b/web_sheet_full_width_selective/README.rst @@ -18,3 +18,16 @@ behaviour in all sheets. Acknowledgements '''''''''''''''' Icon courtesy of http://www.picol.org/ (size_width.svg) + + +Maintainer +---------- + +.. image:: http://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: http://odoo-community.org + +This module is maintained by the OCA. + +OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. + diff --git a/web_sheet_full_width_selective/__openerp__.py b/web_sheet_full_width_selective/__openerp__.py index b795eea4..256c7af9 100755 --- a/web_sheet_full_width_selective/__openerp__.py +++ b/web_sheet_full_width_selective/__openerp__.py @@ -24,7 +24,7 @@ 'name': 'Show selected sheets with full width', 'version': '0.1', 'license': 'AGPL-3', - 'author': 'Noviat', + 'author': 'Noviat, Odoo Community Association (OCA)', 'category': 'Hidden', 'depends': [ 'web',