mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
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:
@@ -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.")
|
||||
|
||||
@@ -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. "
|
||||
|
||||
Reference in New Issue
Block a user