~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to sales_followup/sale_followup.py

  • Committer: Olivier DOSSMANN
  • Date: 2011-12-28 15:38:17 UTC
  • mto: This revision was merged to the branch mainline in revision 492.
  • Revision ID: olivier@tempo-laptop-20111228153817-rd119phuevo66e3y
UF-675 [FIX] Engagement lines deletion when a PO is cancelled.

Show diffs side-by-side

added added

removed removed

Lines of Context:
202
202
                    for rfq in line.procurement_id.tender_id.rfq_ids:
203
203
                        if not rfq.rfq_ok:
204
204
                            purchase_ids.append(rfq.id)
205
 
        
 
205
 
206
206
        return purchase_ids
207
207
 
208
208
    def get_purchase_line_ids(self, cr, uid, line_id, purchase_ids, context={}):
261
261
            purchase_ids= [purchase_ids]
262
262
            
263
263
        incoming_ids = []
264
 
        
 
264
 
265
265
        for line in line_obj.browse(cr, uid, line_id, context=context):
266
266
            for po in purchase_obj.browse(cr, uid, purchase_ids, context=context):
267
267
                for po_line in po.order_line:
650
650
        'uom_id': fields.related('line_id', 'product_uom', type='many2one', relation='product.uom', string='UoM', readonly=True),
651
651
        'sourced_ok': fields.function(_get_status, method=True, string='Sourced', type='char', 
652
652
                                   readonly=True, multi='status'),
653
 
        'tender_ids': fields.many2many('tender', 'call_tender_follow_rel',
 
653
        'tender_ids': fields.many2many('tender.line', 'call_tender_follow_rel',
654
654
                                       'follow_line_id', 'tender_id', string='Tender'),
655
655
        'tender_status': fields.function(_get_status, method=True, string='Tender', type='char',
656
656
                                         readonly=True, multi='status'),