<commit_before><?xml version="1.0" encoding="utf-8"?>
<odoo>
  <data>

        <record id="view_product_post" model="ir.ui.view">
              <field name="name">Post to Mercado Libre</field>
              <field name="model">mercadolibre.product.post</field>
              <field name="type">form</field>
              <field name="arch" type="xml">
                <form string="Publicar/Actualizar en Mercado Libre">
                    <footer>
                        <button name="product_post" string="Publicar" title="Publicar/Actualizar en Mercado Libre"  type="object" class="oe_highlight"  />
                        <button string="Cancel" class="oe_link" special="cancel" />
                    </footer>
                </form>
              </field>
        </record>

        <record id="view_product_template_post" model="ir.ui.view">
              <field name="name">Post to Mercado Libre</field>
              <field name="model">mercadolibre.product.template.post</field>
              <field name="type">form</field>
              <field name="arch" type="xml">
                <form string="Publicar/Actualizar en Mercado Libre">
                    <group string="Opciones de publicación" col="2">
                      <group>
                        <field name="force_meli_pub"/>
                      </group>
                    </group>
                    <footer>
                        <button name="product_template_post" string="Publicar" title="Publicar/Actualizar en Mercado Libre"  type="object" class="oe_highlight"  />
                        <button string="Cancel" class="oe_link" special="cancel" />
                    </footer>
                </form>
              </field>
        </record>

        <record id="view_product_template_update" model="ir.ui.view">
              <field name="name">Update from Mercado Libre</field>
              <field name="model">mercadolibre.product.template.update</field>
              <field name="type">form</field>
              <field name="arch" type="xml">
                <form string="Update from MercadoLibre">
                    <footer>
                        <button name="product_template_update" string="Update from MELI"  type="object" class="oe_highlight"  />
                        <button string="Cancel" class="oe_link" special="cancel" />
                    </footer>
                </form>
              </field>
        </record>

        <record id="action_product_template_post" model="ir.actions.act_window">
            <field name="name">MELI Post</field>
            <field name="type">ir.actions.act_window</field>
            <!--field name="src_model">product.template</field-->
            <field name="res_model">mercadolibre.product.template.post</field>
            <!--field name="view_type">form</field-->
            <field name="view_mode">form</field>
            <field name="target">new</field>
        </record>

      <act_window id="action_product_template_post"
          name="Publicar/Actualizar en ML"
          binding_model="product.template"
          res_model="mercadolibre.product.template.post"
          binding_type="action"
          binding_views="list,form"
          view_mode="form"
          context="{'force_meli_pub': force_meli_pub}"
          target="new"/>

      <!--record id="action_product_template_update" model="ir.actions.act_window">
          <field name="name">MELI Update</field><commit_msg>Fix predictor and customized ml sites<commit_after><?xml version="1.0" encoding="utf-8"?>
<odoo>
  <data>

        <record id="view_product_post" model="ir.ui.view">
              <field name="name">Post to Mercado Libre</field>
              <field name="model">mercadolibre.product.post</field>
              <field name="type">form</field>
              <field name="arch" type="xml">
                <form string="Publicar/Actualizar en Mercado Libre">
                    <footer>
                        <button name="product_post" string="Publicar" title="Publicar/Actualizar en Mercado Libre"  type="object" class="oe_highlight"  />
                        <button string="Cancel" class="oe_link" special="cancel" />
                    </footer>
                </form>
              </field>
        </record>

        <record id="view_product_template_post" model="ir.ui.view">
              <field name="name">Post to Mercado Libre</field>
              <field name="model">mercadolibre.product.template.post</field>
              <field name="type">form</field>
              <field name="arch" type="xml">
                <form string="Publicar/Actualizar en Mercado Libre">
                    <group string="Opciones de publicación" col="2">
                      <group>
                        <field name="force_meli_pub"/>
                      </group>
                    </group>
                    <footer>
                        <button name="product_template_post" string="Publicar" title="Publicar/Actualizar en Mercado Libre"  type="object" class="oe_highlight"  />
                        <button string="Cancel" class="oe_link" special="cancel" />
                    </footer>
                </form>
              </field>
        </record>

        <record id="view_product_template_update" model="ir.ui.view">
              <field name="name">Update from Mercado Libre</field>
              <field name="model">mercadolibre.product.template.update</field>
              <field name="type">form</field>
              <field name="arch" type="xml">
                <form string="Update from MercadoLibre">
                    <footer>
                        <button name="product_template_update" string="Update from MELI"  type="object" class="oe_highlight"  />
                        <button string="Cancel" class="oe_link" special="cancel" />
                    </footer>
                </form>
              </field>
        </record>

        <record id="action_product_template_post" model="ir.actions.act_window">
            <field name="name">MELI Post</field>
            <field name="type">ir.actions.act_window</field>
            <!--field name="src_model">product.template</field-->
            <field name="res_model">mercadolibre.product.template.post</field>
            <!--field name="view_type">form</field-->
            <field name="view_mode">form</field>
            <field name="target">new</field>
        </record>

      <act_window id="action_product_template_post"
          name="Publicar/Actualizar en ML"
          binding_model="product.template"
          res_model="mercadolibre.product.template.post"
          binding_type="action"
          binding_views="list,form"
          view_mode="form"
          target="new"/>

      <!--record id="action_product_template_update" model="ir.actions.act_window">
          <field name="name">MELI Update</field>
{'fraction_non_alphanumeric': 0.13528814051386268, 'fraction_numerical': 0.001161271592393671, 'mean_word_length': 1.8876781223805532, 'pattern_counts': {'":': 0, '<': 155, '<?xml version=': 2, '>': 155, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '1841067', 'n_tokens_mistral': 1892, 'n_tokens_neox': 1819, 'n_words': 330}