Odoo Help

0

Syntax for Google docs template with OpenERP fields

By
ODF
on 2/15/13, 5:13 AM 2,291 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

0
Martin
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.

Then:

  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.

Register

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)

Stats

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