python - How to show two fields in view which is of same column in class in openERP -


in openerp purchase module i'm having 2 fields purchase order amendment of 'ordered quantity-old' , 'ordered quantity-new' retrieving data same column. want show

1. 1 field 'ordered quantity- old' should show current purchase order's 'ordered quantity' actual value table , should read field,

2. field 'ordered quantity- new' should not show value(should 0) , once new changed quantity given should update column in table

how this?

thanks in advance

well, idea gave 2 fields have 1 field, can't done. create new field ordered quantity - new , let read-only. , when new quantity given update field. if still find undesirable, set second field invisible, , use helper field. there, store value in , when confirming new field take/store old value in history purposes.

in view have old , new, have splited logic , user have easier time understand.

third option related field if have connection different table.

'model':fields.related('model_id','model',type="char", size=64, string="model name") 

first parameter field in current table referenced, second if field pulled referenced table, rest known :)

best regards


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -