1234567891011121314 |
- # -*- coding:utf-8 -*-
- from openerp import fields, models
- class Asistencia(models.Model):
- _inherit="project.task.activity"
- asistencia=fields.Boolean('Asistencia?', default=False)
- partner_id=fields.Many2one('res.partner', 'Cliente:')
- class ResPartner(models.Model):
- _inherit="res.partner"
- asistencia_id=fields.One2many('project.task.activity','partner_id', string='Asistencias')
|