model: mrp_workcenter_productivity_loss_type
I would like to know what loss_type field is used in this model. Do you happen to know?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
model: mrp_workcenter_productivity_loss_type
I would like to know what loss_type field is used in this model. Do you happen to know?
Hello WillowTree
class MrpWorkcenterProductivityLossType(models.Model):
_name = "mrp.workcenter.productivity.loss.type"
_description = 'MRP Workorder productivity losses'
_rec_name = 'loss_type'
loss_type = fields.Selection([
('availability', 'Availability'),
('performance', 'Performance'),
('quality', 'Quality'),
('productive', 'Productive')], string='Category', default='availability', required=True)
you can see loss_type is define in above module which is selection field with various option.
class MrpWorkcenterProductivityLoss(models.Model):
_name = "mrp.workcenter.productivity.loss"
_description = "Workcenter Productivity Losses"
_order = "sequence, id"
loss_id = fields.Many2one('mrp.workcenter.productivity.loss.type', domain=([('loss_type', 'in', ['quality', 'availability'])]), string='Category')
workcenter productivity loess has many2one of loss type module with domain as mentioned above.
Thanks & Regards,
Mobile: (+91) 8849036209
Email: info@candidroot.com
Skype: live:candidroot
Web: https://www.candidroot.com
Address: 1229-1230, Iconic Shyamal, Near Shyamal Cross Road, Ahmedabad, Gujarat
First activate developer mode then go to setting or search by model on main odoo screen and go to specific model which you want to see then open it and see all fields available ..... you can find any field that is relevant to your search model
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up