Skip to content

[18.0][ADD] hr_shift_pattern: allow more flexibility in planning by adding …#37

Open
cvinh wants to merge 1 commit into
OCA:18.0from
invitu:18.0-add_hr_shift_pattern
Open

[18.0][ADD] hr_shift_pattern: allow more flexibility in planning by adding …#37
cvinh wants to merge 1 commit into
OCA:18.0from
invitu:18.0-add_hr_shift_pattern

Conversation

@cvinh

@cvinh cvinh commented Jun 7, 2026

Copy link
Copy Markdown

…'patterns of templates'
There is a lot of Claude in this module, I hope there's not too many weird things... @pedrobaeza @chienandalu
Functionaly, it covers our needs that we discussed OCA/hr#1432

@OCA-git-bot OCA-git-bot added series:18.0 mod:hr_shift_pattern Module hr_shift_pattern labels Jun 7, 2026
@cvinh cvinh force-pushed the 18.0-add_hr_shift_pattern branch from 708de91 to c799b5c Compare June 7, 2026 05:08
@hitrosol

Copy link
Copy Markdown

i found this error in runboat

Odoo Server Error

RPC_ERROR
Odoo Server Error

Occured on oca-shift-planning-18-0-pr37-c799b5c122f3.runboat.odoo-community.org on model hr.shift.planning.line on 2026-06-28 14:26:14 GMT

Traceback (most recent call last):
File "/opt/odoo/odoo/http.py", line 2167, in _transactioning
return service_model.retrying(func, env=self.env)
File "/opt/odoo/odoo/service/model.py", line 157, in retrying
result = func()
File "/opt/odoo/odoo/http.py", line 2134, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "/opt/odoo/odoo/http.py", line 2382, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
File "/opt/odoo/odoo/addons/base/models/ir_http.py", line 333, in _dispatch
result = endpoint(**request.params)
File "/opt/odoo/odoo/http.py", line 754, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "/opt/odoo/addons/web/controllers/dataset.py", line 36, in call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo/odoo/api.py", line 535, in call_kw
result = getattr(recs, name)(*args, **kwargs)
File "/opt/odoo/addons/web/models/models.py", line 1058, in onchange
snapshot1 = RecordSnapshot(record, fields_spec)
File "/opt/odoo/addons/web/models/models.py", line 1145, in init
self.fetch(name)
File "/opt/odoo/addons/web/models/models.py", line 1160, in fetch
self[field_name] = self.record[field_name]
File "/opt/odoo/odoo/models.py", line 7083, in getitem
return self._fields[key].get(self)
File "/opt/odoo/odoo/fields.py", line 1309, in get
self.compute_value(recs)
File "/opt/odoo/odoo/fields.py", line 1491, in compute_value
records._compute_field_value(self)
File "/opt/odoo/odoo/models.py", line 5302, in _compute_field_value
fields.determine(field.compute, self)
File "/opt/odoo/odoo/fields.py", line 110, in determine
return needle(*args)
File "/mnt/data/odoo-addons-dir/hr_shift/models/shift_planning.py", line 410, in compute_display_name
f"{
(dict(WEEK_DAYS_SELECTION).get(line.day_number))} - "
File "/opt/odoo/odoo/tools/translate.py", line 633, in get_text_alias
assert isinstance(source, str)
AssertionError

The above server error caused the following client error:
OwlError: An error occured in the owl lifecycle (see this Error's "cause" property)
Error: An error occured in the owl lifecycle (see this Error's "cause" property)
at handleError (http://oca-shift-planning-18-0-pr37-c799b5c122f3.runboat.odoo-community.org/web/assets/f0031ef/web.assets_web.min.js:972:101)
at App.handleError (http://oca-shift-planning-18-0-pr37-c799b5c122f3.runboat.odoo-community.org/web/assets/f0031ef/web.assets_web.min.js:1631:29)
at ComponentNode.initiateRender (http://oca-shift-planning-18-0-pr37-c799b5c122f3.runboat.odoo-community.org/web/assets/f0031ef/web.assets_web.min.js:1065:19)

Caused by: RPC_ERROR: Odoo Server Error
RPC_ERROR
at makeErrorFromResponse (http://oca-shift-planning-18-0-pr37-c799b5c122f3.runboat.odoo-community.org/web/assets/f0031ef/web.assets_web.min.js:3165:165)
at XMLHttpRequest. (http://oca-shift-planning-18-0-pr37-c799b5c122f3.runboat.odoo-community.org/web/assets/f0031ef/web.assets_web.min.js:3171:13)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants