[IMP] auth_signup: Set activation_scope at 'B2C' by default

Purpose
=======

More and more features redirect to the portal (see & pay
quotations, invoices, etc.) with anonymous access by default
you can't sign up to the customer portal, while you see
a Sign in button. It's frustrating.

The ability to create a customer account is a nice service,
useful in any business willing to engage with returning
customers. This should be the default value

Specification
=============

Activate B2C portal by default. We have to create an
ir.config.parameter for the change to be immediate after
the installation. Otherwise the admin has to go and save
its res.config.settings one time before it's effective.

Task ID: 1841514
This commit is contained in:
Shubham Johar
2018-07-31 12:37:50 +02:00
committed by Yannick Tivisse
parent a701031c92
commit 51ef4b8ea3
@@ -1,6 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<!-- activate B2C portal by default -->
<function model="ir.config_parameter" name="set_param" eval="('auth_signup.invitation_scope', 'b2c')"/>
<!-- Email template for reset password -->
<record id="reset_password_email" model="mail.template">
<field name="name">Auth Signup: Reset Password</field>