From ad69a73fa3d4ec21da1d47a101cff1ff4a99c79a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 14 May 2008 11:45:08 +0200 Subject: [PATCH] Add lost and found location for inventories --- inventory.py | 2 +- location.py | 2 +- location.xml | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/inventory.py b/inventory.py index 073f8be28a..12440c6fe9 100644 --- a/inventory.py +++ b/inventory.py @@ -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( diff --git a/location.py b/location.py index cbc29de735..9cbfbf55e4 100644 --- a/location.py +++ b/location.py @@ -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'), diff --git a/location.xml b/location.xml index 0d417c38dd..f3d27afaa5 100644 --- a/location.xml +++ b/location.xml @@ -171,6 +171,10 @@ CUS customer + + Lost and Found + lost_found + supplier_location