Skip to content

Commit d01e665

Browse files
committed
[16.0][MIG] - base_time_window
1 parent 3ac0ab5 commit d01e665

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

base_time_window/__manifest__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"name": "Base Time Window",
55
"summary": "Base model to handle time windows",
6-
"version": "15.0.1.0.0",
6+
"version": "16.0.1.0.0",
77
"category": "Technical Settings",
88
"author": "ACSONE SA/NV, Camptocamp, Odoo Community Association (OCA)",
99
"license": "AGPL-3",

base_time_window/models/time_weekday.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ def name_get(self):
4545
def _get_id_by_name(self, name):
4646
return self.search([("name", "=", name)], limit=1).id
4747

48-
@api.model
49-
def create(self, vals):
50-
result = super().create(vals)
48+
@api.model_create_multi
49+
def create(self, vals_list):
50+
records = super().create(vals_list)
5151
self._get_id_by_name.clear_cache(self)
52-
return result
52+
return records
5353

5454
def write(self, vals):
5555
result = super().write(vals)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../base_time_window

setup/base_time_window/setup.py

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import setuptools
2+
3+
setuptools.setup(
4+
setup_requires=['setuptools-odoo'],
5+
odoo_addon=True,
6+
)

0 commit comments

Comments
 (0)