openerp-community-reviewer team mailing list archive
-
openerp-community-reviewer team
-
Mailing list archive
-
Message #07791
[Merge] lp:~sylvain-legal/openerp-pos/7.0_pos_second_header into lp:openerp-pos
Sylvain LE GAL (GRAP) has proposed merging lp:~sylvain-legal/openerp-pos/7.0_pos_second_header into lp:openerp-pos.
Commit message:
[ADD] Add new module to display a second header in Point Of Sale
Requested reviews:
OpenERP Community Reviewer/Maintainer (openerp-community-reviewer)
For more details, see:
https://code.launchpad.net/~sylvain-legal/openerp-pos/7.0_pos_second_header/+merge/228820
new module "pos_second_header" that add a second toolbar in the point of sale module (front-end).
This module is useless alone, but some modules depend on it. (pos_restaurant, pos_select_customer, etc.)
Thanks for your review.
--
https://code.launchpad.net/~sylvain-legal/openerp-pos/7.0_pos_second_header/+merge/228820
Your team OpenERP Community Reviewer/Maintainer is requested to review the proposed merge of lp:~sylvain-legal/openerp-pos/7.0_pos_second_header into lp:openerp-pos.
=== added file '__init__.py'
--- __init__.py 1970-01-01 00:00:00 +0000
+++ __init__.py 2014-07-30 10:37:57 +0000
@@ -0,0 +1,21 @@
+# -*- encoding: utf-8 -*-
+##############################################################################
+#
+# Point Of Sale - Second Header module for OpenERP
+# Copyright (C) 2013-2014 GRAP (http://www.grap.coop)
+# @author Sylvain LE GAL (https://twitter.com/legalsylvain)
+#
+# 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/>.
+#
+##############################################################################
=== added file '__openerp__.py'
--- __openerp__.py 1970-01-01 00:00:00 +0000
+++ __openerp__.py 2014-07-30 10:37:57 +0000
@@ -0,0 +1,58 @@
+# -*- encoding: utf-8 -*-
+##############################################################################
+#
+# Point Of Sale - Second Header module for OpenERP
+# Copyright (C) 2014 GRAP (http://www.grap.coop)
+# @author Sylvain LE GAL (https://twitter.com/legalsylvain)
+#
+# 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': 'Point Of Sale - Second Header',
+ 'summary': 'Add a second header in the Point Of Sale (front-end)',
+ 'version': '0.1',
+ 'category': 'sale',
+ 'description': """
+Add a second header in the Point Of Sale (front-end)
+====================================================
+
+Functionality:
+--------------
+ * Add a second banner in the point of sale page under the the first one,"""
+ """dedicated to extra-information of the current pos order;
+
+Copyright, Authors and Licence:
+-------------------------------
+ * Copyright: 2014, GRAP: Groupement Régional Alimentaire de Proximité;
+ * Author:
+ * Sylvain LE GAL (https://twitter.com/legalsylvain);
+ * Licence: AGPL-3 (http://www.gnu.org/licenses/);""",
+ 'author': 'GRAP',
+ 'website': 'http://www.grap.coop',
+ 'license': 'AGPL-3',
+ 'depends': [
+ 'point_of_sale',
+ ],
+ 'qweb': [
+ 'static/src/xml/psh.xml',
+ ],
+ 'js': [
+ 'static/src/js/psh.js',
+ ],
+ 'css': [
+ 'static/src/css/psh.css',
+ ],
+}
=== added directory 'static'
=== added directory 'static/src'
=== added directory 'static/src/css'
=== added file 'static/src/css/psh.css'
--- static/src/css/psh.css 1970-01-01 00:00:00 +0000
+++ static/src/css/psh.css 2014-07-30 10:37:57 +0000
@@ -0,0 +1,59 @@
+/******************************************************************************
+ Point Of Sale - Second Header module for OpenERP
+ Copyright (C) 2014 GRAP (http://www.grap.coop)
+ @author Sylvain LE GAL (https://twitter.com/legalsylvain)
+
+ 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/>.
+******************************************************************************/
+
+/*
+ Overload: default display of point of sale
+*/
+.point-of-sale #topheader {
+ height: 65px;
+}
+
+.point-of-sale #content {
+ top: 65px;
+}
+
+/*
+ Define: PosOrderHeaderWidget CSS
+*/
+.point-of-sale #topheader #rightheader #pos_order_header{
+ height: 32px;
+ border-top: 1px solid #373737;
+}
+
+/*
+ Define: New class for further content
+*/
+.point-of-sale #rightheader .extra-label{
+ float:left;
+ color:#DDD;
+/* border-right: 1px solid #373737;*/
+ height:100%;
+ overflow:hidden;
+ text-overflow: ellipsis;
+ text-align:center;
+}
+
+.point-of-sale #rightheader .extra-label .extra-text{
+ font-size:15px;
+ font-style:italic;
+ position: relative;
+ top: 50%;
+ transform: translateY(-50%);
+ -webkit-transform: translateY(-50%);
+}
=== added directory 'static/src/img'
=== added file 'static/src/img/icon.png'
Binary files static/src/img/icon.png 1970-01-01 00:00:00 +0000 and static/src/img/icon.png 2014-07-30 10:37:57 +0000 differ
=== added directory 'static/src/js'
=== added file 'static/src/js/psh.js'
--- static/src/js/psh.js 1970-01-01 00:00:00 +0000
+++ static/src/js/psh.js 2014-07-30 10:37:57 +0000
@@ -0,0 +1,47 @@
+/******************************************************************************
+ Point Of Sale - Second Header module for OpenERP
+ Copyright (C) 2014 GRAP (http://www.grap.coop)
+ @author Sylvain LE GAL (https://twitter.com/legalsylvain)
+
+ 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/>.
+******************************************************************************/
+
+openerp.pos_second_header = function (instance) {
+ module = instance.point_of_sale;
+
+ /*
+ Define : PosOrderHeaderWidget to allow possibility to include inside
+ some extra informations.
+ */
+ module.PosOrderHeaderWidget = module.PosBaseWidget.extend({
+ template: 'PosOrderHeaderWidget',
+
+ init: function(parent, options){
+ this._super(parent,options);
+ },
+ });
+
+ /*
+ Overload : PosWidget to include PosOrderHeaderWidget inside.
+ */
+ module.PosWidget = module.PosWidget.extend({
+ build_widgets: function(){
+ this._super();
+ this.pos_order_header = new module.PosOrderHeaderWidget(this,{});
+ this.pos_order_header.appendTo(this.$('#rightheader'));
+
+ },
+ });
+
+};
=== added directory 'static/src/xml'
=== added file 'static/src/xml/psh.xml'
--- static/src/xml/psh.xml 1970-01-01 00:00:00 +0000
+++ static/src/xml/psh.xml 2014-07-30 10:37:57 +0000
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- ********************************************************************** -->
+<!--Point Of Sale - Second Header module for OpenERP -->
+<!--Copyright (C) 2014 GRAP (http://www.grap.coop) -->
+<!--@author Sylvain LE GAL (https://twitter.com/legalsylvain) -->
+
+<!--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/>. -->
+<!-- ********************************************************************** -->
+<templates id="template" xml:space="preserve">
+
+ <t t-name="PosOrderHeaderWidget">
+ <div id="pos_order_header" />
+ </t>
+
+</templates>
Follow ups