[MERGE] OPW 575178: process: node conditions have priority over model states
authorXavier ALT <xal@openerp.com>
Mon, 16 Jul 2012 08:48:49 +0000 (10:48 +0200)
committerXavier ALT <xal@openerp.com>
Mon, 16 Jul 2012 08:48:49 +0000 (10:48 +0200)
  - process node conditions defined which nodes can be reached in the current
    context, so nodes which doesn't fullfill the conditions should stay gray
    even if ``model_states`` eval to True.

bzr revid: xal@openerp.com-20120716084849-k6c0gdgz3gh8t8dc

1  2 
addons/purchase/process/purchase_process.xml

          <record id="process_condition_conditionorigin" model="process.condition">
              <field name="model_id" ref="purchase.model_purchase_order"/>
              <field name="node_id" ref="process_node_draftpurchaseorder1"/>
-             <field eval="&quot;&quot;&quot;object.origin==''&quot;&quot;&quot;" name="model_states"/>
 -            <field eval="&quot;&quot;&quot;object.origin==False&quot;&quot;&quot;" name="model_states"/>
++            <field eval="&quot;&quot;&quot;not object.origin&quot;&quot;&quot;" name="model_states"/>
              <field eval="&quot;&quot;&quot;condition_origin&quot;&quot;&quot;" name="name"/>
          </record>