bzr revid: fp@tinyerp.com-20100901215324-owjfnq2wsrmcwsvv
This commit is contained in:
Fabien Pinckaers 2010-09-01 23:53:24 +02:00
parent 4c3fc45707
commit 329672654a
3 changed files with 5 additions and 6 deletions

View File

@ -141,6 +141,7 @@
<record id="trans_confirm_mto_purchase" model="workflow.transition">
<field name="act_from" ref="act_confirm_mto"/>
<field name="act_to" ref="act_make_done"/>
<field name="condition">check_buy()</field>
</record>
<record id="trans_confirm_mto_confirm" model="workflow.transition">
<field name="act_from" ref="act_confirm_mto"/>

View File

@ -18,6 +18,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
import project_procurement
import project_mrp
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

View File

@ -62,14 +62,12 @@
- model: procurement.order
search: "[('state','=','confirmed')]"
-
Now I check the tasks.
-
I see that one task is created for my sale order.
Now I check that one task is created for my sale order.
-
!python {model: project.task}: |
from tools.translate import _
order_obj = self.pool.get('sale.order')
order = order_obj.browse(cr, uid, ref('sale_order_so0'))
task_id = self.search(cr, uid, [('project_id.name','=', order.name)])
task_id = self.search(cr, uid, [('name','like', order.name)])
assert task_id, _('No Task is created!')