<field name="type">form</field>
<field name="arch" type="xml">
<form string="Server Action">
-- <field name="name" select="1"/>
-- <field name="state" select="1"/>
-- <field name="model_id" select="1"/>
-- <field name="sequence" select="2"/>
-- <field name="condition" colspan="4"/>
++ <group col="6" colspan="4">
++ <field name="name" select="1"/>
++ <field name="model_id" select="1"/>
++ <field name="state" select="1"/>
++ <field name="sequence" select="2"/>
++ <field name="condition" colspan="3"/>
++ </group>
<notebook colspan="4">
<page string="Python Code" attrs="{'invisible':[('state','!=','code')]}">
<separator colspan="4" string="Python Code"/>
'fields_lines': fields.one2many('ir.server.object.lines', 'server_id', 'Fields Mapping'),
'record_id':fields.many2one('ir.model.fields', 'Create Id', help="Provide the field name from where the record id stores after the create operations, if its empty, you can not track the new record"),
'write_id':fields.char('Write Id', size=256, help="Provide the field name from where the record id refer for the write operation, if its empty it will refer to the active id of the object"),
- 'loop_action':fields.many2one('ir.actions.server', 'Loop Action', help="select the action, which will be executes"),
- 'loop_action':fields.many2one('ir.actions.server', 'Loop Action'),
- 'expression':fields.char('Loop Expression', size=512),
++ 'loop_action':fields.many2one('ir.actions.server', 'Loop Action', help="select the action, which will be executes. Loop action will not be avaliable inside loop"),
+ 'expression':fields.char('Loop Expression', size=512, help="enter the field/expression that will return the list, i.e. select the sale order in Object, and we can have loop on sales order line. Expression = `object.order_line`"),
}
_defaults = {
'state': lambda *a: 'dummy',