(self, cr, uid, records, edi_struct=None, context=None)
return edi_doc_list
Overridden to provide sale order line fields with the expected names
           (sale and purchase orders have different column names)
Overridden to provide sale order line fields with the expected names
           (sale and purchase orders have different column names)
Overridden to provide sale order line fields with the expected names ( sale and purchase orders have different column names )
def edi_export(self, cr, uid, records, edi_struct=None, context=None):
        """Overridden to provide sale order line fields with the expected names
           (sale and purchase orders have different column names)"""
        edi_struct = dict(edi_struct or SALE_ORDER_LINE_EDI_STRUCT)
        edi_doc_list = []
        for line in records:
            edi_doc = super(sale_order_line,self).edi_export(cr, uid, [line], edi_struct, context)[0]
            edi_doc['__import_model'] = 'purchase.order.line'
            edi_doc['product_qty'] = line.product_uom_qty
            if line.product_uos:
                edi_doc.update(product_uom=line.product_uos,
                               product_qty=line.product_uos_qty)

            edi_doc_list.append(edi_doc)
        return edi_doc_list
def edi_export ( self , cr , uid , records , edi_struct = None , context = None ) : edi_struct = dict ( edi_struct or SALE_ORDER_LINE_EDI_STRUCT ) edi_doc_list = [ ] for line in records : edi_doc = super ( sale_order_line , self ) . edi_export ( cr , uid , [ line ] , edi_struct , context ) [ 0 ] edi_doc [ '__import_model' ] = 'purchase.order.line' edi_doc [ 'product_qty' ] = line . product_uom_qty if line . product_uos : edi_doc . update ( product_uom = line . product_uos , product_qty = line . product_uos_qty ) edi_doc_list . append ( edi_doc ) return edi_doc_list