domain="[('deprecated', '=', False)] meaning?
Here, domain="[('deprecated', '=', False)] means it will display only those records for which deprecated(field name) is false(field value).
Generally Domain is used to filter data based on conditions.
You can get reference from here : https://www.odoo.com/documentation/10.0/reference/orm.html#domains
There are two types of domain in odoo, the first one is inline domain and the other is functional domain. The purpose of both domain is to filter records in many2one fields.
Above code means i want to show only those department which are academic.
#do some logic for getting ids
return [('id','in',[your ids goes here])]
department_id = fields.Many2one('department.model','Department',domain=semester_domain)
Hope I helped you. For scratch and business development in Odoo visit: https://goo.gl/8HgnCF