<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<object-views xmlns="http://axelor.com/xml/ns/object-views"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://axelor.com/xml/ns/object-views http://axelor.com/xml/ns/object-views/object-views_5.2.xsd">
	
	<form name="app-mobile-config-form" title="App Mobile" model="com.axelor.apps.base.db.AppMobile" canDelete="false" canNew="false" width="large">
		<panel name="mobileAppsPanel" title="Mobile apps">
      		<field name="isSaleAppEnable" widget="boolean-switch" if="__config__.app.isApp('sale')"/>
      		<field name="isCrmAppEnable" widget="boolean-switch" if="__config__.app.isApp('crm')"/>
      		<field name="isTimesheetAppEnable" widget="boolean-switch" if="__config__.app.isApp('timesheet')"/>
      		<field name="isLeaveAppEnable" widget="boolean-switch" if="__config__.app.isApp('leave')"/>
      		<field name="isExpenseAppEnable" widget="boolean-switch" if="__config__.app.isApp('expense')"/>
      		<field name="isTaskAppEnable" widget="boolean-switch" if="__config__.app.isApp('project')"/>
      		<field name="isQualityAppEnable" widget="boolean-switch" if="__config__.app.isApp('quality')"/>
			<field name="offlineRecordLimit"/>
		</panel>
		<panel-tabs name="mainPanelTab" showIf="isSaleAppEnable || isCrmAppEnable" >
			<panel-related name="partnerSetPanel" field="partnerSet" domain="self.isCustomer = 'true' and self.isContact = 'false'" form-view="partner-form" grid-view="partner-grid"/>
			<panel-related name="partnerContactSetPanel" field="partnerContactSet" domain="self.isContact = 'true'" form-view="partner-contact-form" grid-view="partner-contact-grid"/>
			<panel-related name="projectSetPanel" field="projectSet" form-view="project-form" grid-view="project-grid"/>
			<panel-related name="leadSetPanel" field="leadSet"  showIf="isCrmAppEnable"  form-view="lead-form" grid-view="lead-grid"/>
			<panel-related name="productSetPanel" field="productSet" showIf="isSaleAppEnable"  form-view="product-form" grid-view="product-grid"/>
		</panel-tabs>
				        
        <panel-mail name="mailPanel">
		    <mail-messages limit="4" />
			<mail-followers />
		</panel-mail>
	</form>
	
</object-views>
