Daily updates from Odoo
Navigate
Branch
Friday, August 21, 2020
16 changes
Enhancements to existing features
The grid view now uses the first day of the week defined by each user's language settings instead of always starting on Monday. This makes weekly planning and reporting align better with local business practices across regions.
Original PR description
Grid view now displays the first day of the week by the user's current language. task - 2299266
Users can now manually choose whether an IoT input device should behave as a scanner or a keyboard. This helps businesses keep barcode scanning workflows working when certain scanners are incorrectly detected as keyboards by the system.
Original PR description
Some scanner are detected like keyboard because they do not meet the conditions to be supported as a scanner by the driver. So we add the possibility to manually switch the type of device between scanner and keyboard.
Check payment stubs now always show the check number, making printed check records easier to identify and reconcile. The check header still only shows the number when manual sequencing is used, preserving the existing behavior for automatically managed check numbers.
Original PR description
Task [2005940](https://www.odoo.com/web#id=2005940&action=333&active_id=967&model=project.task&view_type=form&cids=1&menu_id=4720) Always display check number on the stub, but only when manual sequencing on the header
Planning users can now see and change the shift template directly on a shift. Selecting a different template automatically updates related details such as role, project, task, and dates, helping teams adjust schedules faster with fewer manual edits.
Original PR description
======= Purpose ======= Allow to easily modify a shift using templates (e.g. switch from an afternoon shift to a morning shift in one click). =============== Specifications =============== Always display the 'Shift Templates' field on shifts - If a shift was created using a template, the corresponding template should be displayed as being selected - If the user selects another template, apply an onchange on the role, project, task and date fields (if set on the template) - If the user unselects the template, empty the role, project, task fields TaskID: 2208080
Managers can now choose a custom time period when sending planning schedules, instead of being limited by the current view. The update also fixes yearly planning display issues and improves the calendar experience for external or non-user recipients.
Original PR description
Before this commit, the planning start_datetime and end_datetime were defined by the view and could not be modified. This PR allows to define custom period. This PR fixes also the yearly planning that would only display the current month. This PR improve also the calendar view for non user.
This change reduces the risk of database instability when administrators change system settings. It moves sensitive module installation and removal handling away from risky custom overrides, making configuration changes safer and more reliable.
Original PR description
Execute shouldn't really be overriden because it handles a very touchy case: module (un)installs, if it is poorly overriden it can create registry inconsistencies and can make databases crash in really dumb ways, since the module operations *need* to be performed at the end of the transaction (last). Most of the time, an override of set_values() does the same job and is much safer. Linked to https://github.com/odoo/odoo/pull/56032
Resolved issues and error corrections
The Belgian payroll fleet settings now use the broader term “vehicle” instead of “car” in two places. This makes the wording more accurate and inclusive for fleet-related payroll configuration, with no expected process impact.
Original PR description
Task ID : 2244505
Employee users can now open the Sign app and upload PDF documents without encountering an error. This fixes an access issue so more staff can use signing workflows reliably.
Original PR description
Current behavior before PR: Currently, traceback occurring while going to open sign app for employee user Desired behavior after PR is merged: After fixing domain employee user can access this app and upload pdf file without any traceback LINKS PR- https://github.com/odoo/enterprise/pull/12525 Task-2320946
The stock barcode PDF documents were updated to fix an incorrect location label, changing "Chicks/Stock" to "CHIC1/Stock". This ensures users scanning or referencing the barcode sheets see the correct stock location name and avoid confusion.
Original PR description
Chicks/Stock > CHIC1/Stock
Code cleanup and technical improvements
Online event and event track features have been folded into the main event website modules, reducing extra dependencies and making menus, agendas, and related options easier to manage. Several event-related integrations are now installed automatically when relevant, helping users discover social, live, quiz, exhibitor, and meeting features more easily.
Original PR description
PURPOSE Clean organization and models linked to Event Online feature introduced in semi stable saas-13.3 at odoo/odoo@981f95bbf46658eda9f2d33751b9310cc67d86aa and…
PURPOSE Clean organization and models linked to Event Online feature introduced in semi stable saas-13.3 at odoo/odoo@981f95bbf46658eda9f2d33751b9310cc67d86aa and odoo/enterprise@14722028ae0773c3710ea48ce48ff44703e83b5a Also clean website event menu not being available in website event but only in website event track, which implies some extra-code to manage it. In short: merge website_event_online in website_event, website_event_track _(online/session) in website_event_track. RATIONALE _online modules have been added to extend content of website_event and website_event_track without having any impact on those module. First step of cleaning is to move this content directly in base module. track_session module is mainly a rewrite of track module. Second step of cleaning is to move its content directly in website_event_track. SPECIFICATIONS Move website.event.menu model from website event track to website event module. It allows to define community menu in website_event and re-use it in website_event_meet and website_event_track_quiz, removing some unnecessary dependencies. Move event.tag color field from website event online to event. This field is part of standard event models. Move remaining content of website event online to website event. Move remaining content of website event track online to website event track. Agenda notably is completely replaced by the new one developed within track_online module. Ease discovering of online features: set bridges as auto install and allow to configure CTA button on event from event_type, like other frontend related menus and buttons, and add settings to install meet, exhibitors, live mode and quizzed. Update dependencies accordingly. LINKS Task ID-2319779 COM odoo/odoo#56067 ENT odoo/enterprise#12520 UPG odoo/upgrade#1654
Miscellaneous changes
This change updates the Argentina electronic invoicing module metadata. It appears to be a minor maintenance change with limited direct business impact, helping keep the module information current.
Original PR description
task 360 ---
To avoid ambiguous column errors when custom columns using the same name are set in other tables used in the query. In this case, there was a `date_end` on the table `hr_employee` ``` File "/src/enterprise/13.0/hr_contract_reports/report/hr_contract_employee_report.py", line 89, in init self.env.cr.execute("""CREATE or REPLACE VIEW %s as (%s)""" % (self._table, self._query())) File "/src/odoo/13.0/odoo/sql_db.py", line 168, in wrapper return f(self, *args, **kwargs) Fil
Original PR description
To avoid ambiguous column errors when custom columns using the same name
are set in other tables used in the query.
In this case, there was a `date_end` on the table `hr_employee`
```
File "/src/enterprise/13.0/hr_contract_reports/report/hr_contract_employee_report.py", line 89, in init
self.env.cr.execute("""CREATE or REPLACE VIEW %s as (%s)""" % (self._table, self._query()))
File "/src/odoo/13.0/odoo/sql_db.py", line 168, in wrapper
return f(self, *args, **kwargs)
File "/src/odoo/13.0/odoo/sql_db.py", line 245, in execute
res = self._obj.execute(query, params)
psycopg2.errors.AmbiguousColumn: column reference "date_end" is ambiguous
```
Upgrade request 49941
Forward-Port-Of: odoo/enterprise#12578Make compute method callable with more than one record. opw-2322004 Forward-Port-Of: odoo/enterprise#12571
Original PR description
Make compute method callable with more than one record. opw-2322004 Forward-Port-Of: odoo/enterprise#12571
Problem: the controller rely on record rules to select the payment.token to be displayed on the portal's subscription page renewal. This works fine with portal user, but internal user that wants to preview, will face client side performance issue as they can see all the token of the database Solution: Don't rely on record.rule in the controller. Use the domain from the portal user rule in the search. To make the search of token working for partners with more than 2 levels of hierar
Original PR description
Problem: the controller rely on record rules to select the payment.token to be displayed on the portal's subscription page renewal. This works fine with portal user, but internal user that wants to preview, will face client side performance issue as they can see all the token of the database Solution: Don't rely on record.rule in the controller. Use the domain from the portal user rule in the search. To make the search of token working for partners with more than 2 levels of hierarchy, use child_of operator Forward-Port-Of: odoo/enterprise#12443 Forward-Port-Of: odoo/enterprise#11562
PURPOSE When user tries to groupby "Employee>Role>Department"(& severel others like project>role>employee) & click on undefined, below traceback appears. SPEC When user do groupby on multiple fields and collapse and expand empty row should not throw traceback. TASK 2283977 Forward-Port-Of: odoo/enterprise#12542
Original PR description
PURPOSE When user tries to groupby "Employee>Role>Department"(& severel others like project>role>employee) & click on undefined, below traceback appears. SPEC When user do groupby on multiple fields and collapse and expand empty row should not throw traceback. TASK 2283977 Forward-Port-Of: odoo/enterprise#12542
Have admin A on company C1 and user U on company C2 (but not C1) Let U create/modify a shared contact between companies used in accounting In C1, as A, go to Accounting>Reporting>GeneralLedger Click on "Export Xaf" Access error will raise because of record rule "user rule" because the export function needs to read U fields but it is not in the current company opw-2317809 Forward-Port-Of: odoo/enterprise#12447 Forward-Port-Of: odoo/enterprise#12387
Original PR description
Have admin A on company C1 and user U on company C2 (but not C1) Let U create/modify a shared contact between companies used in accounting In C1, as A, go to Accounting>Reporting>GeneralLedger Click on "Export Xaf" Access error will raise because of record rule "user rule" because the export function needs to read U fields but it is not in the current company opw-2317809 Forward-Port-Of: odoo/enterprise#12447 Forward-Port-Of: odoo/enterprise#12387