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

aeroo report csv format for delivery order

By
kim
on 2/4/14, 11:26 PM 894 views

Hi guys,

I got some problem on the ods template coding to regenerate delivery order

like i trying to use python://picking.address its not working

and i get this error message (<type 'exceptions.exception'="">, Exception('Aeroo Reports: Error while generating the report.', UndefinedError('"picking" not defined',), '"picking" not defined', 'For more reference inspect error logs.'), <traceback object="" at="" 0x7f1da45a8320="">)

do there have any others example than the printscreen report?

parser.py

>  from report import report_sxw 
>  from report.report_sxw import rml_parse
>  import lorem 
>  import random
>  import time
> 
>  class Parser(report_sxw.rml_parse):
>  def __init__(self, cr, uid, name, context):
>         super(Parser, self).__init__(cr, uid, name,  context=context)
>         self.localcontext.update({
>             'time': time,
>             'get_product_desc':self.get_product_desc
>         })
>     def get_product_desc(self,move_line):
>         desc = move_line.product_id.name
>         if move_line.product_id.default_code:
>             desc = '[' + move_line.product_id.default_code + ']' + ' ' + desc
>         return desc

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

0 follower(s)

Stats

Asked: 2/4/14, 11:26 PM
Seen: 894 times
Last updated: 3/16/15, 8:10 AM