Friday, January 24, 2020
11 changes · master
Enhancements to existing features
The sales stock availability popover was reorganized so similar information popups can be created more easily in the future. This is mainly an internal improvement that keeps the current quantity-at-date behavior while making future enhancements faster and more consistent.
Original PR description
Purpose ======= Use an abstract class for the popover widget, so we can create later others similar widgets. How === The child widget inherit from "PopoverAbstract", and can add some attributes - icon: icon displayed in the button - title: title of the popover - trigger: how the popover is triggered - color: class used as color for the button - popoverTemplate: name of the template used for the popover content - hide: if true, the button is invisible - placement: where the popover will spawn Trick ===== The method ``_willRender`` is call before rendering the widget. If you want to implement some logic behind the color, icon, etc... It's the method you search. e.g.: In ``qty_at_date_widget``, the color depends on the ``virtual_available_at_date``. We cannot do that in the ``init`` method, because in the ``one2many`` widget, the widget is created, and then we can change the record... Task #2153126
This change improves navigation between related sales orders, purchase orders, and manufacturing orders created through make-to-order flows. Users can now jump directly between the originating document and the generated document instead of searching manually, saving time and reducing confusion in order follow-up.
Original PR description
[IMP] mrp: link MO<->MO in case of MTO In case of MTO (+manufacturing) on component used in a MO, add a link between MO source and MO generated by. [IMP] purchase_mrp: link MO<->PO in case of MTO In case of MTO (+buy) on products used in a MO, add the link between the MO source and the PO generated. [IMP] sale_mrp: link SO<->MO in case of MTO In case of MTO+Mufacturing on product in a confirmed sale order, add a stat button to the MO generated by this SO. Also add the inverse, from MO to SO source document. [ADD] sale_purchase_stock: link between PO<->SO in case of MTO In order to improve the navigation between of SO and PO in the case of MTO, add a direct link between PO<->SO. When the SO is confirmed (with storable product(s) with MTO + buy), PO is/are generated, in this case, add a stat button on each model form to avoid to manually search the related SO with the source field (name). task-1913392
This update streamlines common inventory and manufacturing workflows by improving shortage warnings, adding easier unbuild actions from completed manufacturing orders, and making transfer unreservation more accessible. It also improves product and lot search usability, helping users complete warehouse tasks with fewer steps and less confusion.
Original PR description
Task: https://www.odoo.com/web#id=2144636&action=327&model=project.task&view_type=form&menu_id=4720 Pad: https://pad.odoo.com/p/r.25fbfdd24f92cda9559acded08742e61 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 update reorganizes many website snippets and moves several theme-specific blocks into the standard website tools. It makes page-building easier with cleaner editing controls, refreshed layouts, and new options for elements like tabs, alerts, sharing, accordions, and discussion groups.
Original PR description
Move many theme-specific snippets in standard website (the rest will be removed) and review the structure of all snippets. Also add new options. See sub-commits for details. task-2088157
Field Service task buttons are now shown based on clearer project and task status rules, reducing confusing button behavior across different project setups. This makes actions like starting work, signing reports, sending reports, marking tasks done, and creating invoices appear more reliably when they are relevant.
Original PR description
Make buttons visible based on computed fields instead of attributes The various buttons in FSM are currently displayed based on a set of attributes. As there are many different configurations possible for projects, it makes a lot of conditions This task aims at replacing these attributes by computed fields in order to gain clarity and to avoid the various bugs we recently faced. TASK-ID: 2126857 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The company switcher menu now limits long company names and shortens overflowing text with an ellipsis. This helps keep the top menu tidy and usable on smaller screens or when extra debug information is visible.
Original PR description
purpose There is no max width on the company name of the 'switch company menu' of the systray (o_switch_company_menu). On smaller screens, and when in debug mode, it quickly either linebreaks the systray of crops the menu items. task-1985500 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
Calendar views now show the start time for regular single-day events in month and week views, making schedules easier to scan at a glance. Holiday calendars keep times hidden where that display would add clutter or be less relevant.
Original PR description
Purpose of this commit is, to show start time in month and week mode for regular events (not multi-days). After this commit: For normal event(not multi-days), starting time of an event will be shown for week and month mode in calendar. task-2058477 Task: https://www.odoo.com/web?debug=assets#id=2058477&action=327&model=project.task&view_type=form&menu_id=4720 Pad: https://pad.odoo.com/p/r.812305bded6dd5c39a632153a630a917 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update makes common warehouse and manufacturing tasks easier by adding quick actions to unbuild completed manufacturing orders and unreserve transfers. It also improves warning messages with clearer quantity details and streamlines product purchasing forms by hiding less-used vendor fields by default.
Original PR description
[IMP] mrp: add unbuild button on MO In this commit: - On done MO's form, add an Unbuild button, it would open a wizard with the form view of an unbuild, and some pre-filled fields such as MO,…
[IMP] mrp: add unbuild button on MO In this commit: - On done MO's form, add an Unbuild button, it would open a wizard with the form view of an unbuild, and some pre-filled fields such as MO, product, BOM, quantity and total quantity finished which can be edited. - In the unbuild order, improve the on_change of mo_id: if the selected product is tracked by serial number, set quantity to 1 by default and readonly - Also clean the testcase of unbuild order. [IMP] stock, mrp, repair: improve the insufficient quantity wizards Improve the inherited wizards of 'stock.warn.insufficient.qty' by adding some piece of information about the quantity involved. Also change titles to integrated the related product. [IMP] stock: add an action to unreserve transfers in picking. [IMP] stock: allow to search on reference for stock.production.lot In this commit, we override the "name_search" method for search the internal reference when searching on the name. [IMP] product: set a quantity default hide on product form In this commit, on the product form, in purchase tab, the quantity field of the vendor pricelist should be set in optional = hide.
The stock scheduler now handles replenishment rules more efficiently by working with full orderpoint records instead of only their IDs. This can reduce repeated data loading and improve performance when processing many stock replenishment rules.
Original PR description
…f orderpoint.ids on defs: _procurement_from_orderpoint_get_grouping_key _procurement_from_orderpoint_get_groups _procurement_from_orderpoint_post_process If you extends theses def and use some var the system will prefetch value one time for all orderpoints So it is by far more performant. Pyflame result on v10.0 PR https://github.com/odoo/odoo/pull/23837 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 Planning app is refined to make scheduling clearer and reduce avoidable employee actions. Managers get better defaults, cleaner calendar and Gantt views, publication warnings for missing work emails, and employees no longer see or act on past shifts.
Original PR description
TaskID: 2126716
Field service task buttons now appear based on clearer business rules instead of complex screen conditions. This makes actions like starting timers, signing or sending reports, marking tasks done, and creating invoices more reliable across different project setups.
Original PR description
Make buttons visible based on computed fields instead of attributes The various buttons in FSM are currently displayed based on a set of attributes. As there are many different configurations possible for projects, it makes a lot of conditions This task aims at replacing these attributes by computed fields in order to gain clarity and to avoid the various bugs we recently faced. TASK-ID: 2126857