mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
MIG hr_expense_lead to 12.0
This commit is contained in:
committed by
Bhoomi Vaishnani
parent
dbde5010f3
commit
ef63ca0c6d
@@ -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.',
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user