Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Sample to create product variant (one2many) using XML-RPC of PHP

By
charles
on 10/25/14, 10:00 PM 1,837 views

Hi all,

Through PHP XML-RPC, a product can be created successfully. But I can't create product variants in a product. Is it related to one2many type? Can anybody give a sample code of how to create a product variant in a product by using PHP XML-RPC? 

Hi.... you need to do more ""testing"" to understand you own problem. Keep it up. Good Luck. You'll get there soon enough.

Vee
on 10/26/14, 7:36 AM
0
charles
On 10/27/14, 11:59 AM

Hi Vee,

Thanks a lot for your reply. I've tried many tests and searched the Internet for a few days.However, no information can be found. Can you guide me a little bit about the syntax?

Take a look at: http://thierry-godin.developpez.com/openerp/openerp-xmlrpc-php-en/

Dorin Hongu
on 10/27/14, 12:12 PM

Hi Dorin, Thanks a lot for your reply. Thierry Godin's tutorial is a great one. From the tutorial, I've learnt a lot. However, it does not have steps about creating product variants, which are related one2many type. In general, I need syntax about one2many type in PHP XML-RPC.

charles
on 10/28/14, 3:11 AM

Hi Charles, did you find anwsers to your question, I too can't create the product variant. I can create the product,_template(ex: T-shirt), the product_attribute_line (ex: Color), the product_attribute_value (Blue). But I can't create the Blue-color-TShirt

xiaolong97427
on 4/22/16, 9:23 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 10/25/14, 10:00 PM
Seen: 1837 times
Last updated: 3/16/15, 8:10 AM