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

  <record id="document_search" model="ir.ui.view">
    <field name="name">l10n_br_fiscal.document.search</field>
    <field name="model">l10n_br_fiscal.document</field>
    <field name="arch" type="xml">
      <search string="Fiscal Document">
        <field name="number"/>
        <field name="partner_id"/>
        <field name="document_type_id"/>
        <group expand='0' string='Group By...'>
          <filter string='Document Type' name="document_type_id" domain="[]" context="{'group_by' : 'document_type_id'}"/>
        </group>
      </search>
    </field>
  </record>

  <record id="document_tree" model="ir.ui.view">
    <field name="name">l10n_br_fiscal.document.tree</field>
    <field name="model">l10n_br_fiscal.document</field>
    <field name="arch" type="xml">
      <tree>
        <field name="document_type_id"/>
        <field name="number"/>
        <field name="date"/>
        <field name="operation_id"/>
        <field name="partner_id"/>
        <field name="amount_untaxed"/>
        <field name="amount_tax"/>
        <field name="amount_total"/>
        <field name="state"/>
      </tree>
    </field>
  </record>

  <record id="document_form" model="ir.ui.view">
    <field name="name">l10n_br_fiscal.document.form</field>
    <field name="model">l10n_br_fiscal.document</field>
    <field name="arch" type="xml">
      <form string="Fiscal Document">
        <field name="id" invisible="1"/>
        <field name="currency_id" invisible="1"/>
        <field name="document_electronic" invisible="1"/>
        <field name="operation_type" invisible="1"/>
        <header>
            <button name="action_document_confirm" type="object" string="Confirmar"   groups="l10n_br_fiscal.group_user"    states="em_digitacao"     class="oe_highlight"/>
            <button name="action_document_send"    type="object" string="Enviar"      groups="l10n_br_fiscal.group_user"    states="a_enviar,rejeitada"         class="oe_highlight"/>
            <button name="visualizar_pdf" type="object" string="Visualizar PDF" groups="l10n_br_fiscal.group_user" states="a_enviar,enviada,autorizada,rejeitada,cancelada" class="oe_highlight"/>
            <button name="visualizar_xml" type="object" string="Visualizar XML" groups="l10n_br_fiscal.group_user" states="a_enviar,enviada,autorizada,rejeitada,cancelada" class="oe_highlight"/>
            <button name="action_document_cancel"  type="object" string="Cancelar"    groups="l10n_br_fiscal.group_user"    states="em_digitacao,a_enviar,enviada,rejeitada,autorizada"/>
            <button name="action_document_correction" type="object" string="Carta de correção" groups="l10n_br_fiscal.group_user" states="autorizada"/>
<!--                <button name="action_edoc_check" type="object"-->
<!--                        string="Consultar no sefaz"-->
<!--                        groups="base.group_no_one"/>-->
<!--            -->
            <field name="state" widget="statusbar" statusbar_visible="em_digitacao,autorizada"/>
        </header>
        <sheet string="Fiscal Document">
          <div class="oe_title">
            <h1><commit_msg>[FIX] Button pdf and xml method name<commit_after><?xml version="1.0" encoding="utf-8"?>
<odoo>

  <record id="document_search" model="ir.ui.view">
    <field name="name">l10n_br_fiscal.document.search</field>
    <field name="model">l10n_br_fiscal.document</field>
    <field name="arch" type="xml">
      <search string="Fiscal Document">
        <field name="number"/>
        <field name="partner_id"/>
        <field name="document_type_id"/>
        <group expand='0' string='Group By...'>
          <filter string='Document Type' name="document_type_id" domain="[]" context="{'group_by' : 'document_type_id'}"/>
        </group>
      </search>
    </field>
  </record>

  <record id="document_tree" model="ir.ui.view">
    <field name="name">l10n_br_fiscal.document.tree</field>
    <field name="model">l10n_br_fiscal.document</field>
    <field name="arch" type="xml">
      <tree>
        <field name="document_type_id"/>
        <field name="number"/>
        <field name="date"/>
        <field name="operation_id"/>
        <field name="partner_id"/>
        <field name="amount_untaxed"/>
        <field name="amount_tax"/>
        <field name="amount_total"/>
        <field name="state"/>
      </tree>
    </field>
  </record>

  <record id="document_form" model="ir.ui.view">
    <field name="name">l10n_br_fiscal.document.form</field>
    <field name="model">l10n_br_fiscal.document</field>
    <field name="arch" type="xml">
      <form string="Fiscal Document">
        <field name="id" invisible="1"/>
        <field name="currency_id" invisible="1"/>
        <field name="document_electronic" invisible="1"/>
        <field name="operation_type" invisible="1"/>
        <header>
            <button name="action_document_confirm" type="object" string="Confirmar"   groups="l10n_br_fiscal.group_user"    states="em_digitacao"     class="oe_highlight"/>
            <button name="action_document_send"    type="object" string="Enviar"      groups="l10n_br_fiscal.group_user"    states="a_enviar,rejeitada"         class="oe_highlight"/>
            <button name="view_pdf" type="object" string="Visualizar PDF" groups="l10n_br_fiscal.group_user" states="a_enviar,enviada,autorizada,rejeitada,cancelada" class="oe_highlight"/>
            <button name="view_xml" type="object" string="Visualizar XML" groups="l10n_br_fiscal.group_user" states="a_enviar,enviada,autorizada,rejeitada,cancelada" class="oe_highlight"/>
            <button name="action_document_cancel"  type="object" string="Cancelar"    groups="l10n_br_fiscal.group_user"    states="em_digitacao,a_enviar,enviada,rejeitada,autorizada"/>
            <button name="action_document_correction" type="object" string="Carta de correção" groups="l10n_br_fiscal.group_user" states="autorizada"/>
<!--                <button name="action_edoc_check" type="object"-->
<!--                        string="Consultar no sefaz"-->
<!--                        groups="base.group_no_one"/>-->
<!--            -->
            <field name="state" widget="statusbar" statusbar_visible="em_digitacao,autorizada"/>
        </header>
        <sheet string="Fiscal Document">
          <div class="oe_title">
            <h1>
{'fraction_non_alphanumeric': 0.16276512175962293, 'fraction_numerical': 0.010369206598586016, 'mean_word_length': 3.3812801101169994, 'pattern_counts': {'":': 0, '<': 133, '<?xml version=': 2, '>': 133, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 11}, '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': '6704442', 'n_tokens_mistral': 2084, 'n_tokens_neox': 2056, 'n_words': 321}