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

READ DATA FROM XLS AND PRINT INTO TAB INFO PRODUCT

By
Alfonso Aragona
on 8/20/16, 5:17 AM 179 views

My goal is to create a page information that simply read data from a xls or cvs files. This page I would like to insert into tab product.template.

This is simple schema: PRODUCT PAGE ---> TAB "INFO" <-- simply print data from a xls or cvs

---------------------

from urllib.request import urlopen

from xml.etree.ElementTree import parse

# Download the RSS feed and parse it

u = urlopen('http://site.org/rss.xml')

doc = parse(u)

# Extract and output tags of interest

for item in doc.iterfind('channel/item'):

title = item.findtext('title')

date = item.findtext('pubDate')

link = item.findtext('link')

print(title)

print(date)

print(link)

print()

----------------------

Xml or Cvs (xls)...excuse me

Alfonso Aragona
on 8/20/16, 5:45 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

1 follower(s)

Stats

Asked: 8/20/16, 5:17 AM
Seen: 179 times
Last updated: 8/20/16, 6:55 AM