mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[FIX] selection values
This commit is contained in:
committed by
Jordi Ballester Alomar
parent
24d8a70920
commit
b8b7d906eb
@@ -7,11 +7,6 @@ import openerp.addons.decimal_precision as dp
|
||||
import time
|
||||
from openerp.exceptions import Warning as UserError
|
||||
|
||||
_STATES = [
|
||||
('draft', 'Draft'),
|
||||
('posted', 'Posted'),
|
||||
('cancel', 'Cancelled')]
|
||||
|
||||
|
||||
class StockInventoryRevaluation(models.Model):
|
||||
|
||||
@@ -83,7 +78,9 @@ class StockInventoryRevaluation(models.Model):
|
||||
default='Inventory Revaluation',
|
||||
states={'draft': [('readonly', False)]})
|
||||
|
||||
state = fields.Selection(selection=_STATES,
|
||||
state = fields.Selection(selection=[('draft', 'Draft'),
|
||||
('posted', 'Posted'),
|
||||
('cancel', 'Cancelled')],
|
||||
string='Status',
|
||||
readonly=True,
|
||||
required=True,
|
||||
|
||||
Reference in New Issue
Block a user