Nasreddin Boulif (bon) e566844378 [FIX] website_crm_partner_assign: allow editing contact from portal
Issue

  - Install 'addons/website_crm_partner_assign' module
  - Create a partner X without a phone number (edit only name).
  - Save and click on "Opportnuties" stat button
  - Create an opportunity Y and set X as customer
  - Edit it and set "Joekl Willis" as assigned partner
  - Logout then login with portal user (Joel Willis)
  - Go to "My account" page and click on "Opportunities"
  - Select the opportunity Y and edit "Contact"
  - Change phone number then save

  Access error message:
  (not allowed to access 'Contact' (res.partner) records)

Cause

  When editing the opportunity (OPP) phone (or email_from) field,
  if a partner is linked to the OPP and the phone is different,
  we will update also the phone of the partner.
  User portal is not allowed to edit partner.

Solution

  If user has write access on lead, use sudo() to update lead.
  Raise an error if a user want to update a non allowed field
  from portal through the contact lead form.

opw-2530744

closes odoo/odoo#72453

X-original-commit: 7d41ab05e5b3d78df5f60848ad440988cd98b6e0
Signed-off-by: bon-odoo <nboulif@users.noreply.github.com>
2021-06-21 14:45:16 +00:00
…
…
…
…
2021-05-17 19:26:27 +00:00
2020-09-28 14:07:25 +00:00

Build Status Tech Doc Help Nightly Builds

Odoo

Odoo is a suite of web based open source business apps.

The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...

Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.

Getting started with Odoo

For a standard installation please follow the Setup instructions from the documentation.

To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials

S
Description
No description provided
Readme LGPL-3.0
3.4 GiB
Languages
Python 49.6%
JavaScript 47.8%
SCSS 2%
CSS 0.3%
HTML 0.2%