跳转到主要内容

合作伙伴关系

项目描述

Beta License: AGPL-3 OCA/partner-contact Translate me on Weblate Try me on Runbot

本模块旨在提供建模合作伙伴之间关系的通用方式。

例如可以是“是兄弟姐妹”或“是朋友”,也可以是“与X有合同”或“是助手”。这样,您可以直接在合作伙伴列表中编码关于合作伙伴的知识。

目录

用法

关系类型

在使用关系之前,您需要先定义一些内容。在“联系人/关系/合作伙伴关系”中完成此操作。

https://raw.githubusercontent.com/OCA/partner-contact/12.0/partner_multi_relation/static/description/relation_type_list.png

关系类型对双方都有一个名称。

https://raw.githubusercontent.com/OCA/partner-contact/12.0/partner_multi_relation/static/description/relation_type_form_empty.png

要有一个助手关系,您将一边命名为“是助手的”,另一边命名为“有助手”。

https://raw.githubusercontent.com/OCA/partner-contact/12.0/partner_multi_relation/static/description/relation_type_form_name_filled.png

合作伙伴类型

“合作伙伴类型”字段允许限制关系左右两边可以使用哪种类型的合作伙伴。

  • 在上面的例子中,助手关系只对人类有意义,所以您会为两种合作伙伴类型选择“人员”。

https://raw.githubusercontent.com/OCA/partner-contact/12.0/partner_multi_relation/static/description/relation_type_form_partner_type_filled.png
  • 对于“是竞争对手”的关系,两边都是公司。

  • “曾经为...工作”的关系应该左边是人员,右边是公司。

如果您留空这些字段,则关系适用于所有类型的合作伙伴。

合作伙伴类别

您可以使用类别(标签)进一步指定合作伙伴的类型。

例如,您可以强制执行“是成员”的关系,只接受右边有标签“组织”的公司。

https://raw.githubusercontent.com/OCA/partner-contact/12.0/partner_multi_relation/static/description/relation_type_form_category_filled.png

自反性

自反关系类型允许合作伙伴与自己建立关系。

例如,公司的CEO可能就是他自己的经理。

https://raw.githubusercontent.com/OCA/partner-contact/12.0/partner_multi_relation/static/description/relation_type_reflexive.png

对称性

对称关系左右两边的值相同。

例如,在竞争关系上,两家公司互为竞争对手。

https://raw.githubusercontent.com/OCA/partner-contact/12.0/partner_multi_relation/static/description/relation_type_symmetric.png

无效关系处理

当关系类型的配置发生变化时,一些合作伙伴之间的关系可能变得无效。

例如,如果左侧的合作伙伴类型设置为人员,并且与右侧的公司已经存在关系,则该关系变得无效。

https://raw.githubusercontent.com/OCA/partner-contact/12.0/partner_multi_relation/static/description/relation_type_invalid_handling.png

无效关系的行为可以根据关系类型进行自定义。

有4种可能的行为可供选择

  • 不允许导致无效关系的变化

  • 允许现有不符合更改条件的关系

  • 如果不符合更改条件,则终止关系至今天

  • 删除不符合更改条件的关系

通过关系搜索合作伙伴

要搜索现有关系,请转到 联系人 / 关系 / 关系

https://raw.githubusercontent.com/OCA/partner-contact/12.0/partner_multi_relation/static/description/search_relation.png

要查找数据库中的所有助手,请填写“助手”,自动补全将建议搜索此类关系。

https://raw.githubusercontent.com/OCA/partner-contact/12.0/partner_multi_relation/static/description/search_relation_2.png

现在,如果您想找到Colleen的助手,请填写“Colleen”,其中一个建议是搜索与Colleen有关系的合作伙伴。

https://raw.githubusercontent.com/OCA/partner-contact/12.0/partner_multi_relation/static/description/search_relation_3.png

从合作伙伴视图搜索关系

在合作伙伴表单视图中有一个智能按钮,可以显示关系列表。

https://raw.githubusercontent.com/OCA/partner-contact/12.0/partner_multi_relation/static/description/partner_form_view_smart_button.png https://raw.githubusercontent.com/OCA/partner-contact/12.0/partner_multi_relation/static/description/partner_form_view_smart_button_2.png

错误跟踪器

错误在GitHub Issues上跟踪。如有问题,请检查您的问题是否已被报告。如果是您首先发现的,请提供详细且受欢迎的反馈以帮助我们解决问题。

请不要直接联系贡献者以获取支持或帮助解决技术问题。

致谢

作者

  • Therp BV

  • Camptocamp

贡献者

维护者

本模块由OCA维护。

Odoo Community Association

OCA,即Odoo社区协会,是一个非营利组织,其使命是支持Odoo功能的协作开发并推广其广泛应用。

本模块是OCA/partner-contact项目在GitHub上的一个部分。

欢迎您贡献。要了解如何贡献,请访问https://odoo-community.org/page/Contribute

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源代码分发

本版本没有可用的源代码分发文件。请参阅生成分发存档的教程。

构建分发

由以下支持