New product types: Goods, Assets and Service

review260001
This commit is contained in:
Cédric Krier committed 2012-03-16 12:42:01 +01:00
1 parent 72e1753d2c
commit fdb68b03a5
2 files changed
+6 -2

No files matched your search

+5 -1
View File
@@ -228,7 +228,11 @@ class ForecastLine(ModelSQL, ModelView):
_rec_name = 'product'
product = fields.Many2One('product.product', 'Product', required=True,
domain=[('type', '=', 'stockable')], on_change=['product'])
domain=[
('type', '=', 'goods'),
('consumable', '=', False),
],
on_change=['product'])
uom = fields.Many2One('product.uom', 'UOM', required=True,
domain=[
('category', '=',
+1 -1
View File
@@ -71,7 +71,7 @@ class StockForecastTestCase(unittest.TestCase):
unit_id, = self.uom.search([('name', '=', 'Unit')])
product_id = self.product.create({
'name': 'Test create_moves',
'type': 'stockable',
'type': 'goods',
'category': category_id,
'cost_price_method': 'fixed',
'default_uom': unit_id,