u/Turbulent_Engine9933

▲ 8 r/Odoo

Odoo 17 → 19 migration: custom fields from hr.employee.base lost their values

Hi everyone,

I'm currently testing a migration from Odoo 17 to Odoo 19, and I've run into an issue with some custom fields related to employees.
In Odoo 17, I had several custom fields declared on:
hr.employee.base

These fields were therefore available on the employee models and had existing data in the production database.
In Odoo 19, hr.employee.base no longer exists. To adapt my custom module, I redeclared those fields on:
hr.employee
hr.employee.public

The module installs correctly and the fields are available in Odoo 19.
However, after migrating the database using Odoo's migration service, all the existing values of these custom fields are empty.

So basically:
Odoo 17
hr.employee.base → custom fields → values exist
Odoo 19
hr.employee.base removed → fields redeclared on hr.employee / hr.employee.public → fields exist, but all previous values are gone

Fortunately, we are still in the testing phase and haven't gone live yet, so I still have the original Odoo 17 database with all the correct data.
My questions are:

What is the recommended way to migrate these fields from Odoo 17 to Odoo 19?

reddit.com

في مدينةٍ يغمرها الضباب، حيث تختبئ الأسرار خلف جدران القصور القديمة...

تبدأ قصة لم يكن يجب أن تُكتب.

ليان، فتاة عادية، لم تؤمن يومًا بالخرافات...

حتى التقت به.

تاهيونغ... ليس مجرد رجل.

بل كابوس حيّ، مصاص دماء شرس، يحمل في عينيه لعنة قرونٍ من الدم والوحدة.

وحين يلتقي بها، لا يرى فيها مجرد فريسة...

بل خطرًا يهدد كل ما تبقى من إنسانيته.

بين أنياب الجوع، ونبض قلبٍ بدأ يشعر من جديد،

تجد ليان نفسها عالقة في عالمٍ لا يرحم،

حيث الحب قد يكون أقسى من الموت،

والثقة قد تكون خيانة...

والنجاة ليست خيارًا دائمًا.

لكن هناك شيء واحد أخطر من مصاص الدماء نفسه...

هو أن يقع في الحب.

فهل ستنجو ليان من وحشٍ يريدها... ويحاول حمايتها في آنٍ واحد؟

أم ستصبح جزءًا من الظلام الذي أقسمت يومًا أن تهرب منه؟

في هذه القصة،

الدم ليس الشيء الوحيد الذي يُسفك...

بل القلوب أيضًا.

https://www.wattpad.com/story/410618380?utm\_source=ios&utm\_medium=link&utm\_content=story\_info&wp\_page=story\_details&wp\_uname=sweethoney04

u/Turbulent_Engine9933 — 4 months ago