generated from OCA/oca-addons-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
T0485 website_compassion: FIX issues at module installation
- Loading branch information
Showing
15 changed files
with
46 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<odoo> | ||
<data> | ||
<record id="contract_access_portal" model="ir.rule"> | ||
<field name="name">MyCompassion: Contract access</field> | ||
<field name="model_id" ref="recurring_contract.model_recurring_contract"/> | ||
<field name="domain_force">["|", ('partner_id', '=', user.partner_id.id), ('correspondent_id', '=', user.partner_id.id)]</field> | ||
<field name="groups" eval="[(4, ref('base.group_portal'))]"/> | ||
</record> | ||
<record id="contract_group_read_write_unlink_access_portal" model="ir.rule"> | ||
<field name="name">Contract group read write unlink access portal</field> | ||
<field name="name">MyCompassion: Contract group access</field> | ||
<field name="model_id" ref="recurring_contract.model_recurring_contract_group"/> | ||
<field name="domain_force">[('partner_id', '=', user.partner_id.id)]</field> | ||
<field name="groups" eval="[(4, ref('base.group_portal'))]"/> | ||
<field name="perm_read" eval="True"/> | ||
<field name="perm_write" eval="True"/> | ||
<field name="perm_create" eval="False"/> | ||
<field name="perm_unlink" eval="True"/> | ||
</record> | ||
<record id="letter_access_portal" model="ir.rule"> | ||
<field name="name">MyCompassion: letter access</field> | ||
<field name="model_id" ref="sbc_compassion.model_correspondence"/> | ||
<field name="domain_force">[('partner_id', '=', user.partner_id.id)]</field> | ||
<field name="groups" eval="[(4, ref('base.group_portal'))]"/> | ||
</record> | ||
|
||
<record id="my_bank_accounts" model="ir.rule"> | ||
<field name="name">My bank accounts</field> | ||
<field name="name">MyCompassion: bank accounts access</field> | ||
<field name="model_id" ref="account.model_res_partner_bank"/> | ||
<field name="domain_force">[('partner_id', 'in', [user.partner_id.id, 1])]</field> | ||
<field name="groups" eval="[(4, ref('base.group_portal'))]"/> | ||
<field name="perm_read" eval="True"/> | ||
<field name="perm_write" eval="False"/> | ||
<field name="perm_create" eval="False"/> | ||
<field name="perm_unlink" eval="False"/> | ||
</record> | ||
|
||
<record id="my_churches" model="ir.rule"> | ||
<field name="name">My churches</field> | ||
<field name="name">MyCompassion: churches</field> | ||
<field name="model_id" ref="base.model_res_partner"/> | ||
<field name="domain_force">[('is_church', '=', True)]</field> | ||
<field name="groups" eval="[(4, ref('base.group_portal'))]"/> | ||
<field name="perm_read" eval="True"/> | ||
<field name="perm_write" eval="False"/> | ||
<field name="perm_create" eval="False"/> | ||
<field name="perm_unlink" eval="False"/> | ||
</record> | ||
</data> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink | ||
write_access_partner_portal,Write access partner portal,base.model_res_partner,base.group_portal,1,1,0,0 | ||
write_access_partner_portal,MyCompassion: Partner write access,base.model_res_partner,base.group_portal,1,1,0,0 | ||
create_correspondence_portal,MyCompassion: Correspondence create access,sbc_compassion.model_correspondence,base.group_portal,1,1,1,0 | ||
read_correspondence_template_portal,MyCompassion: Correspondence template read access,sbc_compassion.model_correspondence_template,base.group_portal,1,0,0,0 | ||
create_sbc_portal,MyCompassion: Create S2B Generator,sbc_compassion.model_correspondence_s2b_generator,base.group_portal,1,1,1,0 | ||
read_child_portal,MyCompassion: Child read access,child_compassion.model_compassion_child,base.group_portal,1,0,0,0 | ||
write_contract_portal,MyCompassion: Contract write access,sponsorship_compassion.model_recurring_contract,base.group_portal,1,1,0,0 | ||
write_contract_group_portal,MyCompassion: Contract group write access,sponsorship_compassion.model_recurring_contract_group,base.group_portal,1,1,0,0 | ||
contract_line_portal,MyCompassion: Contract line full access,sponsorship_compassion.model_recurring_contract_line,base.group_portal,1,1,1,1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,16 +2,16 @@ | |
<odoo> | ||
<template id="register_layout" name="Register link"> | ||
<h4 class="font-weight-bold text-uppercase mb-4">Signup</h4> | ||
<p style="color: #005eb8;">If you are not yet registered, you can create an account by clicking on the button below.</p> | ||
<p style="color: #005eb8;"> If you already have a Compassion App account, you can use the same credentials to log in.</p> | ||
<a href="/registration?source=myaccount" class="btn btn-primary">Signup now</a> | ||
<p class="text-primary">If you are not yet registered, you can create an account by clicking on the button below.</p> | ||
<p class="text-primary"> If you already have a Compassion App account, you can use the same credentials to log in.</p> | ||
<a href="/web/signup?redirect=/my/home" class="btn btn-primary">Signup now</a> | ||
</template> | ||
|
||
<template id="login_layout" inherit_id="website.login_layout"> | ||
<xpath expr="t" position="replace"> | ||
<t t-call="website.layout"> | ||
<div class="container mt-5 mx-auto"> | ||
<h1 class="text-uppercase text-center mb-5" style="color: #005eb8; font-size: calc(100% + 1vw + 1vh);">Welcome to <span class="font-weight-bold" t-esc="request.httprequest.host"/></h1> | ||
<h1 class="text-uppercase text-center mb-5 text-primary" style="font-size: calc(100% + 1vw + 1vh);">Welcome to <span class="font-weight-bold" t-esc="request.httprequest.host"/></h1> | ||
<div class="row justify-content-center"> | ||
<div class="col-md-4 mx-4 order-md-2 order-lg-2"> | ||
<h4 class="font-weight-bold text-uppercase flex-fill mb-4">Log in</h4> | ||
|
@@ -20,7 +20,7 @@ | |
<div class="col-md-4 mx-4 order-md-1 mt-4 mt-md-0"><t t-call="my_compassion.register_layout"/></div> | ||
</div> | ||
</div> | ||
<p class="text-center mt-5">Need help? <a href="mailto:[email protected]">[email protected]</a></p> | ||
<p class="text-center mt-5">Need help? <a href="/contactus">Contact us</a></p> | ||
</t> | ||
</xpath> | ||
</template> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters