Added first setup
bzr revid: nicolas.vanhoren@openerp.com-20120928124538-mwndrk3n5i7tjl7a
This commit is contained in:
parent
dfeeca1e8f
commit
35277fd0b1
|
@ -66,5 +66,8 @@ The validation can be configured in the company:
|
|||
'auto_install': False,
|
||||
'certificate': '0073297700829',
|
||||
'application': True,
|
||||
'js': ['static/src/js/timesheet.js',],
|
||||
'css': ['static/src/css/timesheet.css',],
|
||||
'qweb': ['static/src/xml/timesheet.xml',],
|
||||
}
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -71,6 +71,11 @@
|
|||
</group>
|
||||
</group>
|
||||
<notebook>
|
||||
<page string="Weekly">
|
||||
<widget type="weekly_timesheet">
|
||||
This is a test.
|
||||
</widget>
|
||||
</page>
|
||||
<page string="Daily">
|
||||
<group>
|
||||
<div>
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
openerp.hr_timesheet_sheet = function(instance) {
|
||||
var QWeb = instance.web.qweb;
|
||||
var _t = instance.web._t;
|
||||
|
||||
instance.hr_timesheet_sheet.WeeklyTimesheet = instance.web.form.FormWidget.extend({
|
||||
template: "hr_timesheet_sheet.WeeklyTimesheet",
|
||||
|
||||
});
|
||||
|
||||
instance.web.form.custom_widgets.add('weekly_timesheet', 'instance.hr_timesheet_sheet.WeeklyTimesheet');
|
||||
|
||||
};
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<templates>
|
||||
<t t-name="hr_timesheet_sheet.WeeklyTimesheet">
|
||||
<div>
|
||||
Yoh!
|
||||
</div>
|
||||
</t>
|
||||
</templates>
|
Loading…
Reference in New Issue