[ADD] hr_expense: onboarding tour
first step only, to be continued...
This commit is contained in:
committed by
Aaron Bohy
parent
3f4c062023
commit
3c319b2b8b
@@ -26,7 +26,7 @@ The whole flow is implemented as:
|
||||
This module also uses analytic accounting and is compatible with the invoice on timesheet module so that you are able to automatically re-invoice your customers' expenses if your work by project.
|
||||
""",
|
||||
'website': 'https://www.odoo.com/page/expenses',
|
||||
'depends': ['hr_contract', 'account_accountant', 'report'],
|
||||
'depends': ['hr_contract', 'account_accountant', 'report', 'web_tour'],
|
||||
'data': [
|
||||
'security/ir.model.access.csv',
|
||||
'data/hr_expense_data.xml',
|
||||
@@ -36,6 +36,8 @@ This module also uses analytic accounting and is compatible with the invoice on
|
||||
'security/ir_rule.xml',
|
||||
'views/report_expense.xml',
|
||||
'views/hr_dashboard.xml',
|
||||
'views/hr_expense.xml',
|
||||
'views/tour_views.xml',
|
||||
],
|
||||
'demo': ['data/hr_expense_demo.xml'],
|
||||
'installable': True,
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
odoo.define('hr_expense.tour', function(require) {
|
||||
"use strict";
|
||||
|
||||
var core = require('web.core');
|
||||
var tour = require('web_tour.tour');
|
||||
|
||||
var _t = core._t;
|
||||
|
||||
tour.register('hr_expense_tour', {
|
||||
'skip_enabled': true,
|
||||
}, [{
|
||||
trigger: '.o_app[data-menu-xmlid="hr_expense.menu_hr_expense_root"], .oe_menu_toggler[data-menu-xmlid="hr_expense.menu_hr_expense_root"]',
|
||||
content: _t("Want to manage your employee expenses? Let's go to the <b>Expenses app</b>."),
|
||||
position: 'bottom',
|
||||
}]);
|
||||
|
||||
});
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
<template id="assets_backend_expense" name="hr_expense assets" inherit_id="web.assets_backend">
|
||||
<xpath expr="." position="inside">
|
||||
<script type="text/javascript" src="/hr_expense/static/src/js/tour.js"></script>
|
||||
</xpath>
|
||||
</template>
|
||||
</data>
|
||||
</openerp>
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<!-- Make the xmlid of menus required by the HR Expense tour available in webclient -->
|
||||
<record id="menu_hr_expense_root" model="ir.ui.menu">
|
||||
<field name="load_xmlid" eval="True"/>
|
||||
</record>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user