<?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">

  <grid name="configurator-soline-formula-grid" title="Calculated fields on configurator"
    model="com.axelor.apps.sale.db.ConfiguratorSOLineFormula">
    <field name="metaField" title="Sale order line field"/>
    <field name="formula"/>
    <field name="showOnConfigurator"/>
  </grid>

  <form name="configurator-soline-formula-form" title="Calculated fields on configurator"
    model="com.axelor.apps.sale.db.ConfiguratorSOLineFormula">
    <panel name="mainPanel">
      <field name="metaField" title="Sale order line field" domain="self.metaModel.name = 'SaleOrderLine' "/>
      <field name="formula" widget="CodeEditor" colSpan="12" x-code-syntax="groovy"/>
      <field name="showOnConfigurator"/>
      <field name="updateFromSelect"/>
    </panel>
    <panel name="actionPanel">
      <button name="checkScriptsBtn" title="Check the script"
        onClick="save,action-configurator-formula-method-check-script"/>
    </panel>
  </form>

</object-views>
