تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
34444 أدوات العرض

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.

الصورة الرمزية
إهمال

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.

أفضل إجابة

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


 


الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
أغسطس 15
4975
1
يونيو 25
427
1
يونيو 25
364
1
مايو 25
962
0
مارس 25
568