<?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">
	
	<menuitem name="business-project-root" title="Job costing" order="-102" icon="fa-list-alt" icon-background="blue" if="__config__.app.isApp('business-project')"/>
	
	<menuitem name="business-project-folder" parent="business-project-root" title="Project Folder" action="business.project.folder" order="5"/>
	
	<action-view name="business.project.folder" title="Project Folder" model="com.axelor.apps.project.db.ProjectFolder">
		<view type="grid" name="project-folder-grid"/>
		<view type="form" name="project-folder-form"/>
	</action-view>
	
	<menuitem name="business-project-all" parent="business-project-root" order="10" title="Business projects" action="business.project.all"/>

	<action-view name="business.project.all" title="Business projects" model="com.axelor.apps.project.db.Project">
    	<view type="grid" name="business-project-grid"/>
	    <view type="form" name="project-form"/>
	    <view type="calendar" name="project-calendar"/>
	    <domain>self.isBusinessProject = true</domain>
	    <context name="_fromBusinessProject" expr="eval:true"/>
	     <context name="_fromProject" expr="eval:false"/>
	</action-view>
	
	<menuitem name="business-project-root-invoicing-project" order="-102" title="Invoicing project" action="business.project.root.invoicing.project"  icon="fa-tasks" icon-background="#3f6bb9" if="__config__.app.isApp('business-project')"/>

	<action-view name="business.project.root.invoicing.project" title="Invoicing project" model="com.axelor.apps.businessproject.db.InvoicingProject">
		<view type="grid" name="invoicing-project-grid"/>
		<view type="form" name="invoicing-project-form"/>
	</action-view>
	
	<!-- ADMINISTRATION -->

	<menuitem name="admin-root-batch-project-invoicing-assistant" parent="admin-root-batch" if="__config__.app.isApp('business-project')" if-module="axelor-business-project" 
	title="Project invoicing assistant batches" action="admin.root.batch.project.invoicing.assistant" />

	<action-view name="admin.root.batch.project.invoicing.assistant" title="Project invoicing assistant batches"
		model="com.axelor.apps.businessproject.db.ProjectInvoicingAssistantBatch" >
		<view type="grid" name="project-invoicing-assistant-batch-grid" />
		<view type="form" name="project-invoicing-assistant-batch-form" />
	</action-view>
	
</object-views>
