diff options
| author | Hardik Ansodariy (OpenERP) <han@tinyerp.com> | 2011-07-11 16:53:29 +0530 |
|---|---|---|
| committer | Hardik Ansodariy (OpenERP) <han@tinyerp.com> | 2011-07-11 16:53:29 +0530 |
| commit | 2296b525682da2c6060c95b4d56b75b34a361ddf (patch) | |
| tree | b35cfe7c5e8dee5afedb37f2f5cf9b7ed14c0470 /addons/hr_timesheet | |
| parent | 8ede63ad9d9976cb1688d9a931334de97b46b8cb (diff) | |
[IMP]:improved hr module
bzr revid: han@tinyerp.com-20110711112329-72h3rbgs0n06pzs1
Diffstat (limited to 'addons/hr_timesheet')
| -rw-r--r-- | addons/hr_timesheet/hr_timesheet_data.xml | 12 | ||||
| -rw-r--r-- | addons/hr_timesheet/hr_timesheet_demo.xml | 11 | ||||
| -rw-r--r-- | addons/hr_timesheet/security/ir.model.access.csv | 5 |
3 files changed, 15 insertions, 13 deletions
diff --git a/addons/hr_timesheet/hr_timesheet_data.xml b/addons/hr_timesheet/hr_timesheet_data.xml index 420dcb5a114..1928482957b 100644 --- a/addons/hr_timesheet/hr_timesheet_data.xml +++ b/addons/hr_timesheet/hr_timesheet_data.xml @@ -1,6 +1,18 @@ <?xml version="1.0" encoding="utf-8"?> <openerp> <data> + + <record id="product_consultant" model="product.product"> + <field name="list_price">75.0</field> + <field name="standard_price">30.0</field> + <field name="uom_id" ref="product.uom_hour"/> + <field name="uom_po_id" ref="product.uom_hour"/> + <field name="name">Service on Timesheet</field> + <field name="categ_id" ref="product.cat0"/> + <field name="type">service</field> + <field eval="False" name="purchase_ok"/> + </record> + <record id="analytic_journal" model="account.analytic.journal"> <field name="code">TS</field> <field name="name">Timesheet Journal</field> diff --git a/addons/hr_timesheet/hr_timesheet_demo.xml b/addons/hr_timesheet/hr_timesheet_demo.xml index caaaef12f01..5661813fc51 100644 --- a/addons/hr_timesheet/hr_timesheet_demo.xml +++ b/addons/hr_timesheet/hr_timesheet_demo.xml @@ -2,17 +2,6 @@ <openerp> <data noupdate="1"> - <record id="product_consultant" model="product.product"> - <field name="list_price">75.0</field> - <field name="standard_price">30.0</field> - <field name="uom_id" ref="product.uom_hour"/> - <field name="uom_po_id" ref="product.uom_hour"/> - <field name="name">Service on Timesheet</field> - <field name="categ_id" ref="product.cat0"/> - <field name="type">service</field> - <field eval="False" name="purchase_ok"/> - </record> - <record id="hr.employee" model="hr.employee"> <field name="product_id" ref="product_consultant"/> <field name="journal_id" ref="analytic_journal"/> diff --git a/addons/hr_timesheet/security/ir.model.access.csv b/addons/hr_timesheet/security/ir.model.access.csv index ea34aa4ddc4..3cf9505b60b 100644 --- a/addons/hr_timesheet/security/ir.model.access.csv +++ b/addons/hr_timesheet/security/ir.model.access.csv @@ -1,7 +1,8 @@ "id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" "access_hr_analytic_timesheet","hr.analytic.timesheet","model_hr_analytic_timesheet","base.group_hr_user",1,1,1,1 +"access_hr_analytic_timesheet_employee","hr.analytic.timesheet","model_hr_analytic_timesheet","base.group_user",1,1,1,0 "access_hr_account_analytic_line","account.account.analytic.line","account.model_account_analytic_line","base.group_hr_user",1,1,1,1 -"access_hr_account_analytic_line_employee","account.account.analytic.line employee","account.model_account_analytic_line","base.group_user",1,0,0,0 +"access_hr_account_analytic_line_employee","account.account.analytic.line employee","account.model_account_analytic_line","base.group_user",1,1,1,0 "access_account_analytic_journal","account.account.analytic.journal","account.model_account_analytic_journal","base.group_hr_user",1,1,1,1 "access_product_product_user","product.product user","product.model_product_product","base.group_hr_user",1,1,1,1 "access_product_template_hr_timesheet","product.template.hr.timesheet","product.model_product_template","base.group_hr_user",1,1,1,1 @@ -9,4 +10,4 @@ "access_account_fiscalyear_hr_user","account.account.fiscalyear.user","account.model_account_fiscalyear","base.group_hr_user",1,1,1,1 "hr.access_account_journal_view_hruser","account.journal.view hruser","account.model_account_journal_view","base.group_hr_user",1,0,0,0 "hr.access_account_journal_column_hruser","account.journal.column hruser","account.model_account_journal_column","base.group_hr_user",1,0,0,0 -"access_hr_analytic_timesheet_user","hr.analytic.timesheet.user","model_hr_analytic_timesheet","base.group_user",1,0,0,0
\ No newline at end of file +"access_hr_analytic_timesheet_user","hr.analytic.timesheet.user","model_hr_analytic_timesheet","base.group_user",1,0,0,0 |
