Daily updates from Odoo
Navigate
Branch
Monday, December 23, 2019
27 changes
New functionality added to Odoo
This update adds a new pop-up snippet for the website editor, giving teams an easier way to create attention-grabbing messages or calls to action on site pages. It includes the required editor options, styling, assets, and preview image so the feature can be used directly from the website builder.
Original PR description
Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Sales teams can now see profitability as a percentage on sales orders and individual sales order lines. This makes it easier to evaluate how profitable each quote or order is without manually calculating margins.
Original PR description
Task:https://www.odoo.com/web#id=2033253&action=327&model=project.task&view_type=form&menu_id=4720 Pad: https://pad.odoo.com/p/r.1fee8b12283a508c4c979dd6e53e55ed Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Enhancements to existing features
Website editors can now configure the Facebook page snippet directly from the left-side editor panel instead of opening a separate modal window. This makes page editing more consistent with other website snippet settings and reduces interruptions in the editing workflow.
Original PR description
Before this commit, the configuration of the facebook page snippet was done in a modal window. In an effort to streamline and unify snippet options, the configuration has been moved into the left panel. task-2146928
Project tasks now show remaining hours whenever planned hours are set, making workload status easier to understand at a glance. Color-coded borders highlight whether time usage is on track, nearing the plan, or over budget.
Original PR description
The remaining hours on a task are now displayed unless there are no planned hours defined. - Between 0 and 79%: green border - Between 80 and 100%: yellow border - Above 100%: red border TaskID: 2150121 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This change replaces the older product pricelist report with a redesigned report for products and their variants. Users can generate clearer pricing reports based on selected pricelists and quantities, improving visibility into product pricing.
Original PR description
Description of the issue/feature this PR addresses: * Task: https://www.odoo.com/web#id=2031787&action=327&model=project.task&view_type=form&menu_id=4720 * Pad: https://pad.odoo.com/p/r.217dfe0b68ab6a9b4051f0a33f9964d6 Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Odoo Studio search views now allow date and datetime fields to be dragged into filter dropdowns, making it easier to create time-based filters such as quarters, previous years, and previous months. The filter and group-by dropdowns were also visually cleaned up by removing unnecessary borders for a smoother editing experience.
Original PR description
Task:https://www.odoo.com/web#id=2081595&action=333&active_id=133&model=project.task&view_type=form&menu_id=4720 Pad: https://pad.odoo.com/p/r.36f064e9df450d3662228efcdd0cc676
Odoo Studio now shows a direct shortcut icon for the search view in the top bar alongside other view icons. This makes it quicker for users to access and edit search views without navigating through the Views menu.
Original PR description
Task: https://www.odoo.com/web#id=2151453&action=333&active_id=1251&model=project.task&view_type=form&menu_id=4720 Pad: https://pad.odoo.com/p/r.986d1658856bf23d9994446240fff5df
Sales order lines for rental products now show availability information, helping teams spot potential stock shortages before confirming rentals. This makes it easier to manage rental commitments and avoid promising products that may not be available for the selected dates.
Original PR description
<b>Task:</b> https://www.odoo.com/web?#id=2081260&action=327&model=project.task&view_type=form&menu_id=4720 <b>Pad:</b> https://pad.odoo.com/p/r.1514e8e4d2ec742e57e152277b479cb7
Companies can now select the superuser again in the intercompany user field if it was previously changed to another user. This prevents administrators from getting stuck with a different user and makes intercompany rule setup easier to correct.
Original PR description
Task : https://www.odoo.com/web?debug=true#id=1964526&action=327&model=project.task&view_type=form&menu_id=4720 Pad : https://pad.odoo.com/p/r.7c53de69a4b258f53fafef46d918d3c4
Employee contract screens are easier to use, with clearer status handling, improved signing workflows, and better contract date tracking. HR teams also receive automatic reminders before a contract expires, helping them act on renewals or follow-ups in time.
Original PR description
Pad:https://pad.odoo.com/p/r.69c133ed6fb15cce4c5d0772cc845d66 Task:https://www.odoo.com/web?debug=1#id=2049413&action=327&model=project.task&view_type=form&menu_id=4720
Resolved issues and error corrections
The referral app confirmation dialog now uses corrected wording. This small text fix improves clarity and professionalism for users reviewing reward-related actions.
Original PR description
Fixed the typo "comfirmation" and made the sentence slightly better while at it.
A small typo was corrected in the UPS delivery integration's error wording. This helps keep shipping-related messages clearer and more professional without changing business workflows.
Original PR description
Fix the typo in the term.
Code cleanup and technical improvements
The sales stock availability widget was reorganized so it can be reused beyond standard sales flows, including rental products. This makes future availability information more consistent across product-related workflows while keeping the visible business behavior largely unchanged.
Original PR description
Description of the issue/feature this PR addresses: <b>Task:</b> https://www.odoo.com/web?#id=2081260&action=327&model=project.task&view_type=form&menu_id=4720 <b>Pad:</b> https://pad.odoo.com/p/r.1514e8e4d2ec742e57e152277b479cb7 Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Miscellaneous changes
Before this commit, we can't use the Generate and Assign Serial Numbers on already existing move line. It always creates new one, even if the picking type use "Pre-fill Detailed Operations". Now, it will edit existing lines, except if we ask to generate more SN than we have unassigned move lines, or if the picking don't use the "Pre-fill Detailed Operations" option, in which cases it will still create new move line with the generated SN. task-2150561 Forward-Port-Of: odoo/odoo#41284
Original PR description
Before this commit, we can't use the Generate and Assign Serial Numbers on already existing move line. It always creates new one, even if the picking type use "Pre-fill Detailed Operations". Now, it will edit existing lines, except if we ask to generate more SN than we have unassigned move lines, or if the picking don't use the "Pre-fill Detailed Operations" option, in which cases it will still create new move line with the generated SN. task-2150561 Forward-Port-Of: odoo/odoo#41284
glibc's malloc() uses arenas [1] in order to efficiently handle memory allocation of multi-threaded applications. This allows better memory allocation handling in case of multiple threads that would be using malloc() concurrently [2]. Due to the python's GIL, this optimization have no effect on multithreaded python programs. Unfortunately, a downside of creating one arena per cpu core is the increase of virtual memory which Odoo is based upon in order to limit the memory usage for threa
Original PR description
glibc's malloc() uses arenas [1] in order to efficiently handle memory allocation of multi-threaded applications. This allows better memory allocation handling in case of multiple threads that would…
glibc's malloc() uses arenas [1] in order to efficiently handle memory
allocation of multi-threaded applications. This allows better memory
allocation handling in case of multiple threads that would be using
malloc() concurrently [2].
Due to the python's GIL, this optimization have no effect on
multithreaded python programs. Unfortunately, a downside of creating one
arena per cpu core is the increase of virtual memory which Odoo is based
upon in order to limit the memory usage for threaded workers.
On 32bit systems the default size of an arena is 512K while on 64bit
systems it's 64M [3], hence a threaded worker will quickly reach it's
default memory soft limit upon concurrent requests. We therefore set the
maximum arenas allowed to 2 unless the MALLOC_ARENA_MAX env variable is
set.
This commit also brings the following changes:
- allow to disable the memory hard limit for all servers if the provided
value is 0 (instead of crashing)
- increase the log level for threaded server in case of limits reached
Note: Setting MALLOC_ARENA_MAX=0 allow to explicitely set the default
glibs's malloc() behaviour.
[1] https://sourceware.org/glibc/wiki/MallocInternals#Arenas_and_Heaps
[2] https://www.gnu.org/software/libc/manual/html_node/The-GNU-Allocator.html
[3] https://sourceware.org/git/?p=glibc.git;a=blob;f=malloc/malloc.c;h=00ce48c;hb=0a8262a#l862
Description of the issue/feature this PR addresses:
Memory errors occurs on threaded servers getting some concurrency
Current behavior before PR:
memory limit reached quite fast, threaded server is restarted when soft limit is reached, potentially dropping some requests
Desired behavior after PR is merged:
Avoid to consume 64Mb of vms for each thread
@odony don't know if the log.info ->log.warning should be done in a seperate commit ? Same goes for allowing to disable set_limit_memory_hard. just tell me...
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Forward-Port-Of: odoo/odoo#36918In a80775ce3c7d, some code was refactored to stop using the confusing 'animation' denomination, as in reality they were just public facing widgets that did many things, such as loading data based on data-attributes and other things that were not always animation related. One instance of the `animation_stop_demand` event was not renamed in the _onSnippetWillBeCloned method, which creates some problems, one of which being that the facebook snippet's iframe wouldn't be destroyed on clone, bu
Original PR description
In a80775ce3c7d, some code was refactored to stop using the confusing 'animation' denomination, as in reality they were just public facing widgets that did many things, such as loading data based on data-attributes and other things that were not always animation related. One instance of the `animation_stop_demand` event was not renamed in the _onSnippetWillBeCloned method, which creates some problems, one of which being that the facebook snippet's iframe wouldn't be destroyed on clone, but since the animation was started after the clone, this would result in one facebook page snippet with two iframes with the facebook page, for a total of 3 instead of 2, and one of these was unconfigurable. This commit renames the event to restore the proper behavior. Forward-Port-Of: odoo/odoo#42300
The account.group model has been refactored in https://github.com/odoo/odoo/commit/a124050511d508f6f1f8a4d4f9dfb2fa1507ad98 Although the filename was correct (.template) and one field was changed (code_prefix -> code_prefix_start), we don't accept a parent anymore and we have to provide the chart of account id. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#42026
Original PR description
The account.group model has been refactored in https://github.com/odoo/odoo/commit/a124050511d508f6f1f8a4d4f9dfb2fa1507ad98 Although the filename was correct (.template) and one field was changed (code_prefix -> code_prefix_start), we don't accept a parent anymore and we have to provide the chart of account id. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#42026
Forward-Port-Of: odoo/odoo#42293
Original PR description
Forward-Port-Of: odoo/odoo#42293
Pad:https://pad.odoo.com/p/r.32cc921154df7b1c82569adf2d4819b1 Task:https://www.odoo.com/web#id=2145659&action=327&model=project.task&view_type=form&menu_id=4720 Forward-Port-Of: odoo/odoo#40924
Original PR description
Pad:https://pad.odoo.com/p/r.32cc921154df7b1c82569adf2d4819b1 Task:https://www.odoo.com/web#id=2145659&action=327&model=project.task&view_type=form&menu_id=4720 Forward-Port-Of: odoo/odoo#40924
Writing for the web interface on the scheduled date of a stock move will failed as the date is send to the python server as a string. Then, a duration in datetime format is added. This failed as operation on string and datetime is forbidden. This commit cast the string date into a datetime object before applying date logic. Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CL
Original PR description
Writing for the web interface on the scheduled date of a stock move will failed as the date is send to the python server as a string. Then, a duration in datetime format is added. This failed as operation on string and datetime is forbidden. This commit cast the string date into a datetime object before applying date logic. Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#41916
### Issue - Install Mail template - Enable debug mode (normal or assets) - Create or edit a mail template - Click in the text editor The toolbar is not showing up (it does when we're not in debug mode) ### Cause We are doing ```javascript options.toolbar.splice(-1, 0, ['view', ['codeview']]) ``` In this case, toolbar is undefined, the method crashes and the toolbar doesn't render. ### Solution Checking if the toolbar is defined before doing all that logic. **OPW-215
Original PR description
### Issue - Install Mail template - Enable debug mode (normal or assets) - Create or edit a mail template - Click in the text editor The toolbar is not showing up (it does when we're not in debug mode) ### Cause We are doing ```javascript options.toolbar.splice(-1, 0, ['view', ['codeview']]) ``` In this case, toolbar is undefined, the method crashes and the toolbar doesn't render. ### Solution Checking if the toolbar is defined before doing all that logic. **OPW-2151675** -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#42072
### Description of the issue/feature this PR addresses: Some terms where not translated because was missing _() method ### Current behavior before PR: _AFIP POS System_ Journal's field have some translated options and some ones not.  ### Desired behavior after PR is merged: _AFIP POS System_ Journal's field options are all translated  method ### Current behavior before PR: _AFIP POS System_ Journal's field have some translated options and some ones not.  ### Desired behavior after PR is merged: _AFIP POS System_ Journal's field options are all translated  -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#42050
### Description of the issue/feature this PR addresses: This is useful for tests invoicing cases. ### Current behavior before PR: We need to create a bank account for the demo company every time we trying to test MiPyme Invoices ### Desired behavior after PR is merged: We already has configured the bank accounts for tests -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#42051
Original PR description
### Description of the issue/feature this PR addresses: This is useful for tests invoicing cases. ### Current behavior before PR: We need to create a bank account for the demo company every time we trying to test MiPyme Invoices ### Desired behavior after PR is merged: We already has configured the bank accounts for tests -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#42051
Current behavior before PR: When loading a employee form, a write is done due to hr_org_chart Desired behavior after PR is merged: No write should be performed TaskID: 2150314 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#41958
Original PR description
Current behavior before PR: When loading a employee form, a write is done due to hr_org_chart Desired behavior after PR is merged: No write should be performed TaskID: 2150314 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#41958
Forward-Port-Of: odoo/enterprise#7388
Original PR description
Forward-Port-Of: odoo/enterprise#7388
Pad:https://pad.odoo.com/p/r.32cc921154df7b1c82569adf2d4819b1 Task:https://www.odoo.com/web#id=2145659&action=327&model=project.task&view_type=form&menu_id=4720 Forward-Port-Of: odoo/enterprise#6905
Original PR description
Pad:https://pad.odoo.com/p/r.32cc921154df7b1c82569adf2d4819b1 Task:https://www.odoo.com/web#id=2145659&action=327&model=project.task&view_type=form&menu_id=4720 Forward-Port-Of: odoo/enterprise#6905
Issue - Install Field Service - Switch to arab/hebrew - Field Service > My tasks > Map Map is shifted Cause RTLcss is modifying a `left` into a `right` Solution Disable RTLcss for this property OPW-2158410 Forward-Port-Of: odoo/enterprise#7358
Original PR description
Issue
- Install Field Service
- Switch to arab/hebrew
- Field Service > My tasks > Map
Map is shifted
Cause
RTLcss is modifying a `left` into a `right`
Solution
Disable RTLcss for this property
OPW-2158410
Forward-Port-Of: odoo/enterprise#7358