Odoo Help


Syntax for Google docs template with OpenERP fields

on 2/15/13, 5:13 AM 2,601 views

Hello, What is the exact syntax to create dynamic fields in a Google Doc text document. I would like to merge Company name, address and if possible contact name + some additional fixed text into a google doc template. Thanks




| 5 6 8
Cornwall, Canada

Analysing, designing, coding and mentoring since 1975. Kilobytes to terabytes. Punch cards to punchy sites. My OpenERP video series: http://www.youtube.com/playlist?list=PLq7op4J183lX44ZlXPiHxUpRvmmRDtxye My Google Speadsheets --> OpenERP Data Pump project: http://martinhbramwell.github.io/GData_OpenERP_Data_Pump My email (with spaces removed) : mhb . warehouseman @ gmail . com

On 2/15/13, 7:58 PM

The standard way to do that is to first export some records, with the fields that concern you, to a CSV file, and then import that file into a gDocs spreadsheet. Row 1 of the new sheet will have the exact column titles you want for importing into OpenERP.


  1. Delete from rows 2 to the end
  2. Put in the fresh data as new rows
  3. Download as CSV
  4. Import back into OpenERP.

For step #2, I typically put the function; QUERY(data, query, headers), in cell A2 and have it pull in data from another sheet.

He's asking a different thing: He's trying to merge data from odoo to a google doc. There should be a syntax to replace variable: something like %(name)s inside the document. This syntax works in the title, but not inside the document's body. I could not find the answer yet.

Daniel Blanco
on 8/10/17, 2:17 AM

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 2/15/13, 5:13 AM
Seen: 2601 times
Last updated: 3/16/15, 8:10 AM