Use integer for select field

This commit is contained in:
Bertrand Chenal committed 2008-04-29 19:30:58 +02:00
1 parent 4f90704513
commit 257ff26e85
1 file changed
+8 -8
+8 -8
View File
@@ -13,33 +13,33 @@ class Move(OSV):
_description = __doc__
_rec_name = "product"
product = fields.Many2One(
"product.product", "Product", required=True, select=True, states=STATES,
"product.product", "Product", required=True, select=1, states=STATES,
on_change=['product'])
uom = fields.Many2One("product.uom", "Uom", required=True, states=STATES,)
quantity = fields.Float(
"Quantity", digits=(12, 6), required=True,
states=STATES,)
from_location = fields.Many2One(
"stock.location", "From Location", select=True, required=True,
"stock.location", "From Location", select=1, required=True,
states=STATES, domain="[('type', '!=', 'warehouse')]",)
to_location = fields.Many2One(
"stock.location", "To Location", select=True, required=True,
"stock.location", "To Location", select=1, required=True,
states=STATES, domain="[('type', '!=', 'warehouse')]",)
incoming_packing_in = fields.Many2One(
"stock.packing.in", "Supplier Packing", states=STATES, select=True)
"stock.packing.in", "Supplier Packing", states=STATES, select=1)
inventory_packing_in = fields.Many2One(
"stock.packing.in", "Inventory Supplier Packing", states=STATES,
select=True)
select=1)
outgoing_packing_out = fields.Many2One(
"stock.packing.out", "Customer Packing", states=STATES, select=True)
"stock.packing.out", "Customer Packing", states=STATES, select=1)
inventory_packing_out = fields.Many2One(
"stock.packing.out", "Inventory Customer Packing", states=STATES,
select=True)
select=1)
planned_date = fields.Date("Planned Date", states=STATES,)
effective_date = fields.Date("Effective Date", readonly=True)
state = fields.Selection(
[('draft', 'Draft'), ('done', 'Done'), ('cancel', 'Cancel'),
('waiting', 'Waiting'), ('assigned', 'Assigned')], 'State', select=True, readonly=True)
('waiting', 'Waiting'), ('assigned', 'Assigned')], 'State', select=1, readonly=True)
def __init__(self):