trytond-patches/issue7421002_1.diff
Sergi Almacellas Abellana 93b95fc9aa Add patch for issue4054
2014-07-11 18:05:34 +02:00

17 lines
611 B
Diff

Index: trytond/trytond/modules/stock/product.py
===================================================================
--- a/trytond/trytond/modules/stock/product.py
+++ b/trytond/trytond/modules/stock/product.py
@@ -299,7 +299,8 @@
class ProductQuantitiesByWarehouseStart(ModelView):
'Product Quantities By Warehouse'
__name__ = 'stock.product_quantities_warehouse.start'
- warehouse = fields.Many2One('stock.location', 'Warehouse', domain=[
+ warehouse = fields.Many2One('stock.location', 'Warehouse', required=True,
+ domain=[
('type', '=', 'warehouse'),
])