Skip to content

Commit 108e286

Browse files
committed
[MIG] pos_products: Migration to 16.0
1 parent b9ad8b4 commit 108e286

7 files changed

Lines changed: 40 additions & 61 deletions

File tree

pos_products/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# SPDX-FileCopyrightText: 2025 Coop IT Easy SC
2+
#
3+
# SPDX-License-Identifier: AGPL-3.0-or-later
4+
5+
from . import models

pos_products/__manifest__.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,12 @@
1818
##############################################################################
1919
{
2020
"name": "POS Products Display Customization",
21-
"version": "12.0.1.0.1",
22-
"depends": ["point_of_sale", "beesdoo_product"],
21+
"version": "16.0.1.0.1",
22+
"depends": [
23+
"beesdoo_product_label",
24+
"point_of_sale",
25+
"product_main_supplier",
26+
],
2327
"author": "Coop IT Easy SC",
2428
"license": "AGPL-3",
2529
"category": "Point of Sale",
@@ -29,7 +33,10 @@
2933
- display weight
3034
- producers
3135
""",
32-
"data": ["views/assets.xml"],
33-
"qweb": ["static/src/xml/pos_products.xml"],
34-
"installable": True,
36+
"assets": {
37+
"point_of_sale.assets": [
38+
"pos_products/static/src/xml/Screens/ProductScreen/ProductItem.xml",
39+
"pos_products/static/src/scss/pos.scss",
40+
],
41+
},
3542
}

pos_products/models/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# SPDX-FileCopyrightText: 2025 Coop IT Easy SC
2+
#
3+
# SPDX-License-Identifier: AGPL-3.0-or-later
4+
5+
from . import pos_session

pos_products/models/pos_session.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# SPDX-FileCopyrightText: 2025 Coop IT Easy SC
2+
#
3+
# SPDX-License-Identifier: AGPL-3.0-or-later
4+
5+
from odoo import models
6+
7+
8+
class PosSession(models.Model):
9+
_inherit = "pos.session"
10+
11+
def _loader_params_product_product(self):
12+
res = super()._loader_params_product_product()
13+
res["search_params"]["fields"] += [
14+
"display_weight",
15+
"display_unit",
16+
"main_seller_id",
17+
]
18+
return res

pos_products/static/src/js/models.js

Lines changed: 0 additions & 22 deletions
This file was deleted.

pos_products/static/src/xml/pos_products.xml

Lines changed: 0 additions & 23 deletions
This file was deleted.

pos_products/views/assets.xml

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)