Skip to content

Commit

Permalink
[MIG] crm_timesheet: Migration to 18.0
Browse files Browse the repository at this point in the history
[MIG] crm_timesheet: Migration to 18.0
  • Loading branch information
jdebetaz committed Jan 15, 2025
1 parent de83642 commit f557ad4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion crm_timesheet/tests/test_account_analytic_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def setUpClass(cls):
cls.project1 = Project.create(
{
"name": "Test Project 1",
"analytic_account_id": cls.account1.id,
"account_id": cls.account1.id,
}
)
cls.lead = env["crm.lead"].create(
Expand Down
12 changes: 6 additions & 6 deletions crm_timesheet/views/crm_lead_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.view_crm_lead_kanban" />
<field name="arch" type="xml">
<xpath expr="//div[hasclass('oe_kanban_bottom_left')]" position="inside">
<xpath expr="//footer" position="inside">
<field name="show_time_control" invisible="1" />
<a
name="button_start_work"
Expand Down Expand Up @@ -86,7 +86,7 @@
<field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.crm_case_tree_view_leads" />
<field name="arch" type="xml">
<tree position="inside">
<list position="inside">
<field name="show_time_control" invisible="1" />
<button
name="button_start_work"
Expand All @@ -108,7 +108,7 @@
class="oe_stat_button"
groups="hr_timesheet.group_hr_timesheet_user"
/>
</tree>
</list>
</field>
</record>
<!-- Opportunities -->
Expand All @@ -117,7 +117,7 @@
<field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.crm_case_kanban_view_leads" />
<field name="arch" type="xml">
<xpath expr="//div[hasclass('oe_kanban_bottom_left')]" position="inside">
<xpath expr="//footer" position="inside">
<field name="show_time_control" invisible="1" />
<a
name="button_start_work"
Expand Down Expand Up @@ -149,7 +149,7 @@
<field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.crm_case_tree_view_oppor" />
<field name="arch" type="xml">
<tree position="inside">
<list position="inside">
<field name="show_time_control" invisible="1" />
<button
name="button_start_work"
Expand All @@ -171,7 +171,7 @@
class="oe_stat_button"
groups="hr_timesheet.group_hr_timesheet_user"
/>
</tree>
</list>
</field>
</record>
</odoo>

0 comments on commit f557ad4

Please sign in to comment.