[MOD] crm : small change in code and improvements in meeting invitations view
bzr revid: vir@tinyerp.com-20100728111212-v205l9cxjyln1lxj
This commit is contained in:
parent
50bcc5f7f1
commit
ec6d487047
|
@ -77,11 +77,11 @@
|
|||
<field name="arch" type="xml">
|
||||
<tree string="Invitation details">
|
||||
<field name="sent_by_uid" string="Invitation From" />
|
||||
<field name="role" string="My Role"/>
|
||||
<field name="role" string="My Role"/>
|
||||
<field name="cutype" string="Invitation type"/>
|
||||
<field name="state" />
|
||||
<field name="rsvp" string="Required to Join"/>
|
||||
<button name="do_tentative" states="needs-action,declined,accepted"
|
||||
<button name="do_tentative" states="needs-action,declined,accepted"
|
||||
string="Uncertain" type="object"
|
||||
icon="terp-crm" />
|
||||
<button name="do_accept" string="Accept"
|
||||
|
@ -108,12 +108,18 @@
|
|||
<field name="type">search</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="Search Invitations">
|
||||
<filter icon="terp-camera_test" name="toreview" string="To Review"
|
||||
domain="[('state','=', 'needs-action')]"
|
||||
separator="1" help="Invitations To Review" />
|
||||
<filter icon="terp-check" string="Accepted"
|
||||
domain="[('state','=', 'accepted')]"
|
||||
separator="1" help="Accepted Invitations" />
|
||||
<filter icon="terp-dialog-close" string="Declined"
|
||||
domain="[('state','=', 'declined')]"
|
||||
separator="1" help="Declined Invitations" />
|
||||
<filter icon="gtk-sort-descending" string="Delegated"
|
||||
domain="[('state','=', 'delegated')]"
|
||||
separator="1" help="Delegated Invitations" />
|
||||
<separator orientation="vertical"/>
|
||||
<field name="email" select='1'/>
|
||||
<field name="user_id" select="1"/>
|
||||
|
|
|
@ -166,11 +166,9 @@ class crm_lead(osv.osv, crm_case):
|
|||
}
|
||||
|
||||
def create(self, cr, uid, vals, context=None):
|
||||
lead_id = vals and vals.get('stage_id',False)
|
||||
if not lead_id:
|
||||
if not vals.get('stage_id',False):
|
||||
raise osv.except_osv('Error', _('There is no stage defined for this Sales Team'))
|
||||
res_id = super(crm_lead, self).create(cr, uid, vals, context=context)
|
||||
return res_id
|
||||
return super(crm_lead, self).create(cr, uid, vals, context=context)
|
||||
|
||||
def onchange_partner_address_id(self, cr, uid, ids, add, email=False):
|
||||
"""This function returns value of partner email based on Partner Address
|
||||
|
|
|
@ -106,7 +106,7 @@
|
|||
<field name="view_mode">tree,form</field>
|
||||
<field name="view_id" ref="base_calendar.base_calendar_attendee_tree_view" />
|
||||
<field name="domain">[('ref','like','crm.meeting,')]</field>
|
||||
<field name="context">{"search_default_user_id":uid}</field>
|
||||
<field name="context">{"search_default_toreview":1, "search_default_user_id":uid}</field>
|
||||
</record>
|
||||
|
||||
<menuitem id="menu_attendee_invitations"
|
||||
|
|
Loading…
Reference in New Issue