Demo data for dashboards

bzr revid: pinky-c4195829aadb9c8493917667c06cb2680befcc25
This commit is contained in:
pinky 2007-01-02 22:40:07 +00:00
parent d1f0543471
commit 95451ee409
7 changed files with 65 additions and 8 deletions

View File

@ -0,0 +1,40 @@
name,code,date_start,date,quantity_max,parent_id
Absences,001,,,,
Internal,002,,,,
Our Super Product,100,,,,
Project 1,101,,,,
Project 2,102,,,,
Trainings,004,,,,Internal
In House,001,,,,Trainings
Online,002,,,,Trainings
Support,Support,,,,Our Super Product
Partners,Partners,,,,Support
Customers,Customers,,,,Support
Internal,003,,,,Support
Integration,Integration,,,,Our Super Product
Consultancy,004,,,,Our Super Product
Trainings,005,,,,Our Super Product
Seagate P1,001,,,,Integration
Seagate P2,002,,,,Integration
Magasin BML 1,003,,,,Integration
Camp To Camp,007,2006-08-07,2007-12-31,,Integration
Agrolait,003,,,,Customers
Asustek,004,,,,Customers
DistriPC,007,,,,Customers
Sednacom,002,2005-05-09,2006-05-08,,Partners
Thymbra,003,2006-01-02,2006-07-02,,Partners
Leclerc,010,2006-04-24,2007-04-24,,Partners
Desertic - Hispafuentes,012,2006-02-01,2007-02-01,,Partners
Tiny AT Work,015,,,,Partners
Camp to Camp,021,2006-08-08,2007-08-08,,Partners
Support,001,,,,Project 2
Development,002,,,,Project 2
Trainings,001,,,,Project 1
Development,002,,,,Project 1
Administratif,001,,,,Internal
Commercial & Marketing,002,,,,Internal
Our Super Product Development,003,,,,Internal
Stable,001,,,,Our Super Product Development
Trunk,002,,,,Our Super Product Development
Paid,001,,,,Absences
Unpaid,002,,,,Absences
1 name code date_start date quantity_max parent_id
1 name code date_start date quantity_max parent_id
2 Absences 001
3 Internal 002
4 Our Super Product 100
5 Project 1 101
6 Project 2 102
7 Trainings 004 Internal
8 In House 001 Trainings
9 Online 002 Trainings
10 Support Support Our Super Product
11 Partners Partners Support
12 Customers Customers Support
13 Internal 003 Support
14 Integration Integration Our Super Product
15 Consultancy 004 Our Super Product
16 Trainings 005 Our Super Product
17 Seagate P1 001 Integration
18 Seagate P2 002 Integration
19 Magasin BML 1 003 Integration
20 Camp To Camp 007 2006-08-07 2007-12-31 Integration
21 Agrolait 003 Customers
22 Asustek 004 Customers
23 DistriPC 007 Customers
24 Sednacom 002 2005-05-09 2006-05-08 Partners
25 Thymbra 003 2006-01-02 2006-07-02 Partners
26 Leclerc 010 2006-04-24 2007-04-24 Partners
27 Desertic - Hispafuentes 012 2006-02-01 2007-02-01 Partners
28 Tiny AT Work 015 Partners
29 Camp to Camp 021 2006-08-08 2007-08-08 Partners
30 Support 001 Project 2
31 Development 002 Project 2
32 Trainings 001 Project 1
33 Development 002 Project 1
34 Administratif 001 Internal
35 Commercial & Marketing 002 Internal
36 Our Super Product Development 003 Internal
37 Stable 001 Our Super Product Development
38 Trunk 002 Our Super Product Development
39 Paid 001 Absences
40 Unpaid 002 Absences

View File

@ -151,10 +151,10 @@ class account_analytic_account(osv.osv):
account = self.search(cr, uid, [('code', '=', name)]+args)
if not account:
account = self.search(cr, uid, [('name', 'ilike', '%%%s%%' % name)]+args)
newacc = account
while newacc:
newacc = self.search(cr, uid, [('parent_id', 'in', newacc)]+args)
account+=newacc
newacc = account
while newacc:
newacc = self.search(cr, uid, [('parent_id', 'in', newacc)]+args)
account+=newacc
return self.name_get(cr, uid, account, context=context)
account_analytic_account()

View File

@ -62,7 +62,6 @@ class board_note(osv.osv):
'note': fields.text('Note'),
'user_id': fields.many2one('res.users', 'Author', size=64),
'date': fields.date('Date', size=64, required=True),
'type': fields.char('Note type', size=64),
'type': fields.selection(_type_get, 'Note type', size=64),
}
_defaults = {

View File

@ -8,7 +8,7 @@
// Demo user startup menu
//
<record model="ir.ui.view_sc" id="sc_account_dash">
<field name="name">Project dashboard</field>
<field name="name">project dashboard</field>
<field name="user_id" ref="base.user_admin"/>
<field name="resource">ir.ui.menu</field>
<field name="sequence">3</field>
@ -18,5 +18,11 @@
<field name="action_id" ref="open_board_project"/>
</record>
<record model="board.note" id="note_project">
<field name="name">Don't forget the new development policies.</field>
<field name="user_id" ref="base.user_admin"/>
<field name="type">Project</field>
</record>
</data>
</terp>

View File

@ -0,0 +1,10 @@
amount,date,name,unit_amount,account_id,product_id,product_uom_id,user_id,journal_id,general_account_id
-240.0,2007-01-02,Letters,8.0,Administratif,DEV,Hour,admin,Timesheet Journal,%
-120.0,2007-01-03,Support by phone,4.0,Seagate P1,DEV,Hour,admin,Timesheet Journal,%
-120.0,2007-01-03,Support,4.0,Seagate P2,DEV,Hour,admin,Timesheet Journal,%
-240.0,2007-01-04,Repport on this,8.0,Seagate P1,DEV,Hour,admin,Timesheet Journal,%
-240.0,2007-01-05,Repport on that,8.0,Seagate P1,DEV,Hour,admin,Timesheet Journal,%
-240.0,2007-01-08,Phone support,8.0,Sednacom,DEV,Hour,admin,Timesheet Journal,%
-210.0,2007-01-09,Phone support on reporting engine,7.0,Camp To Camp,DEV,Hour,admin,Timesheet Journal,%
-240.0,2007-01-10,Quotation 234 done,8.0,Agrolait,DEV,Hour,demo,Timesheet Journal,%
-240.0,2007-01-11,Quotation 356,8.0,Agrolait,DEV,Hour,admin,Timesheet Journal,%
1 amount date name unit_amount account_id product_id product_uom_id user_id journal_id general_account_id
1 amount date name unit_amount account_id product_id product_uom_id user_id journal_id general_account_id
2 -240.0 2007-01-02 Letters 8.0 Administratif DEV Hour admin Timesheet Journal %
3 -120.0 2007-01-03 Support by phone 4.0 Seagate P1 DEV Hour admin Timesheet Journal %
4 -120.0 2007-01-03 Support 4.0 Seagate P2 DEV Hour admin Timesheet Journal %
5 -240.0 2007-01-04 Repport on this 8.0 Seagate P1 DEV Hour admin Timesheet Journal %
6 -240.0 2007-01-05 Repport on that 8.0 Seagate P1 DEV Hour admin Timesheet Journal %
7 -240.0 2007-01-08 Phone support 8.0 Sednacom DEV Hour admin Timesheet Journal %
8 -210.0 2007-01-09 Phone support on reporting engine 7.0 Camp To Camp DEV Hour admin Timesheet Journal %
9 -240.0 2007-01-10 Quotation 234 done 8.0 Agrolait DEV Hour demo Timesheet Journal %
10 -240.0 2007-01-11 Quotation 356 8.0 Agrolait DEV Hour admin Timesheet Journal %

View File

@ -3,7 +3,7 @@
"version" : "1.0",
"author" : "Tiny",
"website" : "http://tinyerp.com",
"depends" : ["account"],
"depends" : ["account","hr_timesheet_invoice"],
"category" : "Generic Modules/Account",
"description": "A module that adds new reports based on analytic accounts.",
"init_xml" : [],

View File

@ -7,7 +7,9 @@
"category" : "Generic Modules/Accounting",
"description": "A report on analytic lines, costs by products, months and accounts.",
"init_xml" : [],
"demo_xml" : [],
"demo_xml" : [
"report_account_analytic.planning.csv"
],
"update_xml" : [
"report_analytic_line_view.xml",
"report_analytic_planning_view.xml",