Skip to content

Commit

Permalink
Merge PR OCA#651 into 12.0
Browse files Browse the repository at this point in the history
Signed-off-by rousseldenis
  • Loading branch information
OCA-git-bot committed Apr 29, 2020
2 parents d2deb02 + 579c571 commit 4556cb1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion stock_picking_quick/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@

{
"name": "Quick Stock Picking",
"version": "12.0.1.0.0",
"version": "12.0.1.0.1",
"author": "Akretion, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-workflow",
"license": "AGPL-3",
"category": "Stock",
"depends": ["base_product_mass_addition", "stock"],
"data": ["views/picking_view.xml", "views/product_view.xml"],
"installable": True,
"maintainers": ["PierrickBrun", "bealdav"],
}
3 changes: 3 additions & 0 deletions stock_picking_quick/models/stock_picking.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ def add_product(self):
res["view_id"] = (
self.env.ref("stock_picking_quick.product_tree_view4picking").id,
)
res["search_view_id"] = (
self.env.ref("stock_picking_quick.product_search_view4picking").id,
)
return res

def _prepare_quick_line(self, product):
Expand Down
3 changes: 2 additions & 1 deletion stock_picking_quick/views/product_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
</field>
</record>

<record id="product_search_form_view" model="ir.ui.view">
<record id="product_search_view4picking" model="ir.ui.view">
<field name="model">product.product</field>
<field name="inherit_id" ref="base_product_mass_addition.product_search_form_view"/>
<field name="mode">primary</field>
<field name="arch" type="xml">
<xpath expr="//filter[last()]" position="after">
<filter name="use_only_available_products"
Expand Down

0 comments on commit 4556cb1

Please sign in to comment.