bzr revid: fp@openerp.com-20120717230006-dgs6r4f2pm73ancp
This commit is contained in:
Fabien Pinckaers 2012-07-18 01:00:06 +02:00
parent d17e291031
commit d708c4ae0c
2 changed files with 5 additions and 2 deletions

View File

@ -5,7 +5,10 @@ from osv import fields, osv
class task(osv.osv):
_name = "project.task"
_inherit = ["project.task",'pad.common']
_pad_url = 'description'
_pad_url = 'description_pad'
_columns = {
'description_pad': fields.char('PAD Description', size=250)
}
_defaults = {
_pad_url: lambda self, cr, uid, context: self.pad_generate_url(cr, uid, self._name, context),
}

View File

@ -7,7 +7,7 @@
<field name="inherit_id" ref="project.view_task_form2"/>
<field name="arch" type="xml">
<field name="description" position="replace">
<field name="description"
<field name="description_pad"
attrs="{'readonly':[('state','=','done')]}"
widget="etherpad"
/>