<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record id="proposal_builder_form" model="ir.ui.view">
    <field name="name">sos_proposal_builder.form</field>
    <field name="model">sos_proposal_builder</field>
    <field name="arch" type="xml">
        <form string="Battery Installation">
        <header>
                    <button class="btn btn-primary" type="object"
                            name="action_report_proposal_btn"><i class="fa fa-print"></i> Print Proposal</button>
                            
                </header>
            <sheet>
           
            <group>
                <group>
                <field name="proposal_id"/>
                <field name="customer_name"/>
                </group>
                 <group>
                  <field name="customer_logo" widget="image" />

                </group>
                </group>
                     <br></br>

   
<notebook>
<page string="Final Costing By Sales">
<br></br>
<table class="table_custom" style="width: 75%;margin: auto;">
<tr><td class="column">MSP By Finance</td><td><field style="font-weight: bold;font-size: 18px;" name="total_cost" readonly="True"/></td></tr>
<tr><td class="column">Sales Buffer(%)</td><td><field style="font-weight: bold;font-size: 18px;" name="buffer_in_percentage"/></td></tr>
<tr><td class="column">Total Proposal Offer</td><td><field style="font-weight: bold;font-size: 18px;" name="total_with_buffer"/></td></tr>
</table>
</page>

<page string="Proposal Builder">
<notebook>
<page string="Introduction">
<group><field name="proposal_heading"/></group>
<group><field name="about_sosaley"/></group>
<group><field name="proposal_objective"/></group>
</page>
<page string="Overview">
<group><field name="proposal_overview"/></group>
</page>
<page string="Parameters Monitored">
<group><field name="parameters_monitored"/></group>
</page>
<page string="Architecture Diagrams">
<field name="technical_diagrams">
<tree editable="bottom">
<field name="image_name"/>
<field name="image" widget="image" options="{'preview_image': 'image', 'size': [200, 150]}"/>
</tree>
</field>
</page>
<page string="Quotation">

<div class="row">
<div class="col-md-6" style="border-right: solid 1px #ccc">
<h3 style="text-align: center;text-transform: uppercase;text-shadow: 1px 1p 1px #140718;color: #65407c;padding:5px;">Customer Details</h3><hr></hr><br></br>  
<group><field name="billing_address"/></group>
<group><field name="shipping_address"/></group>
<group><field name="contact_person"/></group>
<group><field name="contact_number"/></group>
<group><field name="email_id"/></group>
</div>

<div class="col-md-6">
<h3 style="text-align: center;text-transform: uppercase;text-shadow: 1px 1p 1px #140718;color: #65407c;padding:5px;">Quotation Details</h3><hr></hr><br></br>  
<group><field name="quotation_no"/></group>
<group><field name="quotation_date"/></group>
<group><field name="quotation_validity"/></group>
<group><field name="inquiry_ref_no"/></group>
</div>
</div>
</page>
</notebook>
</page>
<page string="Payment Terms">
<field name="payment_terms"/>
</page>
<page string="Terms &amp; Conditions">
<field name="terms_and_conditions"/>
</page>
<!--<page string="Attachments">
<field name="doc_attachement" widget="pdf_viewer" filename="doc_attachement_filename"/>
</page>-->
</notebook>
     
            </sheet>
        </form>
    </field>
</record>

<record id="proposal_builder_tree" model="ir.ui.view">
    <field name="name">sos_proposal_builder.tree</field>
    <field name="model">sos_proposal_builder</field>
    <field name="arch" type="xml">
        <tree>
             <field name="proposal_id"/>
            <field name="customer_name"/>
       
  
        </tree>
    </field>
</record>
<record id="action_proposal_builder" model="ir.actions.act_window">
    <field name="name">Proposal Builder</field>
    <field name="res_model">sos_proposal_builder</field>
    <field name="view_mode">tree,form</field>
</record>
<menuitem id="menu_proposal_builder" name="Proposal Builder" parent="sos_proposal_system" action="action_proposal_builder"/>

</odoo>
