Python
latest
  • 目录
    • OpenERP 用户手册
    • 开发手册
    • 社区指南
    • Remainder of old TOC
    • 安装
    • 如何回馈社区
      • 介绍
      • Launchpad 社区协作平台
      • 如何在团队中工作
      • 博客集聚和公告
      • Bazaar 版本控制工具
      • 开发模块
      • 文档处理
      • 将OpenERP翻译为你的本地语言
      • Bug 的提交和处理
      • 新功能要求
      • 交流
      • OpenERP 版本发布常见问题
      • OpenERP 指引
        • 编程指引
        • 文档指南
        • 贡献指南
        • 使用指南
        • 本地化指南
    • 许可与版权
    • 界面交互指南
    • 常见问题(FAQ)
    • 模块技术指南: Introspection report on objects
    • Odoo: 随时随地在线管理
Python
  • Docs »
  • 目录 »
  • 如何回馈社区 »
  • OpenERP 指引 »
  • 文档指南
  • Edit on GitHub

文档指南¶

实用和简明文档¶

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:

def action_send(self, cr, uid, ids, context=None):
    """ This sends an email to ALL the addresses of the selected partners.
    @param self: The object pointer
    @param cr: the current row, from the database cursor,
    @param uid: the current user ID for security checks
    @param ids: List of Phonecall to Opportunity's IDs
    @param context: A standard dictionary for contextual values
    """

def action_send(self, cr, uid, ids, context=None):
    """ This sends an email to ALL the addresses of the selected partners.
    @param context['mail']: 'new' to send a new mail or 'reply' if to reply to the last case_history
    """
Next Previous

© Copyright . Revision d16e77c1.

Built with Sphinx using a theme provided by Read the Docs.
  • Use Online Subscribe
  • Use On-Site Subscribe
  • Learn Training
  • Read Documentation
  • Contribute Launchpad
  • Discuss Forum
  • Meet Events
  • Talk Twitter
  • Company About Us
  • Philosophy Vision
  • More Contact Us

© 2005-Today. All rights reserved.
OpenERP is a trademark of OpenERP s.a. The software is released under AGPL.