Browse Source

[REF] beesdoo_website_portal -> website_portal_restrict_modification

pull/156/head
Vincent Van Rossem 5 years ago
parent
commit
687417d44e
  1. 0
      website_portal_restrict_modification/__init__.py
  2. 14
      website_portal_restrict_modification/__manifest__.py
  3. 0
      website_portal_restrict_modification/controllers/__init__.py
  4. 2
      website_portal_restrict_modification/controllers/main.py
  5. 4
      website_portal_restrict_modification/views/portal_website_templates.xml

0
beesdoo_website_portal/__init__.py → website_portal_restrict_modification/__init__.py

14
beesdoo_website_portal/__manifest__.py → website_portal_restrict_modification/__manifest__.py

@ -3,16 +3,16 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{ {
"name": "BEES coop Website Portal",
"name": "Website Portal Restrict Modification",
"version": "12.0.1.0.0",
"depends": ["portal", "website"],
"summary": """ "summary": """
Extension of the Portal that prevent modification of sensible data by the users
Portal extension preventing modification of sensible data by the users
""", """,
"author": "Coop IT Easy SCRLfs", "author": "Coop IT Easy SCRLfs",
"license": "AGPL-3", "license": "AGPL-3",
"version": "12.0.1.0.0",
"website": "https://www.coopiteasy.be",
"category": "Cooperative management",
"depends": ["portal", "website"],
"data": ["views/portal_website_templates.xml",],
"website": "https://coopiteasy.be/",
"category": "Cooperative Management",
"data": ["views/portal_website_templates.xml"],
"installable": True, "installable": True,
} }

0
beesdoo_website_portal/controllers/__init__.py → website_portal_restrict_modification/controllers/__init__.py

2
beesdoo_website_portal/controllers/main.py → website_portal_restrict_modification/controllers/main.py

@ -6,7 +6,7 @@
from odoo.addons.portal.controllers.portal import CustomerPortal from odoo.addons.portal.controllers.portal import CustomerPortal
class BeesdooAccountWebsiteController(CustomerPortal):
class CustomerPortalRestrictModification(CustomerPortal):
# override from `portal` module # override from `portal` module
CustomerPortal.MANDATORY_BILLING_FIELDS = [ CustomerPortal.MANDATORY_BILLING_FIELDS = [
"city", "city",

4
beesdoo_website_portal/views/portal_website_templates.xml → website_portal_restrict_modification/views/portal_website_templates.xml

@ -6,8 +6,8 @@
<odoo> <odoo>
<!-- Modifying the form --> <!-- Modifying the form -->
<template id="beesdoo_website_portal_details_form"
name="Beesdoo Website Portal Details Form"
<template id="website_portal_restrict_my_details"
name="Website Portal Restrict Modification"
inherit_id="portal.portal_my_details"> inherit_id="portal.portal_my_details">
<xpath expr="//input[@name='name']/.." position="before"> <xpath expr="//input[@name='name']/.." position="before">
<div class="col-lg-12"> <div class="col-lg-12">
Loading…
Cancel
Save