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.
		
		
		
		
		
			
		
			
				
					
					
						
							75 lines
						
					
					
						
							4.0 KiB
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							75 lines
						
					
					
						
							4.0 KiB
						
					
					
				| <?xml version="1.0" encoding="UTF-8" ?> | |
| <odoo> | |
|     <!--    Config Settings Inherited form view used to add additional datas in the form--> | |
|     <record id="res_config_settings_view_form" model="ir.ui.view"> | |
|         <field name="name"> | |
|             res.config.settings.view.form.inherit.packers.and.movers.management | |
|         </field> | |
|         <field name="model">res.config.settings</field> | |
|         <field name="priority" eval="15"/> | |
|         <field name="inherit_id" ref="base.res_config_settings_view_form"/> | |
|         <field name="arch" type="xml"> | |
|             <xpath expr="//form" position="inside"> | |
|                 <app data-string="Packers And Movers" id="PackersAndMovers" string="PackersAndMovers" name="packers_and_movers_management"> | |
|                     <block title="Pricing" id="distance_amount"> | |
|                         <setting string="Distance Amount/KM"> | |
|                             <div class="text-muted content-group mt16"> | |
|                                 <span>Distance amount per 1 kilometer</span> | |
|                                 <field name="distance_amount" | |
|                                        class="text-center" | |
|                                        style="width: 10%; min-width: 4rem;"/> | |
|                             </div> | |
|                             <div class="text-muted content-group mt16"> | |
|                                 <span>Apply Extra Amount</span> | |
|                                 <field name="is_extra" | |
|                                        class="text-center" | |
|                                        style="width: 10%; min-width: 4rem;"/> | |
|                             </div> | |
|                             <div class="text-muted content-group mt16" invisible="not is_extra"> | |
|                                 <span>Extra Amount</span> | |
|                                 <field name="extra_amount" | |
|                                        class="text-center" | |
|                                        style="width: 10%; min-width: 4rem;"/> | |
|                             </div> | |
|                         </setting> | |
|                     </block> | |
|                     <block title="Distance Limitation Settings" id="max_distance"> | |
|                         <setting> | |
|                             <div class="text-muted content-group mt16"> | |
|                                 <span>Distance Limitation</span> | |
|                                 <field name="is_distance_limited" | |
|                                        class="text-center" | |
|                                        style="width: 10%; min-width: 4rem;"/> | |
|                             </div> | |
|                             <div class="text-muted content-group mt16" invisible="not is_distance_limited"> | |
|                                 <span>Maximum Distance (KM)</span> | |
|                                 <field name="max_distance" | |
|                                        class="text-center" | |
|                                        style="width: 10%; min-width: 4rem;"/> | |
|                             </div> | |
|                         </setting> | |
|                     </block> | |
| 
 | |
| 
 | |
|                 </app> | |
|             </xpath> | |
|         </field> | |
|     </record> | |
|     <!--    Action used in the config settings model--> | |
|     <record id="res_config_settings_action" model="ir.actions.act_window"> | |
|         <field name="name">Configuration Action</field> | |
|         <field name="res_model">res.config.settings</field> | |
|         <field name="view_mode">form</field> | |
|         <field name="view_id" ref="res_config_settings_view_form"/> | |
|         <field name="target">inline</field> | |
|         <field name="context">{'module' : 'packers_and_movers_management', 'bin_size': False}</field> | |
| 
 | |
|     </record> | |
|     <!--    Menu used in the Truck booking root and the Config Settings--> | |
|     <menuitem id="configuration_menu" name="Configuration" | |
|               parent="packers_and_movers_management.truck_booking_menu_root"/> | |
|     <menuitem id="res_config_settings_menu_action" name="Settings" | |
|               parent="packers_and_movers_management.configuration_menu" | |
|               sequence="0" | |
|               action="res_config_settings_action"/> | |
| </odoo> |