diff options
| author | ARA (OpenERP) <ara@tinyerp.com> | 2011-09-07 17:09:46 +0530 |
|---|---|---|
| committer | ARA (OpenERP) <ara@tinyerp.com> | 2011-09-07 17:09:46 +0530 |
| commit | 0cb005d0d6b280977c01e7ac06bd6b663c2d4d21 (patch) | |
| tree | 2f321460c0a178fffe8ea896ea7c29f4377d4902 /addons/base_module_record | |
| parent | a98b13cdbfd86097c79686bf70c024f7be15c77b (diff) | |
[IMP] add base module record view files
bzr revid: ara@tinyerp.com-20110907113946-jm8q40bn1cmma904
Diffstat (limited to 'addons/base_module_record')
3 files changed, 266 insertions, 0 deletions
diff --git a/addons/base_module_record/wizard/base_module_record_data_view.xml b/addons/base_module_record/wizard/base_module_record_data_view.xml new file mode 100644 index 00000000000..ff90e8c0a73 --- /dev/null +++ b/addons/base_module_record/wizard/base_module_record_data_view.xml @@ -0,0 +1,69 @@ +<?xml version="1.0" encoding="utf-8"?> +<openerp> + <data> + + <record id="base_module_record_data_view" model="ir.ui.view"> + <field name="name">base_module_record_data</field> + <field name="model">base.module.data</field> + <field name="type">form</field> + <field name="arch" type="xml"> + <form string="Objects Recording"> + <field name="check_date"/> + <newline/> + <field name="filter_cond"/> + <separator string="Choose objects to record" colspan="4"/> + <field name="objects" colspan="4" nolabel="1"/> + <group><field name="info_yaml"/></group> + <separator colspan="4"/> + <group colspan="4" col="2"> + <button icon="gtk-cancel" string="Cancel" special="cancel"/> + <button name="record_objects" icon="gtk-ok" string="Record" type="object"/> + </group> + </form> + </field> + </record> + + <record model="ir.actions.act_window" id="action_base_module_record_data"> + <field name="name">Export Customizations as Data</field> + <field name="res_model">base.module.data</field> + <field name="view_type">form</field> + <field name="view_mode">form</field> + <field name="target">new</field> + <field name="view_id" ref="base_module_record_data_view"/> + </record> + + + <menuitem + parent="menu_wizard_base_mod_rec" + name="Export Customizations As Data file" + action="action_base_module_record_data" + id="menu_wizard_base_module_record_data"/> + + <act_window + id="act_base_module_record_data" + name="Export Customizations As Data File" + res_model="base.module.data" + src_model="ir.module.module" + view_mode="form" + target="new" + multi="True" + key2="client_action_multi"/> + + <record id="module_create_xml_view" model="ir.ui.view"> + <field name="name">module.create.xml.form</field> + <field name="model">base.module.record.data</field> + <field name="type">form</field> + <field name="arch" type="xml"> + <form string="Objects Recording"> + <separator string="Result, paste this to your module's xml" colspan="4" /> + <field name="res_text" nolabel="1" colspan="4"/> + <separator colspan="4"/> + <group colspan="4" col="2"> + <label string=""/> + <button icon="gtk-ok" string="Close" special="cancel"/> + </group> + </form> + </field> + </record> + </data> +</openerp> diff --git a/addons/base_module_record/wizard/base_module_record_object_view.xml b/addons/base_module_record/wizard/base_module_record_object_view.xml new file mode 100644 index 00000000000..5f03bd2a7c6 --- /dev/null +++ b/addons/base_module_record/wizard/base_module_record_object_view.xml @@ -0,0 +1,148 @@ +<?xml version="1.0" encoding="utf-8"?> +<openerp> + <data> + + <record id="base_module_record_objects_view" model="ir.ui.view"> + <field name="name">base_module_record_objects</field> + <field name="model">base.module.record</field> + <field name="type">form</field> + <field name="arch" type="xml"> + <form string="Objects Recording"> + <field name="check_date"/> + <newline/> + <field name="filter_cond"/> + <separator string="Choose objects to record" colspan="4"/> + <field name="objects" colspan="4" nolabel="1"/> + <group><field name="info_yaml"/></group> + <separator colspan="4"/> + <group colspan="4" col="2"> + <button icon="gtk-cancel" string="Cancel" special="cancel"/> + <button name="record_objects" icon="gtk-ok" string="Record" type="object"/> + </group> + </form> + </field> + </record> + + <record model="ir.actions.act_window" id="action_base_module_record_objects"> + <field name="name">Export Customizations as a Module</field> + <field name="res_model">base.module.record</field> + <field name="view_type">form</field> + <field name="view_mode">form</field> + <field name="target">new</field> + <field name="view_id" ref="base_module_record_objects_view"/> + </record> + + <menuitem + parent="base.menu_custom" + name="Module Creation" + id="menu_wizard_base_mod_rec" + groups="base.group_extended"/> + + <menuitem + parent="menu_wizard_base_mod_rec" + name="Export Customizations As a Module" + action="action_base_module_record_objects" + id="menu_wizard_base_module_record_objects"/> + + <act_window + id="act_base_module_record_objects" + name="Export Customizations As a Module" + res_model="base.module.record" + src_model="ir.module.module" + view_mode="form" + target="new" + multi="True" + key2="client_action_multi"/> + + <record id="module_create_form_view" model="ir.ui.view"> + <field name="name">module.create.form</field> + <field name="model">base.module.record.objects</field> + <field name="type">form</field> + <field name="arch" type="xml"> + <form string="Module Recording"> + <separator string="Module successfully created !" colspan="4"/> + <field name="module_filename"/> + <newline/> + <field name="module_file"/> + <separator string="Information" colspan="4"/> + <label string="If you think your module could interest other people, we'd like you to publish it on http://www.openerp.com, in the 'Modules' section. You can do it through the website or using features of the 'base_module_publish' module." colspan="4" align="0.0"/> + <label string="Thanks in advance for your contribution." colspan="4" align="0.0"/> + <separator colspan="4"/> + <group colspan="4" col="2"> + <label string=""/> + <button icon="gtk-ok" string="Close" special="cancel"/> + </group> + </form> + </field> + </record> + + <record model="ir.actions.act_window" id="action_module_created"> + <field name="name">Module Recording</field> + <field name="res_model">base.module.record.objects</field> + <field name="view_type">form</field> + <field name="view_mode">form</field> + <field name="target">new</field> + <field name="view_id" ref="module_create_form_view"/> + </record> + + <record id="info_start_form_view" model="ir.ui.view"> + <field name="name">info.start.form.view</field> + <field name="model">base.module.record.objects</field> + <field name="type">form</field> + <field name="arch" type="xml"> + <form string="Module Recording"> + <separator string="Module Information" colspan="4"/> + <field name="name"/> + <field name="directory_name"/> + <field name="version"/> + <field name="author"/> + <field name="website" colspan="4"/> + <field name="category" colspan="4"/> + <field name="data_kind"/> + <newline/> + <field name="description" colspan="4"/> + <separator colspan="4"/> + <group colspan="4" col="2"> + <button icon="gtk-cancel" string="Cancel" special="cancel"/> + <button string="Continue" name="inter_call" type="object" icon="gtk-ok"/> + </group> + </form> + </field> + </record> + + <record id="module_recording_message_view" model="ir.ui.view"> + <field name="name">module_recording_message</field> + <field name="model">base.module.record.objects</field> + <field name="type">form</field> + <field name="arch" type="xml"> + <form string="Module Recording"> + <label string="Thanks For using Module Recorder" colspan="4" align="0.0"/> + <separator string="" colspan="4"/> + <group colspan="4" col="2"> + <label string=""/> + <button icon="gtk-ok" string="OK" special="cancel"/> + </group> + </form> + </field> + </record> + + <record id="yml_save_form_view" model="ir.ui.view"> + <field name="name">yml.save.form</field> + <field name="model">base.module.record.objects</field> + <field name="type">form</field> + <field name="arch" type="xml"> + <form string="Module Recording"> + <separator string="YAML file successfully created !" colspan="4"/> + <newline/> + <field name="yaml_file" filename="module_filename"/> + <separator colspan="4"/> + <group colspan="4" col="2"> + <label string=""/> + <button icon="gtk-ok" string="Close" special="cancel"/> + </group> + </form> + </field> + </record> + + </data> +</openerp>
\ No newline at end of file diff --git a/addons/base_module_record/wizard/base_module_save_view.xml b/addons/base_module_record/wizard/base_module_save_view.xml new file mode 100644 index 00000000000..30efb7751fd --- /dev/null +++ b/addons/base_module_record/wizard/base_module_save_view.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="utf-8"?> +<openerp> + <data> + + <record id="base_module_save_view" model="ir.ui.view"> + <field name="name">base_module_save</field> + <field name="model">base.module.save</field> + <field name="type">form</field> + <field name="arch" type="xml"> + <form string="Module Recording"> + <separator string="Recording Information" colspan="4"/> + <field name="info_status"/> + <field name="info_text" colspan="4" nolabel="1"/> + <field name="info_yaml" colspan="4"/> + <separator colspan="4"/> + <group colspan="4" col="2"> + <button icon="gtk-cancel" string="Cancel" special="cancel"/> + <button name="record_save" icon="gtk-ok" string="Continue" type="object"/> + </group> + </form> + </field> + </record> + + <record model="ir.actions.act_window" id="action_base_module_save"> + <field name="name">Publish as module</field> + <field name="res_model">base.module.save</field> + <field name="view_type">form</field> + <field name="view_mode">form</field> + <field name="target">new</field> + <field name="view_id" ref="base_module_save_view"/> + </record> + + <menuitem + parent="menu_wizard_base_mod_rec" + name="Publish as Module" + action="action_base_module_save" + id="menu_wizard_base_module_save"/> + + <act_window + id="act_base_module_save" + name="Publish as Moduleeeeeeeee" + res_model="base.module.save" + src_model="ir.module.module" + view_mode="form" + target="new" + multi="True" + key2="client_action_multi"/> + </data> +</openerp>
\ No newline at end of file |
