From 6b92fc0fcd44e57b00e0889fcb02c03e813e4b5d Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Mon, 11 Oct 2010 14:37:49 +0200 Subject: [PATCH] [REF] hr_timesheet_invoice: moved sample invoicing rate to regular data for usability purposes bzr revid: odo@openerp.com-20101011123749-5infnnimvg196vax --- addons/hr_timesheet_invoice/__openerp__.py | 11 ++++++----- .../hr_timesheet_invoice_data.xml | 10 ++++++++++ .../hr_timesheet_invoice_demo.xml | 12 ------------ 3 files changed, 16 insertions(+), 17 deletions(-) create mode 100644 addons/hr_timesheet_invoice/hr_timesheet_invoice_data.xml diff --git a/addons/hr_timesheet_invoice/__openerp__.py b/addons/hr_timesheet_invoice/__openerp__.py index f45490867c2..dfcda5ec534 100644 --- a/addons/hr_timesheet_invoice/__openerp__.py +++ b/addons/hr_timesheet_invoice/__openerp__.py @@ -31,9 +31,9 @@ reports, eso.""", 'author': 'OpenERP SA', 'website': 'http://www.openerp.com', 'depends': ['account', 'hr_timesheet'], - 'init_xml': [], - 'update_xml': [ + 'data': [ 'security/ir.model.access.csv', + 'hr_timesheet_invoice_data.xml', 'hr_timesheet_invoice_view.xml', 'hr_timesheet_invoice_wizard.xml', 'hr_timesheet_invoice_report.xml', @@ -45,11 +45,12 @@ reports, eso.""", 'wizard/hr_timesheet_invoice_create_final_view.xml', 'board_hr_timesheet_invoice.xml', ], - 'demo_xml': ['hr_timesheet_invoice_demo.xml', - ], + 'demo': [ + 'hr_timesheet_invoice_demo.xml', + ], 'test': ['test/test_hr_timesheet_invoice.yml', 'test/hr_timesheet_invoice_report.yml', - ], + ], 'installable': True, 'active': False, 'certificate': '0056091842381', diff --git a/addons/hr_timesheet_invoice/hr_timesheet_invoice_data.xml b/addons/hr_timesheet_invoice/hr_timesheet_invoice_data.xml new file mode 100644 index 00000000000..a81af0788b6 --- /dev/null +++ b/addons/hr_timesheet_invoice/hr_timesheet_invoice_data.xml @@ -0,0 +1,10 @@ + + + + + Yes (100%) + 100% + 0.0 + + + diff --git a/addons/hr_timesheet_invoice/hr_timesheet_invoice_demo.xml b/addons/hr_timesheet_invoice/hr_timesheet_invoice_demo.xml index adc9e47b033..ee6bdf23538 100644 --- a/addons/hr_timesheet_invoice/hr_timesheet_invoice_demo.xml +++ b/addons/hr_timesheet_invoice/hr_timesheet_invoice_demo.xml @@ -1,36 +1,24 @@ - - - 100% - - 0.0 - - 50% 50% Discount 50.0 - Gratis Offered developments 100.0 - - - -