[FIX] Add the required flag and set the value to True

[IMP] Add a new "note" field in the object and in the view

bzr revid: stephane@tinyerp.com-20090306093535-6vdv3v30us1kd197
This commit is contained in:
Stephane Wirtel 2009-03-06 10:35:35 +01:00
parent 711ec7c831
commit 674fc66a46
2 changed files with 6 additions and 1 deletions

View File

@ -797,7 +797,8 @@ class mrp_procurement(osv.osv):
('cancel','Cancel'),
('ready','Ready'),
('done','Done'),
('waiting','Waiting')], 'Status')
('waiting','Waiting')], 'Status', required=True),
'note' : fields.text('Note'),
}
_defaults = {
'state': lambda *a: 'draft',

View File

@ -711,6 +711,10 @@
<separator colspan="4" string="Properties"/>
<field colspan="4" name="property_ids" nolabel="1" groups="base.group_extended"/>
</page>
<page string="Note">
<separator colspan="4" string="Note" />
<field name="name" colspan="4" />
</page>
</notebook>
</form>
</field>