Add filter on inventory lines

Always show field prefill_counted_quantity on inventory form
This commit is contained in:
Alexis de Lattre
2021-09-26 22:49:24 +02:00
parent 28ce11b216
commit 78c11411c3
2 changed files with 16 additions and 1 deletions

View File

@@ -6,6 +6,13 @@ from odoo import api, fields, models, _
from odoo.tools import float_compare, float_is_zero
class StockInventory(models.Model):
_inherit = 'stock.inventory'
prefill_counted_quantity = fields.Selection(
readonly=True, states={'draft': [('readonly', False)]})
class StockInventoryLine(models.Model):
_inherit = 'stock.inventory.line'