Skip to Content
Odoo Меню
  • Увійти
  • Спробуйте це безкоштовно
  • Додатки
    Фінанси
    • Бухоблік
    • Виставлення рахунку
    • Витрати
    • Електронні таблиці (BI)
    • Документи
    • Підпис
    Продажі
    • CRM
    • Продажі
    • POS Магазин
    • POS Ресторан
    • Підписки
    • Оренда
    Веб-сайти
    • Конструктор веб-сайту
    • Електронна комерція
    • Блог
    • Форум
    • Живий чат
    • Електронне навчання
    Ланцюг поставок
    • Склад
    • Виробництво
    • PLM
    • Купівлі
    • Технічне обслуговування
    • Якість
    Кадри
    • Співробітники
    • Рекрутинг
    • Відпустки
    • Оцінювання
    • Рекомендації
    • Автотранспорт
    Маркетинг
    • Маркетинг соцмереж
    • Email-маркетинг
    • SMS-маркетинг
    • Події
    • Автом. маркетингу
    • Опитування
    Послуги
    • Проект
    • Табелі
    • Виїзне обслуговування
    • Служба підтримки
    • Планування
    • Призначення
    Продуктивність
    • Обговорення
    • Схвалення
    • IoT
    • IP-телефонія
    • База знань
    • WhatsApp
    Сторонні модулі Odoo Studio Платформа Odoo Cloud
  • Сфери
    Роздрібна торгівля
    • Книжковий магазин
    • Магазин одягу
    • Магазин меблів
    • Продуктовий магазин
    • Магазин будівельних матеріалів
    • Магазин іграшок
    Food & Hospitality
    • Бар та паб
    • Ресторан
    • Фастфуд
    • Guest House
    • Дистриб'ютор напоїв
    • Hotel
    Нерухомість
    • Real Estate Agency
    • Архітектурна фірма
    • Будівництво
    • Управління нерухомістю
    • Садівництво
    • Асоціація власників нерухомості
    Консалтинг
    • Бухгалтерська компанія
    • Партнер Odoo
    • Агенція маркетингу
    • Юридична фірма
    • Придбання Талантів
    • Аудит та сертифікація
    Виробництво
    • Textile
    • Metal
    • Меблі
    • Їжа
    • Brewery
    • Корпоративні подарунки
    Здоров'я & Фітнес
    • Спортивний клуб
    • Оптика
    • Фітнес-центр
    • Практики здоров'я
    • Аптека
    • Салон краси
    Trades
    • Ремонтник
    • IT-обладнання та Підтримка
    • Системи сонячної енергії
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Інші
    • Nonprofit Organization
    • Екологічна агенція
    • Оренда білбордів
    • Фотографія
    • Лізинг велосипедів
    • Реселлер програмного забезпечення
    Browse all Industries
  • Спільнота
    Навчання
    • Навчальний посібник
    • Документація
    • Сертифікації
    • Тренування
    • Блог
    • Подкаст
    Сприяйте Освіті
    • Програма навчання
    • Бізнес гра Scale Up!
    • Відвідайте Odoo
    Отримайте програмне забезпечення
    • Завантаження
    • Порівняйте версії
    • Релізи
    Співпрацюйте
    • Github
    • Форум
    • Події
    • Переклади
    • Стати партнером
    • Services for Partners
    • Зареєструйте вашу бухгалтерську фірму
    Отримайте послуги
    • Знайдіть партнера
    • Знайдіть бухгалтера
    • Зустріньтеся з консультантом
    • Послуги з впровадження
    • Референси клієнтів
    • Підтримка
    • Оновлення
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Отримати демо
  • Ціни
  • Допомога

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Бухоблік
  • Склад
  • PoS
  • Проект
  • MRP
All apps
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
All Posts Люди Значки
Мітки (View all)
odoo accounting v14 pos v15
Про цей форум
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
All Posts Люди Значки
Мітки (View all)
odoo accounting v14 pos v15
Про цей форум
Допомога

list index out of rangeparagraph text u'<para></font></para>' caused exception"

Підписатися

Отримуйте сповіщення про активність щодо цієї публікації

Це запитання позначене
rmlopenofficereportsxwopenerp7
4 Відповіді
7055 Переглядів
Аватар
Rihene

Please friends!!

I have tried to create a new report through OpenOffice.

So i have created my .sxw file the converted it to rml but the problem is that when i click on PRINT to get the report, i have this error:

list index out of rangeparagraph text u'&lt;para></font></para>' caused exception"

and here is all the source:


2015-08-25 13:31:48,910 26960 ERROR company openerp.service.web_services: Exception: list index out of rangeparagraph text u'<para></font></para>' caused exception

Traceback (most recent call last):

File "/opt/openerp/v7/server/openerp/service/web_services.py", line 712, in go

(result, format) = obj.create(cr, uid, ids, datas, context)

File "/opt/openerp/v7/server/openerp/report/report_sxw.py", line 442, in create

fnct_ret = fnct(cr, uid, ids, data, report_xml, context)

File "/opt/openerp/v7/server/openerp/report/report_sxw.py", line 511, in create_source_pdf

return self.create_single_pdf(cr, uid, ids, data, report_xml, context)

File "/opt/openerp/v7/server/openerp/report/report_sxw.py", line 533, in create_single_pdf

pdf = create_doc(etree.tostring(processed_rml),rml_parser.localcontext,logo,title.encode('utf8'))

File "/opt/openerp/v7/server/openerp/report/interface.py", line 206, in create_pdf

obj.render()

File "/opt/openerp/v7/server/openerp/report/render/render.py", line 59, in render

self._result = self._render()

File "/opt/openerp/v7/server/openerp/report/render/rml.py", line 41, in _render

return rml2pdf.parseNode(self.rml, self.localcontext, images=self.bin_datas, path=self.path,title=self.title)

File "/opt/openerp/v7/server/openerp/report/render/rml2pdf/trml2pdf.py", line 1032, in parseNode

r.render(fp)

File "/opt/openerp/v7/server/openerp/report/render/rml2pdf/trml2pdf.py", line 328, in render

pt_obj.render(el)

File "/opt/openerp/v7/server/openerp/report/render/rml2pdf/trml2pdf.py", line 1003, in render

fis += r.render(node_story)

File "/opt/openerp/v7/server/openerp/report/render/rml2pdf/trml2pdf.py", line 897, in render

return process_story(node_story)

File "/opt/openerp/v7/server/openerp/report/render/rml2pdf/trml2pdf.py", line 890, in process_story

flow = self._flowable(node)

File "/opt/openerp/v7/server/openerp/report/render/rml2pdf/trml2pdf.py", line 766, in _flowable

result.append(platypus.Paragraph(i, style, **(utils.attr_get(node, [], {'bulletText':'str'}))))

File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paragraph.py", line 987, in __init__

self._setup(text, style, bulletText or getattr(style,'bulletText',None), frags, cleanBlockQuotedText)

File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paragraph.py", line 1009, in _setup

style, frags, bulletTextFrags = _parser.parse(text,style)

File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paraparser.py", line 1151, in parse

annotateException('paragraph text %s caused exception' % ascii(text))

File "/usr/lib/python2.7/dist-packages/reportlab/lib/utils.py", line 1338, in annotateException

rl_reraise(t,v,b)

File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paraparser.py", line 1149, in parse

self.feed(text)

File "/usr/lib/python2.7/HTMLParser.py", line 117, in feed

self.goahead(0)

File "/usr/lib/python2.7/HTMLParser.py", line 163, in goahead

k = self.parse_endtag(i)

File "/usr/lib/python2.7/HTMLParser.py", line 401, in parse_endtag

self.handle_endtag(elem)

File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paraparser.py", line 1185, in handle_endtag

end()

File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paraparser.py", line 834, in end_para

self._pop()

File "/usr/lib/python2.7/dist-packages/reportlab/platypus/paraparser.py", line 986, in _pop

frag = self._stack[-1]

IndexError: list index out of rangeparagraph text u'<para></font></para>' caused exception

2015-08-25 13:31:48,928 26960 ERROR company openerp.netsvc: list index out of rangeparagraph text u'<para></font></para>' caused exception

(<type 'exceptions.IndexError'>, IndexError("list index out of rangeparagraph text u'<para></font></para>' caused exception",), <traceback object at 0x7f23f439aef0>)

Traceback (most recent call last):

File "/opt/openerp/v7/server/openerp/netsvc.py", line 296, in dispatch_rpc

result = ExportService.getService(service_name).dispatch(method, params)

File "/opt/openerp/v7/server/openerp/service/web_services.py", line 654, in dispatch

res = fn(db, uid, *params)

File "/opt/openerp/v7/server/openerp/service/web_services.py", line 760, in exp_report_get

return self._check_report(report_id)

File "/opt/openerp/v7/server/openerp/service/web_services.py", line 738, in _check_report

netsvc.abort_response(exc, exc.message, 'warning', exc.traceback)

File "/opt/openerp/v7/server/openerp/netsvc.py", line 71, in abort_response

raise openerp.osv.osv.except_osv(description, details)

except_osv: (u"list index out of rangeparagraph text u'<para></font></para>' caused exception", (<type 'exceptions.IndexError'>, IndexError("list index out of rangeparagraph text u'<para></font></para>' caused exception",), <traceback object at 0x7f23f439aef0>))

Please, who can help me know the source of this error.

please help


0
Аватар
Відмінити
Аватар
Axel Mendoza
Найкраща відповідь

this could be resolved by change this:

<para></font></para> 

to this

<para></font> </font></para> 

that fix the error

1
Аватар
Відмінити
Shawn Varghese

I think it should actually by: The slash '/' represents a closing tag. So it must have a corresponding opening tag.

Axel Mendoza

and something inside in the case of the font tag, even an space works

Аватар
Nevpro (www.nevprobusinesssolutions.com)
Найкраща відповідь

I would like to know more details about reportlab version.

This is clearly an issue with reportlab package.Check the version and  If it is version 3.1,then kindly degrade the it to version 2.6. Restart the server and then try to print the report. You can check the link "http://www.nevprobusinesssolutions.com/error-list-index-out-of-rangeparagraph-text-ucaused-exception/"

Hope it  solves your problem.

1
Аватар
Відмінити
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Реєстрація
Related Posts Відповіді Переглядів Дія
How to position result on the horizontal? Вирішено
rml report openerp7
Аватар
1
вер. 15
4006
How to add all the employees in an rml report??
rml report openerp7
Аватар
Аватар
4
серп. 15
4301
Couldnt load openerp report designer
rml report openerp7
Аватар
0
серп. 15
3410
How to write some text before footer in sxw report ?
openoffice report sxw
Аватар
0
бер. 15
4598
can we change rml file to sxw ?
rml report sxw
Аватар
Аватар
Аватар
2
бер. 15
7022
Спільнота
  • Навчальний посібник
  • Документація
  • Форум
Open Source
  • Завантаження
  • Github
  • Runbot
  • Переклади
Послуги
  • Хостинг Odoo.sh
  • Підтримка
  • Оновлення
  • Кастомні доробки
  • Навчання
  • Знайдіть бухгалтера
  • Знайдіть партнера
  • Стати партнером
Про нас
  • Наша компанія
  • Торгові активи
  • Зв'яжіться з нами
  • Вакансії
  • Події
  • Подкаст
  • Блог
  • Клієнти
  • Юридичні документи • Конфіденційність
  • Безпека
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo - це набір програм для роботи з відкритим кодом, які охоплюють всі ваші потреби компанії: CRM, електронна комерція, бухгалтерський облік, склад, точка продажу, управління проектами тощо.

Унікальна пропозиція Odoo - це одночасно дуже проста у використанні та повністю інтегрована.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now