Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1352 Zobrazení

Hello, I'm a little new to Odoo and I'm working on an integration between Odoo 14 and a legacy system that uses Access 97.  Our plan is to get away from this Access system completely.

I'm trying to execute some Python code that will insert data from a Sales Order into multiple tables in the Access database.

Would I use a Server Action or Automated Action for this?  I'm having a little trouble figuring out how the Server Action works so it will run on create.

Can someone point me in the right direction?


Avatar
Zrušit
Nejlepší odpověď

Hi,
You can design the system as follows:

* run a scheduled action that runs in specific time interval
* call a function from this scheduled action, which will fetch the data from legacy system and create records in odoo

You can follow above pattern or:

* from the legacy system side
* on creation or updation of records there, you can trigger an action in odoo via xml rpc to create records in odoo

Thanks

Avatar
Zrušit
Autor

Thanks for responding. I actually wanted the data to flow the other way from Odoo to Access. I figured out how to install the base_automation module to create Automated Actions on create of a Sales Order. I will continue looking into that.

Related Posts Odpovědi Zobrazení Aktivita
3
úno 25
1640
1
pro 24
1831
2
bře 24
2183
2
bře 24
2704
0
zář 23
1329