<commit_before><?xml version = "1.0" encoding = "UTF-8"?>
<openerp>
	<data>
		
		<!--
		======================================
				CANTON
		======================================
		-->

        <record id="view_canton_tree" model="ir.ui.view">
            <field name="name">rent.canton.tree</field>
            <field name="model">rent.canton</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Canton">
                    <field name="name"/>
                    <field name="code"/>
                    <field name="state_id"/>
                </tree>
            </field>
        </record>

        <record id="view_canton_form" model="ir.ui.view">
            <field name="name">rent.canton.form</field>
            <field name="model">rent.canton</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Canton">
                    <field name="state_id" select="1"/>
                    <field name="name" select="1"/>
                    <field name="code" select="1"/>
                </form>
            </field>
        </record>

        <record id="action_canton" model="ir.actions.act_window">
            <field name="name">Canton</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">rent.canton</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="view_canton_tree"/>
            <field name="help">If you are working on the Costa Rican market, you can manage the different Canton you are working on from here. Each canton is attached to one province.</field>
        </record>
		
		
		<!--
		======================================
				DISTRICT
		======================================
		-->

        <record id="view_canton_district_tree" model="ir.ui.view">
            <field name="name">rent.canton.district.tree</field>
            <field name="model">rent.canton.district</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="District">
                    <field name="name"/>
                    <field name="code"/>
                    <field name="canton_id"/>
                </tree>
            </field>
        </record>

        <record id="view_canton_district_form" model="ir.ui.view">
            <field name="name">rent.canton.district.form</field>
            <field name="model">rent.canton.district</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="District">
                    <field name="canton_id" select="1"/>
                    <field name="name" select="1"/>
                    <field name="code" select="1"/>
                </form>
            </field>
        </record>

        <record id="action_canton_district" model="ir.actions.act_window">
            <field name="name">District</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">rent.canton.district</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="view_canton_district_tree"/>
        </record>
		
		
		
		<!--
		======================================
					CLIENTS
		======================================
		-->
		<record model = "ir.ui.view" id = "client_form_view">
			<field name = "name">res.partner.form</field>
			<field name = "model">res.partner</field>
			<field name = "type">form</field>
			<field name="inherit_id" ref="base.view_partner_form"/>
			<field name="arch" type="xml">
				<data>
					<field name = "name" position = "after">
						<field name = "client_birthdate"/>
					</field>
					<field name = "city" position = "replace"/>
					<field name = "state_id" position = "replace">
						<field name = "state_id"/>
					</field>
					<field name = "state_id" position = "after">
						<field name = "canton_id" attrs = "{'readonly':[('state_id','=','')]}"/>
					</field>
					<field name = "canton_id" position = "after">
						<field name = "district_id" attrs = "{'readonly':[('canton_id','=','')]}"/>
					</field>
				</data>
			</field>
		</record>
		
		<record model = "ir.ui.view" id = "client_tree_view">
			<field name = "name">res.partner.tree</field>
			<field name = "model">res.partner</field>
			<field name = "type">tree</field>
			<field name="inherit_id" ref="base.view_partner_tree"/>
			<field name = "arch" type = "xml">
				<data>
					<field name = "ref" position = "replace"/>
					<field name = "city" position = "replace"/>
					<field name = "user_id" position = "replace"/>
					<field name = "country" position = "after">
						<field name = "client_birthdate"/>
					</field>
				</data>
			</field>
		</record>
		
		
		<record model = "ir.actions.act_window" id = "action_client_form_view">
			<field name = "name">Detalles de Clientes</field>
			<field name = "res_model">res.partner</field>
			<field name = "type">ir.actions.act_window</field>
			<field name = "view_type">form</field>
			<field name = "view_mode">tree,form</field>
			<field name = "view_id" ref = "client_form_view"/>
		</record>
		
		<record model = "ir.actions.act_window.view" id = "action_client_tree_view">
			<field name = "view_mode">tree</field>
			<field name = "view_id" ref = "client_tree_view"/>
			<field name="act_window_id" ref="action_client_form_view"/>
		</record>
		
		
		<!--
		======================================
						CLIENT MENU
		======================================
		-->
		<menuitem id = "rent_manager" name = "Rent" web_icon="data/rent.png"
                  web_icon_hover="data/rent-hover.png"/>
		<menuitem id = "rent_client_menu" name = "Clients" parent = "rent_manager"/>
		<menuitem id = "rent_client_submenu" name = "Client" parent = "rent_client_menu" action = "action_client_form_view"/>
		
		<!--
		======================================
						ESTATES
		======================================
		-->
		<record id = "view_estate_filter" model = "ir.ui.view">
			<field name = "name">rent.estate.select</field>
			<field name = "model">rent.estate</field>
			<field name = "type">search</field>
			<field name = "arch" type = "xml">
				<search string = "Search Estate">
					<group  colspan = "4" >
						<filter  string = "Rented" icon = "terp-stock_symbol-selection" domain = "[('estate_rented','=','True')]"/>
						<filter string = "Not Rented" icon = "terp-sale" domain = "[('estate_rented','=','True')]"/>
					</group>
					<group expand = "0" string = "Group By...">
						<filter string = "Owners" icon = "terp-personal" domain = "[]" context="{'group_by' : 'estate_owner'}"/>
					</group>
				</search>
			</field>
		</record>
		<record model = "ir.ui.view" id = "estate_form_view">
			<field name = "name">rent.estate.form</field>
			<field name = "model">rent.estate</field>
			<field name = "type">form</field>
			<field name = "arch" type = "xml">
				<form string = "estate Detail">
					<group col = "4" colspan = "4">
						<separator string = "General Information" col = "4" colspan = "4"/>
						<field name = "estate_owner" select = "1"/>
						<field name = "estate_number" select = "1"/>
						<field name = "estate_value" />
						<field name = "estate_area"  />
						<field name = "estate_vrn_per_sqr"/>
						<field name = "estate_account"/>
						<field name = "estate_rented"/>
						<button colspan="2" name="calculate_vrm" string="Compute Values" type="object" groups="base.group_user" icon="terp-stock_format-scientific"/>
					</group>
					<notebook colspan = "4">
						<page string = "Location"> 
							<field name = "estate_location" colspan="4" nolabel="1" select="1" attrs = "{'readonly' : [('estate_owner','=','')]}" domain="[('partner_id','=',estate_owner)]"/>
						<!--<field name = "estate_address"/>-->
						<!--<field name = "estate_canton" on_change = "determine_district(estate_canton)"/>
						<field name = "estate_district"/>-->
						</page>
						<page string = "Buildings">
							<field name = "estate_buildings" nolabel="1"/>
						</page>
					</notebook>
				</form>
			</field>
		</record>
		
		<record model = "ir.ui.view" id = "estate_tree_view">
			<field name = "name">rent.estate.tree</field>
			<field name = "model">rent.estate</field>
			<field name = "type">tree</field>
			<field name = "arch" type = "xml">
				<tree string = "estate Detail">
					<field name = "estate_number" select = "1"/>
					<field name = "estate_owner" select = "1"/>
					<field name = "estate_area" />
					<field name = "estate_value"/>
					<field name = "estate_vrn_per_sqr"/>
					<field name = "estate_rented"/>
				</tree>
			</field>
		</record>
		
		<record model = "ir.actions.act_window" id = "action_estate_form_view">
			<field name = "name">estate Detail</field>
			<field name = "res_model">rent.estate</field>
			<field name = "type">ir.actions.act_window</field>
			<field name = "view_type">form</field>
			<field name = "view_mode">tree,form</field>
			<field name = "view_id" ref="estate_tree_view"/>
			<field name = "search_view_id" ref = "view_estate_filter"/>
			<field name="help">Manage the estates that your company owns, to have them available in your system</field>
		</record>
		
		<!--
		======================================
						ESTATE MENU
		======================================
		-->
		<menuitem id = "rent_estate_menu" name = "Real Estate" parent = "rent_manager"/>
		<menuitem id = "rent_estate_submenu" name = "Estate" parent = "rent_estate_menu" action = "action_estate_form_view"/>
		
		
		<!--
		======================================
						BUILDING
		======================================
		-->
		
		<record id = "view_building_filter" model = "ir.ui.view">
			<field name = "name">rent.building.select</field>
			<field name = "model">rent.building</field>
			<field name = "type">search</field>
			<field name = "arch" type = "xml">
				<search string = "Search Building">
					<group expand = "0" string = "Group By...">
						<filter string = "Estates" icon = "terp-go-home" domain = "[]" context="{'group_by' : 'building_estate'}"/>
					</group>
				</search>
			</field>
		</record>
		
		<record model = "ir.ui.view" id = "building_tree_view">
			<field name = "name">rent.building.tree</field>
			<field name = "model">rent.building</field>
			<field name = "type">tree</field>
			<field name = "arch" type = "xml">
				<tree string="Building Details">
					<field name="name"/>
					<field name = "building_estate"/>
					<field name="building_date_construction"/>
					<field name="building_value"/>
					<field name="building_area"/>
					<field name = "building_vrn_per_sqr"/>
					<field name="building_capacity"/>
				</tree>
			</field>
		</record>
		
		
		<record model ="ir.ui.view" id = "building_form_view">
			<field name = "name">rent.building.form</field>
			<field name = "model">rent.building</field>
			<field name = "type">form</field>
			<field name = "arch" type = "xml">
				<form string = "Building Details">
					<group col = "4" colspan = "2">
						<separator string = "General Information" col = "4" colspan = "4"/>
						<field name = "name" select = "1"/>
						<field name = "building_code"/>
						<field name = "building_estate"/>
						<field name = "building_date_construction" select = "1"/>
						<field name = "building_area"/>
						<field name = "building_value"/>
						<field name = "building_capacity"/>
						<field name = "building_vrn_per_sqr"/>
					</group>
					<group col = "4" colspan = "2">
						<separator string = "Photos" col = "4" colspan = "4"/>
						<field name = "building_photo" widget = "image" nolabel="1" img_width="200" img_height="180"  colspan = "4"/>
						<field name = "building_gallery_photo" widget = "url" />
					</group>
					<notebook>
						<page string = "Floors">
							<field name = "building_floors" mode = "form,tree" nolabel = "1">
								<form string = "Floor Details">
									<group col = "4" colspan = "2">
										<separator string = "General Information" col = "4" colspan = "4"/>
										<field name = "floor_number"/>
										<field name = "floor_area"/>
										<field name = "floor_value"/>
									</group>
									<group col = "4" colspan = "2">
										<separator string = "Design Information" col = "4" colspan = "4"/>
										<field name = "floor_thickness"/>
										<field name = "floor_durability"/>
										<field name = "floor_acabado"/>
									</group>
								</form>
								<tree string="Floor Details">
									<field name="floor_number"/>
									<field name="floor_value"/>
									<field name="floor_area"/>
									<field name = "floor_building"/>
								</tree>
							</field>
						</page>
						<page string = "Assets">
							<field name = "building_asset"/>
						</page>
						<page string = "Machinery">
							<group col = "4" colspan = "4">
								<separator string = "Machinery" col = "4" colspan = "4"/>
								<field name = "building_elevator"/>
								<field name = "building_elevators_number" attrs="{'readonly':[('building_elevator','!=','True')]}"/>
								<field name = "building_stairs"/>
								<field name = "building_stairs_number" attrs="{'readonly':[('building_stairs','!=','True')]}"/>
							</group>
						</page>
					</notebook>
				</form>
			</field>
		</record>
		
		
		<record model ="ir.ui.view" id = "building_form_view2">
			<field name = "name">rent.building.form2</field>
			<field name = "model">rent.building</field>
			<field name = "type">form</field>
			<field name = "arch" type = "xml">
				<form string = "Building Details">
					<group col = "4" colspan = "2">
						<separator string = "General Information" col = "4" colspan = "4"/>
						<field name = "name" select = "1"/>
						<field name = "building_code"/>
						<field name = "building_date_construction" select = "1"/>
						<field name = "building_area"/>
						<field name = "building_value"/>
						<field name = "building_capacity"/>
						<field name = "building_vrn_per_sqr"/>
					</group>
					<group col = "4" colspan = "2">
						<separator string = "Photos" col = "4" colspan = "4"/>
						<field name = "building_photo" widget = "image" nolabel="1" img_width="200" img_height="180"  colspan = "4"/>
						<field name = "building_gallery_photo" widget = "url" />
					</group>
					<notebook>
						<page string = "Floors">
							<field name = "building_floors" mode = "form,tree" nolabel = "1">
								<form string = "Floor Details">
									<group col = "4" colspan = "2">
										<separator string = "General Information" col = "4" colspan = "4"/>
										<field name = "floor_number"/>
										<field name = "floor_area"/>
										<field name = "floor_value"/>
									</group>
									<group col = "4" colspan = "2">
										<separator string = "Design Information" col = "4" colspan = "4"/>
										<field name = "floor_thickness"/>
										<field name = "floor_durability"/>
										<field name = "floor_acabado"/>
									</group>
								</form>
								<tree string="Floor Details">
									<field name="floor_number"/>
									<field name="floor_value"/>
									<field name="floor_area"/>
									<field name = "floor_building"/>
								</tree>
							</field>
						</page>
						<page string = "Assets">
							<field name = "building_asset"/>
						</page>
						<page string = "Machinery">
							<group col = "4" colspan = "4">
								<separator string = "Machinery" col = "4" colspan = "4"/>
								<field name = "building_elevator"/>
								<field name = "building_elevators_number" attrs="{'readonly':[('building_elevator','!=','True')]}"/>
								<field name = "building_stairs"/>
								<field name = "building_stairs_number" attrs="{'readonly':[('building_stairs','!=','True')]}"/>
							</group>
						</page>
					</notebook>
				</form>
			</field>
		</record>

		
		<!--<record model = "ir.actions.act_window" id = "action_building_form_view">
			<field name = "name">Building Detail</field>
			<field name = "res_model">rent.building</field>
			<field name = "type">ir.actions.act_window</field>
			<field name = "view_type">form</field>
			<field name = "view_mode">tree,form</field>
			<field name = "search_view_id" ref = "view_building_filter"/>
		</record>-->
		
		
		
		<record id="action_building_form" model="ir.actions.act_window">
			<field name="name">Building</field>
			<field name="type">ir.actions.act_window</field>
			<field name="res_model">rent.building</field>
			<field name="view_type">form</field> 
			<field name="help">Manage every parking that belongs to a determined Estate. This is the main view where you can create a building record
			but you can still do it from the estate form</field>
		</record>
		
		<record id="action_building_tree_view1" model="ir.actions.act_window.view">
			<field eval="10" name="sequence"/>
			<field name="view_mode">tree</field>
			<field name="view_id" ref="building_tree_view"/>
			<field name="act_window_id" ref="action_building_form"/>
		</record>
		
		<record id="action_building_form_view1" model="ir.actions.act_window.view">
			<field eval="20" name="sequence"/>
			<field name="view_mode">form</field>
			<field name="view_id" ref="building_form_view"/>
			<field name="act_window_id" ref="action_building_form"/>
		</record>
		
		<record id="action_building_form_view2" model="ir.actions.act_window.view">
			<field eval="10" name="sequence"/>
			<field name="view_mode">form</field>
			<field name="view_id" ref="building_form_view2"/>
			<field name="act_window_id" ref="action_building_form"/>
		</record>
		
		<!--
		======================================
						BUILDING MENU<commit_msg>[IMP] xml definition for building<commit_after><?xml version = "1.0" encoding = "UTF-8"?>
<openerp>
	<data>
		
		<!--
		======================================
				CANTON
		======================================
		-->

        <record id="view_canton_tree" model="ir.ui.view">
            <field name="name">rent.canton.tree</field>
            <field name="model">rent.canton</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Canton">
                    <field name="name"/>
                    <field name="code"/>
                    <field name="state_id"/>
                </tree>
            </field>
        </record>

        <record id="view_canton_form" model="ir.ui.view">
            <field name="name">rent.canton.form</field>
            <field name="model">rent.canton</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="Canton">
                    <field name="state_id" select="1"/>
                    <field name="name" select="1"/>
                    <field name="code" select="1"/>
                </form>
            </field>
        </record>

        <record id="action_canton" model="ir.actions.act_window">
            <field name="name">Canton</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">rent.canton</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="view_canton_tree"/>
            <field name="help">If you are working on the Costa Rican market, you can manage the different Canton you are working on from here. Each canton is attached to one province.</field>
        </record>
		
		
		<!--
		======================================
				DISTRICT
		======================================
		-->

        <record id="view_canton_district_tree" model="ir.ui.view">
            <field name="name">rent.canton.district.tree</field>
            <field name="model">rent.canton.district</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="District">
                    <field name="name"/>
                    <field name="code"/>
                    <field name="canton_id"/>
                </tree>
            </field>
        </record>

        <record id="view_canton_district_form" model="ir.ui.view">
            <field name="name">rent.canton.district.form</field>
            <field name="model">rent.canton.district</field>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <form string="District">
                    <field name="canton_id" select="1"/>
                    <field name="name" select="1"/>
                    <field name="code" select="1"/>
                </form>
            </field>
        </record>

        <record id="action_canton_district" model="ir.actions.act_window">
            <field name="name">District</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">rent.canton.district</field>
            <field name="view_type">form</field>
            <field name="view_id" ref="view_canton_district_tree"/>
        </record>
		
		
		
		<!--
		======================================
					CLIENTS
		======================================
		-->
		<record model = "ir.ui.view" id = "client_form_view">
			<field name = "name">res.partner.form</field>
			<field name = "model">res.partner</field>
			<field name = "type">form</field>
			<field name="inherit_id" ref="base.view_partner_form"/>
			<field name="arch" type="xml">
				<data>
					<field name = "name" position = "after">
						<field name = "client_birthdate"/>
					</field>
					<field name = "city" position = "replace"/>
					<field name = "state_id" position = "replace">
						<field name = "state_id"/>
					</field>
					<field name = "state_id" position = "after">
						<field name = "canton_id" attrs = "{'readonly':[('state_id','=','')]}"/>
					</field>
					<field name = "canton_id" position = "after">
						<field name = "district_id" attrs = "{'readonly':[('canton_id','=','')]}"/>
					</field>
				</data>
			</field>
		</record>
		
		<record model = "ir.ui.view" id = "client_tree_view">
			<field name = "name">res.partner.tree</field>
			<field name = "model">res.partner</field>
			<field name = "type">tree</field>
			<field name="inherit_id" ref="base.view_partner_tree"/>
			<field name = "arch" type = "xml">
				<data>
					<field name = "ref" position = "replace"/>
					<field name = "city" position = "replace"/>
					<field name = "user_id" position = "replace"/>
					<field name = "country" position = "after">
						<field name = "client_birthdate"/>
					</field>
				</data>
			</field>
		</record>
		
		
		<record model = "ir.actions.act_window" id = "action_client_form_view">
			<field name = "name">Detalles de Clientes</field>
			<field name = "res_model">res.partner</field>
			<field name = "type">ir.actions.act_window</field>
			<field name = "view_type">form</field>
			<field name = "view_mode">tree,form</field>
			<field name = "view_id" ref = "client_form_view"/>
		</record>
		
		<record model = "ir.actions.act_window.view" id = "action_client_tree_view">
			<field name = "view_mode">tree</field>
			<field name = "view_id" ref = "client_tree_view"/>
			<field name="act_window_id" ref="action_client_form_view"/>
		</record>
		
		
		<!--
		======================================
						CLIENT MENU
		======================================
		-->
		<menuitem id = "rent_manager" name = "Rent" web_icon="data/rent.png"
                  web_icon_hover="data/rent-hover.png"/>
		<menuitem id = "rent_client_menu" name = "Clients" parent = "rent_manager"/>
		<menuitem id = "rent_client_submenu" name = "Client" parent = "rent_client_menu" action = "action_client_form_view"/>
		
		<!--
		======================================
						ESTATES
		======================================
		-->
		<record id = "view_estate_filter" model = "ir.ui.view">
			<field name = "name">rent.estate.select</field>
			<field name = "model">rent.estate</field>
			<field name = "type">search</field>
			<field name = "arch" type = "xml">
				<search string = "Search Estate">
					<group  colspan = "4" >
						<filter  string = "Rented" icon = "terp-stock_symbol-selection" domain = "[('estate_rented','=','True')]"/>
						<filter string = "Not Rented" icon = "terp-sale" domain = "[('estate_rented','=','True')]"/>
					</group>
					<group expand = "0" string = "Group By...">
						<filter string = "Owners" icon = "terp-personal" domain = "[]" context="{'group_by' : 'estate_owner'}"/>
					</group>
				</search>
			</field>
		</record>
		<record model = "ir.ui.view" id = "estate_form_view">
			<field name = "name">rent.estate.form</field>
			<field name = "model">rent.estate</field>
			<field name = "type">form</field>
			<field name = "arch" type = "xml">
				<form string = "estate Detail">
					<group col = "4" colspan = "4">
						<separator string = "General Information" col = "4" colspan = "4"/>
						<field name = "estate_owner" select = "1"/>
						<field name = "estate_number" select = "1"/>
						<field name = "estate_value" />
						<field name = "estate_area"  />
						<field name = "estate_vrn_per_sqr"/>
						<field name = "estate_account"/>
						<field name = "estate_rented"/>
						<button colspan="2" name="calculate_vrm" string="Compute Values" type="object" groups="base.group_user" icon="terp-stock_format-scientific"/>
					</group>
					<notebook colspan = "4">
						<page string = "Location"> 
							<field name = "estate_location" colspan="4" nolabel="1" select="1" attrs = "{'readonly' : [('estate_owner','=','')]}" domain="[('partner_id','=',estate_owner)]"/>
						<!--<field name = "estate_address"/>-->
						<!--<field name = "estate_canton" on_change = "determine_district(estate_canton)"/>
						<field name = "estate_district"/>-->
						</page>
						<page string = "Buildings">
							<field name = "estate_buildings" nolabel="1"/>
						</page>
					</notebook>
				</form>
			</field>
		</record>
		
		<record model = "ir.ui.view" id = "estate_tree_view">
			<field name = "name">rent.estate.tree</field>
			<field name = "model">rent.estate</field>
			<field name = "type">tree</field>
			<field name = "arch" type = "xml">
				<tree string = "estate Detail">
					<field name = "estate_number" select = "1"/>
					<field name = "estate_owner" select = "1"/>
					<field name = "estate_area" />
					<field name = "estate_value"/>
					<field name = "estate_vrn_per_sqr"/>
					<field name = "estate_rented"/>
				</tree>
			</field>
		</record>
		
		<record model = "ir.actions.act_window" id = "action_estate_form_view">
			<field name = "name">estate Detail</field>
			<field name = "res_model">rent.estate</field>
			<field name = "type">ir.actions.act_window</field>
			<field name = "view_type">form</field>
			<field name = "view_mode">tree,form</field>
			<field name = "view_id" ref="estate_tree_view"/>
			<field name = "search_view_id" ref = "view_estate_filter"/>
			<field name="help">Manage the estates that your company owns, to have them available in your system</field>
		</record>
		
		<!--
		======================================
						ESTATE MENU
		======================================
		-->
		<menuitem id = "rent_estate_menu" name = "Real Estate" parent = "rent_manager"/>
		<menuitem id = "rent_estate_submenu" name = "Estate" parent = "rent_estate_menu" action = "action_estate_form_view"/>
		
		
		<!--
		======================================
						BUILDING
		======================================
		-->
		
		<record id = "view_building_filter" model = "ir.ui.view">
			<field name = "name">rent.building.select</field>
			<field name = "model">rent.building</field>
			<field name = "type">search</field>
			<field name = "arch" type = "xml">
				<search string = "Search Building">
					<group expand = "0" string = "Group By...">
						<filter string = "Estates" icon = "terp-go-home" domain = "[]" context="{'group_by' : 'building_estate'}"/>
					</group>
				</search>
			</field>
		</record>
		
		<record model = "ir.ui.view" id = "building_tree_view">
			<field name = "name">rent.building.tree</field>
			<field name = "model">rent.building</field>
			<field name = "type">tree</field>
			<field name = "arch" type = "xml">
				<tree string="Building Details">
					<field name="name"/>
					<field name = "building_estate"/>
					<field name="building_date_construction"/>
					<field name="building_value"/>
					<field name="building_area"/>
					<field name = "building_vrn_per_sqr"/>
					<field name="building_capacity"/>
				</tree>
			</field>
		</record>
		
		
		<record model ="ir.ui.view" id = "building_form_view">
			<field name = "name">rent.building.form</field>
			<field name = "model">rent.building</field>
			<field name = "type">form</field>
			<field name = "arch" type = "xml">
				<form string = "Building Details">
					<group col = "4" colspan = "2">
						<separator string = "General Information" col = "4" colspan = "4"/>
						<field name = "name" select = "1"/>
						<field name = "building_code"/>
						<field name = "building_estate"/>
						<field name = "building_date_construction" select = "1"/>
						<field name = "building_area"/>
						<field name = "building_value"/>
						<field name = "building_capacity"/>
						<field name = "building_vrn_per_sqr"/>
					</group>
					<group col = "4" colspan = "2">
						<separator string = "Photos" col = "4" colspan = "4"/>
						<field name = "building_photo" widget = "image" nolabel="1" img_width="200" img_height="180"  colspan = "4"/>
						<field name = "building_gallery_photo" widget = "url" />
					</group>
					<notebook>
						<page string = "Floors">
							<field name = "building_floors" mode = "form,tree" nolabel = "1">
								<form string = "Floor Details">
									<group col = "4" colspan = "2">
										<separator string = "General Information" col = "4" colspan = "4"/>
										<field name = "floor_number"/>
										<field name = "floor_area"/>
										<field name = "floor_value"/>
									</group>
									<group col = "4" colspan = "2">
										<separator string = "Design Information" col = "4" colspan = "4"/>
										<field name = "floor_thickness"/>
										<field name = "floor_durability"/>
										<field name = "floor_acabado"/>
									</group>
								</form>
								<tree string="Floor Details">
									<field name="floor_number"/>
									<field name="floor_value"/>
									<field name="floor_area"/>
									<field name = "floor_building"/>
								</tree>
							</field>
						</page>
						<page string = "Assets">
							<field name = "building_asset"/>
						</page>
						<page string = "Machinery">
							<group col = "4" colspan = "4">
								<separator string = "Machinery" col = "4" colspan = "4"/>
								<field name = "building_elevator"/>
								<field name = "building_elevators_number" attrs="{'readonly':[('building_elevator','!=','True')]}"/>
								<field name = "building_stairs"/>
								<field name = "building_stairs_number" attrs="{'readonly':[('building_stairs','!=','True')]}"/>
							</group>
						</page>
					</notebook>
				</form>
			</field>
		</record>
		
		
		<record model ="ir.ui.view" id = "building_form_view2">
			<field name = "name">rent.building.form2</field>
			<field name = "model">rent.building</field>
			<field name = "type">form</field>
			<field name = "arch" type = "xml">
				<form string = "Building Details">
					<group col = "4" colspan = "2">
						<separator string = "General Information" col = "4" colspan = "4"/>
						<field name = "name" select = "1"/>
						<field name = "building_code"/>
						<field name = "building_date_construction" select = "1"/>
						<field name = "building_area"/>
						<field name = "building_value"/>
						<field name = "building_capacity"/>
						<field name = "building_vrn_per_sqr"/>
					</group>
					<group col = "4" colspan = "2">
						<separator string = "Photos" col = "4" colspan = "4"/>
						<field name = "building_photo" widget = "image" nolabel="1" img_width="200" img_height="180"  colspan = "4"/>
						<field name = "building_gallery_photo" widget = "url" />
					</group>
					<notebook>
						<page string = "Floors">
							<field name = "building_floors" mode = "form,tree" nolabel = "1">
								<form string = "Floor Details">
									<group col = "4" colspan = "2">
										<separator string = "General Information" col = "4" colspan = "4"/>
										<field name = "floor_number"/>
										<field name = "floor_area"/>
										<field name = "floor_value"/>
									</group>
									<group col = "4" colspan = "2">
										<separator string = "Design Information" col = "4" colspan = "4"/>
										<field name = "floor_thickness"/>
										<field name = "floor_durability"/>
										<field name = "floor_acabado"/>
									</group>
								</form>
								<tree string="Floor Details">
									<field name="floor_number"/>
									<field name="floor_value"/>
									<field name="floor_area"/>
									<field name = "floor_building"/>
								</tree>
							</field>
						</page>
						<page string = "Assets">
							<field name = "building_asset"/>
						</page>
						<page string = "Machinery">
							<group col = "4" colspan = "4">
								<separator string = "Machinery" col = "4" colspan = "4"/>
								<field name = "building_elevator"/>
								<field name = "building_elevators_number" attrs="{'readonly':[('building_elevator','!=','True')]}"/>
								<field name = "building_stairs"/>
								<field name = "building_stairs_number" attrs="{'readonly':[('building_stairs','!=','True')]}"/>
							</group>
						</page>
					</notebook>
				</form>
			</field>
		</record>

		
		<!--<record model = "ir.actions.act_window" id = "action_building_form_view">
			<field name = "name">Building Detail</field>
			<field name = "res_model">rent.building</field>
			<field name = "type">ir.actions.act_window</field>
			<field name = "view_type">form</field>
			<field name = "view_mode">tree,form</field>
			<field name = "search_view_id" ref = "view_building_filter"/>
		</record>-->
		
		
		
		<record id="action_building_form" model="ir.actions.act_window">
			<field name="name">Building</field>
			<field name="type">ir.actions.act_window</field>
			<field name="res_model">rent.building</field>
			<field name="view_type">form</field> 
			<field name="help">Manage every parking that belongs to a determined Estate. This is the main view where you can create a building record
			but you can still do it from the estate form</field>
		</record>
		
		<record id="action_building_tree_view1" model="ir.actions.act_window.view">
			<field eval="10" name="sequence"/>
			<field name="view_mode">tree</field>
			<field name="view_id" ref="building_tree_view"/>
			<field name="act_window_id" ref="action_building_form"/>
		</record>
		
		<record id="action_building_form_view1" model="ir.actions.act_window.view">
			<field eval="20" name="sequence"/>
			<field name="view_mode">form</field>
			<field name="view_id" ref="building_form_view"/>
			<field name="act_window_id" ref="action_building_form"/>
		</record>
		
		<record id="action_building_form_view2" model="ir.actions.act_window.view">
			<field eval="10" name="sequence"/>
			<field name="view_mode">form</field>
			<field name="view_id" ref="building_form_view"/>
			<field name="act_window_id" ref="action_building_form"/>
		</record>
		
		<!--
		======================================
						BUILDING MENU
{'fraction_non_alphanumeric': 0.2008615592533153, 'fraction_numerical': 0.005602950699664949, 'mean_word_length': 2.77329225539148, 'pattern_counts': {'":': 0, '<': 933, '<?xml version=': 0, '>': 931, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 29}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '465291', 'n_tokens_mistral': 14148, 'n_tokens_neox': 11110, 'n_words': 2527}