Skip to content

Commit 60a94dd

Browse files
committed
[MIG] stock_picking_quick: Migration to 18.0
1 parent 8155cdc commit 60a94dd

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

stock_picking_quick/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
{
66
"name": "Quick Stock Picking",
7-
"version": "16.0.1.0.0",
7+
"version": "18.0.1.0.0",
88
"author": "Akretion, Odoo Community Association (OCA)",
99
"website": "https://github.com/OCA/stock-logistics-workflow",
1010
"license": "AGPL-3",

stock_picking_quick/models/stock_picking.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# @author Pierrick Brun <[email protected]>
33
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
44

5-
from odoo import _, models
5+
from odoo import models
66

77

88
class StockPicking(models.Model):
@@ -20,10 +20,11 @@ def add_product(self):
2020
"location": [self.location_id.id],
2121
}
2222
)
23-
res["name"] = "🔙 %s" % (_("Product Variants"))
23+
res["name"] = f"🔙 {self.env._('Product Variants')}"
2424
res["view_id"] = (
2525
self.env.ref("stock_picking_quick.product_tree_view4picking").id,
2626
)
27+
res["view_mode"] = "list"
2728
res["search_view_id"] = (
2829
self.env.ref("stock_picking_quick.product_search_view4picking").id,
2930
)

stock_picking_quick/views/picking_view.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
name="add_product"
1010
string="Add"
1111
type="object"
12-
attrs="{'invisible': [('state', '=', 'done')]}"
12+
invisible="state == 'done'"
1313
class="oe_highlight"
1414
/>
1515
</field>

stock_picking_quick/views/product_view.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
<field name="model">product.product</field>
66
<field name="priority" eval="20" />
77
<field name="arch" type="xml">
8-
<tree name="Products for picking" create="0" editable="top">
8+
<list name="Products for picking" create="0" editable="top">
99
<field name="standard_price" readonly="1" />
1010
<field name="display_name" readonly="1" />
1111
<field name="qty_to_process" />
1212
<field name="qty_available" />
1313
<field name="incoming_qty" />
1414
<button name="button_quick_open_product" string="Open" type="object" />
15-
</tree>
15+
</list>
1616
</field>
1717
</record>
1818

0 commit comments

Comments
 (0)