Use Model for Many2Many

This commit is contained in:
Cédric Krier committed 2009-03-05 14:54:19 +01:00
1 parent 97d7c5850d
commit 1ee6479e07
2 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -312,9 +312,9 @@ class CompleteInventoryInit(ModelView):
_name = 'stock.inventory.complete.init'
_description = __doc__
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')
CompleteInventoryInit()
+3 -3
View File
@@ -1113,7 +1113,7 @@ class AssignPackingOutAskForce(ModelView):
_name = 'stock.packing.out.assign.ask_force'
_description = __doc__
inventory_moves = fields.Many2Many('stock.move', None, None, None,
inventory_moves = fields.Many2Many('stock.move', None, None,
'Inventory Moves', readonly=True)
AssignPackingOutAskForce()
@@ -1312,7 +1312,7 @@ class AssignPackingInternalAskForce(ModelView):
_name = 'stock.packing.internal.assign.ask_force'
_description = __doc__
moves = fields.Many2Many('stock.move', None, None, None, 'Moves',
moves = fields.Many2Many('stock.move', None, None, 'Moves',
readonly=True)
AssignPackingInternalAskForce()
@@ -1381,7 +1381,7 @@ class AssignPackingInReturnAskForce(ModelView):
_name = 'stock.packing.in.return.assign.ask_force'
_description = __doc__
moves = fields.Many2Many('stock.move', None, None, None, 'Moves',
moves = fields.Many2Many('stock.move', None, None, 'Moves',
readonly=True)
AssignPackingInReturnAskForce()