<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data>
        <record id="view_logistics_node_form" model="ir.ui.view">
            <field name="name">logistics.node.form</field>
            <field name="model">logistics.node</field>
            <field name="arch" type="xml">
                <form string="Logistics Node">
                    <header>
                        <button name="action_sync_to_maps"
                                type="object"
                                string="Add to Optovia Maps"
                                class="btn-primary"
                                icon="fa-map-marker"
                                invisible="not has_auto_connection"/>
                    </header>
                    <sheet>
                        <group>
                            <group>
                                <field name="uuid" readonly="1"/>
                                <field name="code"/>
                                <field name="name" placeholder="Например: Склад Москва-Север"/>
                                <field name="country_id"/>
                            </group>
                        </group>
                        <group>
                            <group string="Coordinates">
                                <field name="latitude" placeholder="55.7558"/>
                                <field name="longitude" placeholder="37.6176"/>
                            </group>
                        </group>
                        <notebook>
                            <page string="Connections" name="connections">
                                <field name="connection_ids">
                                    <list editable="bottom">
                                        <field name="name"/>
                                        <field name="transport_category_id"/>
                                        <field name="loading_type_id"/>
                                        <field name="active"/>
                                    </list>
                                </field>
                            </page>
                        </notebook>
                    </sheet>
                </form>
            </field>
        </record>
    </data>
</odoo>
