From 6e3aceb6c6239307c135b223d98ecc53e4f44500 Mon Sep 17 00:00:00 2001 From: Sylvain LE GAL Date: Tue, 18 Oct 2016 12:42:45 +0200 Subject: [PATCH] 10.0 port web sheet full width (#449) [MIG] adapt web_sheet_full_width to V10.0 web framework --- web_sheet_full_width/README.rst | 11 +++-- web_sheet_full_width/__init__.py | 19 --------- web_sheet_full_width/__manifest__.py | 40 +++---------------- .../static/src/css/web_sheet_full_width.css | 27 ------------- .../static/src/css/web_sheet_full_width.less | 9 +++++ web_sheet_full_width/view/qweb.xml | 2 +- 6 files changed, 20 insertions(+), 88 deletions(-) delete mode 100644 web_sheet_full_width/static/src/css/web_sheet_full_width.css create mode 100644 web_sheet_full_width/static/src/css/web_sheet_full_width.less diff --git a/web_sheet_full_width/README.rst b/web_sheet_full_width/README.rst index 9c3e120c..b244eb1a 100644 --- a/web_sheet_full_width/README.rst +++ b/web_sheet_full_width/README.rst @@ -16,7 +16,7 @@ Usage .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/162/9.0 + :target: https://runbot.odoo-community.org/runbot/162/10.0 Known issues / Roadmap ====================== @@ -29,11 +29,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, -help us smashing it by providing a detailed and welcomed `feedback -`_. +help us smashing it by providing a detailed and welcomed feedback. Credits ======= @@ -43,12 +39,15 @@ Images * Odoo Community Association: `Icon `_. +* Icon courtesy of http://www.picol.org/ (size_width.svg) + Contributors ------------ * Holger Brunn * Nicolas JEUDY - Sudokeys (https://github.com/njeudy) * Stephane (SOLIBRE) +* Sylvain LE GAL (https://twitter.com/legalsylvain) Maintainer ---------- diff --git a/web_sheet_full_width/__init__.py b/web_sheet_full_width/__init__.py index 9dd152f9..40a96afc 100644 --- a/web_sheet_full_width/__init__.py +++ b/web_sheet_full_width/__init__.py @@ -1,20 +1 @@ # -*- 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/__manifest__.py b/web_sheet_full_width/__manifest__.py index a18cd6db..3b26cfa3 100644 --- a/web_sheet_full_width/__manifest__.py +++ b/web_sheet_full_width/__manifest__.py @@ -1,40 +1,12 @@ # -*- 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 . -# -############################################################################## +# Copyright (C) 2014 Therp BV () +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Show sheets with full width", - "version": "9.0.1.0.0", - "author": "Therp BV,Sudokeys,Odoo Community Association (OCA)", + "version": "10.0.1.0.0", + "author": "Therp BV,Sudokeys,GRAP,Odoo Community Association (OCA)", "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', @@ -42,7 +14,5 @@ Icon courtesy of http://www.picol.org/ (size_width.svg) "data": [ "view/qweb.xml", ], - "auto_install": False, - 'installable': False, - "application": 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 deleted file mode 100644 index 0c31d12d..00000000 --- a/web_sheet_full_width/static/src/css/web_sheet_full_width.css +++ /dev/null @@ -1,27 +0,0 @@ -.o_form_view .o_form_sheet_bg .o_form_sheet -{ - width: auto !important; - margin: 15px; -} - -.openerp .oe_form_sheet_width -{ - max-width: none; -} - -.openerp .oe_form_sheetbg -{ - padding: 16px; -} - -.openerp .oe_form div.oe_chatter { - max-width: 100%; -} - -.openerp .oe_followers { - width: 250px; -} - -.openerp .oe_record_thread { - margin-right: 293px; -} diff --git a/web_sheet_full_width/static/src/css/web_sheet_full_width.less b/web_sheet_full_width/static/src/css/web_sheet_full_width.less new file mode 100644 index 00000000..62ca5613 --- /dev/null +++ b/web_sheet_full_width/static/src/css/web_sheet_full_width.less @@ -0,0 +1,9 @@ +.o_form_view{ + .o_form_sheet_bg .o_form_sheet{ + margin: @padding-base-horizontal; + max-width: none; + } + .oe_chatter{ + max-width: none; + } +} diff --git a/web_sheet_full_width/view/qweb.xml b/web_sheet_full_width/view/qweb.xml index 5485c918..df2b40bb 100644 --- a/web_sheet_full_width/view/qweb.xml +++ b/web_sheet_full_width/view/qweb.xml @@ -3,7 +3,7 @@