Skip to content
  • Categories
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse

Odoo 中文社区

  1. Home
  2. Categories
  3. Odoo 新手求助
  4. odoo判断 用户是否是销售团队负责人的规则

odoo判断 用户是否是销售团队负责人的规则

Scheduled Pinned Locked Moved Solved Odoo 新手求助
12 Posts 3 Posters 1.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 元 Offline
    元 Offline
    元宝
    wrote on last edited by
    #3

    应用场景是 在访问销售订单的时候 判断这个人是不是销售团队的负责人

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andy huang
      replied to 元宝 on last edited by
      #4

      @元宝 添加一个计算字段就可以搞定

      元 1 Reply Last reply
      0
      • 元 Offline
        元 Offline
        元宝
        replied to andy huang on last edited by
        #5

        @andy-huang 是在res.user里添加一个字段 用来计算吗。有具体步骤逻辑吗。公司业务需求 刚学odoo 还没太明白

        1 Reply Last reply
        0
        • 元 Offline
          元 Offline
          元宝
          wrote on last edited by
          #6

          @digitalsatori 大佬能提供思路吗

          1 Reply Last reply
          0
          • digitalsatoriD Offline
            digitalsatoriD Offline
            digitalsatori 管理员
            wrote on last edited by
            #7

            感觉你的问题的标题和内容不搭啊。
            domain不是用来判断用户是否为销售团队负责人的,domain是用来作为过滤条件过滤记录的。你是要在什么对象上使用domain,想要如何过滤记录。

            【上海先安科技】(tony AT openerp.cn)

            元 2 Replies Last reply
            0
            • 元 Offline
              元 Offline
              元宝
              replied to digitalsatori on last edited by
              #8

              @digitalsatori 我现在大概了解了。用domain 无法过滤。

              1 Reply Last reply
              0
              • 元 Offline
                元 Offline
                元宝
                replied to digitalsatori on last edited by
                #9

                @digitalsatori 我的业务需求 是一个用户可以是多个团队负责人。然后可以查看负责团队的销售订单 或者 漏洞/线索。 这个大概是往哪个方向 入手。我看楼上说的添加一个计算字段 是什么逻辑。

                digitalsatoriD 1 Reply Last reply
                0
                • digitalsatoriD Offline
                  digitalsatoriD Offline
                  digitalsatori 管理员
                  replied to 元宝 on last edited by
                  #10

                  @元宝 首先“销售订单”,“漏洞”,”线索“ 对象上要有对应sale_team的外键字段比如team_id . 记得team.user_id就是团队负责人, 所以你的domain可以是:

                  [('team_id.user_id', '=', user.id)]
                  

                  【上海先安科技】(tony AT openerp.cn)

                  元 1 Reply Last reply
                  1
                  • 元 Offline
                    元 Offline
                    元宝
                    replied to digitalsatori on last edited by
                    #11

                    @digitalsatori 谢谢 已解决 怎么标记这个问题已解决

                    1 Reply Last reply
                    0
                    • digitalsatoriD Offline
                      digitalsatoriD Offline
                      digitalsatori 管理员
                      wrote on last edited by
                      #12

                      不客气,常来交流。在“主题工具”里可以标记“问题已解决”。我已经帮你标记了。

                      【上海先安科技】(tony AT openerp.cn)

                      1 Reply Last reply
                      0

                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Tags
                      • Popular
                      • Users
                      • Groups