Merge pull request #223 from sodexis/9.0-fix-stock_available

[9.0][FIX] replaced attribute digits_compute to digits for new API
This commit is contained in:
Pedro M. Baeza
2016-11-21 19:39:04 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -48,7 +48,7 @@ class ProductProduct(models.Model):
"your needs")
potential_qty = fields.Float(
compute='_compute_potential_qty',
digits_compute=dp.get_precision('Product Unit of Measure'),
digits=dp.get_precision('Product Unit of Measure'),
string='Potential',
help="Quantity of this Product that could be produced using "
"the materials already at hand.")

View File

@@ -50,7 +50,7 @@ class ProductTemplate(models.Model):
"your needs")
potential_qty = fields.Float(
compute='_compute_potential_qty',
digits_compute=dp.get_precision('Product Unit of Measure'),
digits=dp.get_precision('Product Unit of Measure'),
string='Potential',
help="Quantity of this Product that could be produced using "
"the materials already at hand. "