MIG hr_expense_recruitment For Odoo 12.0

This commit is contained in:
Bhoomi
2019-09-20 11:30:29 -04:00
parent 84e5419ff4
commit ec35392db3
3 changed files with 3 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{
'name': 'HR Expense Recruitment',
'version': '11.0.1.0.0',
'version': '12.0.1.0.0',
'author': 'Hibou Corp. <hello@hibou.io>',
'category': 'Human Resources',
'summary': 'Assign Recruitment to expenses for reporting.',

View File

@@ -6,6 +6,7 @@ class TestJobExpense(common.TransactionCase):
job = self.env['hr.job'].create({'name': 'Test Job'})
expense = self.env['hr.expense'].create({
'name': 'Test Expense',
'employee_id': self.env['hr.employee'].search([], limit=1).id,
'product_id': self.env['product.product'].search([('can_be_expensed', '=', True)], limit=1).id,
'unit_amount': 34.0,
})

View File

@@ -3,7 +3,7 @@
<record id="view_hr_expense_form_inherit" model="ir.ui.view">
<field name="name">hr.expense.form.inherit</field>
<field name="model">hr.expense</field>
<field name="inherit_id" ref="hr_expense.hr_expense_form_view"/>
<field name="inherit_id" ref="hr_expense.hr_expense_view_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='employee_id']" position="after">
<field name="job_id"/>