Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
34171 Vues

Hey,

We have in house application built on php. I am trying to implement Odoo 10.0 Community edition for Finance (and in future, replace the existing php application with Odoo). 

We want the php application to push the changes(like customer creation, invoice details etc) to odoo using the web service. I checked the documentation and tried to use ripcord library but it didn't work.

Can anyone guide me for any tutorials or a way to do it (using php and/or javascript). Thanks.

Avatar
Ignorer

Try to post the script that did not work and it will be easier to help you.

Provide also details of your PHP environment.

I have a mobile application I use for data surveying and the data gets passed through PHP to CRM/Leads in Odoo, and I build that starting from the sample snippets in the documentation and using ripcord, so I am confident it works.

Meilleure réponse

Odoo docs itself is a good reference, and you can look here

http://thierry-godin.developpez.com/openerp/openerp-xmlrpc-php-en/

Here is an example to create a customer record.

$partner_name = "Test Partner";
$new_partner_id = $models->execute_kw($db, $uid, $password,
    'res.partner',
    'create', // Function name
    array( // Values-array
        array( // First record
            'name'=>$partner_name,
            'businessid'=>"1234567-1",
            'businessid_shown'=>True, // Show business id in the customer card
            'customer'=>True,
            'is_company'=>True,
            'street'=>"Street 123",
            'street2'=>"Floor 7",
            'city'=>"Tampere",
            'zip'=>"33101",
            'phone'=>"123456780",
            'email'=>"mail@example.com",
            'comment'=>"A free comment",
        )
    )
);

More info here

https://github.com/Tawasta/odoo-xml-rpc-example/blob/master/php-ripcord.md


 


Avatar
Ignorer
Publications associées Réponses Vues Activité
1
août 15
4836
1
mai 25
673
0
mars 25
339
1
déc. 24
2749
2
nov. 24
1081