Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

19 lignes
507 B

  1. # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
  2. # MIT License. See license.txt
  3. from __future__ import unicode_literals
  4. import webnotes
  5. from webnotes import _
  6. import json
  7. @webnotes.whitelist()
  8. def update_event(args, field_map):
  9. args = webnotes._dict(json.loads(args))
  10. field_map = webnotes._dict(json.loads(field_map))
  11. w = webnotes.bean(args.doctype, args.name)
  12. w.doc.fields[field_map.start] = args[field_map.start]
  13. w.doc.fields[field_map.end] = args[field_map.end]
  14. w.save()