Advertisement
Guest User

Untitled

a guest
Sep 7th, 2011
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. module is named aikido (name of martial art)
  2. aikidoka is person that is doing that and inherits from party
  3.  
  4. in /usr/local/lib/python2.6/dist-packages/trytond_aikido/trytond/modules/aikido I have:
  5.  
  6. ::::::::::::::
  7. aikidoka.py
  8. ::::::::::::::
  9. # -*- coding: utf-8 -*-
  10. from trytond.model import ModelView, ModelSQL, fields
  11. class Aikidoka(ModelSQL, ModelView):
  12. 'Aikidoka'
  13. _name = 'party.party'
  14. _description = __doc__
  15.  
  16. dateofbirth = fields.Char('Date of Birth')
  17.  
  18. Aikidoka()
  19. ::::::::::::::
  20. __init__.py
  21. ::::::::::::::
  22. # -*- coding: utf-8 -*-
  23. from party import *
  24.  
  25. from aikido import *
  26. ::::::::::::::
  27. __tryton__.py
  28. ::::::::::::::
  29. # -*- coding: utf-8 -*-
  30. {
  31. 'name' : 'Aikidoka',
  32. 'version' : '0.0.1',
  33. 'author' : 'Pander',
  34. 'email' : 'pander@users.sourceforge.net',
  35. 'description': 'Derived from Party with customisation for aikido',
  36. 'depends' : [
  37. 'ir',
  38. 'party',
  39. ],
  40. 'xml' : [
  41. 'aikidoka.xml',
  42. ],
  43. 'translation' : [
  44. ],
  45. }
  46.  
  47. Is this correct so far?
  48.  
  49. How do I set up aikidoka.xml to only add a label and field to party.xml?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement