Contributors mailing list archives
contributors@odoo-community.org
Browse archives
OCA BOT can't merge PRs in OCA/l10n-italy branch 11.0
Re: Async import external employee data from db view to Odoo.
Re: Async import external employee data from db view to Odoo.
byOn Mon, Mar 1, 2021 at 7:47 AM Kitti Upariphutthiphong <kittiu@ecosoft.co.th> wrote:Thank you Simon! I could help to write more readme afterwards :)I checked it and it looks like what we wanted to do, except it only deal with .CSV file at the moment. So I will need to create the new import component handler for MSSQL, right?As you mentioned, you did it for Oracle DB?Yes, but it's quite easy.Each step of the import machinery it's separated. What you have to do is to create your own source model which provides a `_get_lines` method which returns a list of dict. The rest of the system does not care where you pick data from.Here you see an example using another Odoo instance as source (I've used it to migrate records from an old v9 to a new v11 live).Then depending on the complexity of your import you'll have to define one or mappers. It's unlikely that you have to define specific importers, especially if you use https://github.com/OCA/connector-interfaces/pull/76 (which might benefit from some reviews ;) ).Kitti U.On Sun, Feb 28, 2021 at 6:11 PM Simone Orsi <simahawk@gmail.com> wrote:Hi Kitti,connector_importer was born exactly for this reason: recurring imports.I've used it for importing employees and users and more (even from Oracle DB).Docs are missing so if you have questions, don't hesitate to ask.Cheers,S.On Sun, Feb 28, 2021 at 9:52 AM Kitti Upariphutthiphong <kittiu@ecosoft.co.th> wrote:Dear Community,We need to get data from external HR applications (they will provide an mssql database view), for users and employee data into Odoo.It seems to be quite a generic use case, to become an addon, so I want to check with community, would be nice to know how you normally cope with this.I checked OCA and plan to use the followings as starting point.Thank you!Kitti U._______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
--Simone OrsiFull stack Python web developer, Odoo specialist, Odoo Community Board Member, Freelance in love with open source._______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
--Simone OrsiFull stack Python web developer, Odoo specialist, Odoo Community Board Member, Freelance in love with open source._______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
Reference
-
Async import external employee data from db view to Odoo.
byEcosoft Co. Ltd., Kitti Upariphutthiphong-
Re: Async import external employee data from db view to Odoo.
byEcosoft Co. Ltd., Kitti Upariphutthiphong -
RE: Async import external employee data from db view to Odoo.
byBilbonet, Jesús Ramiro Martinez -
Re: Async import external employee data from db view to Odoo.
byEcosoft Co. Ltd., Kitti Upariphutthiphong -
Re: Async import external employee data from db view to Odoo.
byEcosoft Co. Ltd., Kitti Upariphutthiphong -
RE: Async import external employee data from db view to Odoo.
byBilbonet, Jesús Ramiro Martinez -
Re: Async import external employee data from db view to Odoo.
byEcosoft Co. Ltd., Kitti Upariphutthiphong -
Re: Async import external employee data from db view to Odoo.
byCamptocamp SA, Simone Orsi -
Re: Async import external employee data from db view to Odoo.
byEcosoft Co. Ltd., Kitti Upariphutthiphong -
Re: Async import external employee data from db view to Odoo.
byCamptocamp SA, Simone Orsi
-