Skip to content

Commit 74b7e4e

Browse files
migration-bot-adhocjcadhoc
authored andcommitted
[MIG] product_ux: Migration to 19.0
1 parent 9b4a884 commit 74b7e4e

File tree

4 files changed

+3
-8
lines changed

4 files changed

+3
-8
lines changed

product_ux/__manifest__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
##############################################################################
2020
{
2121
"name": "Product UX",
22-
"version": "18.0.1.1.0",
22+
"version": "19.0.1.0.0",
2323
"category": "Products",
2424
"sequence": 14,
2525
"summary": "",
@@ -40,7 +40,7 @@
4040
"demo": [
4141
"demo/product_pricelist_demo.xml",
4242
],
43-
"installable": False,
43+
"installable": True,
4444
"auto_install": False,
4545
"application": False,
4646
}

product_ux/demo/product_pricelist_demo.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<!-- Price list -->
44
<record id="list0" model="product.pricelist">
55
<field name="name">Public Pricelist</field>
6-
<field name="sequence">1</field>
76
</record>
87

98
<record id="item1" model="product.pricelist.item">

product_ux/models/product_template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def _get_contextual_pricelist(self):
3434
Luego, si ese elemento es string buscamos a traves de name search.
3535
Para otros casos devolvemos super (debería ser un ID)
3636
"""
37-
pricelist_id_or_name = self._context.get("pricelist")
37+
pricelist_id_or_name = self.env.context.get("pricelist")
3838
if isinstance(pricelist_id_or_name, list):
3939
pricelist_id_or_name = pricelist_id_or_name[0]
4040
# Si viene una lista en pricelist actualizamos contexto para que si se llama super, este reciba un entero

product_ux/views/uom_uom_views.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@
2929
<field name="arch" type="xml">
3030
<search>
3131
<field name="name" filter_domain="['|', ('name','ilike', self), ('description', 'ilike', self)]"/>
32-
<field name="category_id"/>
33-
<group>
34-
<filter string="Category" context="{'group_by':'category_id'}" name="group_category_id"/>
35-
</group>
3632
</search>
3733
</field>
3834
</record>

0 commit comments

Comments
 (0)