75
74
elif context.get('default_type') == 'purchase':
76
75
contract_select = 'all_purchase'
81
80
if contract_select == 'select':
82
81
contract_ids = context.get('active_ids') or []
84
83
contract_ids = contract_obj.search(cr, uid, [('type', '=', contract_select[4:])])
85
84
contract_obj.create_invoice(cr, uid, contract_ids, period_id, date_invoice, context=context)