Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
34723 Visualizzazioni

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
Abbandona

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.

Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
ago 15
5076
0
lug 25
271
0
giu 25
495
1
giu 25
715
1
giu 25
739