Odoo Help

0

READ DATA FROM XLS AND PRINT INTO TAB INFO PRODUCT

By
Alfonso Aragona
on 8/20/16, 5:17 AM 329 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

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

1 follower(s)

Stats

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