Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
34824 Widoki

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.

Awatar
Odrzuć

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.

Najlepsza odpowiedź

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


 


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
sie 15
5116
0
lip 25
163
1
lip 25
4952
0
lip 25
481
0
cze 25
592