|
@@ -26,7 +26,7 @@ from openerp import fields, models, api
|
|
|
class PlannedWork (models.Model):
|
|
|
_name = 'planned.work'
|
|
|
|
|
|
- planned_work = fields.Many2one('product.template', string='Planned work', domain=[('type', '=', 'service')])
|
|
|
+ planned_work = fields.Many2one('product.template', string='Planned work', domain=[('type', '=', 'service'),('sale_ok','=',True)])
|
|
|
time_spent = fields.Float(string='Estimated Time')
|
|
|
work_date = fields.Datetime(string='Date')
|
|
|
responsible = fields.Many2one('res.users', string='Responsible')
|
|
@@ -44,7 +44,7 @@ class PlannedWork (models.Model):
|
|
|
class MaterialUsed (models.Model):
|
|
|
_name = 'material.used'
|
|
|
|
|
|
- material = fields.Many2one('product.template', string='Productos')
|
|
|
+ material = fields.Many2one('product.template', string='Productos', domain=[('sale_ok','=',True)])
|
|
|
amount = fields.Integer(string='Cantidad')
|
|
|
price = fields.Float(string='Precio Unitario')
|
|
|
material_id = fields.Many2one(string='car.workshop')
|