cowinbuy.com can busbar with paxil cause more anxiety how to get sertraline without insurance carlosfloresmusic.com magenschmerzen von misoprostol is it safe to take zinc supplements with lisinopril can you mix rizatriptan with ibprophin cheap cialis 5mg is ondansetron gluten free difference bupropion hcl xl and xl anafranil 25 mg libido does clonidine potentiate the euphoria high of tramadol drconev.pl magkano ang amoxicillin 500 na generic doxycycline dosage amount for dogs stlsoccer.net aasoc.pl clomiphene citrate 300 mg ywdtx.com oral acyclovir along with doxycycline erythromycin 250mg tablets secretlives.me does fluconazole affect the pill yalovadaarsa.com prednisone dose pack dosing buy phenergan syrup online covenantofpoppies.com emberdomme.com metformin hcl old project thesis meloxicam precio cost voltaren gel 100g lisinopril 10 mg benefits digoxin pharmacotherapeutic doxycycline hyclate for acne diltiazem 100 mg azithromycin 250 mg no alcohol does doxycycline monohydrate work for chylamidia disadvantages of use of metronidazole in infants ip 272 bactrim dzidzior.pl dickhopper.com ciesielstwokukulak.com.pl colchicine cause dry mouth skale.it aasoc.pl will taking a half of lisinopril hurt you buy valtrex 1 gm tabs in india where can i buy ketoconazole cream 2 precio misoprostol costa rica springracinginsights.com delite.cn kegunaan flagyl forte levitra 10 mg precio espa?±a delite.cn montelukast costco desyrel 100 mg fiyat doxazosin 4 mg side effects lipitor off patent pricing meloxicam street price 7.5 m aasoc.pl very cheap viagra panoramainternetu.pl doxycycline hyc for sinus infection ivermectin on chickens reviews eastriverpartners.info tamoxifen citrate nolvadex for sale does lexapro make you crave carbohydrates secretlives.me plavix 300 mg daily seroquel xr 150 mg weight gain how long will zofran last punkfiction.com o e que cytotec modo de usar sildenafil spray how long does fluconazole work for menr zovirax generic egyptereizen.org what is the minimum duration to take doxycycline is a loss of appetite a good or bad sign taking clomid can dogs take atarax itching contraindications of doxycycline lasix albumin drip protocol wellbutrin with cymbalta reviews sildenafil citrate tablets cobra 120 diets in urdu uk viagra paypal naproxen bp 500mg price use of ciprotab in pregnancy 300 mcg synthroid is this a high dose can i take valtrex with aldactone arimidex cost australia lamisil for diaper rash effient vs plavix side effects telmisartan product monograph pdf how many gabapentin 300 mg to get high ywdtx.com celebrex vs ibuprofen 800 emberdomme.com bactrim 480mg antibiotic gel for gums secretlives.me flagyl dosage 125 ubat propranolol 20mg gabapentin for ambien weaning cat antibiotics without a presciption vitaroom.net brand levitra ellinika voltaren 50 mg obat apa can vibramycin effect periods indomethacin 25mg cap flagyl 400 h na escitalopram oxalate v citalopram viagra super ed trial pack how much does generic seroquel cost dzidzior.pl xn--b1afpdqbb8d.xn--p1ai hyzaar price rizatriptan odt msds what does buspar help with terbinafine tablets in saudi arabia how much is misoprostol in kenya using adderall and celexa together blackisbusiness.info california-employment-lawyers.com 1 mg albuterol 1 yr bollywoodinformer.com spanish clomiphene instructions upperbe.it doxycycline 100 in dentistry is lexapro good for ruminating thoughts doxycycline for lyme disease in dogs doses dosage metronidazole for cat pros and cons of taking alendronate weekly or daily can a nursing take ciprotab 500 ondansetron 153 cara memakai flagyl 0.5 metronidazole do you take suprax 200 mg and zithromax 500 for std avmdtogo.org metoprolol tart 25 mg side effects can u drenk redbull while takeing azithromycin clinica que use cytotec costa rica one time prednisone dose can i buy tadalafil in turkey 4kom.it arman-crusher.com zovirax 200 topamax and gabapentin together olmesartan 20 mg tablets brands is safe to take sleeping pill after i took zoloft does metronidazole 500 mg contradict with claritin d 200 mg strattera too much what is dapoxetine slidenafil tablets use for acyclovir for herpes simplex quanitity 30 pills drugprevent.org.uk prednisone vs medrol dose pack treatment where can i buy cialis in singapore gambar obat misoprostol cytotex.com what happens if you take 2 5mg zyprexa accutane online zoloft 50 mg user reviews can u take ciprofloxacin hcl 250 if pregnant bactrim and doxycycline together avmdtogo.org dodoku.com antibiotics you can buy online using medicaid dces.net.pl ciprofloxacin 250 mg urinary tract infection montelukast sodium 10mg tablet mixing with alcohol diovan and bystolic and leg cramps pantoprazole sandoz 40 mg vs nexium becterial infection on panis augmentin 625 can metronidazole benzoate be prescribed for ferrets oxytetracycline powder dosage for cats eastriverpartners.info does chamomile interact with sertraline generic levitra sale medroxyprogesterone shot cost nolvadex pharmaceuticals ab drhildaong.com side effects of going off topamax doxepin 5 mg filmtabl pazarlamacadisi.com taking lisinopril long term how long does it take for metronidazole to work in men azithromycin dosage chart for strep throat ciesielstwokukulak.com.pl tabl bactrim dosis commk side effects of ciprotab to a woman generic lasix images mutien.be punkfiction.com hydroxyzine hcl for anxiety cardiomyopathy and allergic reaction to amoxicillin eastsidefoundation.pl effect of lisinopril on pulse rate 555fs.com hanhvyshop.vn buy kamagra oral jelly uk epc-geophysics.com ohip antidepressants premarin cream side effects pills effects of premarin on males ascbelfast.com can you take penicillin and amoxicillin abscessed tooth ascbelfast.com injection augmentin nursing responsibility similarities in augmentin 625 and winex 200 redcaymanmedia.com cflailesi.org valsartan 320 mg tablets cialis online purchase why is acyclovir ointment so expensive drconev.pl buspar dopamin zovirax 800 mg dose use of yougrt with vibramycin effects avastan.pl cowinbuy.com originator of montelukast alli 120mg diet pill lisinopril withdrawal side effects can i take metforming and clomid anytime em2nt.net aneyron.com atorvastatin ip muallimkoyosgb.com ondansetron odt 4 mg high gabapentin uses india nizoral shampoo without sls celexa no prescription needed take amoxicillin 1000mg during pregnancy metformin price per ten tablet amoxicillin over the counter at wallmart, laredo, tx generic fluoxetine for dogs esteponasurgery.com freelancer.info.pl dapoxetine drug summary in bangladesh cerisdieventi.com es08.com akademia-active.pl brtop.net ciprofloxacin vs zithromax ear infection does teva escitalopram get you high egyptereizen.org THUMBUY.COM plan to wean off prednisone for dog does meloxicam get you high piriton or phenergan best for head cold can ranitidine and gabapentin be taken at the same time propecia cost cvs zoloft 300 mg dosage price propecia singapore purchase cialis on line how long does it take metoprolol er to work thailand amoxicillin nizoral shampoo pret iranstrick-tiregroup.com dosage of propecia 5mg fluconazole 100mg price how much trazodone and alchole mixed to kill someone generic escitalopram vs brand lexapro nizoral shampoo for hair loss walgreens deserteichler.com very strong viagra for women precio del misoprostol en farmaciad del ahorro lamisil tablets no prescription uk atorvastatin 20 mg para que se usa diflucan dose for tinea versicolor valtrex 500 42 michelamarchiotto.com para que sirve montelukast 4mg chew tabs amiodarone 400 mg tds naprosyn gel 500 lawonline.co.il panoramainternetu.pl 007 viagra dosis pemakaian furosemide 40 mg clonidine vs adderall 50mg jual cytotec jogja efect of tamoxifen soft gelatin capsules 40 mg fineova ultrasound on 9th day of cycle during clomid round competitor of glimepiride isoptin 80 mg 50 film tablet effects of sildenafil citrate mtm 100 on women atorvastatin and shoulder pain drukarniaupi.pl robertjszmidt.pl buy generic olanzapine cardizem cd 90 mg side effects of 0.6 dosage of premarin lieu dung augmentin coritensil 6.25 carvedilol precio revista 400 cara kerja glucophage xr lisinopril interactions tylenol aleve metoprolol 25 mg tablets can i take antacid with lexapro ativan kamagra 100mg buy from india doxazosin 4mg in india tamoxifen uterine cancer lawsuits cialis dosage canada nizoral shampo men hair loss review cialis canada prie daily use shoppers drug mart voltaren rapid bula side effects of levaquin antibiotic on human testicles metronidazole mercury day 3 clomid side effects can you have multiple orgasms while on cialis were can u get the cytotec pills here in south africa metoprolol take with food amoxicillin take three times daily every how much hours luvox tab price fluoxetine sale online meloxicam 7.5 and zantac interaction avapro 300 mg cost cymbalta coupon amoxicillin in walmart misoprostol 0.2 mg em portugues coumadin clinic tucson az amoxicillin brand price philippines ondansetron m 734 drugprevent.org.uk MASTERRAFTING.COM csipropertyservices.com dexamethasone medscape buy generic viagra canada online liquid tamoxifen citrate storage metronidazole where to buy it in south africa metoprolol er 75 mg does generic cialis work the same parachuting neurontin avodart no prescription inkafarma vende cytotec can pepcid ac be taken when taking advil antibiotic lisinopril 2.5mg tablet whatisitfor side effects of cozaar comp medication how to buy clomid in malaysia viagra from canada sale clopidogrel bisulfate vs advil can u get a similar otc gabapentin furosemide 40 mg with paypal fexofenadine 30 ywdtx.com cymbalta fibromyalgia what to expect bemylight.org cowinbuy.com metronidazole 300mg as benzoylmetronidazole lipitor 10 mg 90 tablet eko-laser.org.pl ywdtx.com iranstrick-tiregroup.com ywdtx.com meloxicam 80 actos 15 mg 28 film tablet natural sources side effects of cabergoline buy viagra online australia legally dodoku.com ketoconazole cream 2 mexico can i take 2 viagra pills in one day is ciprofloxacin ok for premed bridgehousemedia.com buy priligy paypal iranstrick-tiregroup.com muallimkoyosgb.com DORREAJATETXEA.COM put away the viagra eat these foods nizoral stockists uk torsemide vs lasix po dosing accommodationmadeasy.com buy amoxil dogs gelernt.net eude.es can you shoot up strattera 60 mg panoramainternetu.pl buy discount viagra on the internet 812222.com mhc-s.com antidepressants body adjusted synthroid 25 mg daily celebrex metatoporol lisinipril kamagra oral jelly review women cialis better on empty stomach neurontin ja rivatril carlosfloresmusic.com bupropion and weight gain how much does diflucan cost without insurance rwmeierlaw.com glucophage 500 mg 100 film tablet thuoc zithromax 200mg 5ml suspension ansbach-direkt.de will 120 mg of baclofen get you high thuoc naproxen 250mg package insert amoxicillin teva pharaceuticals what prescription drugs work well with adderall fexofenadine price cvs hydroxyzine hcl moodiness take cytotec orally endometrial biopsy busy-autokary-wynajem.pl fluconazole for oral thrush para que es meloxicam 7.5mg does cipro 500 delay mensturation amitriptyline hcl 25 mg and synthroid 150 mg movix meloxicam 75 harga obat acyclovir cream generik ondansetron oral solution ip emigo diflucan dosage for yeast infection for men obat misoprostol 0.2 mg modo de uso de las pastillas de cytotec misoprostol prednisone and progesterone nih 3 follicles chance of multiples with femara atomoxetine reviews how to use misoprostol 4weeks into pregnancy can i take nyquil with my synthroid in the morning allcoinreviews.org cost of lexapro 20 mg without insurance should vibramycin capsule be given to hens propranolol anxiety dosage 20mg erythromycin powder for pigeons interaction with thyroxine mobic foodloversheaven.com freelancer.info.pl skale.it asiliahomehealth.com 60 mg cialis reviews how much is lexapro without insurance gabapentin 300 in dubai what is a substitute antibiotic for flagyl estradiol with or without food emberdomme.com bemylight.org ncsdsample2.docbro.com celibar.pl synthroid 137 ingredients where can i buy cialis in los angeles is ketoconazole cream a corticosteroid are flagyl and zosyn compatible kmmvin.eu inderal 40 mg price olanzapine sleep same time 1 cialis and 1 levitra q2melbourne.com DORREAJATETXEA.COM generic can you buy azithromycin over the counter aster-m.com misoprostol en ecatepec hiccups with amoxicillin uk 1 drop for erectile dysfunction in pakistan prnc.tv reversing seroquel side effects spacecityparent.com fake viagra singapore bupropion works on the ne system adiconsult.pl bmmpm.com sertraline hcl 100 mg cost bukitpinus.com etoricoxib o celecoxib para que sirve can i take mobic and percocet eloco.pl how to dissolve a viagra erection bemylight.org normal dosage of prednisone for poison ivy septra ds and alcohol shelf life of clozapine can fluconazole capsules lower sperm count how much phenergan for dogs ativan percocet elavil montelukast sodium usp canada viagra shipping tab inderal 50mg use do cyproheptadine s a bodybuilding 812222.com is 1000 ml of amoxicillin does it make you drowsy fluconazole mum ywdtx.com what is baclofen used for street value order lisinopril canada segtucson.com citalopram hbr 40 mg and pregnancy ciprofloxacin borreliose amlodipine20mg dose novartis voltaren 25mg suppos certificate of analysis can a muscle relaxant improve erection how much doxycycline do dogs taje for bronchitis csipropertyservices.com kegunaan obat digoxin 0.25 mg viagra has stopped working panama erection gel generic bupropion xl reviews phenergan 25 mg suppository dosage accommodationmadeasy.com cytotec pastillas en londres can i take flagyl without food watery discharge 10 days after taking clomid zovirax 200mg tablet isotretinoin price philippines ondansetron 8mg tab effect for pregnant women is cipro 500 mg good for toothach to much azithromycin while pregnant panoramainternetu.pl directmobility.co.uk

You are hereOpenerp: Wizard for exporting to excel

Openerp: Wizard for exporting to excel


By sean - Posted on 19 May 2010

 

Wizard

To do: Expalin the code below....

 

[Update 21.jun'10:
- There was a bug in the webinterface when downloading the excel file, see https://bugs.launchpad.net/openobject-client-web/+bug/591102 , hopefully the fix will be included in 5.0.12.
- This example use a classical wizard, it can also be be using osv_memory ... must add an example

}

In the modules view xml, create a wizard and menu item that calls it:

<wizard string="My Excel export" model="ti.my" id="wizard_ti_my_excel" name="ti.my.excel"    />
<menuitem name="My/Excel" id="menu_my_excel" action="wizard_ti_my_excel" type="wizard" sequence="40"/>

Create the ".py" file with the wizard class:
import StringIO
import base64
from   osv import osv, fields
import pooler
import wizard
import csv
import pprint

...
class wiz_ti_my_excel(wizard.interface):
...
    view_form_finish="""<?xml version="1.0"?>
<form string="Export list">
    <image name="gtk-dialog-info" colspan="2"/>
    <group colspan="2" col="4">
        <separator string="Export to Excel" colspan="4"/>
    <field name="data" readonly="1" colspan="3" filename="file_name" />
        <label align="0.0" string="Save this document to a .XLS file and open it with\n Excel." colspan="4"/>
    </group>
</form>"""
    fields_finish={
        'data': {'string':'File', 'type':'binary', 'readonly': True,},
        'file_name':{'string':'File Name', 'type':'char'}
    }
    ## Only one step in this GUI, call the action _get_file
    ## return the result data + file_name and go to end state.
    states={
        'init':{
            'actions': [_get_file],
            'result': {'type': 'form',
                'arch': view_form_finish,
                'fields': fields_finish,
                'state': [ ('end', 'Close', 'gtk-cancel', True) ]
            }
        },
    }
wiz_ti_my_excel('ti.my.excel')


Creating Excel docs

to do

Reading

wizards:

http://doc.openerp.com/developer/3_10_wizard/index.html

Create excel sheets from python

http://ntalikeris.blogspot.com/2007/10/create-excel-file-with-python-my-sort.html

http://files.blog-city.com/files/F05/96843/b/cheatsheet.pdf

http://www.simplistix.co.uk/software/python/xlutils

Tags