hi bino,

You can check the module Hotel in extra-addons 
It has a python file names hotel.py in this there is a class hotel_folio which 
has 
'order_id':fields.many2one('sale.order','order_id',required=True,ondelete='cascade'),
'service_lines': fields.one2many('hotel_service.line','folio_id'),

and also in class hotel_service_line you have 
'service_line_id':fields.many2one('sale.order.line','service_line_id',required=True,ondelete='cascade'),

so this wiil add to the order. and when you confirm this will create an invoice.

hope this helps you.

------------------------
Regards,
Naresh Choksy




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

--
http://www.openobject.com/forum/viewtopic.php?p=48140#48140

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


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

Reply via email to