Skip to Content
Menu
This question has been flagged
2 Replies
568 Views

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?

Avatar
Discard
Best Answer

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,



CandidRoot Solutions Pvt. Ltd.

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



Avatar
Discard
Best Answer

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

Avatar
Discard