Hi ,

Done , we need to add one function at sale_order class (master)
and one function at sale_order_line class(detail)
and declare a global variable "line_no"

master class

   def get_init_rep_line_no(self):
                global line_no
                line_no = 0




detail class

        def get_line_no(self):
                global line_no
                line_no = line_no + 1
                return line_no


and update your sxw /report file to call the  get_init_rep_line_no()
and also at the line/row/detail print make sure add another column
which call the get_line_no()
and update your server by calling --update=ALL with the sale.py

Here you go the Item no count !
Hope that help. Thanks.




-------------------- m2f --------------------

--
http://www.openerp.com/forum/viewtopic.php?p=24897#24897

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users

Reply via email to