From 910e8a2adcd3121045d6d389608ad51a9e8f974d Mon Sep 17 00:00:00 2001 From: "Amit (OpenERP)" Date: Sat, 31 Mar 2012 14:08:35 +0530 Subject: [PATCH 001/657] [FIX] project_gtd : Fixes the unicode problem on my tasks fields_view_get lp bug: https://launchpad.net/bugs/944761 fixed bzr revid: amp@tinyerp.com-20120331083835-ad1l6e4stzy2ia77 --- addons/project_gtd/project_gtd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/project_gtd/project_gtd.py b/addons/project_gtd/project_gtd.py index bec70779551..fb8bb459c55 100644 --- a/addons/project_gtd/project_gtd.py +++ b/addons/project_gtd/project_gtd.py @@ -115,7 +115,7 @@ class project_task(osv.osv): search_extended += '''\n''' search_extended +='''''' - res['arch'] = res['arch'].replace('', search_extended) + res['arch'] = unicode(res['arch'], 'utf-8').replace('', search_extended) return res From 58aeaa48aeec688f7445e4ada079ba80c2e8cc8a Mon Sep 17 00:00:00 2001 From: "Bharat Devnani (OpenERP)" Date: Mon, 2 Apr 2012 18:58:03 +0530 Subject: [PATCH 002/657] [ADD] created portal customer module, kept boolean field on res.partner object if the field is true the user is created bzr revid: bde@tinyerp.com-20120402132803-0oa084aw0k95myid --- addons/portal_customer/__init__.py | 24 ++++++++++ addons/portal_customer/__openerp__.py | 45 +++++++++++++++++++ addons/portal_customer/portal_customer.py | 41 +++++++++++++++++ .../portal_customer/portal_customer_view.xml | 36 +++++++++++++++ 4 files changed, 146 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.py create mode 100644 addons/portal_customer/portal_customer_view.xml diff --git a/addons/portal_customer/__init__.py b/addons/portal_customer/__init__.py new file mode 100644 index 00000000000..4a812a97cb5 --- /dev/null +++ b/addons/portal_customer/__init__.py @@ -0,0 +1,24 @@ +# -*- 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 . +# +############################################################################## +import portal_customer + + +# 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..a3d1005c7f6 --- /dev/null +++ b/addons/portal_customer/__openerp__.py @@ -0,0 +1,45 @@ +# -*- 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"], + '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" : [ + "portal_customer_view.xml" + ], + 'installable': True, +} + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/portal_customer/portal_customer.py b/addons/portal_customer/portal_customer.py new file mode 100644 index 00000000000..afa27aba44b --- /dev/null +++ b/addons/portal_customer/portal_customer.py @@ -0,0 +1,41 @@ +# -*- 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 . +# +############################################################################## + +from osv import fields, osv +from tools.translate import _ +import time + +class res_partner(osv.osv): + + _inherit = 'res.partner' + _columns = { + 'customer_portal_access': fields.boolean('Portal'), + } + + def onchange_portal_create_user(self, cr, uid, ids, field, context=None): + res_users_obj = self.pool.get('res.users') + if field == 1: + name = self.browse(cr, uid, ids, context=context)[0].name + login = self.browse(cr, uid, ids, context=context)[0].email + res_users_obj.create(cr, uid, {'name':name, 'login':login, 'new_password':login}, context=context) + return True + +res_partner() \ No newline at end of file diff --git a/addons/portal_customer/portal_customer_view.xml b/addons/portal_customer/portal_customer_view.xml new file mode 100644 index 00000000000..06f88f635cd --- /dev/null +++ b/addons/portal_customer/portal_customer_view.xml @@ -0,0 +1,36 @@ + + + + + + + + + res.partner.form + res.partner + + form + + + + + + + + + Contacts + res.partner + form + tree,form + + + + + + + + + + \ No newline at end of file From f038f70eea4b17b9dcb22c359b6a419638c858e9 Mon Sep 17 00:00:00 2001 From: "Amit (OpenERP)" Date: Tue, 3 Apr 2012 18:33:36 +0530 Subject: [PATCH 003/657] [FIX] project_timesheet : Fixes the keyerror of journal_id when edit worklog entry on task lp bug: https://launchpad.net/bugs/953006 fixed bzr revid: amp@tinyerp.com-20120403130336-iprq12cr21q7ykji --- addons/project_timesheet/project_timesheet.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/project_timesheet/project_timesheet.py b/addons/project_timesheet/project_timesheet.py index db7066505e1..eff4ea8778a 100644 --- a/addons/project_timesheet/project_timesheet.py +++ b/addons/project_timesheet/project_timesheet.py @@ -142,10 +142,6 @@ class project_work(osv.osv): vals_line['name'] = '%s: %s' % (tools.ustr(task.task_id.name), tools.ustr(vals['name']) or '/') if 'user_id' in vals: vals_line['user_id'] = vals['user_id'] - result = self.get_user_related_details(cr, uid, vals['user_id']) - for fld in ('product_id', 'general_account_id', 'journal_id', 'product_uom_id'): - if result.get(fld, False): - vals_line[fld] = result[fld] if 'date' in vals: vals_line['date'] = vals['date'][:10] @@ -153,6 +149,10 @@ class project_work(osv.osv): default_uom = self.pool.get('res.users').browse(cr, uid, uid).company_id.project_time_mode_id.id vals_line['unit_amount'] = vals['hours'] prod_id = vals_line.get('product_id', line_id.product_id.id) # False may be set + result = self.get_user_related_details(cr, uid, vals.get('user_id', uid)) + for fld in ('product_id', 'general_account_id', 'journal_id', 'product_uom_id'): + if result.get(fld, False): + vals_line[fld] = result[fld] if result.get('product_uom_id',False) and (not result['product_uom_id'] == default_uom): vals_line['unit_amount'] = uom_obj._compute_qty(cr, uid, default_uom, vals['hours'], result['product_uom_id']) From fcee397b2b51772413354bcea2a04b43cb78e183 Mon Sep 17 00:00:00 2001 From: "Bharat Devnani (OpenERP)" Date: Tue, 3 Apr 2012 18:37:38 +0530 Subject: [PATCH 004/657] [ADD] added the functionality of email i.e when the the portal field is true the mail will be sent to the partner, and filter the quotation and sale orders of particular partner through their email address bzr revid: bde@tinyerp.com-20120403130738-08cybydbhnq3q4h3 --- addons/portal_customer/__openerp__.py | 3 +- addons/portal_customer/email_template.xml | 35 +++++++++++++++++++ addons/portal_customer/portal_customer.py | 18 ++++++++-- .../portal_customer/portal_customer_view.xml | 6 ---- addons/sale/security/sale_security.xml | 2 +- 5 files changed, 53 insertions(+), 11 deletions(-) create mode 100644 addons/portal_customer/email_template.xml diff --git a/addons/portal_customer/__openerp__.py b/addons/portal_customer/__openerp__.py index a3d1005c7f6..29d568be628 100644 --- a/addons/portal_customer/__openerp__.py +++ b/addons/portal_customer/__openerp__.py @@ -37,7 +37,8 @@ "demo_xml" : [ ], "update_xml" : [ - "portal_customer_view.xml" + "portal_customer_view.xml", + "email_template.xml" ], 'installable': True, } diff --git a/addons/portal_customer/email_template.xml b/addons/portal_customer/email_template.xml new file mode 100644 index 00000000000..7093a78afdd --- /dev/null +++ b/addons/portal_customer/email_template.xml @@ -0,0 +1,35 @@ + + + + + + Customer Portal User Confirmation + + ${object.user_id.user_email or object.company_id.email or 'noreply@' + object.company_id.name + '.com'} + ${object.email} + You are registered as a Customer Portal User + + Hello ${object.name}, + + Welcome to our customer portal, now you are a member of our customer portal. + You can access our portal system through following Username and Password: + Your Username : ${object.email} + Your Password : ${object.email} + + For now, your password is same as Username, kindly change as per your convenience. + + Thanks and Warm Regards, + ${object.user_id.name} + + + + + default_email_customer_portal_user + default + + + res.partner + + + + \ No newline at end of file diff --git a/addons/portal_customer/portal_customer.py b/addons/portal_customer/portal_customer.py index afa27aba44b..87a55a21268 100644 --- a/addons/portal_customer/portal_customer.py +++ b/addons/portal_customer/portal_customer.py @@ -30,12 +30,24 @@ class res_partner(osv.osv): 'customer_portal_access': fields.boolean('Portal'), } - def onchange_portal_create_user(self, cr, uid, ids, field, context=None): + def mail_user_confirm(self, cr, uid, ids, context=None): + """ + Send email to user when the event is confirmed + """ + email_template_obj = self.pool.get('email.template') + portal_user_id = self.browse(cr, uid, ids, context=context)[0].id + template_id = email_template_obj.search(cr, uid, [('name','=','Customer Portal User Confirmation')], context=context)[0] + if template_id: + mail_message = email_template_obj.send_mail(cr,uid,template_id,portal_user_id) + return True + + def onchange_portal_create_user(self, cr, uid, ids, customer_portal_access, context=None): res_users_obj = self.pool.get('res.users') - if field == 1: + self.mail_user_confirm(cr, uid, ids) + if customer_portal_access: name = self.browse(cr, uid, ids, context=context)[0].name login = self.browse(cr, uid, ids, context=context)[0].email res_users_obj.create(cr, uid, {'name':name, 'login':login, 'new_password':login}, context=context) - return True + return {} res_partner() \ No newline at end of file diff --git a/addons/portal_customer/portal_customer_view.xml b/addons/portal_customer/portal_customer_view.xml index 06f88f635cd..869785dfc7a 100644 --- a/addons/portal_customer/portal_customer_view.xml +++ b/addons/portal_customer/portal_customer_view.xml @@ -24,12 +24,6 @@ tree,form - - - - diff --git a/addons/sale/security/sale_security.xml b/addons/sale/security/sale_security.xml index ae8c8bf62e3..64c2225d4ab 100644 --- a/addons/sale/security/sale_security.xml +++ b/addons/sale/security/sale_security.xml @@ -58,7 +58,7 @@ Personal Orders - ['|',('user_id','=',user.id),('user_id','=',False)] + ['|',('partner_id.email','=',user.login),('user_id','=',False)] From ae2cdf7a498ab34bfb1f1d41d14220ca17f4798d Mon Sep 17 00:00:00 2001 From: "Bharat Devnani (OpenERP)" Date: Wed, 4 Apr 2012 19:00:45 +0530 Subject: [PATCH 005/657] [ADD] Added access rights to the portal user through demo data bzr revid: bde@tinyerp.com-20120404133045-klv8f8b9wci8hw0y --- addons/portal_customer/__init__.py | 1 - addons/portal_customer/__openerp__.py | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/addons/portal_customer/__init__.py b/addons/portal_customer/__init__.py index 4a812a97cb5..55ddb5dd2bf 100644 --- a/addons/portal_customer/__init__.py +++ b/addons/portal_customer/__init__.py @@ -20,5 +20,4 @@ ############################################################################## import portal_customer - # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/portal_customer/__openerp__.py b/addons/portal_customer/__openerp__.py index 29d568be628..1028f98a4f5 100644 --- a/addons/portal_customer/__openerp__.py +++ b/addons/portal_customer/__openerp__.py @@ -22,7 +22,7 @@ { 'name' : "Portal Customer", 'version' : "1.0", - 'depends' : ["sale"], + 'depends' : ["sale","portal"], 'author' : "OpenERP SA", 'category': 'Portal', 'description': """ @@ -37,8 +37,10 @@ "demo_xml" : [ ], "update_xml" : [ +# "security/ir.model.access.csv", "portal_customer_view.xml", - "email_template.xml" + "email_template.xml", + "portal_demo.xml" ], 'installable': True, } From 4bfaf289513b24f74048cf20ba6bbab56f457b4b Mon Sep 17 00:00:00 2001 From: "Bharat Devnani (OpenERP)" Date: Thu, 5 Apr 2012 10:29:01 +0530 Subject: [PATCH 006/657] [ADD] Added access rights, menus, groups to the portal user through demo data bzr revid: bde@tinyerp.com-20120405045901-ngchas7m8qqc26o1 --- addons/portal_customer/portal_demo.xml | 81 ++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 addons/portal_customer/portal_demo.xml 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 bd8347bbb1b15bfa03b8f345af17a127ead3af54 Mon Sep 17 00:00:00 2001 From: MVA Date: Thu, 5 Apr 2012 10:18:45 +0200 Subject: [PATCH 007/657] [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 008/657] [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 @@ - + - + + + - + - + - + - + From a06960bb27e0ddf5be887ad806499014c28256b6 Mon Sep 17 00:00:00 2001 From: MVA Date: Thu, 5 Apr 2012 17:08:24 +0200 Subject: [PATCH 009/657] [IMP] add security for the portal bzr revid: mva@openerp.com-20120405150824-355i63m0clu187b7 --- addons/portal_customer/__openerp__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/portal_customer/__openerp__.py b/addons/portal_customer/__openerp__.py index fcecb007808..55415bb27ba 100644 --- a/addons/portal_customer/__openerp__.py +++ b/addons/portal_customer/__openerp__.py @@ -37,7 +37,7 @@ "demo_xml" : [ ], "update_xml" : [ -# "security/ir.model.access.csv", + "security/security_customer_portal.xml", "portal_customer_view.xml", "portal_demo.xml" ], From e43743e54bab08877d11b8fbe19b4e69775a7a55 Mon Sep 17 00:00:00 2001 From: "Bharat Devnani (OpenERP)" Date: Fri, 6 Apr 2012 10:27:25 +0530 Subject: [PATCH 010/657] [ADD] hidden menus which are not required for portal user, added access rights through csv file bzr revid: bde@tinyerp.com-20120406045725-7vjc5rbxf3u0vlhv --- addons/portal_customer/__openerp__.py | 6 +++--- addons/portal_customer/portal_customer_view.xml | 15 +++++++++++++++ addons/portal_customer/portal_demo.xml | 16 ++++++---------- .../portal_customer/security/ir.model.access.csv | 2 ++ 4 files changed, 26 insertions(+), 13 deletions(-) create mode 100755 addons/portal_customer/security/ir.model.access.csv diff --git a/addons/portal_customer/__openerp__.py b/addons/portal_customer/__openerp__.py index 1028f98a4f5..167c97f6574 100644 --- a/addons/portal_customer/__openerp__.py +++ b/addons/portal_customer/__openerp__.py @@ -37,10 +37,10 @@ "demo_xml" : [ ], "update_xml" : [ -# "security/ir.model.access.csv", "portal_customer_view.xml", - "email_template.xml", - "portal_demo.xml" +# "email_template.xml", + "portal_demo.xml", + "security/ir.model.access.csv", ], 'installable': True, } diff --git a/addons/portal_customer/portal_customer_view.xml b/addons/portal_customer/portal_customer_view.xml index 869785dfc7a..af64cdd8052 100644 --- a/addons/portal_customer/portal_customer_view.xml +++ b/addons/portal_customer/portal_customer_view.xml @@ -24,6 +24,21 @@ tree,form + + + + + + + + + + + + + + + diff --git a/addons/portal_customer/portal_demo.xml b/addons/portal_customer/portal_demo.xml index 3bc08fe9e76..6cdc8d76586 100644 --- a/addons/portal_customer/portal_demo.xml +++ b/addons/portal_customer/portal_demo.xml @@ -32,18 +32,12 @@ Account Invoice True - Account Invoice Line True - @@ -68,14 +62,16 @@ - + Sales Portal + - + - + + - \ No newline at end of file + diff --git a/addons/portal_customer/security/ir.model.access.csv b/addons/portal_customer/security/ir.model.access.csv new file mode 100755 index 00000000000..2c29e0159ad --- /dev/null +++ b/addons/portal_customer/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_sale_order_portal,sale.order,sale.model_sale_order,portal_customer.group_sale_access_portal,1,0,0,0 From ac3215f026806ee06e7b1a66eb2162826fca2bf2 Mon Sep 17 00:00:00 2001 From: "Bharat Devnani (OpenERP)" Date: Fri, 6 Apr 2012 14:17:29 +0530 Subject: [PATCH 011/657] [REM] removed access rights, menu_access, model_access from portal_customer/portal_demo.xml file bzr revid: bde@tinyerp.com-20120406084729-t3exodo18zy80l4l --- .../portal_customer/portal_customer_view.xml | 8 ++-- addons/portal_customer/portal_demo.xml | 44 +------------------ 2 files changed, 5 insertions(+), 47 deletions(-) diff --git a/addons/portal_customer/portal_customer_view.xml b/addons/portal_customer/portal_customer_view.xml index 7ebfc9ac843..3108f051c3b 100644 --- a/addons/portal_customer/portal_customer_view.xml +++ b/addons/portal_customer/portal_customer_view.xml @@ -7,13 +7,13 @@ - - - + + + - + diff --git a/addons/portal_customer/portal_demo.xml b/addons/portal_customer/portal_demo.xml index 3bc08fe9e76..3d6fdb3285a 100644 --- a/addons/portal_customer/portal_demo.xml +++ b/addons/portal_customer/portal_demo.xml @@ -7,46 +7,6 @@ Sale Portal Demo --> - - Sale Order - - True - - - - Sale Order Line - - True - - - - Stock Picking - - True - - - - - Account Invoice - - True - - - - - Account Invoice Line - - True - - - - Personal Leads @@ -70,10 +30,8 @@ Sales Portal - - + - From e52d6ac831a9af108573ace2913d56d7c218ed4e Mon Sep 17 00:00:00 2001 From: "Nimesh (Open ERP)" Date: Fri, 6 Apr 2012 15:13:41 +0530 Subject: [PATCH 012/657] [add] portal_cutomer_lead module to show their own leads to the customer. bzr revid: nco@tinyerp.com-20120406094341-m3r0lqawt6ffbxji --- addons/portal_customer_lead/__init__.py | 23 ++++++++++ addons/portal_customer_lead/__openerp__.py | 44 +++++++++++++++++++ .../portal_customer_lead_data.xml | 28 ++++++++++++ .../portal_customer_lead_view.xml | 8 ++++ .../security/ir.model.access.csv | 3 ++ 5 files changed, 106 insertions(+) create mode 100644 addons/portal_customer_lead/__init__.py create mode 100644 addons/portal_customer_lead/__openerp__.py create mode 100644 addons/portal_customer_lead/portal_customer_lead_data.xml create mode 100644 addons/portal_customer_lead/portal_customer_lead_view.xml create mode 100644 addons/portal_customer_lead/security/ir.model.access.csv diff --git a/addons/portal_customer_lead/__init__.py b/addons/portal_customer_lead/__init__.py new file mode 100644 index 00000000000..cb65ea0b3dc --- /dev/null +++ b/addons/portal_customer_lead/__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_lead/__openerp__.py b/addons/portal_customer_lead/__openerp__.py new file mode 100644 index 00000000000..93878e3e2cd --- /dev/null +++ b/addons/portal_customer_lead/__openerp__.py @@ -0,0 +1,44 @@ +# -*- 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", + 'version' : "1.0", + 'depends' : ["portal", "crm"], + 'author' : "OpenERP SA", + 'category': 'Portal', + 'description': """ +This module defines 'portals' to customize the access to your OpenERP database +for external users. + +A portal_customer_lead will show the own leads of the customer. + """, + 'website': 'http://www.openerp.com', + + 'update_xml': [ + 'portal_customer_lead_view.xml', + 'portal_customer_lead_data.xml', +# 'security/ir.model.access.csv', + ], + 'installable': True, +} + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/portal_customer_lead/portal_customer_lead_data.xml b/addons/portal_customer_lead/portal_customer_lead_data.xml new file mode 100644 index 00000000000..e1ff2900732 --- /dev/null +++ b/addons/portal_customer_lead/portal_customer_lead_data.xml @@ -0,0 +1,28 @@ + + + + + + customer lead + + True + True + True + + + + customer lead + + + [('partner_id.email','=',user.login)] + + + + portal customer lead + + + + + + + diff --git a/addons/portal_customer_lead/portal_customer_lead_view.xml b/addons/portal_customer_lead/portal_customer_lead_view.xml new file mode 100644 index 00000000000..d2a0e036527 --- /dev/null +++ b/addons/portal_customer_lead/portal_customer_lead_view.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/addons/portal_customer_lead/security/ir.model.access.csv b/addons/portal_customer_lead/security/ir.model.access.csv new file mode 100644 index 00000000000..7f12625c931 --- /dev/null +++ b/addons/portal_customer_lead/security/ir.model.access.csv @@ -0,0 +1,3 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_crm_lead_portal,crm.lead,crm.model_crm_lead,portal_customer.group_sale_salesman,1,1,1,0 + From f2bff59f480ac55b5135b62c7d49192feaf3a7a4 Mon Sep 17 00:00:00 2001 From: "Nimesh (Open ERP)" Date: Fri, 6 Apr 2012 16:42:06 +0530 Subject: [PATCH 013/657] [change]: add the contact . bzr revid: nco@tinyerp.com-20120406111206-04m0wvhr1p920pao --- addons/portal_customer/portal_customer_view.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/portal_customer/portal_customer_view.xml b/addons/portal_customer/portal_customer_view.xml index c17d23b2542..b8f734ea7c6 100644 --- a/addons/portal_customer/portal_customer_view.xml +++ b/addons/portal_customer/portal_customer_view.xml @@ -4,7 +4,7 @@ - + From 426bdbd5b3c669d473be99427f5a82bc29f7cecc Mon Sep 17 00:00:00 2001 From: "Amit (OpenERP)" Date: Sat, 7 Apr 2012 16:36:34 +0530 Subject: [PATCH 014/657] [FIX] crm_helpdesk : Fixes the problem of creating category via helpdesk due to the context lp bug: https://launchpad.net/bugs/972462 fixed bzr revid: amp@tinyerp.com-20120407110634-zvhzw19vzyq9g6uh --- addons/crm_helpdesk/crm_helpdesk_view.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/crm_helpdesk/crm_helpdesk_view.xml b/addons/crm_helpdesk/crm_helpdesk_view.xml index 5f2fee07ff1..01088d66f2e 100644 --- a/addons/crm_helpdesk/crm_helpdesk_view.xml +++ b/addons/crm_helpdesk/crm_helpdesk_view.xml @@ -58,7 +58,7 @@ - + From baaa86f9cd6c4f3c522dd2fd94b4707648917ce5 Mon Sep 17 00:00:00 2001 From: "Bharat Devnani (OpenERP)" Date: Mon, 9 Apr 2012 10:20:34 +0530 Subject: [PATCH 015/657] [ADD] added the menu items and assigned proper groups accordingly and improved the module bzr revid: bde@tinyerp.com-20120409045034-xtqy3gt5lh53dp3r --- addons/portal_customer/__openerp__.py | 2 +- .../portal_customer/portal_customer_view.xml | 27 +++++++++++++++---- addons/portal_customer/portal_demo.xml | 7 ++--- 3 files changed, 27 insertions(+), 9 deletions(-) diff --git a/addons/portal_customer/__openerp__.py b/addons/portal_customer/__openerp__.py index fcecb007808..57a45822b34 100644 --- a/addons/portal_customer/__openerp__.py +++ b/addons/portal_customer/__openerp__.py @@ -38,8 +38,8 @@ ], "update_xml" : [ # "security/ir.model.access.csv", + "portal_demo.xml", "portal_customer_view.xml", - "portal_demo.xml" ], 'installable': True, } diff --git a/addons/portal_customer/portal_customer_view.xml b/addons/portal_customer/portal_customer_view.xml index 3108f051c3b..311fa3b9199 100644 --- a/addons/portal_customer/portal_customer_view.xml +++ b/addons/portal_customer/portal_customer_view.xml @@ -4,16 +4,16 @@ - + - - - + + + - + @@ -28,6 +28,23 @@ + + + + + + + + + + + + + + + + + diff --git a/addons/portal_customer/portal_demo.xml b/addons/portal_customer/portal_demo.xml index 3d6fdb3285a..95fe69490bd 100644 --- a/addons/portal_customer/portal_demo.xml +++ b/addons/portal_customer/portal_demo.xml @@ -8,21 +8,21 @@ --> - Personal Leads + Personal Quotations/Sales ['|',('partner_id.email','=',user.login),('user_id','=',False)] - Personal Leads + Personal Delivery Orders [('partner_id.email','=',user.login)] - Personal Leads + Personal Account Invoices [('partner_id.email','=',user.login)] @@ -30,6 +30,7 @@ Sales Portal + From d42aeae5f0149ed37f26a00eeacb1aeffe5cfbba Mon Sep 17 00:00:00 2001 From: "Bharat Devnani (OpenERP)" Date: Mon, 9 Apr 2012 18:53:22 +0530 Subject: [PATCH 016/657] [ADD] added action on menu's of portal_customer, and made some improvement on rules and added sale own leads group in sales portal group bzr revid: bde@tinyerp.com-20120409132322-it5qz8pk5nq45e81 --- .../portal_customer/portal_customer_view.xml | 24 ++++++++++--------- addons/portal_customer/portal_demo.xml | 8 +++---- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/addons/portal_customer/portal_customer_view.xml b/addons/portal_customer/portal_customer_view.xml index 311fa3b9199..9cea57cefd7 100644 --- a/addons/portal_customer/portal_customer_view.xml +++ b/addons/portal_customer/portal_customer_view.xml @@ -2,23 +2,25 @@ - - - - - - - - - + + + + + + + + + + + - + - + diff --git a/addons/portal_customer/portal_demo.xml b/addons/portal_customer/portal_demo.xml index 95fe69490bd..fc54c1c1e02 100644 --- a/addons/portal_customer/portal_demo.xml +++ b/addons/portal_customer/portal_demo.xml @@ -11,27 +11,27 @@ Personal Quotations/Sales ['|',('partner_id.email','=',user.login),('user_id','=',False)] - + Personal Delivery Orders [('partner_id.email','=',user.login)] - + Personal Account Invoices [('partner_id.email','=',user.login)] - + Sales Portal - + From 69fcbb8bc3a5a003e3b0c71378eeaa48fe568154 Mon Sep 17 00:00:00 2001 From: "Nimesh (Open ERP)" Date: Tue, 10 Apr 2012 11:01:16 +0530 Subject: [PATCH 017/657] Hide the unused menus. bzr revid: nco@tinyerp.com-20120410053116-l8wpzpp95zv3p3mn --- addons/portal_customer_lead/__openerp__.py | 5 ++- .../portal_customer_lead_data.xml | 4 +- .../portal_customer_lead_view.xml | 43 ++++++++++++++++++- 3 files changed, 46 insertions(+), 6 deletions(-) diff --git a/addons/portal_customer_lead/__openerp__.py b/addons/portal_customer_lead/__openerp__.py index 93878e3e2cd..160264278a5 100644 --- a/addons/portal_customer_lead/__openerp__.py +++ b/addons/portal_customer_lead/__openerp__.py @@ -22,7 +22,7 @@ { 'name' : "Portal", 'version' : "1.0", - 'depends' : ["portal", "crm"], + 'depends' : ["portal_customer", "crm"], 'author' : "OpenERP SA", 'category': 'Portal', 'description': """ @@ -34,8 +34,9 @@ A portal_customer_lead will show the own leads of the customer. 'website': 'http://www.openerp.com', 'update_xml': [ - 'portal_customer_lead_view.xml', 'portal_customer_lead_data.xml', + 'portal_customer_lead_view.xml', + # 'security/ir.model.access.csv', ], 'installable': True, diff --git a/addons/portal_customer_lead/portal_customer_lead_data.xml b/addons/portal_customer_lead/portal_customer_lead_data.xml index e1ff2900732..0b892c6da7c 100644 --- a/addons/portal_customer_lead/portal_customer_lead_data.xml +++ b/addons/portal_customer_lead/portal_customer_lead_data.xml @@ -17,12 +17,12 @@ [('partner_id.email','=',user.login)] - + portal customer lead - + diff --git a/addons/portal_customer_lead/portal_customer_lead_view.xml b/addons/portal_customer_lead/portal_customer_lead_view.xml index d2a0e036527..eac0ba872c9 100644 --- a/addons/portal_customer_lead/portal_customer_lead_view.xml +++ b/addons/portal_customer_lead/portal_customer_lead_view.xml @@ -1,8 +1,47 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + From 4764061016e95cb7aa553b725ab73eb8ef99234e Mon Sep 17 00:00:00 2001 From: "Nimesh (Open ERP)" Date: Tue, 10 Apr 2012 16:42:42 +0530 Subject: [PATCH 018/657] [change] give the access rights for lead and contact. bzr revid: nco@tinyerp.com-20120410111242-wp1dumxw29evzkz6 --- addons/portal_customer_lead/__openerp__.py | 4 +- .../portal_customer_lead_data.xml | 29 ++++++++++--- .../portal_customer_lead_view.xml | 42 ++++++++----------- 3 files changed, 42 insertions(+), 33 deletions(-) diff --git a/addons/portal_customer_lead/__openerp__.py b/addons/portal_customer_lead/__openerp__.py index 160264278a5..f0d4d043edc 100644 --- a/addons/portal_customer_lead/__openerp__.py +++ b/addons/portal_customer_lead/__openerp__.py @@ -34,9 +34,9 @@ A portal_customer_lead will show the own leads of the customer. 'website': 'http://www.openerp.com', 'update_xml': [ - 'portal_customer_lead_data.xml', + 'portal_customer_lead_view.xml', - + 'portal_customer_lead_data.xml', # 'security/ir.model.access.csv', ], 'installable': True, diff --git a/addons/portal_customer_lead/portal_customer_lead_data.xml b/addons/portal_customer_lead/portal_customer_lead_data.xml index 0b892c6da7c..ff6ccaa8de8 100644 --- a/addons/portal_customer_lead/portal_customer_lead_data.xml +++ b/addons/portal_customer_lead/portal_customer_lead_data.xml @@ -1,9 +1,9 @@ - + - customer lead + Customer Lead True True @@ -11,17 +11,34 @@ - customer lead + Customer Lead [('partner_id.email','=',user.login)] + + + + Customer Contact + + True + True + True + + + + Customer Contact + + + [('email','=',user.login)] + + portal customer lead - - - + + + diff --git a/addons/portal_customer_lead/portal_customer_lead_view.xml b/addons/portal_customer_lead/portal_customer_lead_view.xml index eac0ba872c9..29607054ef3 100644 --- a/addons/portal_customer_lead/portal_customer_lead_view.xml +++ b/addons/portal_customer_lead/portal_customer_lead_view.xml @@ -3,12 +3,9 @@ - - - - - + + @@ -16,32 +13,27 @@ - - - + groups="base.group_sale_salesman"/--> + + + - - - - + + Feeds + 0 + + + + + From 99ccf6c0b93505f17ed3e998321fdbb738cdcf67 Mon Sep 17 00:00:00 2001 From: "Bharat Devnani (OpenERP)" Date: Tue, 10 Apr 2012 18:59:38 +0530 Subject: [PATCH 019/657] [IMP] improved the file names, added the access rights through csv files, added action for payment and ir.rule bzr revid: bde@tinyerp.com-20120410132938-3ahgqwhpmutuer0c --- addons/portal_customer/__openerp__.py | 4 +-- .../portal_customer/portal_customer_view.xml | 33 ++++++++++++------- .../security/ir.model.access.csv | 2 ++ .../portal_security.xml} | 25 ++++++++++++-- 4 files changed, 48 insertions(+), 16 deletions(-) create mode 100644 addons/portal_customer/security/ir.model.access.csv rename addons/portal_customer/{portal_demo.xml => security/portal_security.xml} (62%) diff --git a/addons/portal_customer/__openerp__.py b/addons/portal_customer/__openerp__.py index 57a45822b34..95684874770 100644 --- a/addons/portal_customer/__openerp__.py +++ b/addons/portal_customer/__openerp__.py @@ -37,8 +37,8 @@ "demo_xml" : [ ], "update_xml" : [ -# "security/ir.model.access.csv", - "portal_demo.xml", + "security/portal_security.xml", + "security/ir.model.access.csv", "portal_customer_view.xml", ], 'installable': True, diff --git a/addons/portal_customer/portal_customer_view.xml b/addons/portal_customer/portal_customer_view.xml index 9cea57cefd7..3dfe3ef69c0 100644 --- a/addons/portal_customer/portal_customer_view.xml +++ b/addons/portal_customer/portal_customer_view.xml @@ -16,7 +16,7 @@ - + @@ -31,13 +31,13 @@ - - - - - - - + + + + + + + @@ -45,9 +45,20 @@ - - - + + + + + + + + Feeds + 0 + + + + + diff --git a/addons/portal_customer/security/ir.model.access.csv b/addons/portal_customer/security/ir.model.access.csv new file mode 100644 index 00000000000..9ba5a09311d --- /dev/null +++ b/addons/portal_customer/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_account_voucher,account.voucher,account_voucher.model_account_voucher,portal_customer.group_sales_portal,1,1,1,1 \ No newline at end of file diff --git a/addons/portal_customer/portal_demo.xml b/addons/portal_customer/security/portal_security.xml similarity index 62% rename from addons/portal_customer/portal_demo.xml rename to addons/portal_customer/security/portal_security.xml index fc54c1c1e02..b204107f49f 100644 --- a/addons/portal_customer/portal_demo.xml +++ b/addons/portal_customer/security/portal_security.xml @@ -28,13 +28,32 @@ - - Sales Portal + + Personal Payments + + [('partner_id.email','=',user.login)] + + + + + Personal Contacts + + [('email','=',user.login)] + + + + + Sales Portal Group - + + + Sales Portal + + + \ No newline at end of file From bad509d3a6bd94157d53441911a19445503962d9 Mon Sep 17 00:00:00 2001 From: MVA Date: Tue, 10 Apr 2012 16:32:34 +0200 Subject: [PATCH 020/657] [IMP]remove security csv file bzr revid: mva@openerp.com-20120410143234-b5vhsiuqbycu082y --- addons/portal_customer/__openerp__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/portal_customer/__openerp__.py b/addons/portal_customer/__openerp__.py index 55415bb27ba..b3c346aa9a9 100644 --- a/addons/portal_customer/__openerp__.py +++ b/addons/portal_customer/__openerp__.py @@ -37,7 +37,7 @@ "demo_xml" : [ ], "update_xml" : [ - "security/security_customer_portal.xml", + #"security/ir_model_access.csv", "portal_customer_view.xml", "portal_demo.xml" ], From 68a2b949bb1e59901983423a76673121be987472 Mon Sep 17 00:00:00 2001 From: "Bharat Devnani (OpenERP)" Date: Wed, 11 Apr 2012 12:39:10 +0530 Subject: [PATCH 021/657] [IMP] improved file names of module, added access rights bzr revid: bde@tinyerp.com-20120411070910-bj9e3cp714vo2gmn --- addons/portal_customer/__init__.py | 1 - addons/portal_customer/__openerp__.py | 6 +- ...omer_view.xml => portal_customer_menu.xml} | 58 ++++++------- .../security/ir.model.access.csv | 15 +++- ...urity.xml => portal_customer_security.xml} | 84 +++++++++---------- 5 files changed, 87 insertions(+), 77 deletions(-) rename addons/portal_customer/{portal_customer_view.xml => portal_customer_menu.xml} (63%) rename addons/portal_customer/security/{portal_security.xml => portal_customer_security.xml} (80%) diff --git a/addons/portal_customer/__init__.py b/addons/portal_customer/__init__.py index cb65ea0b3dc..4837393f4d0 100644 --- a/addons/portal_customer/__init__.py +++ b/addons/portal_customer/__init__.py @@ -19,5 +19,4 @@ # ############################################################################## - # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/portal_customer/__openerp__.py b/addons/portal_customer/__openerp__.py index 95684874770..36d0af1c90a 100644 --- a/addons/portal_customer/__openerp__.py +++ b/addons/portal_customer/__openerp__.py @@ -27,7 +27,7 @@ 'category': 'Portal', 'description': """ The Portal Customer module helps customers to track their Sales Quotations, Orders, Invoices and various - other possibilities + other possibilities. """, 'website': 'http://www.openerp.com', 'data': [ @@ -37,9 +37,9 @@ "demo_xml" : [ ], "update_xml" : [ - "security/portal_security.xml", + "security/portal_customer_security.xml", "security/ir.model.access.csv", - "portal_customer_view.xml", + "portal_customer_menu.xml", ], 'installable': True, } diff --git a/addons/portal_customer/portal_customer_view.xml b/addons/portal_customer/portal_customer_menu.xml similarity index 63% rename from addons/portal_customer/portal_customer_view.xml rename to addons/portal_customer/portal_customer_menu.xml index 3dfe3ef69c0..357baf78703 100644 --- a/addons/portal_customer/portal_customer_view.xml +++ b/addons/portal_customer/portal_customer_menu.xml @@ -1,36 +1,36 @@ - - - - - - - - - - - - - - - - - - - - - - - - - + - + + + + + + + + + + + + + + + + + + + + + + + + + @@ -58,8 +58,8 @@ - + + - - + \ No newline at end of file diff --git a/addons/portal_customer/security/ir.model.access.csv b/addons/portal_customer/security/ir.model.access.csv index 9ba5a09311d..b34215e0e6a 100644 --- a/addons/portal_customer/security/ir.model.access.csv +++ b/addons/portal_customer/security/ir.model.access.csv @@ -1,2 +1,15 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink -access_account_voucher,account.voucher,account_voucher.model_account_voucher,portal_customer.group_sales_portal,1,1,1,1 \ No newline at end of file +access_sale_order,sale.order,sale.model_sale_order,portal_customer.group_sales_portal,1,0,0,0 +access_sale_order_line,sale.order.line,sale.model_sale_order_line,portal_customer.group_sales_portal,1,0,0,0 +access_stock_picking,stock.picking,stock.model_stock_picking,portal_customer.group_sales_portal,1,0,0,0 +access_stock_move,stock.move,stock.model_stock_move,portal_customer.group_sales_portal,1,0,0,0 +access_stock_warehouse_orderpoint,stock.warehouse.orderpoint,procurement.model_stock_warehouse_orderpoint,portal_customer.group_sales_portal,1,0,0,0 +access_account_invoice,account.invoice,account.model_account_invoice,portal_customer.group_sales_portal,1,0,0,0 +access_account_invoice_tax,account.invoice.tax,account.model_account_invoice_tax,portal_customer.group_sales_portal,1,0,0,0 +access_account_invoice_line,account.invoice.line,account.model_account_invoice_line,portal_customer.group_sales_portal,1,0,0,0 +access_account_journal,account.journal,account.model_account_journal,portal_customer.group_sales_portal,1,0,0,0 +access_account_voucher,account.voucher,account_voucher.model_account_voucher,portal_customer.group_sales_portal,1,0,0,0 +access_account_voucher_line,account.voucher.line,account_voucher.model_account_voucher_line,portal_customer.group_sales_portal,1,0,0,0 +access_account_move,account.move,account.model_account_move,portal_customer.group_sales_portal,1,0,0,0 +access_account_move_line,account.move.line,account.model_account_move_line,portal_customer.group_sales_portal,1,0,0,0 +access_account_move_reconcile,account.move.reconcile,account.model_account_move_reconcile,portal_customer.group_sales_portal,1,0,0,0 diff --git a/addons/portal_customer/security/portal_security.xml b/addons/portal_customer/security/portal_customer_security.xml similarity index 80% rename from addons/portal_customer/security/portal_security.xml rename to addons/portal_customer/security/portal_customer_security.xml index b204107f49f..19873f23e26 100644 --- a/addons/portal_customer/security/portal_security.xml +++ b/addons/portal_customer/security/portal_customer_security.xml @@ -1,52 +1,13 @@ - + - - - - - Personal Quotations/Sales - - ['|',('partner_id.email','=',user.login),('user_id','=',False)] - - - - - Personal Delivery Orders - - [('partner_id.email','=',user.login)] - - - - - Personal Account Invoices - - [('partner_id.email','=',user.login)] - - - - - Personal Payments - - [('partner_id.email','=',user.login)] - - - - - Personal Contacts - - [('email','=',user.login)] - - + Sales Portal Group - @@ -54,6 +15,43 @@ - - \ No newline at end of file + + + + Personal Quotations/Sales + + ['|',('partner_id.email','=',user.login),('user_id','=',False)] + + + + + Personal Delivery Orders + + [('partner_id.email','=',user.login)] + + + + + Personal Account Invoices + + [('partner_id.email','=',user.login)] + + + + + Personal Payments + + [('partner_id.email','=',user.login)] + + + + + Personal Contacts + + [('email','=',user.login)] + + + + + From 5decc1d4605f8eeb76f4faf3d2f8cf375c6ff10f Mon Sep 17 00:00:00 2001 From: "Nimesh (Open ERP)" Date: Wed, 11 Apr 2012 14:15:44 +0530 Subject: [PATCH 022/657] [change] set the access rights and groups of customer lead bzr revid: nco@tinyerp.com-20120411084544-v74a1jmur0kwkpjy --- addons/portal_customer_lead/__openerp__.py | 7 ++- .../portal_customer_lead_data.xml | 45 ------------------- ...view.xml => portal_customer_lead_menu.xml} | 0 .../security/ir.model.access.csv | 2 +- .../portal_customer_lead_security.xml | 32 +++++++++++++ 5 files changed, 36 insertions(+), 50 deletions(-) delete mode 100644 addons/portal_customer_lead/portal_customer_lead_data.xml rename addons/portal_customer_lead/{portal_customer_lead_view.xml => portal_customer_lead_menu.xml} (100%) create mode 100644 addons/portal_customer_lead/security/portal_customer_lead_security.xml diff --git a/addons/portal_customer_lead/__openerp__.py b/addons/portal_customer_lead/__openerp__.py index f0d4d043edc..1221da468e5 100644 --- a/addons/portal_customer_lead/__openerp__.py +++ b/addons/portal_customer_lead/__openerp__.py @@ -34,10 +34,9 @@ A portal_customer_lead will show the own leads of the customer. 'website': 'http://www.openerp.com', 'update_xml': [ - - 'portal_customer_lead_view.xml', - 'portal_customer_lead_data.xml', -# 'security/ir.model.access.csv', + 'security/portal_customer_lead_security.xml', + 'security/ir.model.access.csv', + 'portal_customer_lead_menu.xml', ], 'installable': True, } diff --git a/addons/portal_customer_lead/portal_customer_lead_data.xml b/addons/portal_customer_lead/portal_customer_lead_data.xml deleted file mode 100644 index ff6ccaa8de8..00000000000 --- a/addons/portal_customer_lead/portal_customer_lead_data.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - Customer Lead - - True - True - True - - - - Customer Lead - - - [('partner_id.email','=',user.login)] - - - - - - Customer Contact - - True - True - True - - - - Customer Contact - - - [('email','=',user.login)] - - - - portal customer lead - - - - - - - diff --git a/addons/portal_customer_lead/portal_customer_lead_view.xml b/addons/portal_customer_lead/portal_customer_lead_menu.xml similarity index 100% rename from addons/portal_customer_lead/portal_customer_lead_view.xml rename to addons/portal_customer_lead/portal_customer_lead_menu.xml diff --git a/addons/portal_customer_lead/security/ir.model.access.csv b/addons/portal_customer_lead/security/ir.model.access.csv index 7f12625c931..de8873ddb0f 100644 --- a/addons/portal_customer_lead/security/ir.model.access.csv +++ b/addons/portal_customer_lead/security/ir.model.access.csv @@ -1,3 +1,3 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink -access_crm_lead_portal,crm.lead,crm.model_crm_lead,portal_customer.group_sale_salesman,1,1,1,0 +access_portal_crm_lead,portal.crm.lead,crm.model_crm_lead,group_portal_customer_lead,1,1,1,0 diff --git a/addons/portal_customer_lead/security/portal_customer_lead_security.xml b/addons/portal_customer_lead/security/portal_customer_lead_security.xml new file mode 100644 index 00000000000..1e8874930f1 --- /dev/null +++ b/addons/portal_customer_lead/security/portal_customer_lead_security.xml @@ -0,0 +1,32 @@ + + + + + + Customer Contact + + + [('email','=',user.login)] + + + + Personal Lead + + [('partner_id.email','=',user.login)] + + + + + Portal Lead Group + + + + + + + Customer Lead Portal + + + + + From 62f9a2dada3ebad127a0ce3b8f9d613e7f0c523a Mon Sep 17 00:00:00 2001 From: "Bharat Devnani (OpenERP)" Date: Wed, 11 Apr 2012 14:43:52 +0530 Subject: [PATCH 023/657] [IMP] given proper groups to the menus bzr revid: bde@tinyerp.com-20120411091352-rlzf9wsfd0oyk1rf --- .../portal_customer/portal_customer_menu.xml | 29 +++++++++---------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/addons/portal_customer/portal_customer_menu.xml b/addons/portal_customer/portal_customer_menu.xml index 357baf78703..32a74a0f82d 100644 --- a/addons/portal_customer/portal_customer_menu.xml +++ b/addons/portal_customer/portal_customer_menu.xml @@ -2,7 +2,7 @@ - + @@ -31,13 +31,13 @@ - - - - - - - + + + + + + + @@ -45,9 +45,9 @@ - - - + + + @@ -55,11 +55,8 @@ Feeds 0 - + - - - + - \ No newline at end of file From f127c26bfc25c830534742b659aaf8007224df30 Mon Sep 17 00:00:00 2001 From: "Nimesh (Open ERP)" Date: Wed, 11 Apr 2012 15:38:21 +0530 Subject: [PATCH 024/657] [add] add the access rights for res partner to save the lead without customer name bzr revid: nco@tinyerp.com-20120411100821-3vjro43zaackxbsr --- addons/portal_customer_lead/security/ir.model.access.csv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/portal_customer_lead/security/ir.model.access.csv b/addons/portal_customer_lead/security/ir.model.access.csv index de8873ddb0f..70fa2db29cf 100644 --- a/addons/portal_customer_lead/security/ir.model.access.csv +++ b/addons/portal_customer_lead/security/ir.model.access.csv @@ -1,3 +1,3 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink access_portal_crm_lead,portal.crm.lead,crm.model_crm_lead,group_portal_customer_lead,1,1,1,0 - +access_portal_res_partner,portal.res.partner,base.model_res_partner,group_portal_customer_lead,1,1,1,0 From 13d14685d9a36150c1daba1922100437b4af4df2 Mon Sep 17 00:00:00 2001 From: "Bharat Devnani (OpenERP)" Date: Wed, 11 Apr 2012 16:44:29 +0530 Subject: [PATCH 025/657] [REVERT] reverted the changes of sale/security/sale_security.xml bzr revid: bde@tinyerp.com-20120411111429-ttjlauk1vu3856d5 --- addons/sale/security/sale_security.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale/security/sale_security.xml b/addons/sale/security/sale_security.xml index 2309cd628e4..0cb55fb0d30 100644 --- a/addons/sale/security/sale_security.xml +++ b/addons/sale/security/sale_security.xml @@ -84,7 +84,7 @@ Personal Orders - ['|',('partner_id.email','=',user.login),('user_id','=',False)] + ['|',('user_id','=',user.id),('user_id','=',False)] From d223e6e5265ac7de80e22d4df2bbbdc73dbfcc4c Mon Sep 17 00:00:00 2001 From: "Nimesh (Open ERP)" Date: Mon, 16 Apr 2012 15:17:17 +0530 Subject: [PATCH 026/657] [imp] changes in customer portal lead in depends and menu items. bzr revid: nco@tinyerp.com-20120416094717-6mlr1s9an9ryp12s --- addons/portal_customer_lead/__openerp__.py | 2 +- .../portal_customer_lead_menu.xml | 34 ++++++++----------- .../security/ir.model.access.csv | 4 +-- 3 files changed, 18 insertions(+), 22 deletions(-) diff --git a/addons/portal_customer_lead/__openerp__.py b/addons/portal_customer_lead/__openerp__.py index 1221da468e5..d52a5a14cb7 100644 --- a/addons/portal_customer_lead/__openerp__.py +++ b/addons/portal_customer_lead/__openerp__.py @@ -22,7 +22,7 @@ { 'name' : "Portal", 'version' : "1.0", - 'depends' : ["portal_customer", "crm"], + 'depends' : ["portal","crm"], 'author' : "OpenERP SA", 'category': 'Portal', 'description': """ diff --git a/addons/portal_customer_lead/portal_customer_lead_menu.xml b/addons/portal_customer_lead/portal_customer_lead_menu.xml index 29607054ef3..9ca0539b6a5 100644 --- a/addons/portal_customer_lead/portal_customer_lead_menu.xml +++ b/addons/portal_customer_lead/portal_customer_lead_menu.xml @@ -2,25 +2,19 @@ - - - - - - - - - - - - - - + + + + + - + + + + + + + @@ -31,8 +25,10 @@ Feeds 0 - + + + diff --git a/addons/portal_customer_lead/security/ir.model.access.csv b/addons/portal_customer_lead/security/ir.model.access.csv index 70fa2db29cf..02ee2430cb0 100644 --- a/addons/portal_customer_lead/security/ir.model.access.csv +++ b/addons/portal_customer_lead/security/ir.model.access.csv @@ -1,3 +1,3 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink -access_portal_crm_lead,portal.crm.lead,crm.model_crm_lead,group_portal_customer_lead,1,1,1,0 -access_portal_res_partner,portal.res.partner,base.model_res_partner,group_portal_customer_lead,1,1,1,0 +access_portal_crm_lead,portal.crm.lead,crm.model_crm_lead,group_portal_customer_lead,1,0,0,0 +access_portal_customer_contact,portal.customer.contact,base.model_res_partner,group_portal_customer_lead,1,1,0,0 \ No newline at end of file From 4d6ca2c05f4410e0c1ef8e41cc9433141d99fbba Mon Sep 17 00:00:00 2001 From: "Bharat Devnani (OpenERP)" Date: Mon, 16 Apr 2012 18:00:14 +0530 Subject: [PATCH 027/657] [IMP] improved the portal_customer and reverted the changes related to events, feeds, and survey bzr revid: bde@tinyerp.com-20120416123014-m20snij3t5oarl0h --- addons/portal_customer/__openerp__.py | 1 + .../portal_customer/portal_customer_menu.xml | 4 +- .../portal_customer/portal_customer_view.xml | 63 +++++++++++++++++++ 3 files changed, 66 insertions(+), 2 deletions(-) create mode 100644 addons/portal_customer/portal_customer_view.xml diff --git a/addons/portal_customer/__openerp__.py b/addons/portal_customer/__openerp__.py index 36d0af1c90a..3db70387ff8 100644 --- a/addons/portal_customer/__openerp__.py +++ b/addons/portal_customer/__openerp__.py @@ -39,6 +39,7 @@ "update_xml" : [ "security/portal_customer_security.xml", "security/ir.model.access.csv", + "portal_customer_view.xml", "portal_customer_menu.xml", ], 'installable': True, diff --git a/addons/portal_customer/portal_customer_menu.xml b/addons/portal_customer/portal_customer_menu.xml index 32a74a0f82d..979b6633dcd 100644 --- a/addons/portal_customer/portal_customer_menu.xml +++ b/addons/portal_customer/portal_customer_menu.xml @@ -10,7 +10,7 @@ - + @@ -19,7 +19,7 @@ - + diff --git a/addons/portal_customer/portal_customer_view.xml b/addons/portal_customer/portal_customer_view.xml new file mode 100644 index 00000000000..f3c3bd07783 --- /dev/null +++ b/addons/portal_customer/portal_customer_view.xml @@ -0,0 +1,63 @@ + + + + + + Delivery Orders + stock.picking + ir.actions.act_window + form + tree + [('type','=','out')] + {'default_type': 'out', 'contact_display': 'partner_address'} + + This is the list of all delivery orders that have to be prepared, according to your different sales orders and your logistics rules. + + + + Product Kanban + product.product + kanban + + + + + + + + +
+
+ +
+
+

+
    +
  • Stock on hand:
  • +
  • Stock available:
  • +
  • Price:
  • +
+
+
+ +
+
+
+
+
+
+ + + Products + ir.actions.act_window + product.product + form + kanban,tree,form + + + You must define a Product for everything you buy or sell. Products can be raw materials, stockable products, consumables or services. The Product form contains detailed information about your products related to procurement logistics, sales price, product category, suppliers and so on. + +
+
From 1f8b7fe861bfdd1f80a4d6f4594abab4ed08e165 Mon Sep 17 00:00:00 2001 From: "Bharat Devnani (OpenERP)" Date: Mon, 16 Apr 2012 18:26:07 +0530 Subject: [PATCH 028/657] [ADD] added functionality to display events, feeds and also implemented dashboard of customer portal bzr revid: bde@tinyerp.com-20120416125607-qtzosic318kw3woy --- addons/portal_customer/__openerp__.py | 3 +- .../board_portal_customer_view.xml | 49 +++++++++++++++++++ .../portal_customer/portal_customer_menu.xml | 5 +- .../security/ir.model.access.csv | 2 + .../security/portal_customer_security.xml | 7 +++ 5 files changed, 63 insertions(+), 3 deletions(-) create mode 100644 addons/portal_customer/board_portal_customer_view.xml diff --git a/addons/portal_customer/__openerp__.py b/addons/portal_customer/__openerp__.py index 3db70387ff8..65b60d65ab1 100644 --- a/addons/portal_customer/__openerp__.py +++ b/addons/portal_customer/__openerp__.py @@ -22,7 +22,7 @@ { 'name' : "Portal Customer", 'version' : "1.0", - 'depends' : ["sale","portal"], + 'depends' : ["sale","portal","event"], 'author' : "OpenERP SA", 'category': 'Portal', 'description': """ @@ -39,6 +39,7 @@ "update_xml" : [ "security/portal_customer_security.xml", "security/ir.model.access.csv", + "board_portal_customer_view.xml", "portal_customer_view.xml", "portal_customer_menu.xml", ], diff --git a/addons/portal_customer/board_portal_customer_view.xml b/addons/portal_customer/board_portal_customer_view.xml new file mode 100644 index 00000000000..e1eff4863d0 --- /dev/null +++ b/addons/portal_customer/board_portal_customer_view.xml @@ -0,0 +1,49 @@ + + + + + + Events + ir.actions.act_window + event.event + tree + kanban + + {"search_default_upcoming":1} + + + + My Feeds + mail.all_feeds + + + + board.customer.portal.form + board.board + form + +
+ + + + + + + + + +
+
+
+ + + Customer Portal Dashboard + board.board + form + form + menu + + + +
+
diff --git a/addons/portal_customer/portal_customer_menu.xml b/addons/portal_customer/portal_customer_menu.xml index 979b6633dcd..daad23d0ce9 100644 --- a/addons/portal_customer/portal_customer_menu.xml +++ b/addons/portal_customer/portal_customer_menu.xml @@ -2,7 +2,7 @@ - + @@ -18,7 +18,7 @@ - + @@ -57,6 +57,7 @@ + diff --git a/addons/portal_customer/security/ir.model.access.csv b/addons/portal_customer/security/ir.model.access.csv index b34215e0e6a..42f218721a1 100644 --- a/addons/portal_customer/security/ir.model.access.csv +++ b/addons/portal_customer/security/ir.model.access.csv @@ -13,3 +13,5 @@ access_account_voucher_line,account.voucher.line,account_voucher.model_account_v access_account_move,account.move,account.model_account_move,portal_customer.group_sales_portal,1,0,0,0 access_account_move_line,account.move.line,account.model_account_move_line,portal_customer.group_sales_portal,1,0,0,0 access_account_move_reconcile,account.move.reconcile,account.model_account_move_reconcile,portal_customer.group_sales_portal,1,0,0,0 +access_event_event,event.event,event.model_event_event,portal_customer.group_sales_portal,1,1,0,0 +access_event_registration,event.registration,event.model_event_registration,portal_customer.group_sales_portal,1,1,0,0 diff --git a/addons/portal_customer/security/portal_customer_security.xml b/addons/portal_customer/security/portal_customer_security.xml index 19873f23e26..eb0f30fab72 100644 --- a/addons/portal_customer/security/portal_customer_security.xml +++ b/addons/portal_customer/security/portal_customer_security.xml @@ -53,5 +53,12 @@ + + Personal Event Registration + + [('email','=',user.login)] + + + From ed93ebc68411b33ab94ef1078d6d730a0ce14852 Mon Sep 17 00:00:00 2001 From: "Bharat Devnani (OpenERP)" Date: Mon, 16 Apr 2012 18:37:18 +0530 Subject: [PATCH 029/657] [ADD] added action for Registration menuitem in portal_customer_menu.xml file bzr revid: bde@tinyerp.com-20120416130718-k6sq006qtdvgloaq --- addons/portal_customer/portal_customer_menu.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/portal_customer/portal_customer_menu.xml b/addons/portal_customer/portal_customer_menu.xml index daad23d0ce9..8063c8bc964 100644 --- a/addons/portal_customer/portal_customer_menu.xml +++ b/addons/portal_customer/portal_customer_menu.xml @@ -11,7 +11,7 @@ - + From 89794d92e2e921275d0a7a70afa7611aed7f49ab Mon Sep 17 00:00:00 2001 From: "Bharat Devnani (OpenERP)" Date: Tue, 17 Apr 2012 11:10:25 +0530 Subject: [PATCH 030/657] [IMP] kept main menu Customer Portal in portal module bzr revid: bde@tinyerp.com-20120417054025-nh3hl0vp6cn1s08p --- addons/portal/portal_view.xml | 3 ++ .../portal_customer/portal_customer_menu.xml | 44 +++++++++---------- 2 files changed, 24 insertions(+), 23 deletions(-) diff --git a/addons/portal/portal_view.xml b/addons/portal/portal_view.xml index a6a780fdf16..c116c398497 100644 --- a/addons/portal/portal_view.xml +++ b/addons/portal/portal_view.xml @@ -69,5 +69,8 @@ the portal's users. + + + diff --git a/addons/portal_customer/portal_customer_menu.xml b/addons/portal_customer/portal_customer_menu.xml index 979b6633dcd..7b2907a5473 100644 --- a/addons/portal_customer/portal_customer_menu.xml +++ b/addons/portal_customer/portal_customer_menu.xml @@ -2,32 +2,30 @@ - + + - - - - - - - - + + + + + + + + + - - - - - - - - - - - - - + + + + + + + + + - + From e014e992a8aed116e4befeb9a9d8ae8f59d0fb9f Mon Sep 17 00:00:00 2001 From: "Bharat Devnani (OpenERP)" Date: Tue, 17 Apr 2012 11:20:10 +0530 Subject: [PATCH 031/657] [ADD] added kanban view for survey module and also added the functionality in portal_customer module bzr revid: bde@tinyerp.com-20120417055010-rtun8tblbubbs270 --- addons/portal_customer/__openerp__.py | 2 +- .../portal_customer/portal_customer_menu.xml | 2 +- .../security/ir.model.access.csv | 11 +++++ addons/survey/__openerp__.py | 1 + addons/survey/static/src/css/survey.css | 37 ++++++++++++++++ addons/survey/survey.py | 11 +++++ addons/survey/survey_view.xml | 43 ++++++++++++++++++- 7 files changed, 103 insertions(+), 4 deletions(-) create mode 100644 addons/survey/static/src/css/survey.css diff --git a/addons/portal_customer/__openerp__.py b/addons/portal_customer/__openerp__.py index 65b60d65ab1..f65742fd9e5 100644 --- a/addons/portal_customer/__openerp__.py +++ b/addons/portal_customer/__openerp__.py @@ -22,7 +22,7 @@ { 'name' : "Portal Customer", 'version' : "1.0", - 'depends' : ["sale","portal","event"], + 'depends' : ["sale","portal","event","survey"], 'author' : "OpenERP SA", 'category': 'Portal', 'description': """ diff --git a/addons/portal_customer/portal_customer_menu.xml b/addons/portal_customer/portal_customer_menu.xml index daad23d0ce9..87c4cca14fe 100644 --- a/addons/portal_customer/portal_customer_menu.xml +++ b/addons/portal_customer/portal_customer_menu.xml @@ -25,7 +25,7 @@ - + diff --git a/addons/portal_customer/security/ir.model.access.csv b/addons/portal_customer/security/ir.model.access.csv index 42f218721a1..8ca48c0163f 100644 --- a/addons/portal_customer/security/ir.model.access.csv +++ b/addons/portal_customer/security/ir.model.access.csv @@ -15,3 +15,14 @@ access_account_move_line,account.move.line,account.model_account_move_line,porta access_account_move_reconcile,account.move.reconcile,account.model_account_move_reconcile,portal_customer.group_sales_portal,1,0,0,0 access_event_event,event.event,event.model_event_event,portal_customer.group_sales_portal,1,1,0,0 access_event_registration,event.registration,event.model_event_registration,portal_customer.group_sales_portal,1,1,0,0 +access_event_event,event.event,event.model_event_event,portal_customer.group_sales_portal,1,1,0,0 +access_event_registration,event.registration,event.model_event_registration,portal_customer.group_sales_portal,1,1,0,0 +access_survey_survey,survey_survey,survey.model_survey,portal_customer.group_sales_portal,1,1,0,0 +access_survey_page,survey_page,survey.model_survey_page,portal_customer.group_sales_portal,1,1,0,0 +access_survey_question,survey_question,survey.model_survey_question,portal_customer.group_sales_portal,1,0,0,0 +access_survey_answer,survey_answer,survey.model_survey_answer,portal_customer.group_sales_portal,1,1,0,0 +access_survey_response,survey_response,survey.model_survey_response,portal_customer.group_sales_portal,1,1,1,0 +access_survey_history,survey_history,survey.model_survey_history,portal_customer.group_sales_portal,1,1,1,0 +access_survey_question_column_heading,survey_question_column_heading,survey.model_survey_question_column_heading,portal_customer.group_sales_portal,1,0,0,0 +access_survey_response_line,survey_response_line,survey.model_survey_response_line,portal_customer.group_sales_portal,1,1,1,0 +access_survey_response_answer,survey_response_answer,survey.model_survey_response_answer,portal_customer.group_sales_portal,1,1,1,0 \ No newline at end of file diff --git a/addons/survey/__openerp__.py b/addons/survey/__openerp__.py index e4c83a37eee..90d7c2e469f 100644 --- a/addons/survey/__openerp__.py +++ b/addons/survey/__openerp__.py @@ -53,6 +53,7 @@ Partners are also sent mails with user name and password for the invitation of t 'test/survey_question_type.yml', 'test/survey_report.yml', ], + 'css': ['static/src/css/survey.css'], 'installable': True, 'auto_install': False, 'certificate' : '001131639736864143245', diff --git a/addons/survey/static/src/css/survey.css b/addons/survey/static/src/css/survey.css new file mode 100644 index 00000000000..81c0e258d2f --- /dev/null +++ b/addons/survey/static/src/css/survey.css @@ -0,0 +1,37 @@ +.oe_module_survey{ + font-size: 12px; + border: 1px solid #ababab; + text-align: left; + height:135px; + width:210px; +} + +.oe_survey_title{ + font-size: 15px; + height: auto; + color: #FFFFFF; + -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); + background-color: #8A89BA; + width: 205px; +} + +.oe_survey_responsible{ + height: auto; + width: 200px; + font-size: 14px; +} + +.oe_survey_start_date{ + height: auto; + width: 200px; + font-size: 14px; +} + +.oe_survey_fill{ + align:right; + padding: 1px 165px; +} + +.oe_survey_rate{ + font-size: 14px; +} diff --git a/addons/survey/survey.py b/addons/survey/survey.py index 0101cef17b8..51f97eead02 100644 --- a/addons/survey/survey.py +++ b/addons/survey/survey.py @@ -142,6 +142,17 @@ class survey(osv.osv): 'nodestroy':True, } return report + + def fill_survey(self, cr, uid, ids, context=None): + return { + 'view_type': 'form', + 'view_mode': 'form', + 'res_model': 'survey.question.wiz', + 'type': 'ir.actions.act_window', + 'target': 'new', + 'context': {'survey_id': ids[0]} + } + survey() class survey_history(osv.osv): diff --git a/addons/survey/survey_view.xml b/addons/survey/survey_view.xml index 4673bcd9846..93a0511d4e1 100644 --- a/addons/survey/survey_view.xml +++ b/addons/survey/survey_view.xml @@ -279,13 +279,52 @@
+ + + event.survey.kanban + survey + kanban + + + + + + + + + + + + Surveys survey form - tree,form - + kanban,tree,form + You can create survey for different purposes: recruitment interviews, employee's periodical evaluations, marketing campaigns, etc. A survey is made of pages containing questions of several types: text, multiple choices, etc. You can edit survey manually or click on the 'Edit Survey' for a WYSIWYG interface. From 47cb8bede114b886978b022925ae40c883fff689 Mon Sep 17 00:00:00 2001 From: MVA Date: Tue, 17 Apr 2012 10:32:39 +0200 Subject: [PATCH 032/657] [IMP] add a new model with an autoinstall true to install claim when customer_portal and crm_claim are installed bzr revid: mva@openerp.com-20120417083239-cjsiup3t796iiarx --- addons/customer_portal_crm_claim/__init__.py | 21 ++++++++++ .../customer_portal_crm_claim/__openerp__.py | 42 +++++++++++++++++++ .../claim_custommer_portal_view.xml | 9 ++++ .../portal_customer/portal_customer_menu.xml | 4 +- 4 files changed, 74 insertions(+), 2 deletions(-) create mode 100644 addons/customer_portal_crm_claim/__init__.py create mode 100644 addons/customer_portal_crm_claim/__openerp__.py create mode 100644 addons/customer_portal_crm_claim/claim_custommer_portal_view.xml diff --git a/addons/customer_portal_crm_claim/__init__.py b/addons/customer_portal_crm_claim/__init__.py new file mode 100644 index 00000000000..26c654db9dd --- /dev/null +++ b/addons/customer_portal_crm_claim/__init__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2010 Tiny SPRL (). +# +# 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/addons/customer_portal_crm_claim/__openerp__.py b/addons/customer_portal_crm_claim/__openerp__.py new file mode 100644 index 00000000000..5cd979d9ec8 --- /dev/null +++ b/addons/customer_portal_crm_claim/__openerp__.py @@ -0,0 +1,42 @@ +# 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 claim", + 'version' : "1.0", + 'depends' : ["customer_portal","crm_claim"], + 'author' : "OpenERP SA", + 'category': 'Portal', + 'description': """ + auto_install claim + """, + 'website': 'http://www.openerp.com', + 'data': [ + ], + 'init_xml' : [ + ], + 'demo_xml' : [. + ], + 'update_xml' : [ + 'claim_custommer_portal_view.xml' + ], + 'installable': True, + 'auto_install': True, + #'category': 'Hidden', +} + + diff --git a/addons/customer_portal_crm_claim/claim_custommer_portal_view.xml b/addons/customer_portal_crm_claim/claim_custommer_portal_view.xml new file mode 100644 index 00000000000..c282beacaa2 --- /dev/null +++ b/addons/customer_portal_crm_claim/claim_custommer_portal_view.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/addons/portal_customer/portal_customer_menu.xml b/addons/portal_customer/portal_customer_menu.xml index 7b2907a5473..e008f3177f5 100644 --- a/addons/portal_customer/portal_customer_menu.xml +++ b/addons/portal_customer/portal_customer_menu.xml @@ -19,12 +19,12 @@ - + From a498392b47978af00966ad01f8ff7a2450fb8a69 Mon Sep 17 00:00:00 2001 From: "Kuldeep Joshi (OpenERP)" Date: Tue, 17 Apr 2012 15:01:56 +0530 Subject: [PATCH 033/657] [FIX]share: convert to string and set group_id bzr revid: kjo@tinyerp.com-20120417093156-d29vpph8it39sqiw --- addons/portal/wizard/share_wizard.py | 2 +- addons/share/wizard/share_wizard.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/portal/wizard/share_wizard.py b/addons/portal/wizard/share_wizard.py index b5c9d165cc6..5b21f42241c 100644 --- a/addons/portal/wizard/share_wizard.py +++ b/addons/portal/wizard/share_wizard.py @@ -140,7 +140,7 @@ class share_wizard_portal(osv.osv_memory): # must take care of existing users, by adding them to the new group, which is group_ids[0], # and adding the shortcut selected_user_ids = [x.id for x in wizard_data.user_ids] - self.pool.get('res.users').write(cr, UID_ROOT, selected_user_ids, {'groups_id': [(4,group_id)]}) + self.pool.get('res.users').write(cr, UID_ROOT, selected_user_ids, {'groups_id': [(4,group_id[0])]}) self._setup_action_and_shortcut(cr, uid, wizard_data, selected_user_ids, make_home=False, context=context) # populate the result lines for existing users too for user in wizard_data.user_ids: diff --git a/addons/share/wizard/share_wizard.py b/addons/share/wizard/share_wizard.py index 854f021bf67..1efe850f860 100644 --- a/addons/share/wizard/share_wizard.py +++ b/addons/share/wizard/share_wizard.py @@ -737,7 +737,7 @@ class share_wizard(osv.osv_memory): # B. main_domain = wizard_data.domain if wizard_data.domain != '[]' else DOMAIN_ALL self._create_or_combine_sharing_rule(cr, current_user, wizard_data, - group_id, model_id=model.id, domain=main_domain, + group_id, model_id=model.id, domain=str(main_domain), restrict=True, context=context) # C. self._create_indirect_sharing_rules(cr, current_user, wizard_data, group_id, obj1, context=context) From 96e288a7f9e9123d7248bf83d5c83ad1e0c23543 Mon Sep 17 00:00:00 2001 From: MVA Date: Tue, 17 Apr 2012 11:34:40 +0200 Subject: [PATCH 034/657] [IMP] change names for files and folder bzr revid: mva@openerp.com-20120417093440-ooaew1p1oqmnaola --- .../__init__.py | 0 .../__openerp__.py | 44 +++++++++---------- .../portal_customer_claim_view.xml} | 0 3 files changed, 21 insertions(+), 23 deletions(-) rename addons/{customer_portal_crm_claim => portal_customer_claim}/__init__.py (100%) rename addons/{customer_portal_crm_claim => portal_customer_claim}/__openerp__.py (56%) rename addons/{customer_portal_crm_claim/claim_custommer_portal_view.xml => portal_customer_claim/portal_customer_claim_view.xml} (100%) diff --git a/addons/customer_portal_crm_claim/__init__.py b/addons/portal_customer_claim/__init__.py similarity index 100% rename from addons/customer_portal_crm_claim/__init__.py rename to addons/portal_customer_claim/__init__.py diff --git a/addons/customer_portal_crm_claim/__openerp__.py b/addons/portal_customer_claim/__openerp__.py similarity index 56% rename from addons/customer_portal_crm_claim/__openerp__.py rename to addons/portal_customer_claim/__openerp__.py index 5cd979d9ec8..b359a5fae17 100644 --- a/addons/customer_portal_crm_claim/__openerp__.py +++ b/addons/portal_customer_claim/__openerp__.py @@ -1,5 +1,8 @@ +# -*- coding: utf-8 -*- +############################################################################## +# # OpenERP, Open Source Management Solution -# Copyright (C) 2004-2011 OpenERP S.A (). +# Copyright (C) 2004-2010 Tiny SPRL (). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -15,28 +18,23 @@ # along with this program. If not, see . # ############################################################################## + + { - 'name' : "Portal Customer claim", - 'version' : "1.0", - 'depends' : ["customer_portal","crm_claim"], - 'author' : "OpenERP SA", - 'category': 'Portal', - 'description': """ - auto_install claim - """, - 'website': 'http://www.openerp.com', - 'data': [ + 'name': 'Customer Portal Claim', + 'version': '0.1', + 'category': 'Tools', + 'complexity': "easy", + 'description': """ + This module add the menu if claim and portal_customer is install. + """, + 'author': 'OpenERP SA', + 'depends': ['crm_claim','portal_customer'], + 'update_xml': [ + 'portal_customer_claim_view.xml', ], - 'init_xml' : [ - ], - 'demo_xml' : [. - ], - 'update_xml' : [ - 'claim_custommer_portal_view.xml' - ], - 'installable': True, - 'auto_install': True, - #'category': 'Hidden', + 'installable': True, + 'auto_install':True, + } - - +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/customer_portal_crm_claim/claim_custommer_portal_view.xml b/addons/portal_customer_claim/portal_customer_claim_view.xml similarity index 100% rename from addons/customer_portal_crm_claim/claim_custommer_portal_view.xml rename to addons/portal_customer_claim/portal_customer_claim_view.xml From 01c7a8c8b6d283fed9c7a58ea486210b4258afc9 Mon Sep 17 00:00:00 2001 From: MVA Date: Tue, 17 Apr 2012 11:48:39 +0200 Subject: [PATCH 035/657] [IMP] add module to add menu to customer partner when both module are installed bzr revid: mva@openerp.com-20120417094839-b1xx4sbl2g9ijrn4 --- .../portal_customer/portal_customer_menu.xml | 9 ++-- addons/portal_customer_claim/__openerp__.py | 2 +- addons/portal_customer_event/__init__.py | 21 ++++++++++ addons/portal_customer_event/__openerp__.py | 41 +++++++++++++++++++ .../portal_customer_event_view.xml | 6 +++ addons/portal_customer_issue/__init__.py | 21 ++++++++++ addons/portal_customer_issue/__openerp__.py | 41 +++++++++++++++++++ .../portal_customer_issue_view.xml | 6 +++ 8 files changed, 142 insertions(+), 5 deletions(-) create mode 100644 addons/portal_customer_event/__init__.py create mode 100644 addons/portal_customer_event/__openerp__.py create mode 100644 addons/portal_customer_event/portal_customer_event_view.xml create mode 100644 addons/portal_customer_issue/__init__.py create mode 100644 addons/portal_customer_issue/__openerp__.py create mode 100644 addons/portal_customer_issue/portal_customer_issue_view.xml diff --git a/addons/portal_customer/portal_customer_menu.xml b/addons/portal_customer/portal_customer_menu.xml index e008f3177f5..9a8486cd7a1 100644 --- a/addons/portal_customer/portal_customer_menu.xml +++ b/addons/portal_customer/portal_customer_menu.xml @@ -9,18 +9,19 @@ - + - + - - + + + + - + - - + - - + - - - - + + + diff --git a/addons/portal_customer_claim/portal_customer_claim_view.xml b/addons/portal_customer_claim/portal_customer_claim_view.xml index c282beacaa2..3cf7e6c7be8 100644 --- a/addons/portal_customer_claim/portal_customer_claim_view.xml +++ b/addons/portal_customer_claim/portal_customer_claim_view.xml @@ -1,9 +1,5 @@ - - - - - + diff --git a/addons/portal_customer_event/portal_customer_event_view.xml b/addons/portal_customer_event/portal_customer_event_view.xml index 61da8d058ba..28eb448822b 100644 --- a/addons/portal_customer_event/portal_customer_event_view.xml +++ b/addons/portal_customer_event/portal_customer_event_view.xml @@ -1,6 +1,6 @@ - - + + diff --git a/addons/portal_customer_issue/portal_customer_issue_view.xml b/addons/portal_customer_issue/portal_customer_issue_view.xml index bc4a63aa51f..b826439339f 100644 --- a/addons/portal_customer_issue/portal_customer_issue_view.xml +++ b/addons/portal_customer_issue/portal_customer_issue_view.xml @@ -1,6 +1,6 @@ - - + + From f73b9b0917ce95e583e77be2ba3dfdf914cac642 Mon Sep 17 00:00:00 2001 From: MVA Date: Tue, 17 Apr 2012 14:19:30 +0200 Subject: [PATCH 038/657] [IMP] add bzr revid: mva@openerp.com-20120417121930-ci9hvs4juz23vwm5 --- addons/portal_customer_claim/portal_customer_claim_view.xml | 1 + addons/portal_customer_event/portal_customer_event_view.xml | 1 + addons/portal_customer_issue/portal_customer_issue_view.xml | 1 + 3 files changed, 3 insertions(+) diff --git a/addons/portal_customer_claim/portal_customer_claim_view.xml b/addons/portal_customer_claim/portal_customer_claim_view.xml index 3cf7e6c7be8..80b1a2f71e2 100644 --- a/addons/portal_customer_claim/portal_customer_claim_view.xml +++ b/addons/portal_customer_claim/portal_customer_claim_view.xml @@ -1,3 +1,4 @@ + diff --git a/addons/portal_customer_event/portal_customer_event_view.xml b/addons/portal_customer_event/portal_customer_event_view.xml index 28eb448822b..a3cba91ec29 100644 --- a/addons/portal_customer_event/portal_customer_event_view.xml +++ b/addons/portal_customer_event/portal_customer_event_view.xml @@ -1,3 +1,4 @@ + diff --git a/addons/portal_customer_issue/portal_customer_issue_view.xml b/addons/portal_customer_issue/portal_customer_issue_view.xml index b826439339f..7b72b298512 100644 --- a/addons/portal_customer_issue/portal_customer_issue_view.xml +++ b/addons/portal_customer_issue/portal_customer_issue_view.xml @@ -1,3 +1,4 @@ + From 14d71a8aadca71288db0d8f4069e5ca21a980de7 Mon Sep 17 00:00:00 2001 From: MVA Date: Tue, 17 Apr 2012 14:38:49 +0200 Subject: [PATCH 039/657] [IMP] add a sale_order_customer demo bzr revid: mva@openerp.com-20120417123849-y2n8omrvahhj5tvq --- addons/portal_customer/__openerp__.py | 1 + addons/portal_customer/portal_customer_demo.xml | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 addons/portal_customer/portal_customer_demo.xml diff --git a/addons/portal_customer/__openerp__.py b/addons/portal_customer/__openerp__.py index 3db70387ff8..b3f8443a2b6 100644 --- a/addons/portal_customer/__openerp__.py +++ b/addons/portal_customer/__openerp__.py @@ -35,6 +35,7 @@ "init_xml" : [ ], "demo_xml" : [ + "portal_customer_demo.xml", ], "update_xml" : [ "security/portal_customer_security.xml", diff --git a/addons/portal_customer/portal_customer_demo.xml b/addons/portal_customer/portal_customer_demo.xml new file mode 100644 index 00000000000..c735c24cb35 --- /dev/null +++ b/addons/portal_customer/portal_customer_demo.xml @@ -0,0 +1,13 @@ + + + + + demo_customer_portal + demo_customerl + demo + + + + + + From 8c5686d922af36fe18f7856d245c22cae6d29071 Mon Sep 17 00:00:00 2001 From: MVA Date: Tue, 17 Apr 2012 16:30:21 +0200 Subject: [PATCH 040/657] [IMP] add security and action menu on the menuitems bzr revid: mva@openerp.com-20120417143021-x5pqz6epz9gvh6qz --- addons/portal_customer/portal_customer_demo.xml | 4 ++-- addons/portal_customer/security/ir_model_access.csv | 2 -- addons/portal_customer_claim/__openerp__.py | 1 + addons/portal_customer_claim/portal_customer_claim_view.xml | 2 +- addons/portal_customer_claim/security/ir.model.access.csv | 3 +++ addons/portal_customer_event/__openerp__.py | 1 + addons/portal_customer_event/portal_customer_event_view.xml | 4 ++-- addons/portal_customer_event/security/ir.model.access.csv | 3 +++ addons/portal_customer_issue/__openerp__.py | 1 + addons/portal_customer_issue/portal_customer_issue_view.xml | 4 ++-- addons/portal_customer_issue/security/ir.model.access.csv | 3 +++ 11 files changed, 19 insertions(+), 9 deletions(-) delete mode 100644 addons/portal_customer/security/ir_model_access.csv create mode 100644 addons/portal_customer_claim/security/ir.model.access.csv create mode 100644 addons/portal_customer_event/security/ir.model.access.csv create mode 100644 addons/portal_customer_issue/security/ir.model.access.csv diff --git a/addons/portal_customer/portal_customer_demo.xml b/addons/portal_customer/portal_customer_demo.xml index c735c24cb35..155b09220da 100644 --- a/addons/portal_customer/portal_customer_demo.xml +++ b/addons/portal_customer/portal_customer_demo.xml @@ -3,8 +3,8 @@ demo_customer_portal - demo_customerl - demo + test + a diff --git a/addons/portal_customer/security/ir_model_access.csv b/addons/portal_customer/security/ir_model_access.csv deleted file mode 100644 index 1f08770ea45..00000000000 --- a/addons/portal_customer/security/ir_model_access.csv +++ /dev/null @@ -1,2 +0,0 @@ -id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink -access_sale_order_portal,sale.order,model_sale_order,portal_customer.group_res_portal_demo,1,0,0,0 diff --git a/addons/portal_customer_claim/__openerp__.py b/addons/portal_customer_claim/__openerp__.py index 5b494aa9f39..e6a89ed3a21 100644 --- a/addons/portal_customer_claim/__openerp__.py +++ b/addons/portal_customer_claim/__openerp__.py @@ -32,6 +32,7 @@ 'depends': ['crm_claim','portal_customer'], 'update_xml': [ 'portal_customer_claim_view.xml', + "security/ir.model.access.csv", ], 'installable': True, 'auto_install':True, diff --git a/addons/portal_customer_claim/portal_customer_claim_view.xml b/addons/portal_customer_claim/portal_customer_claim_view.xml index 80b1a2f71e2..c6697a5df24 100644 --- a/addons/portal_customer_claim/portal_customer_claim_view.xml +++ b/addons/portal_customer_claim/portal_customer_claim_view.xml @@ -1,6 +1,6 @@ - + diff --git a/addons/portal_customer_claim/security/ir.model.access.csv b/addons/portal_customer_claim/security/ir.model.access.csv new file mode 100644 index 00000000000..1bd18eca836 --- /dev/null +++ b/addons/portal_customer_claim/security/ir.model.access.csv @@ -0,0 +1,3 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_crm_claim,crm.claim,crm_claim.model_crm_claim,portal_customer.group_sales_portal,1,0,0,0 + diff --git a/addons/portal_customer_event/__openerp__.py b/addons/portal_customer_event/__openerp__.py index 38af1741300..ee531816b44 100644 --- a/addons/portal_customer_event/__openerp__.py +++ b/addons/portal_customer_event/__openerp__.py @@ -32,6 +32,7 @@ 'depends': ['event','portal_customer'], 'update_xml': [ 'portal_customer_event_view.xml', + 'security/ir.model.access.csv', ], 'installable': True, 'auto_install':True, diff --git a/addons/portal_customer_event/portal_customer_event_view.xml b/addons/portal_customer_event/portal_customer_event_view.xml index a3cba91ec29..a2a79bf1077 100644 --- a/addons/portal_customer_event/portal_customer_event_view.xml +++ b/addons/portal_customer_event/portal_customer_event_view.xml @@ -1,7 +1,7 @@ - - + + diff --git a/addons/portal_customer_event/security/ir.model.access.csv b/addons/portal_customer_event/security/ir.model.access.csv new file mode 100644 index 00000000000..50bad0d7a19 --- /dev/null +++ b/addons/portal_customer_event/security/ir.model.access.csv @@ -0,0 +1,3 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_event,event,event.model_event_event,portal_customer.group_sales_portal,1,0,0,0 +access_registration,registration,event.model_event_registration,portal_customer.group_sales_portal,1,0,0,0 diff --git a/addons/portal_customer_issue/__openerp__.py b/addons/portal_customer_issue/__openerp__.py index 63e06c940d4..90fd21b622b 100644 --- a/addons/portal_customer_issue/__openerp__.py +++ b/addons/portal_customer_issue/__openerp__.py @@ -31,6 +31,7 @@ 'author': 'OpenERP SA', 'depends': ['project_issue','portal_customer'], 'update_xml': [ + 'security/ir.model.access.csv', 'portal_customer_issue_view.xml', ], 'installable': True, diff --git a/addons/portal_customer_issue/portal_customer_issue_view.xml b/addons/portal_customer_issue/portal_customer_issue_view.xml index 7b72b298512..f9cce90c0d3 100644 --- a/addons/portal_customer_issue/portal_customer_issue_view.xml +++ b/addons/portal_customer_issue/portal_customer_issue_view.xml @@ -1,7 +1,7 @@ - - + + diff --git a/addons/portal_customer_issue/security/ir.model.access.csv b/addons/portal_customer_issue/security/ir.model.access.csv new file mode 100644 index 00000000000..8040b559c89 --- /dev/null +++ b/addons/portal_customer_issue/security/ir.model.access.csv @@ -0,0 +1,3 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_issues,project_issue,project_issue.model_project_issue,portal_customer.group_sales_portal,1,0,0,0 +access_task,tasks,project.model_project_task,portal_customer.group_sales_portal,1,0,0,0 From 016523aa9fc6b2c1445db1c1a00796e61ed40ea8 Mon Sep 17 00:00:00 2001 From: MVA Date: Wed, 18 Apr 2012 09:18:13 +0200 Subject: [PATCH 041/657] [IMP] add ir rules bzr revid: mva@openerp.com-20120418071813-c8jl2n0v812jbxvk --- .../security/security_customer_portal.xml | 83 ------------------- addons/portal_customer_claim/__openerp__.py | 1 + addons/portal_customer_event/__openerp__.py | 1 + addons/portal_customer_issue/__openerp__.py | 1 + 4 files changed, 3 insertions(+), 83 deletions(-) delete mode 100644 addons/portal_customer/security/security_customer_portal.xml diff --git a/addons/portal_customer/security/security_customer_portal.xml b/addons/portal_customer/security/security_customer_portal.xml deleted file mode 100644 index 2706b75ad5e..00000000000 --- a/addons/portal_customer/security/security_customer_portal.xml +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - - 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 - - - - - - - - - - - diff --git a/addons/portal_customer_claim/__openerp__.py b/addons/portal_customer_claim/__openerp__.py index e6a89ed3a21..ad41bc53786 100644 --- a/addons/portal_customer_claim/__openerp__.py +++ b/addons/portal_customer_claim/__openerp__.py @@ -31,6 +31,7 @@ 'author': 'OpenERP SA', 'depends': ['crm_claim','portal_customer'], 'update_xml': [ + 'security/portal_customer_security.xml', 'portal_customer_claim_view.xml', "security/ir.model.access.csv", ], diff --git a/addons/portal_customer_event/__openerp__.py b/addons/portal_customer_event/__openerp__.py index ee531816b44..21f6b62c2e8 100644 --- a/addons/portal_customer_event/__openerp__.py +++ b/addons/portal_customer_event/__openerp__.py @@ -31,6 +31,7 @@ 'author': 'OpenERP SA', 'depends': ['event','portal_customer'], 'update_xml': [ + 'security/portal_customer_security.xml', 'portal_customer_event_view.xml', 'security/ir.model.access.csv', ], diff --git a/addons/portal_customer_issue/__openerp__.py b/addons/portal_customer_issue/__openerp__.py index 90fd21b622b..eae8b8ba9ea 100644 --- a/addons/portal_customer_issue/__openerp__.py +++ b/addons/portal_customer_issue/__openerp__.py @@ -31,6 +31,7 @@ 'author': 'OpenERP SA', 'depends': ['project_issue','portal_customer'], 'update_xml': [ + 'security/portal_customer_security.xml', 'security/ir.model.access.csv', 'portal_customer_issue_view.xml', ], From dcd6e4406ff419cc7775f59e58ec46ea069cf79e Mon Sep 17 00:00:00 2001 From: MVA Date: Wed, 18 Apr 2012 10:37:51 +0200 Subject: [PATCH 042/657] [IMP] correct create portal user bzr revid: mva@openerp.com-20120418083751-4mop11h2kwyaix9o --- addons/portal/wizard/portal_wizard.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/portal/wizard/portal_wizard.py b/addons/portal/wizard/portal_wizard.py index 0eceec3f46b..e7b89bb0732 100644 --- a/addons/portal/wizard/portal_wizard.py +++ b/addons/portal/wizard/portal_wizard.py @@ -147,6 +147,7 @@ class wizard(osv.osv_memory): 'context_lang': u.lang, 'share': True, 'partner_id': u.partner_id and u.partner_id.id, + 'groups_id': [(6, 0, [])], } for u in wiz.user_ids if u.user_email not in existing_logins ] portal_obj.write(cr, ROOT_UID, [wiz.portal_id.id], {'users': [(0, 0, data) for data in new_users_data]}, context0) From d1c66d9b5d8c1debe2e63cd6a199f975eedc7fc7 Mon Sep 17 00:00:00 2001 From: MVA Date: Wed, 18 Apr 2012 11:55:16 +0200 Subject: [PATCH 043/657] [IMP] add file for ir rules bzr revid: mva@openerp.com-20120418095516-5a2xlh0qnm4wlbe0 --- .../security/portal_customer_security.xml | 13 ++++++++++++ .../security/portal_customer_security.xml | 20 +++++++++++++++++++ .../security/portal_customer_security.xml | 18 +++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 addons/portal_customer_claim/security/portal_customer_security.xml create mode 100644 addons/portal_customer_event/security/portal_customer_security.xml create mode 100644 addons/portal_customer_issue/security/portal_customer_security.xml diff --git a/addons/portal_customer_claim/security/portal_customer_security.xml b/addons/portal_customer_claim/security/portal_customer_security.xml new file mode 100644 index 00000000000..d3709b755a5 --- /dev/null +++ b/addons/portal_customer_claim/security/portal_customer_security.xml @@ -0,0 +1,13 @@ + + + + + + Personal Claims + + [('partner_id.email','=',user.login)] + + + + + diff --git a/addons/portal_customer_event/security/portal_customer_security.xml b/addons/portal_customer_event/security/portal_customer_security.xml new file mode 100644 index 00000000000..fe04832fe10 --- /dev/null +++ b/addons/portal_customer_event/security/portal_customer_security.xml @@ -0,0 +1,20 @@ + + + + + + Personal Events + + [('partner_id.email','=',user.login)] + + + + + Personal Events + + [('partner_id.email','=',user.login)] + + + + + diff --git a/addons/portal_customer_issue/security/portal_customer_security.xml b/addons/portal_customer_issue/security/portal_customer_security.xml new file mode 100644 index 00000000000..465cdee67b6 --- /dev/null +++ b/addons/portal_customer_issue/security/portal_customer_security.xml @@ -0,0 +1,18 @@ + + + + + + Personal Issues + + [('partner_id.email','=',user.login)] + + + + Personal Task + + [('partner_id.email','=',user.login)] + + + + From 39669328ee64f6d7b7101df22c2b9173ec810fba Mon Sep 17 00:00:00 2001 From: "Atul Patel (OpenERP)" Date: Thu, 19 Apr 2012 10:32:04 +0530 Subject: [PATCH 044/657] [ADD]: ADD ir.rule file for customer lead bzr revid: atp@tinyerp.com-20120419050204-s5ur0z09akwu4cad --- addons/portal_customer_lead/__openerp__.py | 1 + .../security/portal_customer_lead_security.xml | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 addons/portal_customer_lead/security/portal_customer_lead_security.xml diff --git a/addons/portal_customer_lead/__openerp__.py b/addons/portal_customer_lead/__openerp__.py index 994168f61c8..beb03f8e704 100644 --- a/addons/portal_customer_lead/__openerp__.py +++ b/addons/portal_customer_lead/__openerp__.py @@ -31,6 +31,7 @@ 'depends' : ["portal_customer","crm"], 'website': 'http://www.openerp.com', 'update_xml': [ + 'security/portal_customer_lead_security.xml', 'portal_customer_lead_view.xml', 'security/ir.model.access.csv', ], diff --git a/addons/portal_customer_lead/security/portal_customer_lead_security.xml b/addons/portal_customer_lead/security/portal_customer_lead_security.xml new file mode 100644 index 00000000000..0767c8560f7 --- /dev/null +++ b/addons/portal_customer_lead/security/portal_customer_lead_security.xml @@ -0,0 +1,15 @@ + + + + + + + + Personal Lead + + [('partner_id.email','=',user.login)] + + + + + From df0b1d819ae295eac9c9612b3f1d827d6267c5ec Mon Sep 17 00:00:00 2001 From: MVA Date: Thu, 19 Apr 2012 10:16:09 +0200 Subject: [PATCH 045/657] [IMP] remove the employee inherit in the portal change ur rule s name and add the feedback menu from atp branch bzr revid: mva@openerp.com-20120419081609-lsdcnvvo4ylbyssm --- .../security/portal_customer_security.xml | 1 - .../security/portal_customer_security.xml | 4 +- addons/portal_customer_feedback/__init__.py | 21 ++++++++++ .../portal_customer_feedback/__openerp__.py | 41 +++++++++++++++++++ .../portal_customer_feedback_view.xml | 6 +++ .../security/ir.model.access.csv | 10 +++++ 6 files changed, 80 insertions(+), 3 deletions(-) create mode 100644 addons/portal_customer_feedback/__init__.py create mode 100644 addons/portal_customer_feedback/__openerp__.py create mode 100644 addons/portal_customer_feedback/portal_customer_feedback_view.xml create mode 100644 addons/portal_customer_feedback/security/ir.model.access.csv diff --git a/addons/portal_customer/security/portal_customer_security.xml b/addons/portal_customer/security/portal_customer_security.xml index 19873f23e26..fc73357d00f 100644 --- a/addons/portal_customer/security/portal_customer_security.xml +++ b/addons/portal_customer/security/portal_customer_security.xml @@ -7,7 +7,6 @@ Sales Portal Group - diff --git a/addons/portal_customer_event/security/portal_customer_security.xml b/addons/portal_customer_event/security/portal_customer_security.xml index fe04832fe10..ae161c8c642 100644 --- a/addons/portal_customer_event/security/portal_customer_security.xml +++ b/addons/portal_customer_event/security/portal_customer_security.xml @@ -5,12 +5,12 @@ Personal Events - [('partner_id.email','=',user.login)] + [('registration_ids.email','=',user.login)] - Personal Events + Personal Registrations [('partner_id.email','=',user.login)] diff --git a/addons/portal_customer_feedback/__init__.py b/addons/portal_customer_feedback/__init__.py new file mode 100644 index 00000000000..26c654db9dd --- /dev/null +++ b/addons/portal_customer_feedback/__init__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2010 Tiny SPRL (). +# +# 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/addons/portal_customer_feedback/__openerp__.py b/addons/portal_customer_feedback/__openerp__.py new file mode 100644 index 00000000000..f67ea6cca41 --- /dev/null +++ b/addons/portal_customer_feedback/__openerp__.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2010 Tiny SPRL (). +# +# 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': 'Customer Portal Feedback', + 'version': '0.1', + 'category': 'Tools', + 'complexity': "easy", + 'description': """ + This module add the menu if claim and portal_customer is install. + """, + 'author': 'OpenERP SA', + 'depends': ['survey','portal_customer'], + 'update_xml': [ + 'portal_customer_feedback_view.xml', + "security/ir.model.access.csv", + ], + 'installable': True, + 'auto_install':True, + 'category':'Hidden', +} +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/portal_customer_feedback/portal_customer_feedback_view.xml b/addons/portal_customer_feedback/portal_customer_feedback_view.xml new file mode 100644 index 00000000000..3ae9a96ad57 --- /dev/null +++ b/addons/portal_customer_feedback/portal_customer_feedback_view.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/addons/portal_customer_feedback/security/ir.model.access.csv b/addons/portal_customer_feedback/security/ir.model.access.csv new file mode 100644 index 00000000000..f56702fdc0a --- /dev/null +++ b/addons/portal_customer_feedback/security/ir.model.access.csv @@ -0,0 +1,10 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_survey_survey,survey_survey,survey.model_survey,portal_customer.group_sales_portal,1,1,0,0 +access_survey_page,survey_page,survey.model_survey_page,portal_customer.group_sales_portal,1,1,0,0 +access_survey_question,survey_question,survey.model_survey_question,portal_customer.group_sales_portal,1,0,0,0 +access_survey_answer,survey_answer,survey.model_survey_answer,portal_customer.group_sales_portal,1,1,0,0 +access_survey_response,survey_response,survey.model_survey_response,portal_customer.group_sales_portal,1,1,1,0 +access_survey_history,survey_history,survey.model_survey_history,portal_customer.group_sales_portal,1,1,1,0 +access_survey_question_column_heading,survey_question_column_heading,survey.model_survey_question_column_heading,portal_customer.group_sales_portal,1,0,0,0 +access_survey_response_line,survey_response_line,survey.model_survey_response_line,portal_customer.group_sales_portal,1,1,1,0 +access_survey_response_answer,survey_response_answer,survey.model_survey_response_answer,portal_customer.group_sales_portal,1,1,1,0 From 6d2cd880e7fb9db47a05d4ab82556197f8b4f42e Mon Sep 17 00:00:00 2001 From: MVA Date: Thu, 19 Apr 2012 11:02:06 +0200 Subject: [PATCH 046/657] [REF]remove feedback bzr revid: mva@openerp.com-20120419090206-yfai689igxjydiyx --- addons/portal_customer_feedback/__init__.py | 21 ---------- .../portal_customer_feedback/__openerp__.py | 41 ------------------- .../portal_customer_feedback_view.xml | 6 --- .../security/ir.model.access.csv | 10 ----- 4 files changed, 78 deletions(-) delete mode 100644 addons/portal_customer_feedback/__init__.py delete mode 100644 addons/portal_customer_feedback/__openerp__.py delete mode 100644 addons/portal_customer_feedback/portal_customer_feedback_view.xml delete mode 100644 addons/portal_customer_feedback/security/ir.model.access.csv diff --git a/addons/portal_customer_feedback/__init__.py b/addons/portal_customer_feedback/__init__.py deleted file mode 100644 index 26c654db9dd..00000000000 --- a/addons/portal_customer_feedback/__init__.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2004-2010 Tiny SPRL (). -# -# 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/addons/portal_customer_feedback/__openerp__.py b/addons/portal_customer_feedback/__openerp__.py deleted file mode 100644 index f67ea6cca41..00000000000 --- a/addons/portal_customer_feedback/__openerp__.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2004-2010 Tiny SPRL (). -# -# 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': 'Customer Portal Feedback', - 'version': '0.1', - 'category': 'Tools', - 'complexity': "easy", - 'description': """ - This module add the menu if claim and portal_customer is install. - """, - 'author': 'OpenERP SA', - 'depends': ['survey','portal_customer'], - 'update_xml': [ - 'portal_customer_feedback_view.xml', - "security/ir.model.access.csv", - ], - 'installable': True, - 'auto_install':True, - 'category':'Hidden', -} -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/portal_customer_feedback/portal_customer_feedback_view.xml b/addons/portal_customer_feedback/portal_customer_feedback_view.xml deleted file mode 100644 index 3ae9a96ad57..00000000000 --- a/addons/portal_customer_feedback/portal_customer_feedback_view.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/addons/portal_customer_feedback/security/ir.model.access.csv b/addons/portal_customer_feedback/security/ir.model.access.csv deleted file mode 100644 index f56702fdc0a..00000000000 --- a/addons/portal_customer_feedback/security/ir.model.access.csv +++ /dev/null @@ -1,10 +0,0 @@ -id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink -access_survey_survey,survey_survey,survey.model_survey,portal_customer.group_sales_portal,1,1,0,0 -access_survey_page,survey_page,survey.model_survey_page,portal_customer.group_sales_portal,1,1,0,0 -access_survey_question,survey_question,survey.model_survey_question,portal_customer.group_sales_portal,1,0,0,0 -access_survey_answer,survey_answer,survey.model_survey_answer,portal_customer.group_sales_portal,1,1,0,0 -access_survey_response,survey_response,survey.model_survey_response,portal_customer.group_sales_portal,1,1,1,0 -access_survey_history,survey_history,survey.model_survey_history,portal_customer.group_sales_portal,1,1,1,0 -access_survey_question_column_heading,survey_question_column_heading,survey.model_survey_question_column_heading,portal_customer.group_sales_portal,1,0,0,0 -access_survey_response_line,survey_response_line,survey.model_survey_response_line,portal_customer.group_sales_portal,1,1,1,0 -access_survey_response_answer,survey_response_answer,survey.model_survey_response_answer,portal_customer.group_sales_portal,1,1,1,0 From e25e299ed12291d2afc67e483c3c49dea077a7ad Mon Sep 17 00:00:00 2001 From: "Atul Patel (OpenERP)" Date: Thu, 19 Apr 2012 17:21:41 +0530 Subject: [PATCH 047/657] [ADD]: Add Upcomming event, feedback into home dashboard. bzr revid: atp@tinyerp.com-20120419115141-akp8dd4hcsk0a02p --- addons/account/account_invoice_view.xml | 16 +++++------ .../board_portal_customer_view.xml | 6 ++--- .../board_portal_customer_event_view.xml | 2 +- .../portal_customer_event_view.xml | 1 + .../portal_customer_feedback/__openerp__.py | 1 + .../board_portal_customer_feedback_view.xml | 27 +++++++++++++++++++ addons/sale/sale_view.xml | 20 +++++++------- addons/survey/static/src/css/survey.css | 4 +-- 8 files changed, 53 insertions(+), 24 deletions(-) create mode 100644 addons/portal_customer_feedback/board_portal_customer_feedback_view.xml diff --git a/addons/account/account_invoice_view.xml b/addons/account/account_invoice_view.xml index ca8530fb082..ad7b961ed3b 100644 --- a/addons/account/account_invoice_view.xml +++ b/addons/account/account_invoice_view.xml @@ -257,9 +257,9 @@ - - -