Hello
is there a way to inherit the import method,
I need to import records into timesheet, and map one of the imported fields to relational field in timesheet like Employee, while the mapping will be based on other identity field like email or external id.
In other words, I want to import timesheet records from xlsx file and map the employee by email instead of map by employee name or Id
it is possible redefine the import method ??
Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
You can override load method of ORM which is call and create data during import.
If you have concern regarding only employee with search base on email then you can override name_search method and search with email field too. So it will automatically set/search employee base on email too.
You can create a function that reads the excel file and add a new column(employee name or id) which matches the related employee from its existing email , then you can import the excel file as odoo standard do.
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
1
يوليو 22
|
4664 | ||
|
2
سبتمبر 22
|
2604 | ||
|
1
أبريل 19
|
6842 | ||
|
1
نوفمبر 24
|
1590 | ||
|
0
سبتمبر 24
|
1053 |