Use Model for Many2Many
This commit is contained in:
1 parent
97d7c5850d
commit
1ee6479e07
2 files changed
+5
-5
No files matched your search
+2
-2
@@ -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
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user