ANTOINE HUVELLE
Integrating OpenERP with
Google
28/06/13OpenDays 2013
Agenda
A bit of Theory
Use of Spreadsheets
28/06/13OpenDays 2013
A bit of Theory
Module available on version trunk in
https://code.launchpad.net/~openerp-
dev/openobject-addons/trunk-goo...
A bit of Theory
Three methods available:
– oe_settings (through wizard): allow to connect to
your server
– oe_browse: All...
A bit of Theory
Beware of the syntax
– =oe_browse("crm.lead"; "name user_id
country_id planned_revenue probability";
"["&...
A bit of Theory
Beware of the syntax
– =oe_read_group("crm.lead", "create_date
country_id user_id _count planned_revenue"...
Exercices
Connect to your server
Fetch the partners through oe_browse
Add a domain
Add a sorting order
Add a limit
=o...
Exercices
Fetch the stock.move data with oe_read_group
Group by product_id
=oe_browse("object model"; "field_1
field_2";...
Upcoming SlideShare
Loading in …5
×

Advanced reporting with Google spreadsheets integration. Antoine Huvelle, OpenERP

4,811 views

Published on

1 Comment
5 Likes
Statistics
Notes
  • When I try this I get: fout: TypeError: Cannot call method 'indexOf' of undefined. (line 336, file 'Code'). Is there an error in the script?
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total views
4,811
On SlideShare
0
From Embeds
0
Number of Embeds
269
Actions
Shares
0
Downloads
122
Comments
1
Likes
5
Embeds 0
No embeds

No notes for slide

Advanced reporting with Google spreadsheets integration. Antoine Huvelle, OpenERP

  1. 1. ANTOINE HUVELLE Integrating OpenERP with Google 28/06/13OpenDays 2013
  2. 2. Agenda A bit of Theory Use of Spreadsheets 28/06/13OpenDays 2013
  3. 3. A bit of Theory Module available on version trunk in https://code.launchpad.net/~openerp- dev/openobject-addons/trunk-google_spreadsheet- dle Can be used without module on other versions as soon as you have the scripts for Google Docs Available on pad.openerp.com/p/gdoc_spreadsheet_script Add as a new script on your Google Doc Spreadsheet 28/06/13OpenDays 2013
  4. 4. A bit of Theory Three methods available: – oe_settings (through wizard): allow to connect to your server – oe_browse: Allow reading information inside OpenERP's table – oe_read_group: Allow reading information and grouping according to specific criteria Used as methods inside the spreadsheets 28/06/13OpenDays 2013
  5. 5. A bit of Theory Beware of the syntax – =oe_browse("crm.lead"; "name user_id country_id planned_revenue probability"; "["&IF(ISBLANK(B5),"","['channel_id','ilike','"&B 5&"'],")&IF(ISBLANK(B6),"","['categ_ids','ilike','" &B6&"'],")&"['user_id','ilike','"&B11&"'], ['country_id','ilike','"&C11&"'],['state', 'not in', ['done','close', 'cancel']]['planned_revenue', '>', 0],['probability', '>', 0]]"; "planned_revenue desc" ; 5) 28/06/13OpenDays 2013
  6. 6. A bit of Theory Beware of the syntax – =oe_read_group("crm.lead", "create_date country_id user_id _count planned_revenue", "create_date country_id user_id", "[['create_date', '>=', '"&'Leads Analysis'!B4&"- 01-01'],['create_date', '!=', false]]"; "";3 ) 28/06/13OpenDays 2013
  7. 7. Exercices Connect to your server Fetch the partners through oe_browse Add a domain Add a sorting order Add a limit =oe_browse("object model"; "field_1 field_2"; "domain"; "orderby"; limit) 28/06/13OpenDays 2013
  8. 8. Exercices Fetch the stock.move data with oe_read_group Group by product_id =oe_browse("object model"; "field_1 field_2";”first_group_by second_group_by” "domain"; "orderby"; limit) 28/06/13OpenDays 2013

×