base contact: add sequence_partner field on job
authorMustufa Rangwala <mra@tinyerp.com>
Tue, 16 Sep 2008 10:19:45 +0000 (15:49 +0530)
committerMustufa Rangwala <mra@tinyerp.com>
Tue, 16 Sep 2008 10:19:45 +0000 (15:49 +0530)
bzr revid: mra@tinyerp.com-20080916101945-r3np9ia9gx9ec4t1

addons/base_contact/base_contact.py
addons/base_contact/base_contact_view.xml

index ce0296d..d5ca371 100644 (file)
@@ -111,6 +111,7 @@ class res_partner_job(osv.osv):
         'contact_id':fields.many2one('res.partner.contact','Contact', required=True),
         'function_id': fields.many2one('res.partner.function','Function', required=True),
         'sequence_contact':fields.integer('Sequence (Contact)',help='order of importance of this address in the list of addresses of the linked contact'),
+        'sequence_partner':fields.integer('Sequence (Partner)',help='order of importance of this function in the list of functions of the linked partner'),
         'email': fields.char('E-Mail', size=240),
         'phone': fields.char('Phone', size=64),
     }
index 4c2682a..182a6e8 100644 (file)
                         <newline/>
                         <field name="job_ids" mode="tree, form" colspan="4">
                             <tree string="Contacts" editable="top">
+                                   <field name="sequence_partner"/>
                                 <field name="contact_id"/>
                                 <field name="function_id"/>
                                 <field name="phone"/>
                                 <field name="email"/>
                             </tree>
                             <form string="Contacts">
+                                   <field name="sequence_partner"/>
                                 <field name="contact_id"/>
                                 <field name="function_id"/>
                                 <field name="phone"/>
                         <field name="email" select="2"/>
                         <field name="phone" select="2"/>
                         <field name="sequence_contact" select="2"/>
+                        <field name="sequence_partner" select="2"/>
                     </page>
                 </notebook>
             </form>