Search 1.9 billion lines of Odoo code on GitHub

hr_employee_data_from_work_address

Author: Odoo Community Association (OCA),Therp BV
License: AGPL-3
Branch: 10.0
Repository: 001101/hr
Dependencies: base, and hr
Languages: HTML (344, 41.1%), PO File (183, 21.9%), Python (208, 24.9%), XML (56, 6.7%), and reStructuredText (45, 5.4%)
Other branches: 8.0, and 9.0
Other repositories: AAommy/hr, AMhadhbi/hr, AaronHForgeFlow/hr, AbdelghaniDr/hr, Abdullah-Alghoul/hr, AlicePhamFI/hr, Antiun/hr, BHC-sprl/hr, BIZ4Africa/hr, Bewlony/hr, CGenie/hr, Callino/hr, Carlos672/hr, Chandresh-SerpentCS/hr, Change2improve/hr, ChavdaRiddhi/hr, ClearCorp/oca-hr, Cloudxtreme/hr, Colorlessgold/hr, CompassionCH/hr, Confidere/hr, Crux-un/hr, DESCAMPS-Bernard/hr, Darknroses/hr, DarkoNikolovski/hr, Dhrupesh/hr, Digital5-Odoo/hr, Dobtor-OCA/hr, Domatix/hr, DucTruongKomit/hr, EBII/hr, EFJIT/hr, ERPLibre/hr, Ehtaga/hr, Emadbox/hr, Endika/hr, Escodoo/hr, FeraryDong/hr, Fitranugraha/hr, ForgeFlow/hr, Gabinete-Digital/hr, GauravSahu/hr, Gofekra/hr, GrupoAlvamex/hr, Guobower/hr, HarshalBhoir/hr, HashBangCoop/hr, Ingeos/hr, JETSHUB/hr, JagdishPanchalSCS/hr, Jayde29/hr, JazziMc/hr, Juergv-zhinst/hr, KonosCL/hr, LaMachinerieDigitale/odoo_rh_oca, LeaMartinek/hr, Libardo1/hr, MAbdelbaset/hr, MYRCONSULTING/hr-1, Mahmoud-Alaa-Eldeen/hr, MallorcaSoft/hr, MarkingSC/hr, Martronic-SA/hr, MathBenTech/hr, MeetKD/hr, Mefistous/hr, MindAndGo/hr, Murtaza-Mithaiwala/hr, NachoAlesLopez/hr, Najjarfatii/hr, NeatNerdPrime/hr, NextERP-Romania/hr, Nikul-Chaudhary/hr, Nucleoos/hr, Numigi/odoo-hr, OCA-MUK/hr, OCA/hr, ORETEK/hr, Odoo-Italia-Associazione/hr, PNLUG/hr, Peerapong-Supasompob/hr, PrenorSistemas/hr, QubiQ/hr, RealSolutionsLux/hr, RetinaInc/hr, Saharaifs/hr, Sandy4321/hr-1, SanteLibre/hr, SerpentConsultingServices/hr, Seth-Root/hr, SeuMarco/hr, Solofo78/hr, StefanRijnhart/hr, StephanRozendaal/hr, Studio73/hr, Supattra6548/hr, Swapnesh-SerpentCS/hr, TechnovicInfotech/hr, Tecnativa/hr, TimvM/hr, Trivedi-Vacha-SerpentCS/hr, Vauxoo/hr, VisiionSolucionesTecnologicas/hr, VitalPet/hr, VizThoughts/hr, Vizucom/hr, Wizr/hr, Yaroslab/hr, YogeshMahera-SerpentCS/hr, Zwygart/hr, abdulhalim-cu/hr, abstract-open-solutions/hr, acsone/hr, adhoc-dev/hr-1, adolfoeliazat/hr, adrienpeiffer/hr, agenterp/hr, agenterpgmbh/hr, akretion/hr, alangwansui/hr, alanljj/oca_hr, alecvinent/hr, alessavindell/hr, algiopensource/hr, alsalqan/hr, amarildogolloshi/hr, amendoncabh/hr, anandkansagra/hr, andhit-r/hr, andreinl/hr, anhvu-sg/hr, apachesep/hr, apetbiz/hr, area-scm/hr, arsof1/hr, aryajimbaran/hr, aungthumin/hr, aurestic/hr, beemoza/hr, bimajatiwijaya/hr, bitshembertiregui/hr, bodi000/hr, brain-tec/hr, brainbeanapps/hr, brian10048/hr, burhan-vakharia/hr, busmanapps/hr, camptocamp/hr, captivea-rdi/hr, charbeljc/hr, code4funvn/hr, codentsoftware/hr, coodec/hr, coopaname/hr, coopiteasy/hr, dainiervg1988/hr, damdam-s/hr, danhvophuong/hr, danielemartini/hr, dcoopennet/hr, delfixtecnosoluciones/hr, diagramsoftware/hr, diggy128/hr, digideskio/hr-1, digisertek/hr, dionmartin/hr, djangkrix/hr, djimenezm/hr, dmdavidmichael/hr, doganaltunbay/hr, dreispt/hr, drohnet/hr, druidoo-dev/hr, dufresnedavid/hr, dvitme/hr, eLBati/hr, ecosoft-odoo/hr, eil00l/hr, elego/oca-hr, elif-demir/hr, elrodo1/hr, elwan/hr, emagdalenaC2i/hr, emdeechege/hr, enmasys/hr, eric-lemesre/hr, eslAmer/hr, eslammohamed13/hr, espo-tony/hr, etobella/hr, exosoftware/oca-hr, fanzalika/hr, farinoire/hr, feketemihai/hr, fjperezgarrido/hr, fmdl/hr, gab-net/hr, gabrielo77/hr, galtys/hr, garzadekoster/hr, gastonfeng/hr, gfcapalbo/hr, gonxi/hr, gorozcoh/hr, grethellgarcia/hr, grindtildeath/hr, gurneyalex/hr, gustavovalverde/hr, haroldtamo/hr, haular/hr, hbrunn/hr, hendrixcosta/hr, hieulucky111/hr, hobbycodersince1990/hr, i-vyshnevska/hr, iRichGit/hr, ideaspositivas-group/hr, idtlabs-xyz/hr, iledarn/hr, imedC/hr, ingadhoc/hr-1, initOS/hr, intero-chz/hr, invitu/hr, ip-candres/hr, it-projects-llc/hr, iyangming/hr, jaa-odoo/hr, jacky82669513/hr, janverb/hr, javialgios/hr, jawkhan/hr, jcdrubay/hr, jlaloux/hr, joelcabral/hr, jonisunz/hr, jsabastizagal/hr, jsnjfz/hr, jsrhtc/hr, juandediosvelez/hr, juhk/hr, julianram/hr, jutamas290385/hr, kenvac/hr, kikonany/hr, kittiu/hr, kitworks-systems/hr, kongrattapong/hr, kossovo/hr, kryskool/hr, kujuwew/hr, kullykiki/hr, labaggio/hr, landoo-es/hr, leangjia/hr, leemannd/hr, levkar/hr, lideritjnma/hr, lincersolucoes/oca-hr, linkitspa/hr, lucode/hr, luistorresm/hr, lyphuclong/hr, mFlayyan/hr, maherjaballi/hr, makeplerc/hr, marcelofrare/hr, mauraco-group/hr, max3903/hr, maxellini/hr, mazhro/hr, mefiskafka/hr-1, meigallodixital/hr, metalsartigan/hr, microcom/hr, miguelguzmanr/hr, mikevhe18/hr, minhly1112/hr, minhyk/hr, mohamedhagag/hr, molandtoxx/hr, mondoraemon/hr, monksoftware/hr, morrismusumi/hr, mpanarin/hr, mrizqiariadi/hr, mudeizi/hr, muiserpi/hr, muratoguz/hr, mymage/hr, myonnet/oca-hr, nabima/hr, napr/hr, netfarm/hr, nikul-serpentcs/hr, niulinlnc/hr, niyid/hr, novawish/hr, nuobit/hr, odooconcept/hr, odoocr/hr, ogemalmayan/hr, oihane/hr, one2pret/hr, oneshiro/hr, onesteinbv/hr, onurugur/hr, open-net-sarl/hr, open-synergy/hr, osi-scampbell/hr, osiberp/hr, ovnicraft/hr, p-tombez/hr, patrickrwilson/hr, pavelpy/hr, pawanmisra/hr, pegonzalezspesol/hr, petypi/hr, pieter-lazzaro/hr, popcomputadores-desenv/hr, prisehub/hr, ps-tubtim/hr, pscloud/hr, pypykim/hr, pythoner-3k/hr, qprintcloud/hr, quentinDupont/hr, randall-vx/hr, raycarnes/hr, redblow/hr, relatedlove/hr-1, ricardus34/hr, rjpathan/hr, rlfss/hr-1, rmfondi/hr, rokealva83/hr, rossasa/hr, royalline1/hr, rschnapka/hr, ruveydayasak/hr, sagar-developer-92/hr, saltonmassally/hr, sambarros/hr, sanube/hr, savoirfairelinux/hr, sendalpegat/hr, serpentcs-dev1/hr, sewisoft/hr, sharifulrocky/hr, sherpya/hr, simahawk/hr, soeethiha/hr, sopheak1/hr, southasia/hr, spitronello/hr, steingabelgaard/hr, subteno-it/hr, sunflowerit/hr, suniagajose/hr, sysdiary/hr, takinobori/oca-hr, tanza9/hr, tariqsust/hr, tasmail/hr, techrifiv/hr, tegin/hr, teklay/hr, thapanat/hr, tharcisse/hr, thinkasoft-dev/hr, thinkopensolutions/oca-hr, tonyjona/hr, trobz/oca-hr, tschanzt/hr, uktc87504/hr, unitek-solusi/OCA-hr, ursais/hr, uusama/hr, varunxyz/hr, vdedyukhin/hr, veetoki/hr, veroc/hr, versada/hr, vjd8866/hr, vmelnych/hr, vrenaville/hr, vvrossem/hr, wademor/hr, wahello/hr, watcharaporn-git/hr, wattanadev/hr, wfrisson/hr, whileom/hr, wjshan/hr, x0rzkov/odoo-hr, xabispacebiker/hr, xpansa/hr, xpertiz/hr, yaoxingqi/hr, yelizariev/hr, yostashiro/hr, yucer/hr, yweng8111/hr, and zaidkilani/hr

<h1 class="title">User and partner data from employee</h1> <p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.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/hr/tree/10.0/hr_employee_data_from_work_address"><img alt="OCA/hr" src="https://img.shields.io/badge/github-OCA%2Fhr-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/hr-10-0/hr-10-0-hr_employee_data_from_work_address"><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/116/10.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p>When using HR, there are a couple of partners involved per employee: The employee's work address, the employee's private address and the partner assigned to the employee's user (if any). The latter is used to store some data about the user, like the email address. In many cases, it would be more convenient to edit this data from the employee record. This module assumes you assign a (different) partner for the work address to every employee, and synchronizes its values with the employee record. Then you should use this partner record also for the user record. When assigning an existing user, the module will replace this user's partner with the current work address's partner.</p> <p><strong>Table of contents</strong></p> <div class="contents local topic" id="contents"> <ul class="simple"> <li><a class="reference internal" href="#usage" id="id1">Usage</a></li> <li><a class="reference internal" href="#bug-tracker" id="id2">Bug Tracker</a></li> <li><a class="reference internal" href="#credits" id="id3">Credits</a><ul> <li><a class="reference internal" href="#authors" id="id4">Authors</a></li> <li><a class="reference internal" href="#contributors" id="id5">Contributors</a></li> <li><a class="reference internal" href="#other-credits" id="id6">Other credits</a></li> <li><a class="reference internal" href="#maintainers" id="id7">Maintainers</a></li> </ul> </li> </ul> </div> <a name="usage"></a> <h2><a class="toc-backref" href="#id1">Usage</a></h2> <p>After installation, updating an employee's <cite>work_email</cite>, <cite>work_phone</cite>, <cite>mobile_phone</cite> and <cite>image</cite> fields transparently changes the linked partner's appropriate field and vice versa. For obvious reasons, the default for the work address being the company's address has been lifted. Partners created through the work address field will have the <cite>employee</cite>-flag set, and the <cite>partner_id</cite> field on the user record filters for this flag.</p> <p>When creating a user, you can select the existing partner record for your employee, so it will be updated transparently too. Creating a user via the user field in the employee form preselects this partner record.</p> <p>As it would be problematic to have work addresses pointing to the company's partner with this module, all employees are updated with either a new partner as work address in case they are not linked to a user, or with the user's partner otherwise. This may take some time if you have a lot of employees. For existing work addresses, the partner's data win, so if your employee as ha different email/phone number/image than the corresponding partner, those fields will be overwritten - but only if it is set in the partner.</p> <p>Also multiple employees pointing to the same partner is problematic. This is fixed by creating new partners for all employees involved, and flagging all of them with the label 'Duplicate work address' and the newly created ones with 'Duplicate work address / Newly created'. Then after installation, search for partners with this labels to do whatever cleanup you consider necessary. After this, it's safe to delete the labels again.</p> <a name="bug-tracker"></a> <h2><a class="toc-backref" href="#id2">Bug Tracker</a></h2> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/hr/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/hr/issues/new?body=module:%20hr_employee_data_from_work_address%0Aversion:%2010.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="#id3">Credits</a></h2> <a name="authors"></a> <h3><a class="toc-backref" href="#id4">Authors</a></h3> <ul class="simple"> <li>Therp BV</li> </ul> <a name="contributors"></a> <h3><a class="toc-backref" href="#id5">Contributors</a></h3> <ul class="simple"> <li>Holger Brunn &lt;<a class="reference external" href="mailto:hbrunn&#64;therp.nl">hbrunn&#64;therp.nl</a>&gt;</li> </ul> <a name="other-credits"></a> <h3><a class="toc-backref" href="#id6">Other credits</a></h3> <ul class="simple"> <li>Icon courtesy of <a class="reference external" href="http://www.picol.org">http://www.picol.org</a> (refresh.svg) and <a class="reference external" href="https://github.com/odoo/odoo/blob/8.0/addons/hr/static/description/icon.png">https://github.com/odoo/odoo/blob/8.0/addons/hr/static/description/icon.png</a></li> </ul> <a name="maintainers"></a> <h3><a class="toc-backref" href="#id7">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>This module is part of the <a class="reference external" href="https://github.com/OCA/hr/tree/10.0/hr_employee_data_from_work_address">OCA/hr</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>