Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Some useful parameters used by multiple methods in OpenERP/Odoo

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 296
    Comment on it

    Here is useful parameters used by multiple methods in OpenERP

    cr: database connection (cursor)
    uid: id of user performing the operation
    ids: record ids to perform the operation on
    context: optional dictionary of contextual parameters

    For example-
    def _get_ean_next_code(self, cr, uid, product, context=None):
            if context is None: context = {}
            sequence_obj = self.pool.get('ir.sequence')

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: