hunk.code_window:             tasks = projects.with_context(active_test=False).mapped('tasks')
               tasks.write({'active': vals['active']})
           return res
       def search(self, cr, uid, args, offset=0, limit=None, order=None, context=None, count=False):
           context = dict(context or {})
           if context.get('message_is_follower', False):
               res = super(project, self).search(cr, uid, args, offset=offset, limit=limit, order=order, context=context, count=count)
               return [proj.id for proj in self.browse(cr, uid, res, context=context) if proj.message_is_follower]
           return super(project, self).search(cr, uid, args, offset=offset, limit=limit, order=order, context=context, count=count)
   class task(osv.osv):
       _name = "project.task"
  
hunk.labels: keep keep keep keep replace replace replace replace replace replace replace keep keep keep
hunk.file_path: addons/project/project.py
hunk.type: replace
file: <?xml version="1.0" encoding="utf-8"?>
  <openerp>
      <data>
  
          <record id="view_hr_attendance_error" model="ir.ui.view">
              <field name="name">Attendance Report Error</field>
              <field name="model">hr.attendance.error</field>
              <field name="arch" type="xml">
              <form string="Print Attendance Report Error">
                  <group string="Analysis Information" col="4">
                      <field name="init_date"/>
                      <field name="end_date"/>
                      <field name="max_delay"/>
                  </group>
                  <label string="Below the maximum tolerance, the attendance error will not be taken into account. Above the maximum tolerance, the error is considered to be voluntary and will be taken into account." colspan="2"/>
                  <footer>
                      <button name="print_report" string="Print" type="object" class="btn-primary"/>
                      <button string="Cancel" class="btn-default" special="cancel" />
                  </footer>
              </form>
              </field>
          </record>
  
          <record id="action_hr_attendance_error" model="ir.actions.act_window">
              <field name="name">Attendance Error Report</field>
              <field name="type">ir.actions.act_window</field>
              <field name="res_model">hr.attendance.error</field>
              <field name="view_type">form</field>
              <field name="view_mode">form</field>
              <field name="target">new</field>
          </record>
  
          <record model="ir.values" id="hr_attendance_error_values">
              <field name="model_id" ref="hr.model_hr_employee" />
              <field name="name">Attendance Error Report</field>
              <field name="key2">client_print_multi</field>
              <field name="value" eval="'ir.actions.act_window,' + str(ref('action_hr_attendance_error'))" />
              <field name="key">action</field>
              <field name="model">hr.employee</field>
          </record>
  
      </data>
  </openerp>
  