Skip to content

Commit 7607105

Browse files
committed
[19.0][MIG] product_logistics_uom
1 parent 5c13ba5 commit 7607105

File tree

3 files changed

+1
-16
lines changed

3 files changed

+1
-16
lines changed

product_logistics_uom/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"name": "Product logistics UoM",
55
"summary": "Configure product weights and volume UoM",
6-
"version": "18.0.1.1.0",
6+
"version": "19.0.1.0.0",
77
"development_status": "Beta",
88
"category": "Product",
99
"website": "https://github.com/OCA/product-attribute",

product_logistics_uom/models/product_template.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ class ProductTemplate(models.Model):
3333
volume_uom_id = fields.Many2one(
3434
"uom.uom",
3535
string="Volume Unit of Measure",
36-
domain=lambda self: [
37-
("category_id", "=", self.env.ref("uom.product_uom_categ_vol").id)
38-
],
3936
default=lambda self: self._get_volume_uom_id_from_ir_config_parameter(),
4037
)
4138
volume_uom_name = fields.Char(
@@ -46,9 +43,6 @@ class ProductTemplate(models.Model):
4643
weight_uom_id = fields.Many2one(
4744
"uom.uom",
4845
string="Weight Unit of Measure",
49-
domain=lambda self: [
50-
("category_id", "=", self.env.ref("uom.product_uom_categ_kgm").id)
51-
],
5246
default=lambda self: self._get_weight_uom_id_from_ir_config_parameter(),
5347
)
5448

product_logistics_uom/models/res_config_settings.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,29 +11,20 @@ class ResConfigSettings(models.TransientModel):
1111
product_default_weight_uom_id = fields.Many2one(
1212
"uom.uom",
1313
"Default Weight Unit of Measure",
14-
domain=lambda self: [
15-
("category_id", "=", self.env.ref("uom.product_uom_categ_kgm").id)
16-
],
1714
config_parameter="product_default_weight_uom_id",
1815
help="Default unit of measure to express product weight",
1916
)
2017

2118
product_default_volume_uom_id = fields.Many2one(
2219
"uom.uom",
2320
"Default Volume Unit of Measure",
24-
domain=lambda self: [
25-
("category_id", "=", self.env.ref("uom.product_uom_categ_vol").id)
26-
],
2721
config_parameter="product_default_volume_uom_id",
2822
help="Default unit of measure to express product volume",
2923
)
3024

3125
product_default_length_uom_id = fields.Many2one(
3226
"uom.uom",
3327
"Default Length Unit of Measure",
34-
domain=lambda self: [
35-
("category_id", "=", self.env.ref("uom.uom_categ_length").id)
36-
],
3728
config_parameter="product_default_length_uom_id",
3829
help="Default unit of measure to express product length",
3930
)

0 commit comments

Comments
 (0)