Odoo Help


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.


Line break in description of XML-RPC generated quotation

on 4/17/15, 8:34 AM 741 views

Hi there,

I'm using a PHP script to generate quotation through our website via XMLRPC. In the quotation line description I'd like to insert a new line, so that the format of the line description becomes something like:

Product name

Size: length x width x height

Color: blue

Instead of "Product name, Size x y z, color: blue"

Does somebody has any clue about how to format this in the XMLRPC value? I tried both html, xml and python line breaks/carriage returns.    



| 5 4 6
Zagreb | Karlovac, Croatia

there is only 10 kind of people the ones that understand binary ... and others

On 7/10/15, 2:59 AM

try concatenate string values using '\n' for line break before sendig it via xmlrpc...
syntax should be something like: 

desc = product_name + '\n' '+ 'Size : ' + lenght_val + 'x' + width_val +'x' ...

use desc string value to send description via xmlrpc

hope it helps

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

1 follower(s)


Asked: 4/17/15, 8:34 AM
Seen: 741 times
Last updated: 7/10/15, 3:00 AM