diff options
| author | Stephane Wirtel <stephane@tinyerp.com> | 2009-03-06 10:33:10 +0100 |
|---|---|---|
| committer | Stephane Wirtel <stephane@tinyerp.com> | 2009-03-06 10:33:10 +0100 |
| commit | 11b72020eead2146d1f1d9c22f8e5c6ccbca964c (patch) | |
| tree | cc240df91d00ecd3fc27a6680b0bc24d744b3397 /addons | |
| parent | 894157b52df2016adaec8902e079738306ab7959 (diff) | |
[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-20090306093310-9k4ap5m2heosd5wf
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/mrp/mrp.py | 3 | ||||
| -rw-r--r-- | addons/mrp/mrp_view.xml | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py index b4388f6d19b..cb9e1500f52 100644 --- a/addons/mrp/mrp.py +++ b/addons/mrp/mrp.py @@ -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', diff --git a/addons/mrp/mrp_view.xml b/addons/mrp/mrp_view.xml index e977758e1d4..2093c51396d 100644 --- a/addons/mrp/mrp_view.xml +++ b/addons/mrp/mrp_view.xml @@ -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> |
