You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							90 lines
						
					
					
						
							6.0 KiB
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							90 lines
						
					
					
						
							6.0 KiB
						
					
					
				| <?xml version="1.0" encoding="utf-8"?> | |
| <odoo> | |
|     <!-- Inheriting the config setting and add the fields and buttons for connecting to Jira --> | |
|     <record id="res_config_settings_view_form" model="ir.ui.view"> | |
|         <field name="name">res.config.settings.view.form.inherit.odoo.jira.connector</field> | |
|         <field name="model">res.config.settings</field> | |
|         <field name="priority" eval="20"/> | |
|         <field name="inherit_id" ref="base_setup.res_config_settings_view_form"/> | |
|         <field name="arch" type="xml"> | |
|             <xpath expr="//form" position="inside"> | |
|                 <div class="app_settings_block" data-string="Jira Connector" string="Jira Connector" | |
|                      data-key="odoo_jira_connector" groups="project.group_project_manager"> | |
|                     <h2>Jira Connector</h2> | |
|                     <div class="row mt16 o_settings_container"> | |
|                         <div class="col-xs-12 col-md-6 o_setting_box" id="print_node_settings"> | |
|                             <div class="o_setting_right_pane"> | |
|                                 <div class="content-group"> | |
|                                     <div class="row mt8"> | |
|                                         <label class="col-lg-3" string="URL" for="url"/> | |
|                                         <field name="url" help="Url of Jira."/> | |
|                                     </div> | |
|                                     <div class="row mt8"> | |
|                                         <label class="col-lg-3" string="User Name" for="user_id_jira"/> | |
|                                         <field name="user_id_jira" help="Enter User name in Jira."/> | |
|                                     </div> | |
|                                     <div class="row mt8"> | |
|                                         <label class="col-lg-3" string="API Token" for="api_token"/> | |
|                                         <field name="api_token" help="Enter api token."/> | |
|                                     </div> | |
|                                     <div class="row mt8" invisible="connection == False"> | |
|                                         <label class="col-lg-3" string="Automatic" for="automatic"/> | |
|                                         <field name="automatic" | |
|                                                help="Using this field we can automate the project management in Jira ,Eg:we can create project in odoo while creating it on Jira."/> | |
|                                     </div> | |
|                                     <div class="row mt8"> | |
|                                         <label class="col-lg-6" string="Export Project Count" | |
|                                                for="export_project_count"/> | |
|                                         <field name="export_project_count" help="count of exported project."/> | |
|                                     </div> | |
|                                     <div class="row mt8"> | |
|                                         <label class="col-lg-6" string="Export Task Count" for="export_task_count"/> | |
|                                         <field name="export_task_count" help="count of exported tasks."/> | |
|                                     </div> | |
|                                     <div class="row mt8"> | |
|                                         <label class="col-lg-6" string="Import Project Count" | |
|                                                for="import_project_count"/> | |
|                                         <field name="import_project_count" help="count of imported project."/> | |
|                                     </div> | |
|                                     <div class="row mt8"> | |
|                                         <label class="col-lg-6" string="Import Task Count" for="import_task_count"/> | |
|                                         <field name="import_task_count" help="count of imported task."/> | |
|                                     </div> | |
|                                     <div class="row mt8"> | |
|                                         <field name="connection" invisible="1"/> | |
|                                     </div> | |
|                                 </div> | |
|                             </div> | |
|                         </div> | |
|                         <div class="col-12 col-lg-6 o_setting_box"> | |
|                             <div class="o_setting_right_pane" style="display: flex; flex-wrap: wrap;"> | |
|                                 <button name="action_test_connection" string="Test Connection" | |
|                                         invisible="connection == True" type="object" class="btn-primary"/> | |
|                                 <div style="margin:10px !important"> | |
|                                     <button name="action_export_to_jira" string="Export/Sync Project and Task" | |
|                                             invisible="connection != True" type="object" | |
|                                             class="btn-primary"/> | |
|                                 </div> | |
|                                 <div style="margin:10px !important"> | |
|                                     <button name="action_import_from_jira" string="Import/Sync Project & Tasks" | |
|                                             invisible="connection == False" type="object" | |
|                                             class="btn-primary"/> | |
|                                 </div> | |
|                                 <div style="margin:10px !important"> | |
|                                     <button name="action_export_users" string="Export Users" | |
|                                             invisible="connection == False" type="object" | |
|                                             class="btn-primary"/> | |
|                                 </div> | |
|                                 <div style="margin:10px !important"> | |
|                                     <button name="action_import_users" string="Import Users" | |
|                                             invisible="connection == False" type="object" | |
|                                             class="btn-primary"/> | |
|                                 </div> | |
|                             </div> | |
|                         </div> | |
|                     </div> | |
|                 </div> | |
|             </xpath> | |
|         </field> | |
|     </record> | |
| </odoo> |