mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
MIG hr_expense_recruitment For Odoo 12.0
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
'name': 'HR Expense Recruitment',
|
'name': 'HR Expense Recruitment',
|
||||||
'version': '11.0.1.0.0',
|
'version': '12.0.1.0.0',
|
||||||
'author': 'Hibou Corp. <hello@hibou.io>',
|
'author': 'Hibou Corp. <hello@hibou.io>',
|
||||||
'category': 'Human Resources',
|
'category': 'Human Resources',
|
||||||
'summary': 'Assign Recruitment to expenses for reporting.',
|
'summary': 'Assign Recruitment to expenses for reporting.',
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ class TestJobExpense(common.TransactionCase):
|
|||||||
job = self.env['hr.job'].create({'name': 'Test Job'})
|
job = self.env['hr.job'].create({'name': 'Test Job'})
|
||||||
expense = self.env['hr.expense'].create({
|
expense = self.env['hr.expense'].create({
|
||||||
'name': 'Test Expense',
|
'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,
|
'product_id': self.env['product.product'].search([('can_be_expensed', '=', True)], limit=1).id,
|
||||||
'unit_amount': 34.0,
|
'unit_amount': 34.0,
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<record id="view_hr_expense_form_inherit" model="ir.ui.view">
|
<record id="view_hr_expense_form_inherit" model="ir.ui.view">
|
||||||
<field name="name">hr.expense.form.inherit</field>
|
<field name="name">hr.expense.form.inherit</field>
|
||||||
<field name="model">hr.expense</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">
|
<field name="arch" type="xml">
|
||||||
<xpath expr="//field[@name='employee_id']" position="after">
|
<xpath expr="//field[@name='employee_id']" position="after">
|
||||||
<field name="job_id"/>
|
<field name="job_id"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user