<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_form_sos_sales_achievement_acc" model="ir.ui.view">
    <field name="name">sos.sales.achievement.report.brief.form</field>
    <field name="model">sos_sales_achievement_report_brief</field>
    <field name="arch" type="xml">
        <form string="Achievement Brief">
            <sheet>
                <group>
                <field name="ref_id" invisible="1"/>
                <field name="category"/>
                    <field name="financial_year"/>
                    <field name="sales_person" invisible="category == 'export'"/>
                    <field name="customer_name"/>
                    <field name="action_date"/>
                    <field name="po_no"/>
                    <field name="proposal_value"/>
                    <field name="invoice_no"/>
      
                    <field name="currency_id" invisible="1"/>
                </group>
            </sheet>
        </form>
    </field>
</record>

    <record id="view_sos_sales_achievement_brief_wizard_form" model="ir.ui.view">
        <field name="name">sos_sales_achievement_report_brief_wizard.form</field>
        <field name="model">sos_sales_achievement_report_brief_wizard</field>
        <field name="arch" type="xml">
            <form string="Achievement Brief Lines">
                <sheet>
                <header> <button name="action_add_new_brief_line"
                    type="object"
                    string="Add New Line"
                    class="btn-primary"/></header>
                    <group>
                        <field name="parent_id" readonly="1"/>
                    </group>



                    <field name="brief_line_ids" nolabel="1">
                            <tree>
                            <field name="financial_year"/>
                            <field name="action_date" string="Date"/>
                            <field name="customer_name"/>
                            <field name="po_no"/>
                            <field name="invoice_no"/>
                            <field name="proposal_value"/>
                          
                                <button name="delete_achievement_line" class="btn btn-primary" string="Delete" 
                            type="object" icon="fa-times"/>
                            <button name="open_line_form" class="btn btn-primary" string="Edit" 
                            type="object" icon="fa-pencil"/>

                        </tree>
                    </field>
                    <footer>
                        <button string="Close" class="btn-secondary" special="cancel"/>
                    </footer>
                </sheet>
            </form>
        </field>
    </record>

    <record id="action_sos_sales_achievement_brief_wizard" model="ir.actions.act_window">
        <field name="name">Achievements</field>
        <field name="res_model">sos_sales_achievement_report_brief_wizard</field>
        <field name="view_mode">form</field>
        <field name="target">new</field>
    </record>
    <record id="action_sos_billed_collection_wizard" model="ir.actions.act_window">
    <field name="name">Add Collection Line</field>
    <field name="res_model">sos_billed_collection_wizard</field>
    <field name="view_mode">form</field>
    <field name="target">new</field>
</record>
<record id="view_sos_billing_collection_minimal_form_billed" model="ir.ui.view">
  <field name="name">sos.billing.collection.minimal.billed.form</field>
  <field name="model">sos_billing_collection</field>
  <field name="arch" type="xml">
   <form string="Add Billed Line">
      <sheet>
        <group>
        <field name="ref_id" invisible="1"/>
        <field name="action_status" invisible="1"/>
          <field name="date_of_action"/>
           <field name="customer_name"/>
          <field name="value"/>
          <field name="products"/>
           <field name="po_id" create="false"/>
           <field name="invoice_no"/>
          <!-- <field name="quantity"/> -->
        </group>
      </sheet>
    </form>
  </field>
</record>
<record id="view_sos_billing_collection_minimal_form_collection" model="ir.ui.view">
  <field name="name">sos.billing.collection.minimal.collection.form</field>
  <field name="model">sos_billing_collection</field>
  <field name="arch" type="xml">
   <form string="Add Collection Line">
      <sheet>
        <group>
        <field name="ref_id" invisible="1"/>
        <field name="action_status" invisible="1"/>

         
          <field name="date_of_action"/>
           <field name="customer_name"/>
          <field name="value"/>
            <field name="products"/>
           <field name="po_id" create="false"/>
           <field name="invoice_no"/>
 
        </group>
      </sheet>
    </form>
  </field>
</record>
<record id="view_sos_billed_collection_wizard_form_billed" model="ir.ui.view">
  <field name="name">sos.billed.collection.wizard.form.billed</field>
  <field name="model">sos_billed_collection_wizard</field>
  <field name="arch" type="xml">
    <form>
      <sheet>
        <header>
          <button name="action_add_new_collection_line"
                  type="object"
                  string="Add New Billed Line"
                  class="btn-primary"/>
        </header>
        <field name="main_parent_id" invisible="1"/>
        <field name="billed_line_ids">
          <tree>
            <field name="date_of_action"/>
            <field name="customer_name"/>
            <field name="value"/>
            <field name="products"/>
            <field name="po_no"/>
            <button name="delete_form_line" class="btn btn-primary" string="Delete" 
                            type="object" icon="fa-times"/>
                             <button name="write_line_form" class="btn btn-primary" string="Edit" 
                            type="object" icon="fa-pencil"/>
            <!-- <field name="quantity"/> -->
          </tree>
        </field>
        <footer>
          <button string="Close" special="cancel" class="btn-secondary"/>
        </footer>
      </sheet>
    </form>
  </field>
</record>
<record id="view_sos_billed_collection_wizard_form_collected" model="ir.ui.view">
  <field name="name">sos.billed.collection.wizard.form.collected</field>
  <field name="model">sos_billed_collection_wizard</field>
  <field name="arch" type="xml">
    <form>
      <sheet>
        <header>
          <button name="action_add_new_collection_line"
                  type="object"
                  string="Add New Collected Line"
                  class="btn-primary"/>
        </header>
        <field name="main_parent_id" invisible="1"/>
        <field name="billed_line_ids">
          <tree>
            <field name="date_of_action"/>
            <field name="customer_name"/>
            <field name="value"/>
           <field name="invoice_no"/>
            <button name="delete_form_line" class="btn btn-primary" string="Delete" 
                            type="object" icon="fa-times"/>
                            <button name="write_line_form" class="btn btn-primary" string="Edit" 
                            type="object" icon="fa-pencil"/>
          </tree>
        </field>
        <footer>
          <button string="Close" special="cancel" class="btn-secondary"/>
        </footer>
      </sheet>
    </form>
  </field>
</record>
</odoo>