[IMP]: base:Improvement in configuration and customization menu
bzr revid: ron@tinyerp.com-20100929103726-d1i0lqhx1x55tyc2
This commit is contained in:
commit
220d481afc
|
@ -10,25 +10,41 @@
|
|||
<field name="priority">20</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Connect Events to Actions">
|
||||
<group col="6" colspan="4">
|
||||
<field name="name" required="1"/>
|
||||
<field name="model_id" on_change="onchange_object_id(model_id)"/>
|
||||
<field name="action_id" on_change="onchange_action_id(action_id)"/>
|
||||
<field name="key2" required="1"/>
|
||||
<field name="res_id"/>
|
||||
<field name="object" readonly="1"/>
|
||||
<field name="name" required="1"/>
|
||||
<newline/>
|
||||
<group col="2" colspan="2">
|
||||
<separator string="Action Source" colspan="2"/>
|
||||
<field name="model_id" on_change="onchange_object_id(model_id)"/>
|
||||
<field name="res_id"/>
|
||||
<field name="key2" required="1"/>
|
||||
</group>
|
||||
<group col="2" colspan="2">
|
||||
<separator colspan="2" string="Value"/>
|
||||
<field name="value_unpickle" nolabel="1"/>
|
||||
<separator string="Action To Launch" colspan="2"/>
|
||||
<field name="action_id" on_change="onchange_action_id(action_id)"/>
|
||||
|
||||
<field name="object" readonly="1"/>
|
||||
|
||||
</group>
|
||||
<group col="2" colspan="2">
|
||||
<separator string="Values for Event Type" colspan="2"/>
|
||||
<label string="client_action_multi, client_action_relate" colspan="2"/>
|
||||
<label string="tree_but_action, client_print_multi" colspan="2"/>
|
||||
</group>
|
||||
<group col="2" colspan="2">
|
||||
<separator colspan="2" string="Value"/>
|
||||
<field name="value_unpickle" nolabel="1" colspan="4"/>
|
||||
</group>
|
||||
<group col="2" colspan="2">
|
||||
<separator colspan="2" string="Metadata"/>
|
||||
<field name="meta_unpickle" nolabel="1"/>
|
||||
</group>
|
||||
<group col="2" colspan="2">
|
||||
<separator colspan="2" string=""/>
|
||||
<field name="user_id"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
</form>
|
||||
</group>
|
||||
</form>
|
||||
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
@ -89,7 +105,6 @@
|
|||
<field name="act_window_id" ref="act_values_form_action"/>
|
||||
</record>
|
||||
|
||||
<menuitem id="next_id_6" name="Actions" parent="base.next_id_4"/>
|
||||
|
||||
<menuitem action="act_values_form_action" id="menu_values_form_action" parent="next_id_6"/>
|
||||
|
||||
|
@ -325,8 +340,7 @@
|
|||
<field name="view_id" ref="action_view_tree"/>
|
||||
<field name="search_view_id" ref="action_view_search"/>
|
||||
</record>
|
||||
|
||||
|
||||
<menuitem id="next_id_6" name="Actions" parent="base.next_id_4"/>
|
||||
<menuitem action="ir_sequence_actions" id="menu_ir_sequence_actions" parent="next_id_6"/>
|
||||
|
||||
<!--Filters form view-->
|
||||
|
@ -337,7 +351,7 @@
|
|||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Filters">
|
||||
<group colspan="4" >
|
||||
<group colspan="4" col="6" >
|
||||
<field name="name"/>
|
||||
<field name="user_id"/>
|
||||
<field name="model_id"/>
|
||||
|
@ -380,6 +394,7 @@
|
|||
<group colspan="4" col="10">
|
||||
<field name="name"/>
|
||||
<field name="user_id"/>
|
||||
<field name="model_id"/>
|
||||
</group>
|
||||
<newline/>
|
||||
<group expand="0" string="Group By" colspan="4">
|
||||
|
@ -440,16 +455,12 @@
|
|||
<field name="name"/>
|
||||
<field name="type"/>
|
||||
</group>
|
||||
<newline/>
|
||||
<group expand="0" string="Group By" colspan="4">
|
||||
<filter string="Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'type'}"/>
|
||||
</group>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="ir_action_report_custom" model="ir.actions.act_window">
|
||||
<field name="name">Report Custom</field>
|
||||
<field name="name">Custom Reports</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">ir.actions.report.custom</field>
|
||||
<field name="view_type">form</field>
|
||||
|
@ -541,7 +552,7 @@
|
|||
</record>
|
||||
|
||||
<record id="ir_action_report_xml" model="ir.actions.act_window">
|
||||
<field name="name">Report Xml</field>
|
||||
<field name="name">XML Reports</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">ir.actions.report.xml</field>
|
||||
<field name="view_type">form</field>
|
||||
|
@ -616,8 +627,6 @@
|
|||
</group>
|
||||
</page>
|
||||
<page string="Security">
|
||||
<separator colspan="4" string="Select Users" />
|
||||
<field colspan="4" name="default_user_ids" nolabel="1"/>
|
||||
<separator colspan="4" string="Select Groups" />
|
||||
<field name="groups_id" nolabel="1" colspan="4" />
|
||||
</page>
|
||||
|
@ -684,10 +693,14 @@
|
|||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Wizards">
|
||||
<field name="name"/>
|
||||
<field name="type"/>
|
||||
<field name="wiz_name"/>
|
||||
<field name="multi"/>
|
||||
<group colspan="4" col="6">
|
||||
<field name="name"/>
|
||||
<field name="type"/>
|
||||
<field name="wiz_name"/>
|
||||
</group>
|
||||
<group colspan="2" col="4">
|
||||
<field name="multi"/>
|
||||
</group>
|
||||
<notebook colspan="4">
|
||||
<page string="Security">
|
||||
<field colspan="4" name="groups_id" nolabel="1"/>
|
||||
|
@ -873,6 +886,7 @@
|
|||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Views">
|
||||
<separator string="General" colspan="4"/>
|
||||
<group colspan="4" col="6">
|
||||
<field name="name" select="1" colspan="6"/>
|
||||
<field name="type" select="1"/>
|
||||
|
@ -918,13 +932,18 @@
|
|||
<field name="type">search</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="Views">
|
||||
<filter icon="terp-stock_zoom" string="Search"
|
||||
domain="[('type', '=', 'search')]" />
|
||||
<filter icon="gtk-indent" string="Tree"
|
||||
domain="[('type', '=', 'tree')]" />
|
||||
<filter icon="gtk-new" string="Form"
|
||||
domain="[('type', '=','form')]" />
|
||||
<filter icon="terp-stock_zoom"
|
||||
string="Search"
|
||||
domain="[('type', '=', 'search')]"/>
|
||||
<separator orientation="vertical"/>
|
||||
<filter icon="gtk-indent"
|
||||
string="Tree"
|
||||
domain="[('type', '=', 'tree')]"/>
|
||||
<separator orientation="vertical"/>
|
||||
<filter icon="gtk-new"
|
||||
string="Form"
|
||||
domain="[('type', '=','form')]"/>
|
||||
<newline/>
|
||||
<field name="name"/>
|
||||
<field name="type"/>
|
||||
<field name="model"/>
|
||||
|
@ -954,14 +973,12 @@
|
|||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Attachments">
|
||||
<group colspan="4" col="2">
|
||||
<field name="name" select="1" />
|
||||
</group>
|
||||
<field name="name" select="1" />
|
||||
<field name="type"/>
|
||||
<notebook colspan="4">
|
||||
<page string="Attachment">
|
||||
<group col="4" colspan="4">
|
||||
<separator string="Data" colspan="2"/>
|
||||
<field name="type"/>
|
||||
<separator string="Data" colspan="4"/>
|
||||
<newline />
|
||||
<group col="2" colspan="4" attrs="{'invisible':[('type','=','url')]}">
|
||||
<field name="datas" filename="datas_fname"/>
|
||||
|
@ -1235,17 +1252,25 @@
|
|||
<field name="type">search</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="Model Description">
|
||||
<filter icon="terp-camera_test" string="In Memory"
|
||||
domain="[('osv_memory', '=', True)]" />
|
||||
<separator orientation="vertical" />
|
||||
<filter icon="terp-stock_symbol-selection"
|
||||
string="Custom" domain="[('state', '=', 'manual')]" />
|
||||
<separator orientation="vertical" />
|
||||
<filter icon="terp-stock_align_left_24" string="Base"
|
||||
domain="[('state', '=', 'base')]" />
|
||||
<separator orientation="vertical" />
|
||||
<filter icon="terp-camera_test"
|
||||
string="In Memory"
|
||||
domain="[('osv_memory', '=', True)]"/>
|
||||
<separator orientation="vertical"/>
|
||||
|
||||
<filter icon="terp-stock_align_left_24"
|
||||
string="Custom"
|
||||
domain="[('state', '=', 'manual')]"/>
|
||||
<separator orientation="vertical"/>
|
||||
|
||||
<filter icon="terp-translate"
|
||||
string="Base"
|
||||
domain="[('state', '=', 'base')]"/>
|
||||
|
||||
<separator orientation="vertical"/>
|
||||
|
||||
<field name="name"/>
|
||||
<field name="model"/>
|
||||
|
||||
<newline/>
|
||||
</search>
|
||||
</field>
|
||||
|
@ -1378,7 +1403,7 @@
|
|||
<field name="type">search</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="Module Data">
|
||||
<filter icon="terp-stock_effects-object-colorize"
|
||||
<filter icon="terp-camera_test"
|
||||
string="Updatable"
|
||||
domain="[('noupdate', '=', False)]"/>
|
||||
<separator orientation="vertical"/>
|
||||
|
@ -1672,7 +1697,7 @@
|
|||
<field name="view_id" ref="ir_cron_view_tree"/>
|
||||
</record>
|
||||
|
||||
<menuitem id="next_id_10" name="Scheduler" parent="base.menu_config"/>
|
||||
<menuitem id="next_id_10" name="Scheduler" parent="base.menu_config" groups="base.group_extended"/>
|
||||
<menuitem action="ir_cron_act" id="menu_ir_cron_act" parent="next_id_10"/>
|
||||
|
||||
|
||||
|
|
|
@ -47,15 +47,15 @@ class ir_cron(osv.osv, netsvc.Agent):
|
|||
'name': fields.char('Name', size=60, required=True),
|
||||
'user_id': fields.many2one('res.users', 'User', required=True),
|
||||
'active': fields.boolean('Active'),
|
||||
'interval_number': fields.integer('Interval Number'),
|
||||
'interval_number': fields.integer('Interval Number',help="Repeat every x."),
|
||||
'interval_type': fields.selection( [('minutes', 'Minutes'),
|
||||
('hours', 'Hours'), ('work_days','Work Days'), ('days', 'Days'),('weeks', 'Weeks'), ('months', 'Months')], 'Interval Unit'),
|
||||
'numbercall': fields.integer('Number of Calls', help='Number of time the function is called,\na negative number indicates that the function will always be called'),
|
||||
'doall' : fields.boolean('Repeat Missed'),
|
||||
'nextcall' : fields.datetime('Next Execution Date', required=True),
|
||||
'model': fields.char('Object', size=64),
|
||||
'function': fields.char('Function', size=64),
|
||||
'args': fields.text('Arguments'),
|
||||
'doall' : fields.boolean('Repeat Missed',help="Select this if you want to run the scheduler for the missed occurencs."),
|
||||
'nextcall' : fields.datetime('Next Execution Date', required=True,help="Date when this schedular will call next time"),
|
||||
'model': fields.char('Object', size=64,help="Name of object whose function will be called when this scheduler will run. e.g. 'res.partener'"),
|
||||
'function': fields.char('Function', size=64,help="Name of the function to be called by this scheduler. "),
|
||||
'args': fields.text('Arguments',help="Arguments to be passed to the function. e.g. (uid,)"),
|
||||
'priority': fields.integer('Priority', help='0=Very Urgent\n10=Not urgent')
|
||||
}
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
<menuitem name="Start Configuration"
|
||||
action="action_start_configurator"
|
||||
id="menu_view_base_module_configuration" parent="next_id_11"
|
||||
id="menu_view_base_module_configuration" parent="base.menu_config"
|
||||
type="server" icon="STOCK_EXECUTE" sequence="100" />
|
||||
|
||||
<record model="ir.values" id="action_todo_config">
|
||||
|
@ -38,6 +38,6 @@
|
|||
<field name="key">action</field>
|
||||
<field name="model">ir.actions.todo</field>
|
||||
</record>
|
||||
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
|
|
Loading…
Reference in New Issue