Skip to content

Commit

Permalink
[MIG] calendar_event_multi_company: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
amh-mw committed Dec 19, 2024
1 parent 9883d33 commit db99518
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion calendar_event_multi_company/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Calendar Event Multi Company",
"summary": """
This module add multi-company management to calendar events""",
"version": "15.0.1.0.0",
"version": "18.0.1.0.0",
"license": "AGPL-3",
"author": "ACSONE SA/NV," "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/multi-company",
Expand Down
1 change: 1 addition & 0 deletions calendar_event_multi_company/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import test_calendar_event
11 changes: 11 additions & 0 deletions calendar_event_multi_company/tests/test_calendar_event.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from odoo.tests import TransactionCase


class TestCalendarEvent(TransactionCase):
def test_default_company_id(self):
event = self.env["calendar.event"].create(
{
"name": "NAME",
}
)
self.assertEqual(event.company_id, self.env.company)
4 changes: 2 additions & 2 deletions calendar_event_multi_company/views/calendar_event.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
<field name="model">calendar.event</field>
<field name="inherit_id" ref="calendar.view_calendar_event_tree" />
<field name="arch" type="xml">
<tree position="inside">
<list position="inside">
<field name="company_id" groups="base.group_multi_company" />
</tree>
</list>
</field>
</record>
</odoo>

0 comments on commit db99518

Please sign in to comment.