From b040aa87995c722056bd3b263ccd305cfb646474 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 5 Mar 2009 14:54:45 +0100 Subject: [PATCH] Use Model for Many2Many --- inventory.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inventory.py b/inventory.py index e98be793ea..adfdb6db9a 100644 --- a/inventory.py +++ b/inventory.py @@ -14,11 +14,11 @@ class CreateInventoriesInit(ModelView): 'stock.location', 'Lost and Found', required=True, domain=[('type', '=', 'lost_found')]) company = fields.Many2One('company.company', 'Company', required=True) - locations = fields.Many2Many('stock.location', None, None, None, + locations = fields.Many2Many('stock.location', None, None, 'Locations', required=True, domain=[('type', '=', 'storage')]) - products = fields.Many2Many('product.product', None, None, None, + products = fields.Many2Many('product.product', None, None, 'Products', domain=[('type', '=', 'stockable')]) - categories = fields.Many2Many('product.category', None, None, None, + categories = fields.Many2Many('product.category', None, None, 'Categories') def default_lost_found(self, cursor, user, context=None):