Daily updates from Odoo
Tuesday, February 4, 2020
15 changes · master
Enhancements to existing features
Delivery operations now better keep package and shipment weights aligned, including packages that use a carrier’s default packaging. The update also adds clearer estimated pricing and unit-of-measure display improvements, helping teams quote and manage shipping more accurately.
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
The blog latest posts block has been redesigned to work better across devices and offer clearer display choices. Website editors now get standardized layout and hover options, plus the ability to show either recent or most viewed posts, making blog sections more polished and useful.
Original PR description
*: website This reviews the latest posts snippet and its options. Theme options (available in graphene and avantgarde themes) have been made standard, the hover effects on the images have been rewritten as they were broken since the snippet's DOM had been altered in bb0cdec4594f and the css rules no longer applied. The number of posts option has been removed in favor of a fixed number that depends on the screen size so that the layout looks good on all devices (3x1, 2x2 1x3). The list, big picture and horizontal layouts of this snippet have been fused, and the layout is now an option on the snippet. A new option has also been added to choose which posts are displayed: most recent or most viewed. Lastly, a new 'cards' layout similar to the one on odoo.com has been added. See sub-commits for details. task-2152188 Linked to https://github.com/odoo/design-themes/pull/198
Expense receipts and other attachments are now shown in the purchase journal document preview. This makes it easier for accounting teams to review supporting documents directly from journal entries without opening the original expense separately.
Original PR description
Adding preview of expenses attachment to journal view. When creating an expense, files can be attached (e.g. scanned receipts). Those attachment files where not displayed in "Accounting > Accounting > Journals > Purchases" move_line list. They now appear in the document preview. Task = 2176443
Creating a new blog post is now less visually distracting and guides users more directly to set up the cover area. Blog and event cover sections can now have their background color adjusted instead of being locked to a default style, making content setup smoother and more flexible.
Original PR description
The creation of a new blog post is noisy. The user is disturbed with colors (purple box, blue borders, etc). task-2144335
Custom model records now duplicate with their name included by default, making copied records clearer for users. Kanban cards with images also render more reliably for custom models, improving the Studio-created app experience.
Original PR description
Improvements for custom models and some default behaviours linked to the Studio model configurator (Enterprise task). In a nutshell: - mark the default `x_name` field of a custom model as 'to be copied' - improvement for kanban views that makes it easier to user with custom models The interesting part is in the Enterprise `web_studio` module. Task 2091654 Enterprise PR: odoo/enterprise#7326
This update makes blog creation and editing smoother by simplifying cover options, reducing visual clutter in edit mode, and making key actions like publishing clearer. It also improves default blog navigation and restores quote styling so published content looks more polished.
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
Shipping carrier integrations now use the estimated weight from the related picking when preparing shipment requests. This should make carrier quotes and labels more accurate across supported delivery services, reducing manual corrections and pricing mismatches.
Event organizers can now view events on a map, making it easier to understand locations at a glance. Barcode check-in has also been improved so staff can scan attendees across ongoing events from one desk, reducing repeated scans and check-in friction.
Original PR description
PURPOSE Improve the event module usability by adding a map view as well as an improved usability flow when scanning event barcodes SPECIFICATIONS - The "event_enterprise" module now adds a handy map view on event.event - The barcode interface on events is now "event agnostic". Meaning you can scan tickets from any events, making it easier to have multiple events at once in a single location. More details in underlying commit messages. LINKS Task ID : 2093336
Expense attachments, such as scanned receipts, now appear in the purchase journal document preview. This helps accounting teams review supporting documents directly from the journal view without opening the expense separately.
Original PR description
Adding preview of expenses attachment to journal view. When creating an expense, files can be attached (e.g. scanned receipts). Those attachment files where not displayed in "Accounting > Accounting > Journals > Purchases" move_line list. They now appear in the document preview. Task = 2176443
Resolved issues and error corrections
This fixes an issue where partners linked to a company could not be selected or opened unless the user had that company active. It also improves inter-company rules by separating accounting from sales and purchasing, so businesses can use the relevant automation without installing unnecessary apps.
Original PR description
The fact that there is a company id set means that you cannot select the partner in a M2o if you didn't select the company in the selector, and that you cannot open a document where that partner is set if you are not in the correct company. This is an issue for inter_company_rules, as you should be able to select the company to make a so, po or invoice to a company of the same database. 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 fix aligns account selection rules across accounting and purchasing so users see the appropriate accounts for products and categories. It also restores missing company-specific filtering, reducing the risk of choosing accounts from the wrong company in multi-company setups.
Original PR description
This started from noticing that purchase somewhat oddly *removes* a filter (internal_type='other') from a domain which is fairly rare. Looking at the file histories didn't yield anything of interest ("v9 accounting") but finally looking at the model revealed an additional multi-company filter missing from both views.
After consulting with @qdp-odoo, @sle-odoo and @lap-odoo, no good reason was found for the discrepancies:
* internal_type filter should probably always be there, unclear why it would get removed in purchase
* whoever added the multicompany filter *probably* missed that it would never be used because there was not one but two views overriding it (differently)
* sibling "income" field, as well as the corresponding fields on the product category, should match (though they were less incoherent).This fixes a purchasing issue where increasing a purchase order quantity could calculate the added stock incorrectly when returned items were linked to the order. The change helps ensure purchase updates create the right incoming stock movements and avoids confusion caused by returns.
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
The project forecast Gantt view now organizes shifts by employee instead of user account. This prevents shifts for employees without linked user accounts from appearing as "Undefined User" and makes open and assigned shifts easier to understand.
Original PR description
PURPOSE 'Open Shifts' should be displayed and Once the shift is assigned, it should appear under the corresponding employee. SPECIFICATIONS In project current group by on Gantt view is on 'user_id' not by the employee_id so, when you change the employee and that employee is not linked with the user then it will display the 'Undefined User'. So, we change the group by on 'employee_id' so, in the Gantt view display the 'open shift' as well as display the corresponding 'employee' under the open shift. LINKS PR #8057 Task 2172834
The Gantt view now avoids a crash when users group records by date. This keeps the page usable in affected cases, although date-based grouping behavior remains limited and may need a fuller follow-up fix.
Original PR description
Date grouping is broken: wrong calls to read_group, _getFieldFormattedValue crashes because thee field_date:day field is not passed to _parseServerData and moreover the following logic in…
Date grouping is broken: wrong calls to read_group, _getFieldFormattedValue
crashes because thee field_date:day field is not passed to
_parseServerData and moreover the following logic in _generateRows
"return _.isEqual(record[groupedByField], subGroups[0][groupedByField]);"
won't ever work with the field_date:day (because 6th august 2019 won't
be equal to a datetime).
Note that it didn't work in v12 anyway, it didn't crash but the groups
did not make sens (all records were grouped in an "undefined" group).
Apparently the new gantt view uses read_group ONLY to handle the group_expand
option, to get empty groups. Maybe what we could do here is use a wrapper
of read_group (web_read_group already exists) and drop entirely the call to
search_read, or make web_read_group returns the ids of the grouped
records and match them with the parent group in generate rows and drop
the _.isEqual.
This commit simply ignore the field in groupBy containing a ':', which
is wrong and incomplete but at least doesn't traceback.
task-2036914Code cleanup and technical improvements
The inter-company rules functionality has been split so businesses can use it with Accounting without also installing Sales and Purchase. Companies that need sales and purchase automation still have a separate add-on that builds on the accounting-only module.
Original PR description
Task [2080625](https://www.odoo.com/web?debug#id=2080625&action=333&active_id=967&model=project.task&view_type=form&menu_id=4720) Before, the module was dependent on sale and purchase and it was not possible to use only with account. There are now 2 modules: * account_inter_company_rules which depends only on account * sale_purchase_inter_company_rules which depends on the first one and on sale and purchase