diff --git a/addons/account_voucher/account_voucher_pay_invoice.xml b/addons/account_voucher/account_voucher_pay_invoice.xml
index 323be77f334..83bda5d9511 100644
--- a/addons/account_voucher/account_voucher_pay_invoice.xml
+++ b/addons/account_voucher/account_voucher_pay_invoice.xml
@@ -20,7 +20,7 @@
-
+
diff --git a/addons/base_status/base_stage.py b/addons/base_status/base_stage.py
index 98b32402788..bb263c49e9b 100644
--- a/addons/base_status/base_stage.py
+++ b/addons/base_status/base_stage.py
@@ -41,14 +41,10 @@ class base_stage(object):
"""
if context is None:
context = {}
- if not context:
- return False
- user = self.pool.get('res.users').browse(cr, uid, uid, context=context)
if context.get('portal'):
+ user = self.pool.get('res.users').browse(cr, uid, uid, context=context)
return user.partner_id.id
- if hasattr(user, 'partner_address_id') and user.partner_address_id:
- return user.partner_address_id
- return user.company_id.partner_id.id
+ return False
def _get_default_email(self, cr, uid, context=None):
""" Gives default email address for current user
@@ -56,10 +52,10 @@ class base_stage(object):
"""
if context is None:
context = {}
- if not context or not context.get('portal'):
- return False
- user = self.pool.get('res.users').browse(cr, uid, uid, context=context)
- return user.email
+ if context.get('portal'):
+ user = self.pool.get('res.users').browse(cr, uid, uid, context=context)
+ return user.email
+ return False
def _get_default_user(self, cr, uid, context=None):
""" Gives current user id
diff --git a/addons/portal/wizard/portal_wizard.py b/addons/portal/wizard/portal_wizard.py
index 485aa941434..48bb0f94858 100644
--- a/addons/portal/wizard/portal_wizard.py
+++ b/addons/portal/wizard/portal_wizard.py
@@ -205,7 +205,6 @@ class wizard_user(osv.osv_memory):
'name': user.name,
'login': user.login,
'url': user.signup_url,
- 'password': user.password,
}
mail_mail = self.pool.get('mail.mail')
mail_values = {
diff --git a/addons/portal_sale/portal_sale_view.xml b/addons/portal_sale/portal_sale_view.xml
index 0e73447c2d7..4c93d03f43e 100644
--- a/addons/portal_sale/portal_sale_view.xml
+++ b/addons/portal_sale/portal_sale_view.xml
@@ -31,19 +31,18 @@
account.invoice
tree,form,calendar,graph
[('type','=','out_invoice')]
- {'default_type':'out_invoice', 'type':'out_invoice', 'journal_type': 'sale'}
+ {'type':'out_invoice', 'journal_type': 'sale'}
We haven't sent you any invoice.
- Customer Payment
- account.voucher
- [('journal_id.type', 'in', ['bank', 'cash']), ('type','=','receipt')]
- {'type':'receipt'}
-
- current
- We haven't sent you any credit note.
+ Customer Refunds
+ account.invoice
+ [('type','=','out_refund')]
+ {'type':'out_refund'}
+
+ We haven't sent you any refund.
-
diff --git a/addons/portal_sale/security/portal_security.xml b/addons/portal_sale/security/portal_security.xml
index 08e83bf3daa..baaeb835af1 100644
--- a/addons/portal_sale/security/portal_security.xml
+++ b/addons/portal_sale/security/portal_security.xml
@@ -21,13 +21,6 @@
-
- Portal Personal Payments
-
- [('message_follower_ids','in',[user.partner_id.id])]
-
-
-
Portal Personal Contacts