Skip to content

Commit

Permalink
[FIX] mrp: set default Operation Type in picking
Browse files Browse the repository at this point in the history
Purpose
======
When creating a specific Operation Type of type 'Manufacture' the default
operation type is not the correct one on object creation.

So in this commit, we set default `Operation Type` in picking when Type of
Operation is `Manufacture`.

taskID - 2939078

closes odoo#97299

Signed-off-by: William Henrotin (whe) <whe@odoo.com>
  • Loading branch information
viti-odoo committed Aug 2, 2022
1 parent bc19050 commit b28c44a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/mrp/views/mrp_production_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@
<field name="view_id" eval="False"/>
<field name="search_view_id" ref="view_mrp_production_filter"/>
<field name="domain">[('picking_type_id', '=', active_id)]</field>
<field name="context">{}</field>
<field name="context">{'default_picking_type_id': active_id}</field>
</record>

<record id="mrp_production_action_unreserve_tree" model="ir.actions.server">
Expand Down

0 comments on commit b28c44a

Please sign in to comment.