[IMP] Route_ids invisible

bzr revid: jco@openerp.com-20130926090912-rwcfzj1h7a64sbs5
This commit is contained in:
Josse Colpaert 2013-09-26 11:09:12 +02:00
parent 8ea2a7555b
commit 8f43801a7a
3 changed files with 2 additions and 3 deletions

View File

@ -16,7 +16,6 @@
#TODO: to check start date of next line should be end of date of previous line.
assert line.date_planned, "Planned Start date is not computed: %s" %(line)
assert line.date_planned_end, "Planned End date is not computed: %s" %(line)
-
I confirm the Production Order.
-

View File

@ -23,5 +23,5 @@
-
!python {model: mrp.repair}: |
repair_id = self.browse(cr, uid, [ref('mrp_repair_rmrp1')], context=context)[0]
assert not repair_id.invoice_id.id, "Invoice should not be exists for this repair order"
assert not repair_id.invoice_id.id, "Invoice should not exist for this repair order"

View File

@ -181,7 +181,7 @@
<field name="inherit_id" ref="stock.view_warehouse"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='partner_id']" position="after">
<field name="route_ids" attrs="{'invisible': [('route_id', '=', False)]}"/>
<field name="route_ids" invisible="1"/>
</xpath>
<xpath expr="//group[last()]" position="after">