← Back to team overview

credativ team mailing list archive

Re: [Question #181889]: editing mrp_repair workflow

 

Question #181889 on OpenERP Server changed:
https://answers.launchpad.net/openobject-server/+question/181889

    Status: Answered => Open

Aldin Draghoender is still having a problem:
Hi again,

Removing draft:readonly=False sets all states to readonly? as operations field also have the condition readonly=TRUE. I guess I should remove : 
 readonly=True, states={'draft':[('readonly',False)]}

FROM:
'operations' : fields.one2many('mrp.repair.line', 'repair_id', 'Operation Lines', readonly=True, states={'draft':[('readonly',False)]}),

Another question is should I add _view.xml and would this work for the
form view and should  i change the tree view?

		<record id="model_index_view" model="ir.ui.view">
			<field name="name">Model Index</field>
			<field name="model">mrp.repair</field>
			<field name="type">form</field>
			<field name="inherit_id" ref="mrp_repair.view_repair_order_form"/>
			<field name="arch" type="xml">
			      <page string="Operations" position="inside">
					<field colspan="4" mode="tree,form" name="operations" position="replace" nolabel="1" widget="one2many_list">
                        <field name="perations" />
					</page>
				</field>
			</field>
		</record>

Thanks,
Aldin

-- 
You received this question notification because you are a member of
OpenERP Framework Experts, which is an answer contact for OpenERP
Server.