Hi Everyone,

With help from hda http://www.openobject.com/forum/topic10573.html
I was able to get my field in crm module.  I now want to elaborate on this 
field and auto generate the formatted text.  I believe the best approach is to 
use the Sale Order (description Field) auto generated code. SO###

I am thinking of the following code below and alter the ir.sequence table to 
added crm.case with a prefix and starting sequence number.

Advice and help appreciated
Regards
S

from osv import fields
from osv import osv

class crm_case(osv.osv):
    _name='crm.case'
    _inherit='crm.case'
    _columns={'inq_name':fields.char('Enquiry 
Number',size=16),)}
           default.update({
            'ing_name': 
self.pool.get('ir.sequence').get(cr, uid, 'crm.case'),
        }
crm_case()





-------------------- m2f --------------------

--
http://www.openobject.com/forum/viewtopic.php?p=34869#34869

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users

Reply via email to