Search 1.9 billion lines of Odoo code on GitHub

sales_team_security

Author: Tecnativa, Odoo Community Association (OCA)
License: AGPL-3
Branch: 11.0-upd-copier-dro
Repository: acsone/sale-workflow
Dependencies: base, crm, sale, and sales_team
Languages: HTML (389, 54.1%), PO File (39, 5.4%), Python (95, 13.2%), XML (91, 12.7%), and reStructuredText (105, 14.6%)
Other branches: 11.0, 12.0, 12.0-add-sale_order_line_serial_unique-dro, 12.0-asw_master, 12.0-fix-sale-min-qty-dro, 12.0-fix-sale_elaboration-dro, 12.0-fix-sale_order_generator_view-dro, 12.0-imp-travis-dro, 12.0-mig-sale_packaging-dro, 12.0-recref-len, 12.0-sale_order_transmit_method-sbj, 12.0-sale_stock_picking_note, 12.0-tieredpricing-len, 12.0-trn_master, 12.0-trnrecomputeall-len, 13.0, 13.0-add-sale-line-all-moves-dro, 13.0-add-sale_route_amendment-dro, 13.0-cpi-multi-add, 13.0-cpi-prod-set, 13.0-fix-quotation_number-dro, 13.0-fix-sale-manual-delivery, 13.0-fix-sale_manual_delivery-ape, 13.0-fix-sale_sourced_by_line_routes-dro, 13.0-fix_sale_automatic_workflow_do_sale_done_tbi, 13.0-hook-prepare-line-values-ape, 13.0-hook-sale-line-product-qty-ape, 13.0-imp-signature-dro, 13.0-mig-sale-procurement-amendment-dro, 13.0-mig-sale_delivery_split_date, 13.0-mig-sale_order_price_recalculation-dro, 13.0-mig-sale_promotion_rule, 13.0-mig-sale_promotion_rule_assortment, 13.0-mig_sale_automatic_workflow_payment_mode_Tbi, 13.0-sale_by_packaging_force_qty, 13.0-sale_down_payment_wizard_taxes, 13.0-sale_product_multi_add_fix_wizard_view, 13.0-sale_product_set_fix_sequence, 13.0-sale_stock_picking_validation_blocking-qgr, 13.0-slg_master, 13.0-tnc_master, 13.0-update-repor-copier, 13.0-wpu_master, 14-sale_automatic_workflow-xbo, 14-sale_order_restrict_cancel_existing_invoice, 14-sale_promotion_rule, 14-sale_promotion_rule_delivery, 14-sale_promotion_rule_delivery-xbo, 14.0, 14.0-abi_master, 14.0-add-sale-transactions-form-link-dro, 14.0-add-sale_order_line_chained_move_purchase-dro, 14.0-add-sale_order_line_unit_price_no_tax-dro, 14.0-add-sale_order_option_product_group-dro, 14.0-add-sale_purchase_amendment-dro, 14.0-add-test-sale_purchase_route_amendment-dro, 14.0-auto-payment-mode-cpi, 14.0-fix-automatic-workflow-dro, 14.0-fix-sale-product_set-dro, 14.0-fwd-1739-dro, 14.0-imp-sale-mass_action-dro, 14.0-imp-sale_discount_display_amount-dro, 14.0-mig-sale-procurement-amendment-dro, 14.0-mig-sale_order_mass_action-dro, 14.0-mig-sale_product_set_layout-dro, 14.0-mig-sale_promotion_rule, 14.0-sale_automatic_workflow-sbj, 8.0, 8.0-abi_master, 8.0-sale_amendment-with-setup, 8.0-sale_invoice_auto_deliver-lga, 8.0-sale_order_partial_advance_cpi, 8.0-sale_order_product_multi_add_cpi, bai_12.0_sale_order_line_date-fix, oca-port-pr-1819-from-14.0-to-13.0, and sale_quotation_delivery_mandatory-xbo
Other repositories: AMhadhbi/sale-workflow, AbdulrhmanGad/sale-workflow, Abranes/sale-workflow, Afoolf/sale-workflow, Alfa-90/sale-workflow, App247/sale-workflow, BDO-ES/sale-workflow, BIZ4Africa/sale-workflow, BT-dherreros/sale-workflow, BT-jortells/sale-workflow, BeAntares/sale-workflow, BenjaHe/sale-workflow, Bubbles-IT/sale-workflow, CGenie/sale-workflow, Callino/sale-workflow, Chandresh-SerpentCS/sale-workflow, Change2improve/sale-workflow, Comunitea/sale-workflow, Dangar-Serpentcs/sale-workflow, Darknroses/sale-workflow, Digital5-Odoo/sale-workflow, DjaitaiKoffi/sale-workflow, Dobtor-OCA/sale-workflow, Domatix/sale-workflow, Drsmartinkus/sale-workflow, ERPLibre/sale-workflow, FRANCISCOJUAREZC/sale-workflow, FelipeEnriqueGG/sale-workflow, ForgeFlow/sale-workflow, GSLabIt/sale-workflow, Gabinete-Digital/sale-workflow, Garrincha11-Python/sale-workflow, Glue-Software-Engineering-AG/sale-workflow, Gofekra/sale-workflow, GrupoAlvamex/sale-workflow, Guobower/sale-workflow, Hamza-Talibi/sale-workflow, HirenDangar/sale-workflow, Idealisconsulting/sale-workflow, Ingeos/sale-workflow, Jarsa-dev/sale-workflow, Jarsa/sale-workflow, JibenCL/sale-workflow, JuaniFreedoo/sale-workflow, Kayuulab/sale-workflow, Khalid-SerpentCS/sale-workflow, KolushovAlexandr/sale-workflow, KonaERP/sale-workflow, LevelPrime/sale-workflow, LoisRForgeFlow/sale-workflow, MAbdelbaset/sale-workflow, ManjunathRB/sale-workflow, Martronic-SA/sale-workflow, MathBenTech/sale-workflow, MediaJockey/sale-workflow, Mefistous/sale-workflow, MindAndGo/sale-workflow, MjAbuz/sale-workflow, Montxu/sale-workflow, Murtaza-SerpentCS/sale-workflow, NachoAlesLopez/sale-workflow, NeatNerdPrime/sale-workflow, Nikul-Chaudhary/sale-workflow, Nitrokey/odoo-sale-workflow, Numigi/odoo-sale-workflow, OCA-MUK/sale-workflow, OCA/sale-workflow, OmniaGit/sale-workflow, OmniaSolutions/sale-workflow, OpenAT/sale-workflow, OutillageStEtienne/sale-workflow, PCatinean/sale-workflow, PESOL/sale-workflow, Palpid/sale-workflow, PlanetaTIC/sale-workflow, QubiQ/sale-workflow, Ramkumarodoo/sale-workflow, RealSolutionsLux/sale-workflow, RibraX/sale-workflow, RosleStores/sale-workflow, SDIsl/sale-workflow, SSISoftware/sale-workflow, SanteLibre/sale-workflow, ScopeaFrance/sale-workflow, SequarSrl/sale-workflow, SerpentConsultingServices/sale-workflow, SeuMarco/sale-workflow, SimoRubi/sale-workflow, Siraparn/sale-workflow, SmithLin0618/sale-workflow, SodexisTeam/sale-workflow, SportPursuit/sale-workflow, StefanRijnhart/sale-workflow, Studio73/sale-workflow, Swapnesh-SerpentCS/sale-workflow, TDu/sale-workflow, TRESCLOUD/sale-workflow, Tecnativa/sale-workflow, TheCloneMaster/sale-workflow, TimLai125/sale-workflow, Tonow-c2c/sale-workflow, VCLS-org/sale-workflow, VanMoof/sale-workflow, Vauxoo/sale-workflow, VisiionSolucionesTecnologicas/sale-workflow, WilldooIT-Private/sale-workflow, YogeshMahera-SerpentCS/sale-workflow, aaltinisik/sale-workflow, acsonefho/sale-workflow, adhoc-dev/sale-workflow, adolfoeliazat/sale-workflow, agaldona/sale-workflow, ahilali/sale-workflow, akretion/sale-workflow, alex-vy/sale-workflow, algiopensource/sale-workflow, amendoncabh/sale-workflow, andhit-r/sale-workflow, andreampiovesana/sale-workflow, andreasdsp/sale-workflow, andrp92/sale-workflow, angedras/sale-workflow, angelmoya/sale-workflow, anhchuyen/sale-workflow, anhvu-sg/sale-workflow, anodino-dev/sale-workflow, antilhue/sale-workflow, apachesep/sale-workflow, apetbiz/sale-workflow, ashmita34/sale-workflow, ashvinkhodifad/sale-workflow, aurestic/sale-workflow, avanzosc/sale-workflow, avoinsystems/sale-workflow, bassammannaa/sale-workflow, bealdav/sale-workflow, bg4hkq/sale-workflow, bhtabor/sale-workflow, binovo/sale-workflow, bizzappdev/sale-workflow, bizzappdevteam/sale-workflow, bjornbillen/sale-workflow, bmya/sale-workflow, bodedra/sale-workflow, bogdanhu/sale-workflow, br3athein/sale-workflow, brain-tec/sale-workflow, brainbeanapps/sale-workflow, camptocamp/sale-workflow, captivea-dcr/sale-workflow, carlos-domatix/sale-workflow, click2prasanth/sale-workflow, conandark/sale-workflow, coopiteasy/sale-workflow, crnd-inc/sale-workflow, ctmil/sale-workflow, cubells/sale-workflow, damdam-s/sale-workflow, damendieta/sale-workflow, danhvophuong/sale-workflow, dani-xtendoo/sale-workflow, daramousk/sale-workflow, darshan-odoo/sale-workflow, ddico/sale-workflow, detian08/sale-workflow, devang-dreambits/sale-workflow, diagramsoftware/sale-workflow, diangamichael/sale-workflow, diggy128/sale-workflow, digitalsatori/sale-workflow, disna-sistemas/sale-workflow, dong-z/sale-workflow, donizupnick/sale-workflow, doun/sale-workflow, dreispt/sale-workflow, druidoo-dev/sale-workflow, dsmerghetto/sale-workflow, dvdhinesh/sale-workflow, eLBati/sale-workflow, eamedrano23/sale-workflow, ecosoft-odoo/sale-workflow, edfrz/sale-workflow, efatto/sale-workflow, ehsu0407/sale-workflow, elego/sale-workflow, emmanueldominguez/sale-workflow, enmasys/sale-workflow, ermannognan/sale-workflow, espo-tony/sale-workflow, estheraka/sale-workflow, etobella/sale-workflow, exosoftware/oca-sale-workflow, ezodoo/sale-workflow, factorlibre/sale-workflow, fallewi/sale-workflow, fawyna/sale-workflow, florian-dacosta/sale-workflow, fmdl/sale-workflow, focusate/oca-sale-workflow, fruschitaly/sale-workflow, gabriele-baldessari/sale-workflow, gastonfeng/sale-workflow, geluboros/sale-workflow, germanponce/sale-workflow, gfcapalbo/sale-workflow, gobluestingray/sale-workflow, gogomarine/sale-workflow, grap/sale-workflow, grauschnabel/sale-workflow, grindtildeath/sale-workflow, guewen/sale-workflow, gurneyalex/sale-workflow, haninada/sale-workflow, haroldtamo/sale-workflow, hbrunn/sale-workflow, heymanh/oca-sale-workflow, hibou-io/oca-sale-workflow, hieulucky111/sale-workflow, hinfo506/sale-workflow, hippe-67/sale-workflow, hkbluesky/sale-workflow, humanilog/sale-workflow, hurrinico/sale-workflow, i-vyshnevska/sale-workflow, ice0072/sale-workflow, id10tttt/sale-workflow, igallart/sale-workflow, initOS/sale-workflow, invitu/sale-workflow, isos/sale-workflow, izzihector/sale-workflow, jado95/sale-workflow, jalaludin/sale-workflow, janani-sankarababu/sale-workflow, jbaudoux/sale-workflow, jchanme/sale-workflow, jeffgrietens/sale-workflow, jeffryjdelarosa/sale-workflow, jeroen7s/sale-workflow, jimhoefnagels/sale-workflow, jjscarafia/sale-workflow, jobiols/oca-sale-workflow, joe69/sale-workflow, josuf567/sale-workflow, jromeroarg/sale-workflow, jvpascual/sale-workflow, kittiu/sale-workflow, kmee/sale-workflow, kongrattapong/sale-workflow, kvaldivia/sale-workflow, leemannd/sale-workflow, legalsylvain/sale-workflow, lequipeur/sale-workflow, lideritjnma/sale-workflow, linkitspa/sale-workflow, liweijie0812/sale-workflow, luence/sale-workflow, luismontalba/sale-workflow, lveras/sale-workflow, lweiming/sale-workflow, mahmoudAbdElaziz/sale-workflow, marcelomora/sale-workflow, marionumza/sale-workflow, masteriusz/sale-workflow, mayjo79/sale-workflow, mesebin/sale-workflow, mettadipa/sale-workflow, mgosai/sale-workflow, mmequignon/sale-workflow, moo-master/sale-workflow, mpanarin/sale-workflow, murtuzasaleh/sale-workflow, myonnet/oca-sale-workflow, nestorwheelock/sale-workflow, newtratip/sale-workflow, nicolasjelincic/sale-workflow, nikitavaghela/sale-workflow, nikul-serpentcs/sale-workflow, niulinlnc/sale-workflow, nizarudheen/sale-workflow, noorealam96/sale-workflow, novawish/sale-workflow, nucleoosystem/sale-workflow, oandremendes/sale-workflow, odoonz/sale-workflow, oihane/sale-workflow, omalbastin/sale-workflow, one2pret/sale-workflow, onurugur/sale-workflow, open-net-sarl/sale-workflow, open-synergy/sale-workflow, osiell/sale-workflow, panduwiyasatelkom/sale-workflow, paolomonniLP/sale-workflow, petertbexley/sale-workflow, petrus-v/sale-workflow, phongyanon/sale-workflow, phucngta/sale-workflow, piensom/sale-workflow, popcomputadores-desenv/sale-workflow, pscloud/sale-workflow, pythoner-3k/sale-workflow, quentinDupont/sale-workflow, rdeheele/sale-workflow, redblow/sale-workflow, richard-willdooit/sale-workflow, rjpathan/sale-workflow, rm-jamotion/sale-workflow, rohitramnani1994/sale-workflow, rosalesdc/sale-workflow, royalline1/sale-workflow, rsullivan2704/sale-workflow, ruter-lyu/sale-workflow, safyric/sale-workflow, samsagaz/sale-workflow, samuelsenjaya/sale-workflow, sanube/sale-workflow, saxomanu/sale-workflow, sbejaoui/sale-workflow, sc4you/sale-workflow, scigghia/sale-workflow, sendalpegat/sale-workflow, sergiocorato/sale-workflow, sewisoft/sale-workflow, sgheller/sale-workflow, simahawk/sale-workflow, simosuu/sale-workflow, skeller1/sale-workflow, smadco/sale-workflow, smellems/sale-workflow, sodexis/sale-workflow, spacimek/sale-workflow, sudhir-erpharbor/sale-workflow, sudhir-serpentcs/sale-workflow, sunflowerit/sale-workflow, sunshineLhj/sale-workflow, sygel-technology/sale-workflow, sylvainvh/sale-workflow, tafaRU/sale-workflow, takinobori/oca-sale-workflow, tegin/sale-workflow, tfossoul/sale-workflow, thinkopensolutions/oca-sale-workflow, thomaspot/sale-workflow, tirma-sa/sale-workflow, tostmohd/sale-workflow, tschanzt/sale-workflow, unitek-solusi/OCA-sale-workflow, ursais/sale-workflow, valley51/sale-workflow, valmarnet/sale-workflow, vcloud9ray/sale-workflow, vdedyukhin/sale-workflow, versada/sale-workflow, vialaurea/OCA-sale-workflow, victoralmau/sale-workflow, victormmtorres/sale-workflow, vidtsin/sale-workflow, vrenaville/sale-workflow, wahello/sale-workflow, weddingjuma/sale-workflow, whnr/sale-workflow, wtaferner/sale-workflow, xcgd/sale-workflow, xpertiz/sale-workflow, xtendoo-corporation/sale-workflow, yostashiro/sale-workflow, yuniesky1986/sale-workflow, yuzhengxing/sale-workflow, yweng8111/sale-workflow, and zeroincombenze/sale-workflow

<h1 class="title">Sales documents permissions by channels (teams)</h1> <p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/sale-workflow/tree/11.0/sales_team_security"><img alt="OCA/sale-workflow" src="https://img.shields.io/badge/github-OCA%2Fsale--workflow-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/sale-workflow-11-0/sale-workflow-11-0-sales_team_security"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/167/11.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p>This module adds a new group called &quot;Channel manager&quot;, that includes the proper permissions for showing only the information related to that channel:</p> <ul class="simple"> <li>Leads/Opportunities</li> <li>Customers</li> <li>Quotations/Sales Orders</li> </ul> <p>It also handles the propagation of the sales team from commercial partners to the contacts, which standard doesn't do.</p> <p>And finally, there are rules for partners to be restricted to the own ones for the group &quot;User: Own Documents Only&quot; for being coherent with the permission scheme.</p> <p>REMARK: partner restrictions won't work unless you touch in the DB an existing record rule. See more details in Know issues section.</p> <p><strong>Table of contents</strong></p> <div class="contents local topic" id="contents"> <ul class="simple"> <li><a class="reference internal" href="#installation" id="id1">Installation</a></li> <li><a class="reference internal" href="#configuration" id="id2">Configuration</a></li> <li><a class="reference internal" href="#known-issues-roadmap" id="id3">Known issues / Roadmap</a></li> <li><a class="reference internal" href="#bug-tracker" id="id4">Bug Tracker</a></li> <li><a class="reference internal" href="#credits" id="id5">Credits</a><ul> <li><a class="reference internal" href="#authors" id="id6">Authors</a></li> <li><a class="reference internal" href="#contributors" id="id7">Contributors</a></li> <li><a class="reference internal" href="#maintainers" id="id8">Maintainers</a></li> </ul> </li> </ul> </div> <a name="installation"></a> <h2><a class="toc-backref" href="#id1">Installation</a></h2> <p>At installation time, this module sets in all the contacts that have the sales team empty the sales team of the parent. If you have a lot of contacts, this operation can take a while.</p> <a name="configuration"></a> <h2><a class="toc-backref" href="#id2">Configuration</a></h2> <ol class="arabic simple"> <li>Go to <em>Configuration &gt; Users &amp; Companies &gt; Users</em>.</li> <li>Open or create a user.</li> <li>On the section &quot;Application Accesses&quot;, select &quot;Channel Manager&quot; option in &quot;Sales&quot; part.</li> </ol> <a name="known-issues-roadmap"></a> <h2><a class="toc-backref" href="#id3">Known issues / Roadmap</a></h2> <ul> <li><p class="first">For restricting partners access, you have to disable or edit the existing rule &quot;res.partner.rule.private.employee&quot; to something similar to:</p> <pre> <code lang="python">[('message_follower_ids', 'in', user.partner_id.ids), '|', ('type', '!=', 'private'), ('type', '=', False)]</code> </pre> </li> <li><p class="first">This module modifies sales security groups hierarchy, so any other module doing something similar might conflict with this one.</p> </li> <li><p class="first">This module is designed for supporting only sales part, so someone that has access to other Odoo parts (for example, an accountant), shouldn't have this new permission, or some access errors will be found when seeing invoices and other documents. A <cite>sales_team_security_account</cite> bridge module can be done for fixing this case, but not in the case of other parts like warehouse.</p> </li> <li><p class="first">Split the module in 2 as now <cite>crm</cite> is independent.</p> </li> </ul> <a name="bug-tracker"></a> <h2><a class="toc-backref" href="#id4">Bug Tracker</a></h2> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/sale-workflow/issues">GitHub Issues</a>. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed <a class="reference external" href="https://github.com/OCA/sale-workflow/issues/new?body=module:%20sales_team_security%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <p>Do not contact contributors directly about support or help with technical issues.</p> <a name="credits"></a> <h2><a class="toc-backref" href="#id5">Credits</a></h2> <a name="authors"></a> <h3><a class="toc-backref" href="#id6">Authors</a></h3> <ul class="simple"> <li>Tecnativa</li> </ul> <a name="contributors"></a> <h3><a class="toc-backref" href="#id7">Contributors</a></h3> <ul class="simple"> <li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:<ul> <li>Pedro M. Baeza</li> </ul> </li> </ul> <a name="maintainers"></a> <h3><a class="toc-backref" href="#id8">Maintainers</a></h3> <p>This module is maintained by the OCA.</p> <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> <p>OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.</p> <p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p> <p><a class="reference external" href="https://github.com/pedrobaeza"><img alt="pedrobaeza" src="https://github.com/pedrobaeza.png?size=40px" /></a></p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/sale-workflow/tree/11.0/sales_team_security">OCA/sale-workflow</a> project on GitHub.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>