跳转至内容
  • 版块
  • 标签
  • 热门
  • 用户
  • 群组
皮肤
  • 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

  • 默认(Flatly)
  • 不使用皮肤
折叠

Odoo 中文社区

  1. 主页
  2. 版块
  3. Odoo 开发与实施交流
  4. 深入理解OpenERP的工作流(Workflow)

深入理解OpenERP的工作流(Workflow)

已定时 已固定 已锁定 已移动 Odoo 开发与实施交流
12 帖子 7 发布者 30.4k 浏览
  • 从旧到新
  • 从新到旧
  • 最多赞同
登录后回复
此主题已被删除。只有拥有主题管理权限的用户可以查看。
  • mrshellyM 离线
    mrshellyM 离线
    mrshelly
    写于 最后由 编辑
    #3

    占位卖广告..... 有意站内PM...

    1 条回复 最后回复
    0
    • N 离线
      N 离线
      NewZN
      写于 最后由 编辑
      #4

      迁移(Transition)的定义漏了权限组group_id,修正如下。表示只有该权限组可以触发本迁移。
      迁移的完整 XML 定义格式如下。
      <record model="workflow.transition" id="transition_id">
        <field name="act_from" ref="activity_id_1"/>
        <field name="act_to" ref="activity_id_2"/>
        <field name="group_id" ref="groupid"/>
        <field name="signal">(...)</field>
        <field name="condition">(...)</field>
        <field name="trigger_model">(...)</field>
        <field name="trigger_expr_id">(...)</field>
      </record>

      1 条回复 最后回复
      0
      • mrshellyM 离线
        mrshellyM 离线
        mrshelly
        写于 最后由 编辑
        #5

        觉得 对 split_mode 与 join_mode 的理解就深入了.

        能不能就 split_mode 与 join_mode 举几个实例呢? 射射...

        1 条回复 最后回复
        0
        • N 离线
          N 离线
          NewZN
          写于 最后由 编辑
          #6

          > 能不能就 split_mode 与 join_mode 举几个实例呢?
          呵呵,本来只想讲理论,不想举例子的,例子是实践问题,实践问题是要马尼的。
          为了Shelly兄,特此举个例子说明下。
          例如 split_mode 的三个选项,XOR,OR,AND。以办公审批流程中的“会签”为例,XOR表示,所有审批人中,只要一个人审批了,就表示审批通过。AND表示,只有所有人都审批了,才表示审批通过。

          1 条回复 最后回复
          0
          • N 离线
            N 离线
            NewZN
            写于 最后由 编辑
            #7

            上文关于Trigger model和Trigger expr_id的解释不够清楚,更清楚的解释参看链接:http://www.openerp.com/forum/post82154.html#p82154
            原文部分摘抄如下:

            I'll explain here what these two fields do: trigger_model and trigger_expr_id, for people looking for help :
            - These fields let you ask for an "evaluation" of the condition when a specific object changed.

            For example, suppose you want to set a Sale Order into the state "Done" once it has been shipped. The first the time the condition will be evaluated, it will be False. But later (some days after), we will confirm the shipping order. But our workflow condition is not checked again. Unless you define trigger_model and trigger_expr_id.

            - Trigger model: The object type which will trigger an evaluation of your condition.
            - Trigger expr_id: A list of model ids which will trigger the condition.

            For example, to take the example of our Sale Order, we don't want to check the condition each time a shipping order is confirmed, but only when the shipping order associated to our sale order is confirmed !

            Note: You can put a call to a function into trigger_expr_id, like <field name="trigger_expr_id">get_shipping_ids()</field>, or you can directly put a python value (like in my example in the previous post).

            WARNING: Currently (OpenERP 6.0) you can only use trigger_model and trigger_expr_id a few objects: account.move.line, procurement.order and stock.move !


            1 条回复 最后回复
            0
            • H 离线
              H 离线
              hungriness
              写于 最后由 编辑
              #8

              关于Transition这一条好象没有介绍
              end of a subflow through a selected activity of subflow,而这种用得还比较多。

              1 条回复 最后回复
              0
              • F 离线
                F 离线
                fengyan513
                写于 最后由 编辑
                #9

                  <field name="group_id" ref="base.group_hr_user"/>

                请问:
                工作流中,设置用户组的时候,group_id 设置为base.group_hr_user 表示 “人力资源 / Officer”,我自己新建的组的标识 在哪里个表中可以查到

                1 条回复 最后回复
                0
                • C 离线
                  C 离线
                  codefans
                  写于 最后由 编辑
                  #10

                  mark

                  1 条回复 最后回复
                  0
                  • M 离线
                    M 离线
                    mf1389004071
                    写于 最后由 编辑
                    #11

                    mark

                    1 条回复 最后回复
                    0
                    • F 离线
                      F 离线
                      fulin87
                      写于 最后由 编辑
                      #12

                      是不是可以这里理解:正是OE的工作流机制解决了OE模块间的耦合性呢?

                      1 条回复 最后回复
                      0

                      • 登录

                      • 没有帐号? 注册

                      • 登录或注册以进行搜索。
                      • 第一个帖子
                        最后一个帖子
                      0
                      • 版块
                      • 标签
                      • 热门
                      • 用户
                      • 群组