mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
add web_sheet_full_width_selective
This commit is contained in:
21
web_sheet_full_width_selective/__init__.py
Executable file
21
web_sheet_full_width_selective/__init__.py
Executable file
@@ -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 <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
56
web_sheet_full_width_selective/__openerp__.py
Executable file
56
web_sheet_full_width_selective/__openerp__.py
Executable file
@@ -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 <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
{
|
||||
'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:
|
||||
::
|
||||
|
||||
<xpath expr="//sheet" position="attributes">
|
||||
<attribute name="class">oe_form_sheet_full_screen</attribute>
|
||||
</xpath>
|
||||
|
||||
|
||||
Acknowledgements
|
||||
----------------
|
||||
Icon courtesy of http://www.picol.org/ (size_width.svg)
|
||||
""",
|
||||
'depends': [
|
||||
'web',
|
||||
],
|
||||
'data': [
|
||||
'views/sheet.xml',
|
||||
],
|
||||
'active': False,
|
||||
'installable': True,
|
||||
}
|
||||
BIN
web_sheet_full_width_selective/static/description/icon.png
Executable file
BIN
web_sheet_full_width_selective/static/description/icon.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 411 B |
4
web_sheet_full_width_selective/static/src/css/sheet.css
Executable file
4
web_sheet_full_width_selective/static/src/css/sheet.css
Executable file
@@ -0,0 +1,4 @@
|
||||
.openerp .oe_form_sheet_full_screen {
|
||||
max-width: none;
|
||||
margin: 0 auto;
|
||||
}
|
||||
12
web_sheet_full_width_selective/views/sheet.xml
Executable file
12
web_sheet_full_width_selective/views/sheet.xml
Executable file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<template id="assets_backend" name="form_sheet_full_screen assets" inherit_id="web.assets_backend">
|
||||
<xpath expr="." position="inside">
|
||||
<link rel="stylesheet" href="/web_sheet_full_width_selective/static/src/css/sheet.css"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
Reference in New Issue
Block a user