Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
34704 Vizualizări

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.

Imagine profil
Abandonează

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.

Cel mai bun răspuns

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


 


Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
aug. 15
5072
0
iul. 25
253
0
iun. 25
470
1
iun. 25
709
1
iun. 25
732