Add lost and found location for inventories

This commit is contained in:
Cédric Krier committed 2008-05-14 11:45:08 +02:00
1 parent 0badd92265
commit ad69a73fa3
3 files changed
+6 -2

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ class Inventory(OSV):
date = fields.DateTime('Date', readonly=True)
lost_found = fields.Many2One(
'stock.location', 'Lost and Found', required=True,
domain="[('type', '=', 'inventory')]", states=STATES,)
domain="[('type', '=', 'lost_found')]", states=STATES,)
lines = fields.One2Many(
'stock.inventory.line', 'inventory', 'Inventory Lines', states=STATES,)
moves = fields.Many2Many(
+1 -1
View File
@@ -22,7 +22,7 @@ class Location(OSV):
type = fields.Selection([
('supplier', 'Supplier'),
('customer', 'Customer'),
('inventory', 'Inventory'),
('lost_found', 'Lost and Found'),
('warehouse', 'Warehouse'),
('storage', 'Storage'),
('production', 'Production'),
+4
View File
@@ -171,6 +171,10 @@
<field name="code">CUS</field>
<field name="type">customer</field>
</record>
<record model="stock.location" id="location_lost_found">
<field name="name">Lost and Found</field>
<field name="type">lost_found</field>
</record>
<record model="ir.property" id="property_supplier_location">
<field name="name">supplier_location</field>