文档指南

实用和简明文档

Every ORM object method takes the same self, cr, uid parameters and usually a list of ids and an optional context, so it would be quite redundant to copy/paste the obvious description for these parameters every time:

  1. def action_send(self, cr, uid, ids, context=None):
  2. """ This sends an email to ALL the addresses of the selected partners.
  3. @param self: The object pointer
  4. @param cr: the current row, from the database cursor,
  5. @param uid: the current user ID for security checks
  6. @param ids: List of Phonecall to Opportunity's IDs
  7. @param context: A standard dictionary for contextual values
  8. """
  9. def action_send(self, cr, uid, ids, context=None):
  10. """ This sends an email to ALL the addresses of the selected partners.
  11. @param context['mail']: 'new' to send a new mail or 'reply' if to reply to the last case_history
  12. """