- Nov 25, 2022
-
-
niyasraphy authored
closes odoo/odoo#106385 Signed-off-by:
Kevin Baptiste <kba@odoo.com>
-
Dossogne Bertrand authored
hr_*: - hr - hr_contract - hr_work_entry - hr_work_entry_contract Fixes multiple visual issues in various models task-3002444 closes odoo/odoo#102922 Related: odoo/enterprise#32638 Signed-off-by:
Kevin Baptiste <kba@odoo.com>
-
- Nov 24, 2022
-
-
Aurélien Warnon authored
The res.users model functions a bit uniquely since it should allow a user to modify their own parameters but turns off model edition priviledges by default. See "SELF_WRITEABLE_FIELDS". This implies that ir_ui_view#_postprocess_access_rights method will by default turn off record edition, by automatically adding a 'edit="false"' attribute on the form node when the frontend calls 'get_views'. This will in turn prevent the user from modifying its preferences as it will set the form view in readonly mode. (It was apparently ignored pre-OWL, hence why we only have this issue now). To fix the issue, we force the edition by manually setting 'edit="1"' on our "view_users_form_simple_modif" form. Allowing the end-user to modify their own settings again. A tour was added to ensure this behavior. Note that tour steps need to be adapted in the 'hr' module, as this module changes the flow of modifying user preferences. Task-3067001 closes odoo/odoo#106125 Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
-
Odoo Translation Bot authored
-
- Nov 23, 2022
-
-
Viktors Lipskis (vili) authored
Detailed Reason field in hr_departure_wizard view is now wrapped in a group for better organization. task-3002105 closes odoo/odoo#101743 Related: odoo/enterprise#32087 Signed-off-by:
Kevin Baptiste <kba@odoo.com>
-
- Nov 22, 2022
-
-
Kevin Baptiste authored
The job_title field was too narrow and misaligned on mobile. Removed the help text for the Contacts smartbutton. task-3070980 closes odoo/odoo#106223 Signed-off-by:
Kevin Baptiste <kba@odoo.com>
-
- Nov 20, 2022
-
-
Odoo Translation Bot authored
-
- Nov 14, 2022
-
-
FrancoisGe authored
The goal of this commit is to avoid the execution of code depending on the validity of the save of a Record. Before this commit, several override save functions in Record execute code after the record's save without checking if the record's save has taken place. Override before: export class NewRecord extends Record { async save() { const isSaved = await super.save(...arguments); // doAction return isSaved; } } Override after: export class NewRecord extends Record { async save() { const isSaved = await super.save(...arguments); if (isSaved) { // doAction } return isSaved; } } How to reproduce the problem: Go to a form view with a Record having its save override function. Edit a record in such a way to have an invalid field Click on the save button Before this commit: The doAction is executed After this commit: The doAction is not executed Real use case - Go to the form view of a lead in CRM - Change stage - Clear the name field - Click on save button Before this commit: A call to get_rainbowman_message is made After this commit: No call to get_rainbowman_message is made. closes odoo/odoo#105468 Related: odoo/enterprise#33817 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-
- Nov 13, 2022
-
-
Odoo Translation Bot authored
-
- Nov 06, 2022
-
-
Odoo Translation Bot authored
-
- Oct 30, 2022
-
-
Odoo Translation Bot authored
-
- Oct 24, 2022
-
-
Philippe Wauthy authored
The presence bubble on the employee form is hidden while it is shown on the kanban view of the employees. This commit fixes the presence bubble to have a consistent behaviour between the employees kanban view and the employee form. task-2945615 closes odoo/odoo#103779 X-original-commit: 809715958f7165aef328faf99a1d7bc7c81f9329 Signed-off-by:
Kevin Baptiste <kba@odoo.com> Signed-off-by:
phwa-odoo <phwa@odoo.com>
-
- Oct 23, 2022
-
-
Odoo Translation Bot authored
-
- Oct 21, 2022
-
-
Kevin Baptiste authored
Remove the call to `t-on-click` in the arch of form/kanban views as it crashes when the view is opened in studio. Instead use a dedicated `<widget>`. closes odoo/odoo#103741 Signed-off-by:
Kevin Baptiste <kba@odoo.com>
-
- Oct 20, 2022
-
-
Kevin Baptiste authored
The label was above the profile picture and the employee name below it. closes odoo/odoo#103664 Signed-off-by:
Kevin Baptiste <kba@odoo.com>
-
- Oct 17, 2022
-
-
Malay Khamar authored
closes odoo/odoo#103255 X-original-commit: 5ba7d6b0 Signed-off-by:
Kevin Baptiste <kba@odoo.com>
-
- Oct 16, 2022
-
-
Odoo Translation Bot authored
-
- Oct 10, 2022
-
-
Alexandre Kühn authored
Task-3013832 closes odoo/odoo#102965 Signed-off-by:
Sébastien Theys (seb) <seb@odoo.com>
-
Martin Trigaux authored
closes odoo/odoo#102902 Related: odoo/enterprise#32633 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
stefanorigano (SRI) authored
*: hr, hr_holidays, project, purchase, point_of_sale, rating, spreadsheet_dashboard, stock, survey This commit adapts modules and components in order to correctly handle color-scheme variations. task-2710677 Part-of: odoo/odoo#99755
-
mafo-odoo authored
Steps to reproduce: - set demo to receive notifs in Odoo - go to employees - click "launch plan" for demo user - login as demo user - Click on the link for the activity that is sent in discuss Issue: There is no chatter in the view Explanation: the view of en employee coming from messaging is always hr.employee.public that does not contain the chatter. opw-2990577 closes odoo/odoo#102803 X-original-commit: 918ea972c74e563bf8ef3db13f3a1b9c610bca37 Signed-off-by:
Kevin Baptiste <kba@odoo.com> Signed-off-by:
Fockedey Martin (mafo) <mafo@odoo.com>
-
- Oct 09, 2022
-
-
Odoo Translation Bot authored
-
- Oct 07, 2022
-
-
Audric Onockx (auon) authored
Steps : - On a new DB (no demo data). Say created at 15:00. - Go to planning. - Add a shift for today. - Set the dates from 08:00 to 17:00. Issue : The 'Allocated Time' = 02:00. Cause : We used to count from the resource creation min to the departure max. So, in this case, not from 08:00, but from 15:00. While this might seem logical, it confuses users in onboarding. Fix : Calculate the whole time, regardless of the resource lifespan. Notes : - Similar issues solved with this commit : > Once the shift validated, the avatar progress bar uses the same allocated time. > Same in Project Task gantt view. - When contract is installed, if the resource does not have a contract, the Allocated Time = 0. Now, it is calculated from the resource calendar. task-2983993 closes odoo/odoo#102392 Related: odoo/enterprise#32378 Signed-off-by:
Laurent Stukkens (ltu) <ltu@odoo.com>
-
Rob Coekaerts authored
The current homeworking module doesn't answer the standard of quality. For now It will be removed from the settings and app store so it is not visible to any users. It will return after it has been reviewed and improved. task-2995332 closes odoo/odoo#101093 Related: odoo/enterprise#31762 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-
- Oct 06, 2022
-
-
Jorge Pinna Puissant authored
Before this commit, only when using the save button on the profile, the context is reloaded with the new language. If we use the breadcrumb to exit the profile view, the new language is saved, but the context is not reloaded. closes odoo/odoo#102419 Related: odoo/enterprise#32396 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-
Kevin Baptiste authored
The "Reporting" title was not properly displayed (stuck to the left of the dropdown) and the Timesheets entry was not displayed as a proper dropdown item. task-3001445 closes odoo/odoo#101744 Signed-off-by:
Kevin Baptiste <kba@odoo.com>
-
- Oct 04, 2022
-
-
Martin Trigaux authored
closes odoo/odoo#102045 Related: odoo/enterprise#32243 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
FrancoisGe authored
The goal of this commit is to fix the behaviour of clicking on a field with the "many2one_avatar" widget in a list view. Expected behaviour when clicking on a field with the "many2one_avatar" widget: - Editable list view: switch row to edit - Multi_edit list view with selected record: switch row to edit - Other case: open the many2one_avatar record in a form view Before this commit, clicking on a field with the "many2one_avatar" widget always opens the record in a form view. After this commit, the expected behaviour when clicking on a field with the "many2one_avatar" widget is respected. closes odoo/odoo#101737 Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
-
- Oct 02, 2022
-
-
Odoo Translation Bot authored
-
- Oct 01, 2022
-
-
Louis Wicket (wil) authored
Model patches are now defined using the `registerPatch` function. This function takes an object as argument which keys match those of a model definition. Benefits: + More consistent shape between model definitions and patch definitions + No need to import one function to each type of patch + No need to repeat the model name for each type of patch + No need to import the original definition Task-2998282. * = calendar, crm, hr, im_livechat, note, rating, sms, snailmail, website_livechat, website_slides closes odoo/odoo#101282 Related: odoo/enterprise#31866 Signed-off-by:
Sébastien Theys (seb) <seb@odoo.com>
-
- Sep 29, 2022
-
-
Martin Trigaux authored
closes odoo/odoo#101288 Related: odoo/enterprise#31850 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
Martin Trigaux authored
Also clarify messages Part-of: odoo/odoo#101288
-
Brieuc-brd authored
Since commit ae7bd570e13fe19367f86a1519b23747b3b0b73e, the size of `o_work_employee_main` has been reduced. This commit fixes this issue. task-2918464 Part-of: odoo/odoo#98911
-
- Sep 26, 2022
-
-
Kevin Baptiste authored
The domain of `work_location_id` requires the company_id and address_id which were missing from the tree view, showing a traceback when trying to change that field. closes odoo/odoo#101182 X-original-commit: 8376adc1 Signed-off-by:
Kevin Baptiste <kba@odoo.com>
-
Michael (mcm) authored
This commit does multiple things: - The readonly mode of form view is removed but not for the fields. it means that the fields in the view are always in edit mode except if we force them to be readonly. - The control panel is revamped to take less vertical space and shows now the record editing (dirtiness)/validity status after editing the record. - The record is saved only when leaving the view or by clicking the save button when hovering the record status in the control panel. - The record can still be discarded by clicking the discard button when hovering the status text in control panel. task id: 2822553 Part-of: odoo/odoo#100570 Co-authored-by:
luvi <luvi@odoo.com>
-
- Sep 25, 2022
-
-
Odoo Translation Bot authored
-
- Sep 24, 2022
-
-
Martin Trigaux authored
closes odoo/odoo#100958 Related: odoo/enterprise#31696 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
- Sep 23, 2022
-
-
William Braeckman authored
Some views still use them. closes odoo/odoo#100884 Signed-off-by:
William Braeckman (wbr) <wbr@odoo.com>
-
alt-odoo authored
Since commit [1], we use base.main_company as default value for the address of the admin employee. This is not correct as base.main_company is referring to res.company model while address_id is expecting a res.partner id. This works in most default situations as id = 1 is the same for both res.company and res.partner, but not anymore in case we have merged the initial partner with another one. We should use base.main_partner instead of base.main_company. [1]:https://github.com/odoo/odoo/commit/c0ca736193df42814389151956eb07c28c77d18e closes odoo/odoo#100866 X-original-commit: 16316705 Signed-off-by:
Kevin Baptiste <kba@odoo.com> Signed-off-by:
Alex Thuyls (alt) <alt@odoo.com>
-
- Sep 22, 2022
-
-
Xavier-Do authored
When installing l10n_mx, a error occurs Traceback (most recent call last): File "/data/build/odoo/odoo/service/server.py", line 1289, in preload_registries registry = Registry.new(dbname, update_module=update_module) File "<decorator-gen-15>", line 2, in new File "/data/build/odoo/odoo/tools/func.py", line 87, in locked return func(inst, *args, **kwargs) File "/data/build/odoo/odoo/modules/registry.py", line 91, in new odoo.modules.load_modules(registry, force_demo, status, update_module) File "/data/build/odoo/odoo/modules/loading.py", line 482, in load_modules processed_modules += load_marked_modules(cr, graph, File "/data/build/odoo/odoo/modules/loading.py", line 371, in load_marked_modules loaded, processed = load_module_graph( File "/data/build/odoo/odoo/modules/loading.py", line 206, in load_module_graph registry.setup_models(cr) File "/data/build/odoo/odoo/modules/registry.py", line 289, in setup_models model._setup_fields() File "/data/build/odoo/odoo/models.py", line 3294, in _setup_fields field.setup(self) File "/data/build/odoo/odoo/fields.py", line 512, in setup self.setup_nonrelated(model) File "/data/build/odoo/odoo/fields.py", line 4524, in setup_nonrelated m2m = model.pool._m2m AttributeError: 'Registry' object has no attribute '_m2m' Since #99438 hr is sintalled automatically This means that when doing a -i l10n_mx, hr is installed too hr will conditionnaly call a button_immediate_install in this case. What's going on after that: It's a mess button_immediate_install will create another registry This registry will be present on some models that will ne used later by the initial registry creating the missing _m2m case For the record, here are some of the strange and key element during the install 2022-09-21 16:31:27,691 2579263 INFO test_mx odoo.modules.loading: loading 1 modules... 2022-09-21 16:31:27,691 2579263 INFO test_mx odoo.modules.loading: Loading module base (1/1) ... 2022-09-21 16:31:36,222 2579263 INFO test_mx odoo.modules.loading: Module base loaded in 8.53s, 8902 queries (+8902 other) 2022-09-21 16:31:36,222 2579263 INFO test_mx odoo.modules.loading: 1 modules loaded in 8.53s, 8902 queries (+8902 extra) 2022-09-21 16:31:36,240 2579263 INFO test_mx odoo.modules.loading: updating modules list 2022-09-21 16:31:36,241 2579263 INFO test_mx odoo.addons.base.models.ir_module: ALLOW access to module.update_list on [] to user __system__ #1 via n/a 2022-09-21 16:31:36,943 2579263 INFO test_mx odoo.addons.base.models.ir_module: ALLOW access to module.button_install on ['Mexico - Accounting'] to user __system__ #1 via n/a ... 2022-09-21 16:31:49,775 2579263 INFO test_mx odoo.modules.loading: Loading module base_install_request (26/78) ... 2022-09-21 16:31:50,043 2579263 INFO test_mx odoo.addons.base.models.ir_module: ALLOW access to module.button_install on ['Project', 'Email Marketing', 'Employees', 'Knowledge', 'Sign', 'Planning', 'Appointments', 'Surveys'] to user __system__ #1 via n/a 2022-09-21 16:31:50,167 2579263 INFO test_mx odoo.modules.loading: Module base_install_request loaded in 0.39s, 228 queries (+228 other) ... 2022-09-21 16:32:10,816 2579263 INFO test_mx odoo.modules.loading: Loading module l10n_mx (55/78) ... 2022-09-21 16:32:17,618 2579263 INFO test_mx odoo.modules.loading: Module l10n_mx loaded in 6.80s, 4302 queries (+4332 other) ... 2022-09-21 16:32:50,371 2579263 INFO test_mx odoo.modules.loading: Loading module hr (35/112) 2022-09-21 16:32:57,594 2579263 INFO test_mx odoo.addons.base.models.ir_module: ALLOW access to module.button_immediate_install on ['Employees - Mexico'] to user __system__ #1 via n/a 2022-09-21 16:32:57,594 2579263 INFO test_mx odoo.addons.base.models.ir_module: User #1 triggered module installation 2022-09-21 16:32:57,595 2579263 INFO test_mx odoo.addons.base.models.ir_module: ALLOW access to module.button_install on ['Employees - Mexico'] to user __system__ #1 via n/a ... 2022-09-21 16:32:58,558 2579263 ERROR test_mx odoo.modules.registry: Creating Registry <odoo.modules.registry.Registry object at 0x7f02cc0e8130> Stack (most recent call last): File "/home/xdo/osrc/master/odoo/odoo-bin", line 8, in <module> odoo.cli.main() File "/home/xdo/osrc/master/odoo/odoo/cli/command.py", line 56, in main o.run(args) File "/home/xdo/osrc/master/odoo/odoo/cli/server.py", line 179, in run main(args) File "/home/xdo/osrc/master/odoo/odoo/cli/server.py", line 173, in main rc = odoo.service.server.start(preload=preload, stop=stop) File "/home/xdo/osrc/master/odoo/odoo/service/server.py", line 1391, in start rc = server.run(preload, stop) File "/home/xdo/osrc/master/odoo/odoo/service/server.py", line 570, in run rc = preload_registries(preload) File "/home/xdo/osrc/master/odoo/odoo/service/server.py", line 1289, in preload_registries registry = Registry.new(dbname, update_module=update_module) File "<decorator-gen-15>", line 2, in new File "/home/xdo/osrc/master/odoo/odoo/tools/func.py", line 87, in locked return func(inst, *args, **kwargs) File "/home/xdo/osrc/master/odoo/odoo/modules/registry.py", line 91, in new odoo.modules.load_modules(registry, force_demo, status, update_module) File "/home/xdo/osrc/master/odoo/odoo/modules/loading.py", line 482, in load_modules processed_modules += load_marked_modules(cr, graph, File "/home/xdo/osrc/master/odoo/odoo/modules/loading.py", line 371, in load_marked_modules loaded, processed = load_module_graph( File "/home/xdo/osrc/master/odoo/odoo/modules/loading.py", line 248, in load_module_graph getattr(py_module, post_init)(cr, registry) File "/home/xdo/osrc/master/odoo/addons/hr/__init__.py", line 19, in _install_hr_localization l10n_mx.button_immediate_install() File "<decorator-gen-74>", line 2, in button_immediate_install File "/home/xdo/osrc/master/odoo/odoo/addons/base/models/ir_module.py", line 75, in check_and_log return method(self, *args, **kwargs) File "/home/xdo/osrc/master/odoo/odoo/addons/base/models/ir_module.py", line 486, in button_immediate_install return self._button_immediate_function(type(self).button_install) File "/home/xdo/osrc/master/odoo/odoo/addons/base/models/ir_module.py", line 607, in _button_immediate_function registry = modules.registry.Registry.new(self._cr.dbname, update_module=True) File "<decorator-gen-15>", line 2, in new File "/home/xdo/osrc/master/odoo/odoo/tools/func.py", line 87, in locked return func(inst, *args, **kwargs) File "/home/xdo/osrc/master/odoo/odoo/modules/registry.py", line 79, in new registry.init(db_name) File "/home/xdo/osrc/master/odoo/odoo/modules/registry.py", line 115, in init _logger.error(self, stack_info=True) 2022-09-21 16:32:58,580 2579263 INFO test_mx odoo.modules.loading: loading 1 modules... 2022-09-21 16:32:58,581 2579263 INFO test_mx odoo.modules.loading: Loading module base (1/1) ... 2022-09-21 16:33:35,294 2579263 INFO test_mx odoo.modules.loading: Loading module base_install_request (30/85) ... 2022-09-21 16:33:35,745 2579263 INFO test_mx odoo.modules.loading: Module base_install_request loaded in 0.45s, 131 queries (+131 other) ... 2022-09-21 16:34:05,789 2579263 INFO test_mx odoo.modules.loading: Loading module l10n_mx (62/85) ... 2022-09-21 16:34:28,497 2579263 INFO test_mx odoo.modules.loading: Loading module hr (35/113) ... 2022-09-21 16:34:32,067 2579263 INFO test_mx odoo.modules.loading: Module hr loaded in 3.57s, 4092 queries (+4092 other) 2022-09-21 16:34:32,067 2579263 INFO test_mx odoo.modules.loading: Loading module link_tracker (37/113) ... 2022-09-21 16:34:32,690 2579263 INFO test_mx odoo.modules.loading: Module link_tracker loaded in 0.62s, 267 queries (+267 other) ... 2022-09-21 16:35:04,063 2579263 INFO test_mx odoo.modules.loading: Modules loaded. 2022-09-21 16:35:04,068 2579263 INFO test_mx odoo.modules.registry: Registry loaded in 125.514s 2022-09-21 16:35:04,068 2579263 INFO test_mx odoo.addons.base.models.ir_module: getting next ir.actions.todo() 2022-09-21 16:35:04,071 2579263 INFO test_mx odoo.addons.base.models.ir_module: next action is "Open Menu" 2022-09-21 16:35:04,094 2579263 INFO test_mx odoo.modules.loading: Module hr loaded in 133.72s, 4344 queries (+81420 other) ... 2022-09-21 16:35:04,094 2579263 INFO test_mx odoo.modules.loading: Loading module link_tracker (37/112) 2022-09-21 16:35:04,163 2579263 ERROR test_mx odoo.modules.registry: setuping model: ir.model.fields() registry on model: <odoo.modules.registry.Registry object at 0x7f02cc0e8130> registry calling setup_models: <odoo.modules.registry.Registry object at 0x7f02e92399d0> 2022-09-21 16:35:04,164 2579263 WARNING test_mx odoo.modules.loading: Transient module states were reset 2022-09-21 16:35:04,165 2579263 ERROR test_mx odoo.modules.registry: Failed to load registry 2022-09-21 16:35:04,165 2579263 CRITICAL test_mx odoo.service.server: Failed to initialize database `test_mx`. Traceback (most recent call last): File "/home/xdo/osrc/master/odoo/odoo/service/server.py", line 1289, in preload_registries registry = Registry.new(dbname, update_module=update_module) File "<decorator-gen-15>", line 2, in new File "/home/xdo/osrc/master/odoo/odoo/tools/func.py", line 87, in locked return func(inst, *args, **kwargs) File "/home/xdo/osrc/master/odoo/odoo/modules/registry.py", line 91, in new odoo.modules.load_modules(registry, force_demo, status, update_module) File "/home/xdo/osrc/master/odoo/odoo/modules/loading.py", line 482, in load_modules processed_modules += load_marked_modules(cr, graph, File "/home/xdo/osrc/master/odoo/odoo/modules/loading.py", line 371, in load_marked_modules loaded, processed = load_module_graph( File "/home/xdo/osrc/master/odoo/odoo/modules/loading.py", line 206, in load_module_graph registry.setup_models(cr) File "/home/xdo/osrc/master/odoo/odoo/modules/registry.py", line 293, in setup_models model._setup_fields() File "/home/xdo/osrc/master/odoo/odoo/models.py", line 3294, in _setup_fields field.setup(self) File "/home/xdo/osrc/master/odoo/odoo/fields.py", line 512, in setup self.setup_nonrelated(model) File "/home/xdo/osrc/master/odoo/odoo/fields.py", line 4524, in setup_nonrelated m2m = model.pool._m2m AttributeError: 'Registry' object has no attribute '_m2m' Naive fix here: use button_install instead of button_immediate_install (not even sure this is 100% correct) All calls to button_immediate_install should be fixed maybe to avoid a registryloadingception closes odoo/odoo#100755 Signed-off-by:
Yannick Tivisse (yti) <yti@odoo.com>
-