İçereği Atla
Odoo Menü
  • Portal
  • Ücretsiz deneyin
  • Uygulamalar
    Finans
    • Muhasebe
    • Faturalama
    • Masraf Yönetimi
    • Elektronik Çizelge (BI)
    • Belgeler
    • İmza
    Satış
    • Müşteri İlişkileri Yönetimi (CRM)
    • Satış
    • Satış Noktası Mağaza
    • Satış Noktası Restoran
    • Abonelikler
    • Kiralama
    Web Sitesi
    • Web Sitesi Oluşturucu
    • eTicaret
    • Blog
    • Forum
    • Canlı Sohbet
    • eÖğrenme
    Tedarik Zinciri
    • Envanter
    • Üretim
    • Ürün Yaşam Döngüsü Yönetimi
    • Satın Alma
    • Bakım
    • Kalite
    İnsan Kaynakları
    • Çalışanlar
    • İşe Alım
    • İzin
    • Değerlendirme
    • Referans
    • Filo Yönetimi
    Pazarlama
    • Sosyal Medyada Pazarlama
    • E-posta ile Pazarlama
    • SMS ile Pazarlama
    • Etkinlikler
    • Pazarlama Otomasyonu
    • Anket
    Hizmetler
    • Proje Yönetimi
    • Çalışma Çizelgeleri
    • Saha Hizmeti
    • Yardım Masası
    • Planlama
    • Randevular
    Verimlilik
    • Sohbet
    • Onay
    • Nesnelerin İnterneti
    • VoIP
    • Bilgi Bankası
    • WhatsApp
    Üçüncü taraf uygulamalar Odoo Stüdyo Odoo Bulut Platformu
  • Sektörler
    Perakende satış
    • Kitapçı
    • Giyim Mağazası
    • Mobilya Mağazası
    • Gıda Marketi
    • Hırdavat Dükkanı
    • Oyuncak Dükkanı
    Gıda ve Konaklama
    • Bar ve Pub
    • Restoran
    • Fast Food Restoranı
    • Konuk Evi
    • İçecek Distribütörü
    • Otel
    Gayrimenkul
    • Emlak Acentesi
    • Mimarlık Firması
    • İnşaat
    • Emlak Yönetimi
    • Bahçe Tasarımı
    • Mülk Sahipleri Derneği
    Uzmanlık
    • Muhasebe Firması
    • Odoo Partner
    • Pazarlama Ajansı
    • Hukuk Firması
    • Yetenek Kazanımı
    • Denetim ve Belgelendirme
    Üretim
    • Tekstil
    • Metal
    • Mobilyalar
    • Gıda
    • Bira fabrikası
    • Kurumsal Hediye
    Sağlık ve Spor
    • Spor Kulübü
    • Optik Mağazası
    • Fitness Merkezi
    • Sağlıklı Yaşam Merkezi
    • Eczane
    • Kuaför Salonu
    Ticaret
    • Tamirci
    • BT Donanım & Destek
    • Güneş Enerjisi Sistemleri
    • Ayakkabı İmalatçısı
    • Temizlik Hizmetleri
    • HVAC Hizmetleri
    Diğerleri
    • Kar Amacı Gütmeyen Kuruluş
    • Çevre Ajansı
    • Reklam Panosu Kiralama
    • Fotoğrafçılık
    • Bisiklet Kiralama
    • Yazılım Bayisi
    Tüm Sektörlere Göz Atın
  • Topluluk
    Öğrenim
    • Eğitim Araçları
    • Dokümantasyon
    • Sertifikasyonlar
    • Eğitim Etkinlikleri
    • Blog
    • Podcast
    Eğitim ve Gelişim
    • Eğitim Programı
    • Scale Up! İşletme Oyunu
    • Odoo'yu Ziyaret Edin
    Yazılım
    • İndirin
    • Sürümleri Kıyaslayın
    • Sürümler
    İş Birliği
    • Github
    • Forum
    • Etkinlikler
    • Çeviriler
    • Partner Olun
    • Partnerler için Hizmetler
    • Muhasebe Firmanızı Kaydettirin
    Hizmetler
    • Partner Bulun
    • Muhasebeci Bulun
    • Bir danışmanla görüşün
    • Kurulum Hizmetleri
    • Müşteri Referansları
    • Destek
    • Sürüm Yükseltme
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Demo randevusu alın
  • Fiyatlandırma
  • Yardım

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • Müşteri İlişkileri Yönetimi
  • e-Commerce
  • Muhasebe
  • Envanter
  • PoS
  • Proje Yönetimi
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
Yardım

Sync/Copy data between models in Odoo 8

Abone Ol

Get notified when there's activity on this post

Bu soru işaretlendi
hron_changeemployeeinheritapplicants
4829 Görünümler
Avatar
Franz Bautista

I have a customized model that inherits from hr.applicant and hr.employee. I was already able to customize the web form to automatically fill up my applicant form. What I need is once I "create and employee" from this applicant the data will automatically copy/sync to employee form?

Is this on_change or inherit. Its only one way as once data is copied from applicant to employee I don't need to update applicant information anymore even when changed directly from employee files.

This is my inherit class for recruitment:

class hrRecruitment(models.Model):
    _inherit = 'hr.applicant'
    
    #gender = fields.Char(string = 'Gender')
    gender = fields.Selection(selection= [('male', 'MALE'),
                                          ('female', 'FEMALE')],
                                  string = 'Gender', default = 'male')
    birthdate = fields.Date('Birthdate')
    birthplace = fields.Char(string='Birthplace')
    height = fields.Char(string='Height', size = 5)
    weight = fields.Char(string='Weight', size = 3)
    religion = fields.Char(string='Religion')
    civil_status = fields.Selection(selection=[('married', 'Married'),
                                               ('single','Single')],
                                        string='Civil Status', default= 'single')

This is the xml for inherit recruitment:

	<!-- inherit hr.applicant -->
        <record id="hr_applicant_data_inherit" model="ir.ui.view">
            <field name="name">hr.applicant.data.inherit</field>
            <field name="model">hr.applicant</field>
            <field name="inherit_id" ref="hr_recruitment.crm_case_form_view_job" />
            <field name="arch" type="xml">
                <field name ="partner_mobile" position="after">
                	<field name ="gender" />
                	<field name ="birthdate" />
                	<field name ="birthplace" />
                	<field name ="height" />
                	<field name ="weight" />
                	<field name ="religion" />
                	<field name ="civil_status" />
                	<field name ="father_name" />
                	<field name ="mother_name" />	
                	<field name ="dependents" />
                	<field name ="facebook" />
                	<field name ="complete_address" />
                	<field name ="other_number" />
                	<field name ="other_email" />
                	<field name ="emer_contact_name" />
                	<field name ="emer_contact_number" />
                </field>

This works fine for recruitment to applicant.

Now I need to get this filled up data to the employee form on creation of an employee.

I tried below code:

<!-- inherit data to hr.employee from hr.applicant -->
        <record id="hr_applicant_data_inherit" model="ir.ui.view">
            <field name="name">hr.applicant.data.inherit</field>
            <field name="model">hr.applicant</field>
            <field name="inherit_id" ref="hr_contract.hr_hr_employee_view_form2" /> This is from the hr.employee view
            <field name="arch" type="xml">
                <field name ="partner_mobile" position="after">
                	<field name ="gender" />
                	<field name ="birthdate" />
                	<field name ="birthplace" />
                	<field name ="height" />
                	<field name ="weight" />
                	<field name ="religion" />
                	<field name ="civil_status" />
                	<field name ="father_name" />
                	<field name ="mother_name" />	
                	<field name ="dependents" />
                	<field name ="facebook" />
                	<field name ="complete_address" />
                	<field name ="other_number" />
                	<field name ="other_email" />
                	<field name ="emer_contact_name" />
                	<field name ="emer_contact_number" />
                </field>

Am using Odoo 8 and the error I get is address_id not found, but there is no address_id field anywhere that I can see.

Anyway, I think i am applying it wrong.  Need help to push in right direction Tks.











0
Avatar
Vazgeç
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Üye Ol
İlgili Gönderiler Cevaplar Görünümler Aktivite
Odoo 8 Onchange query from web to form
hr on_change inherit hrmodule hr_recruitment
Avatar
0
Tem 18
4808
Call a field value from hr_employee to hr_attendance?
hr employee attendance inherit odoo8.0
Avatar
0
Eki 17
8001
How to create an auto increment ID Number field in HR Employee? Çözüldü
hr employee
Avatar
Avatar
Avatar
Avatar
Avatar
7
Kas 20
26098
I want create menu that show list of employee birthday in current month. Çözüldü
hr employee
Avatar
Avatar
Avatar
Avatar
Avatar
11
Oca 19
10810
Employee Resume - Department Changes (V17)
hr employee department
Avatar
Avatar
1
Haz 24
2370
Topluluk
  • Eğitim Araçları
  • Dokümantasyon
  • Forum
Açık Kaynak
  • İndirin
  • Github
  • Runbot
  • Çeviriler
Hizmetler
  • Odoo.sh Hosting
  • Destek
  • Sürüm Yükseltme
  • Özel Geliştirmeler
  • Eğitim
  • Muhasebeci Bulun
  • Partner Bulun
  • Partner Olun
Hakkında
  • Şirketimiz
  • Pazarlama Gereçleri
  • İletişim
  • Kariyer
  • Etkinlikler
  • Podcast
  • Blog
  • Müşteriler
  • Hukuki • Gizlilik
  • Güvenlik
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo, müşteri ilişkileri yönetimi, eTicaret, muhasebe, envanter, satış noktası, proje yönetimi gibi şirketinizin tüm ihtiyaçlarını karşılayan bir açık kaynak işletme uygulamaları paketidir.

Odoo’nun eşsiz değer önermesi, aynı anda hem kullanımının çok kolay olup hem de tamamen entegre olmasıdır.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now