From bd8347bbb1b15bfa03b8f345af17a127ead3af54 Mon Sep 17 00:00:00 2001 From: MVA Date: Thu, 5 Apr 2012 10:18:45 +0200 Subject: [PATCH 1/2] [IMP] add the custom_portal menu bzr revid: mva@openerp.com-20120405081845-r23fi50mq8fk5nly --- addons/portal_customer/__init__.py | 23 ++++++ addons/portal_customer/__openerp__.py | 47 +++++++++++ .../portal_customer/portal_customer_view.xml | 33 ++++++++ addons/portal_customer/portal_demo.xml | 81 +++++++++++++++++++ 4 files changed, 184 insertions(+) create mode 100644 addons/portal_customer/__init__.py create mode 100644 addons/portal_customer/__openerp__.py create mode 100644 addons/portal_customer/portal_customer_view.xml create mode 100644 addons/portal_customer/portal_demo.xml diff --git a/addons/portal_customer/__init__.py b/addons/portal_customer/__init__.py new file mode 100644 index 00000000000..cb65ea0b3dc --- /dev/null +++ b/addons/portal_customer/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2011 OpenERP S.A (). +# +# 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 . +# +############################################################################## + + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/portal_customer/__openerp__.py b/addons/portal_customer/__openerp__.py new file mode 100644 index 00000000000..fcecb007808 --- /dev/null +++ b/addons/portal_customer/__openerp__.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2011 OpenERP S.A (). +# +# 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' : "Portal Customer", + 'version' : "1.0", + 'depends' : ["sale","portal"], + 'author' : "OpenERP SA", + 'category': 'Portal', + 'description': """ + The Portal Customer module helps customers to track their Sales Quotations, Orders, Invoices and various + other possibilities + """, + 'website': 'http://www.openerp.com', + 'data': [ + ], + "init_xml" : [ + ], + "demo_xml" : [ + ], + "update_xml" : [ +# "security/ir.model.access.csv", + "portal_customer_view.xml", + "portal_demo.xml" + ], + 'installable': True, +} + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/portal_customer/portal_customer_view.xml b/addons/portal_customer/portal_customer_view.xml new file mode 100644 index 00000000000..c128a6b9fec --- /dev/null +++ b/addons/portal_customer/portal_customer_view.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/addons/portal_customer/portal_demo.xml b/addons/portal_customer/portal_demo.xml new file mode 100644 index 00000000000..3bc08fe9e76 --- /dev/null +++ b/addons/portal_customer/portal_demo.xml @@ -0,0 +1,81 @@ + + + + + + + + + Sale Order + + True + + + + Sale Order Line + + True + + + + Stock Picking + + True + + + + + Account Invoice + + True + + + + + Account Invoice Line + + True + + + + + + Personal Leads + + ['|',('partner_id.email','=',user.login),('user_id','=',False)] + + + + + Personal Leads + + [('partner_id.email','=',user.login)] + + + + + Personal Leads + + [('partner_id.email','=',user.login)] + + + + + Sales Portal + + + + + + + + + \ No newline at end of file From 870fcbbc7dc4a4f78e259f73c8c0c413dee0d689 Mon Sep 17 00:00:00 2001 From: MVA Date: Thu, 5 Apr 2012 10:25:56 +0200 Subject: [PATCH 2/2] [IMP] correct and add /menu bzr revid: mva@openerp.com-20120405082556-3naia93odexan1bk --- addons/portal_customer/portal_customer_view.xml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/addons/portal_customer/portal_customer_view.xml b/addons/portal_customer/portal_customer_view.xml index c128a6b9fec..7ebfc9ac843 100644 --- a/addons/portal_customer/portal_customer_view.xml +++ b/addons/portal_customer/portal_customer_view.xml @@ -2,29 +2,31 @@ - + - + + + - + - + - + - +