<?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="configurator-prod-process-line-form" title="Configurator Phases"
          model="com.axelor.apps.production.db.ConfiguratorProdProcessLine">
        <panel name="mainPanel">
            <field name="name"/>
            <field name="priority"/>
            <field name="workCenter"/>
            <field name="outsourcing"/>
            <field name="stockLocation"/>
            <field name="description"/>
        </panel>
        <panel name="capacitySettingsPanel" title="Capacity settings" colSpan="12">
            <panel name="minCapacityPanel">
                <field name="defMinCapacityFormula" colSpan="12"/>
                <field name="minCapacityPerCycle" showIf="!defMinCapacityFormula" colSpan="6"/>
                <field name="minCapacityPerCycleFormula" widget="CodeEditor"
                       showIf="defMinCapacityFormula"
                       x-code-syntax="groovy" height="100" colSpan="12"/>
            </panel>
            <panel name="maxCapacityPanel">
                <field name="defMaxCapacityFormula" colSpan="12"/>
                <field name="maxCapacityPerCycle" showIf="!defMaxCapacityFormula" colSpan="6"/>
                <field name="maxCapacityPerCycleFormula" widget="CodeEditor"
                       showIf="defMaxCapacityFormula"
                       x-code-syntax="groovy" height="100" colSpan="12"/>
            </panel>
            <panel name="otherDetailsPanel">
                <field name="defDurationFormula" colSpan="12"/>
                <field name="durationPerCycle" colSpan="6" widget="duration"
                       x-big="true" x-seconds="true" showIf="!defDurationFormula"/>
                <field name="durationPerCycleFormula" widget="CodeEditor"
                       showIf="defDurationFormula"
                       x-code-syntax="groovy" height="100" colSpan="12"/>
            </panel>
        </panel>
    </form>

    <grid name="configurator-prod-process-line-grid" title="Configurator Phases"
          model="com.axelor.apps.production.db.ConfiguratorProdProcessLine">
        <field name="name"/>
        <field name="priority"/>
        <field name="workCenter"/>
        <field name="outsourcing"/>
        <field name="stockLocation"/>
        <field name="description"/>
    </grid>
</object-views>