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 00000000..18295d8f Binary files /dev/null and b/web_sheet_full_width_selective/static/description/icon.png differ 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 @@ + + + + + + + +