Browse Source

[CHG] emc: Remove dependence to website_legal_page

This commit removes the dependence to website_legal_page by using it's
own template for showing text aside the checkbox in the form. Because
the template for this text is not editable by the user (in fact, it is
but each time the module is updated, this template is overwritten).

Of course website_legal_page can always be installed, and the new
template for the text can contain link to the pages generated by
website_legal_page.
pull/2/head
Rémy Taymans 5 years ago
parent
commit
123aabf756
  1. 1
      easy_my_coop/__openerp__.py
  2. 11
      easy_my_coop/view/subscription_template.xml

1
easy_my_coop/__openerp__.py

@ -31,7 +31,6 @@
"partner_contact_address",
"website",
"website_recaptcha_reloaded",
"website_legal_page",
"theme_light",
"base_iban",
"email_template_config",

11
easy_my_coop/view/subscription_template.xml

@ -256,7 +256,7 @@
t-attf-value="#{data_policy_approved or ''}"/>
</div>
<div class="col-md-6 col-sm-6">
<t t-call="website_legal_page.acceptance_full"/>
<t t-call="easy_my_coop.data_policy_approved_text"/>
</div>
</div>
@ -532,7 +532,7 @@
t-attf-value="#{data_policy_approved or ''}"/>
</div>
<div class="col-md-6 col-sm-6">
<t t-call="website_legal_page.acceptance_full"/>
<t t-call="easy_my_coop.data_policy_approved_text"/>
</div>
</div>
@ -589,4 +589,11 @@
</xpath>
</template>
</data>
<data noupdate="1">
<template id="data_policy_approved_text"
name="Internal Rules Approved Text">
I accept the Data Policy.
</template>
</data>
</openerp>
Loading…
Cancel
Save