Browse Source

10.0 port web sheet full width (#449)

[MIG] adapt web_sheet_full_width to V10.0 web framework
pull/462/head
Sylvain LE GAL 8 years ago
committed by Pedro M. Baeza
parent
commit
d8eaf033d5
  1. 11
      web_sheet_full_width/README.rst
  2. 19
      web_sheet_full_width/__init__.py
  3. 40
      web_sheet_full_width/__manifest__.py
  4. 27
      web_sheet_full_width/static/src/css/web_sheet_full_width.css
  5. 9
      web_sheet_full_width/static/src/css/web_sheet_full_width.less
  6. 2
      web_sheet_full_width/view/qweb.xml

11
web_sheet_full_width/README.rst

@ -14,7 +14,7 @@ Usage
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot :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
Bug Tracker Bug Tracker
=========== ===========
@ -22,11 +22,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues Bugs are tracked on `GitHub Issues
<https://github.com/OCA/web/issues>`_. In case of trouble, please <https://github.com/OCA/web/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first, 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
<https://github.com/OCA/
web/issues/new?body=module:%20
web_sheet_full_width%0Aversion:%20
9.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
help us smashing it by providing a detailed and welcomed feedback.
Credits Credits
======= =======
@ -36,12 +32,15 @@ Images
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_. * Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.
* Icon courtesy of http://www.picol.org/ (size_width.svg)
Contributors Contributors
------------ ------------
* Holger Brunn <hbrunn@therp.nl> * Holger Brunn <hbrunn@therp.nl>
* Nicolas JEUDY - Sudokeys (https://github.com/njeudy) * Nicolas JEUDY - Sudokeys (https://github.com/njeudy)
* Stephane (SOLIBRE) <stephane@omerp.net> * Stephane (SOLIBRE) <stephane@omerp.net>
* Sylvain LE GAL (https://twitter.com/legalsylvain)
Maintainer Maintainer
---------- ----------

19
web_sheet_full_width/__init__.py

@ -1,20 +1 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# This module copyright (C) 2014 Therp BV (<http://therp.nl>).
#
# 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 <http://www.gnu.org/licenses/>.
#
##############################################################################

40
web_sheet_full_width/__manifest__.py

@ -1,40 +1,12 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# This module copyright (C) 2014 Therp BV (<http://therp.nl>).
#
# 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 <http://www.gnu.org/licenses/>.
#
##############################################################################
# Copyright (C) 2014 Therp BV (<http://therp.nl>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{ {
"name": "Show sheets with full width", "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", "license": "AGPL-3",
"summary": "Use the whole available screen width when displaying sheets", "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", "category": "Tools",
"depends": [ "depends": [
'web', 'web',
@ -42,7 +14,5 @@ Icon courtesy of http://www.picol.org/ (size_width.svg)
"data": [ "data": [
"view/qweb.xml", "view/qweb.xml",
], ],
"auto_install": False,
'installable': False,
"application": False,
"installable": True,
} }

27
web_sheet_full_width/static/src/css/web_sheet_full_width.css

@ -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;
}

9
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;
}
}

2
web_sheet_full_width/view/qweb.xml

@ -3,7 +3,7 @@
<data> <data>
<template id="assets_backend" name="web_sheet_full_width" inherit_id="web.assets_backend"> <template id="assets_backend" name="web_sheet_full_width" inherit_id="web.assets_backend">
<xpath expr="." position="inside"> <xpath expr="." position="inside">
<link rel="stylesheet" href="/web_sheet_full_width/static/src/css/web_sheet_full_width.css"/>
<link rel="stylesheet" href="/web_sheet_full_width/static/src/css/web_sheet_full_width.less"/>
</xpath> </xpath>
</template> </template>
</data> </data>

Loading…
Cancel
Save