You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
2.8 KiB

  1. # -*- coding: utf-8 -*-
  2. # © 2013-2017 Therp BV <http://therp.nl>.
  3. # License AGPL-3.0 or later <http://www.gnu.org/licenses/agpl.html>.
  4. {
  5. "name": "Partner relations",
  6. "version": "7.0.1.1.1",
  7. "author": "Therp BV,Odoo Community Association (OCA)",
  8. "license": "AGPL-3",
  9. "complexity": "normal",
  10. "description": """
  11. Introduction
  12. ------------
  13. This addon aims to provide generic means to model relations between partners.
  14. Examples would be 'is sibling of' or 'is friend of', but also 'has contract X
  15. with' or 'is assistant of'. This way, you can enode your knowledge about your
  16. partners directly in your partner list.
  17. Usage
  18. -----
  19. Before being able to use relations, you'll have define some first. Do that in
  20. Sales / Configuration / Address Book / Partner relations. Here, you need to
  21. name both sides of the relation: To have an assistant-relation, you would name
  22. one side 'is assistant of' and the other side 'has assistant'. This relation
  23. only makes sense between people, so you would choose 'Person' for both partner
  24. types. For the relation 'is a competitor of', both sides would be companies,
  25. while the relation 'has worked for' should have persons on the left side and
  26. companies on the right side. If you leave this field empty, the relation is
  27. applicable to all types of partners.
  28. If you use categories to further specify the type of partners, you could for
  29. example enforce that the 'is member of' relation can only have companies with
  30. label 'Organization' on the left side.
  31. Now open a partner and choose relations as appropriate in the 'Relations' tab.
  32. Searching partners with relations
  33. ---------------------------------
  34. Searching for relations is integrated transparently into the partner search
  35. form. To find all assistants in your database, fill in 'is assistant of' and
  36. autocomplete will propose to search for partners having this relation. Now if
  37. you want to find Anna's assistant, you fill in 'Anna' and one of the proposals
  38. is to search for partners having a relation with Anna. This results in Anna's
  39. assistant(s), as you searched for assistants before.
  40. By default, only active, not expired relations are shown. If you need to find
  41. partners that had some relation at a certain date, fill in that date in the
  42. search box and one of the proposals is to search for relations valid at that
  43. date.""",
  44. "category": "Customer Relationship Management",
  45. "depends": [
  46. 'base',
  47. 'web_m2x_options',
  48. 'web_tree_many2one_clickable',
  49. ],
  50. "demo": [
  51. "data/demo.xml",
  52. ],
  53. "data": [
  54. "view/res_partner_relation_all.xml",
  55. 'view/res_partner.xml',
  56. 'view/res_partner_relation.xml',
  57. 'view/res_partner_relation_type.xml',
  58. 'view/menu.xml',
  59. 'security/ir.model.access.csv',
  60. ],
  61. "auto_install": False,
  62. "installable": True,
  63. }