MIG hr_expense_lead to 12.0

This commit is contained in:
Jared Kipe
2019-05-20 12:38:32 -07:00
committed by Bhoomi Vaishnani
parent dbde5010f3
commit ef63ca0c6d
3 changed files with 3 additions and 2 deletions

View File

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

View File

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

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="lead_id"/>