267 lines
13 KiB
XML
Executable File
267 lines
13 KiB
XML
Executable File
<?xml version="1.0" encoding="UTF-8"?>
|
|
<odoo>
|
|
<record id="action_mrn_form_list" model="ir.actions.act_window">
|
|
<field name="name">Return Note</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">sos_mrn</field>
|
|
<field name="view_mode">tree,form,kanban</field>
|
|
|
|
</record>
|
|
<record id="sos_mrn_view_tree" model="ir.ui.view">
|
|
<field name="name">sos_mrn.view.tree</field>
|
|
<field name="model">sos_mrn</field>
|
|
<field name="arch" type="xml">
|
|
<tree>
|
|
<field name="mrn_no"/>
|
|
<field name="mrn_date"/>
|
|
<field name="prepared_by_name" string="Prepared By" widget="many2one_avatar_user"/>
|
|
<field name="dept_in_charge_name" string="Department In-Charge" widget="many2one_avatar_user"/>
|
|
<field name="stores_approved_by" string="Stores In-Charge" widget="many2one_avatar_user"/>
|
|
<field name="write_uid" string="Last Edited By" optional="hide"/>
|
|
<field name="write_date" string="Last Edited On" optional="hide"/>
|
|
</tree>
|
|
</field>
|
|
|
|
</record>
|
|
<record id="sos_mrn_form_view" model="ir.ui.view">
|
|
<field name="name">Form</field>
|
|
<field name="model">sos_mrn</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Model Form">
|
|
<header>
|
|
<button class="btn btn-primary" type="object"
|
|
name="action_report_mrn_btn"><i class="fa fa-print"></i> Print</button>
|
|
|
|
|
|
|
|
</header>
|
|
<sheet>
|
|
<h2 style="text-align: center;text-transform: uppercase;text-shadow: 1px 1p 1px #140718;color: #65407c;padding:5px;">Material / SFG / FG <br></br>Return Note</h2><hr></hr><br></br>
|
|
|
|
<table class="table table_custom" style="box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;">
|
|
<tr><td><group><field name="material_option"/></group></td>
|
|
<td><group><field name="sfg_option"/></group></td>
|
|
<td><group><field name="fg_option"/></group></td></tr>
|
|
</table>
|
|
<br></br>
|
|
<!-- Topmost Group -->
|
|
<group>
|
|
<!-- First Column -->
|
|
|
|
<group>
|
|
<field name="mrn_no"/>
|
|
<field name="min_no"/>
|
|
<field name="return_type"/>
|
|
<field name="customer_name" invisible="show_customer == False"/>
|
|
<field name="show_customer" string="Order Type" invisible="1"/>
|
|
<field name="order_type" string="Order Type" invisible="1"/>
|
|
|
|
|
|
|
|
</group>
|
|
<!-- Second Column -->
|
|
<group>
|
|
<field name="mrn_date"/>
|
|
<field name="min_date"/>
|
|
<field name="filled_by"/>
|
|
|
|
</group>
|
|
</group>
|
|
|
|
|
|
|
|
<notebook>
|
|
<page string="Materials" invisible="material_option == False">
|
|
<field name="line_ids_material">
|
|
<tree editable="bottom">
|
|
<field name="component_id" string="Material Name"/>
|
|
<field name="approx_price"/>
|
|
<field name="qp_no"/>
|
|
<field name="uom"/>
|
|
<field name="condition"/>
|
|
<field name="quantity"/>
|
|
<field name="total_cost"/>
|
|
<field name="reject_reason"/>
|
|
<field name="qa_decision"/>
|
|
<field name="image" widget="image" class="oe_avatar" optional="hide"/>
|
|
|
|
|
|
|
|
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
<div class="oe_subtotal_footer" style="float: right;
|
|
padding: 20px;
|
|
border: solid 1px #ccc;
|
|
font-weight: bold;
|
|
box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;">
|
|
|
|
<!-- Gross Value Field -->
|
|
<div style="margin-bottom: 5px;">
|
|
<label for="approx_value" style="font-weight: bold; margin-right: 10px;">Approximate Value</label>
|
|
<field name="approx_value" widget="monetary" options="{'currency_field': 'currency_id'}" class="oe_inline"/>
|
|
</div>
|
|
</div>
|
|
<br></br>
|
|
</page>
|
|
<page string="Semi-Finished Goods" invisible="sfg_option == False">
|
|
<field name="line_ids_sfg">
|
|
<tree editable="bottom">
|
|
<field name="component_id"/>
|
|
<field name="qp_no"/>
|
|
<field name="uom"/>
|
|
<field name="condition"/>
|
|
<field name="quantity"/>
|
|
<field name="reject_reason"/>
|
|
<field name="qa_decision"/>
|
|
<field name="image" widget="image" class="oe_avatar" optional="hide"/>
|
|
|
|
|
|
|
|
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</page>
|
|
<page string="Finished Goods" invisible="fg_option == False">
|
|
<field name="line_ids_fg">
|
|
<tree editable="bottom">
|
|
<field name="component_id"/>
|
|
<field name="batch_No"/>
|
|
<field name="serial_no"/>
|
|
<field name="uom"/>
|
|
<field name="condition"/>
|
|
<field name="quantity"/>
|
|
<field name="reject_reason"/>
|
|
<field name="qa_decision"/>
|
|
<field name="image" widget="image" class="oe_avatar" optional="hide"/>
|
|
|
|
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</page>
|
|
</notebook>
|
|
<templates>
|
|
<!-- <div>
|
|
<table class="table-bordered" style="border:solid 1px #ccc;width:100%">
|
|
<tr>
|
|
<th style="padding:8px;">Prepared by Sign </th>
|
|
<th style="padding:8px;">Department In-Charge Sign </th>
|
|
<th style="padding:8px;">Approved by Top Management Sign</th>
|
|
</tr>
|
|
<tr>
|
|
<td style="border-bottom: solid transparent;padding:5px;"><button invisible="prepared_by_image" string="Approve" class="btn-primary custom_btn btn-sm" type="object"
|
|
name="action_report_esign_btn"/></td>
|
|
<td style="border-bottom: solid transparent;padding:5px;"><button invisible="dept_in_charge_image" string="Approve" class="custom_btn btn-primary btn-sm" type="object"
|
|
name="action_report_esign_btn1"/></td>
|
|
<td style="border-bottom: solid transparent;padding:5px;"><button invisible="qa_approval_image" string="Approve" class="btn-primary custom_btn btn-sm" type="object"
|
|
name="action_report_esign_btn2"/></td>
|
|
|
|
</tr>
|
|
<tr>
|
|
<td><field name="prepared_by_image" widget="image"/></td>
|
|
<td><field name="dept_in_charge_image" widget="image"/></td>
|
|
<td><field name="qa_approval_image" widget="image"/></td>
|
|
</tr>
|
|
|
|
</table>
|
|
</div> -->
|
|
|
|
<div class="row">
|
|
<div class="col-4">
|
|
<table class="table_custom" style="box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;background-color: #fff;border: solid 4px #9689c1;">
|
|
<tr style="border-bottom: solid 1px #ccc;">
|
|
<td style="padding: 8px;" class="column"><b>Prepared by Sign</b>
|
|
<button string="Approve" invisible="prepared_by_image" class="btn-primary custom_btn" type="object" name="action_report_esign_btn"></button>
|
|
</td>
|
|
<td><field name="prepared_by_image" widget="image"/></td>
|
|
</tr>
|
|
<tr invisible="prepared_by_image == False">
|
|
<td style="padding: 8px;" class="column"><b>Prepared On</b></td>
|
|
<td><field name="prepared_on" readonly="1"/></td>
|
|
</tr>
|
|
<tr invisible="prepared_by_image == False">
|
|
<td style="padding: 8px;" class="column"><b>Prepared By</b></td>
|
|
<td><field name="prepared_by_name" readonly="1"/></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="col-4">
|
|
<table class="table_custom" style="box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;background-color: #fff;border: solid 4px #9689c1;">
|
|
<tr style="border-bottom: solid 1px #ccc;">
|
|
<td style="padding: 8px;" class="column"><b>Department Incharge</b>
|
|
<button string="Approve" invisible="dept_in_charge_image" class="btn-primary custom_btn" type="object" name="action_report_esign_incharge"></button>
|
|
</td>
|
|
<td><field name="dept_in_charge_image" widget="image"/></td>
|
|
</tr>
|
|
<tr invisible="dept_in_charge_image == False">
|
|
<td style="padding: 8px;" class="column"><b>Approved On</b></td>
|
|
<td><field name="dept_in_charge_approved_on" readonly="1"/></td>
|
|
</tr>
|
|
<tr invisible="dept_in_charge_image == False">
|
|
<td style="padding: 8px;" class="column"><b>Approved By</b></td>
|
|
<td><field name="dept_in_charge_name" readonly="1"/></td>
|
|
</tr>
|
|
</table></div>
|
|
<div class="col-4">
|
|
<!-- Second Table -->
|
|
<table class="table_custom" style="box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;background-color: #fff;border: solid 4px #9689c1;">
|
|
<tr style="border-bottom: solid 1px #ccc;">
|
|
<td style="padding: 8px;" class="column"><b>QA Incharge</b>
|
|
<button string="Approve" invisible="qa_approved_image" class="btn-primary custom_btn" type="object" name="action_qa_esign"></button>
|
|
</td>
|
|
<td><field name="qa_approved_image" widget="image"/></td>
|
|
</tr>
|
|
<tr invisible="qa_approved_image == False">
|
|
<td style="padding: 8px;" class="column"><b>Approved On</b></td>
|
|
<td><field name="qa_approved_on" readonly="1"/></td>
|
|
</tr>
|
|
<tr invisible="qa_approved_image == False">
|
|
<td style="padding: 8px;" class="column"><b>Approved By</b></td>
|
|
<td><field name="qa_approved_by" readonly="1"/></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<br></br>
|
|
<div class="row">
|
|
<div class="col-4">
|
|
<!-- Second Table -->
|
|
<table class="table_custom" style="box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;background-color: #fff;border: solid 4px #9689c1;">
|
|
<tr style="border-bottom: solid 1px #ccc;">
|
|
<td style="padding: 8px;" class="column"><b>Stores Incharge</b>
|
|
<button string="Approve" invisible="stores_approved_image" class="btn-primary custom_btn" type="object" name="action_report_esign_btn1"></button>
|
|
</td>
|
|
<td><field name="stores_approved_image" widget="image"/></td>
|
|
</tr>
|
|
<tr invisible="stores_approved_image == False">
|
|
<td style="padding: 8px;" class="column"><b>Approved On</b></td>
|
|
<td><field name="stores_approved_on" readonly="1"/></td>
|
|
</tr>
|
|
<tr invisible="stores_approved_image == False">
|
|
<td style="padding: 8px;" class="column"><b>Approved By</b></td>
|
|
<td><field name="stores_approved_by" readonly="1"/></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</templates>
|
|
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
<menuitem id="mrn_menu"
|
|
name="Return Note (RN)"
|
|
parent="scg_forms_menu_root" action="action_mrn_form_list" groups="sos_inventory.sos_healthcare_user,sos_inventory.sos_scg_group_manager,sos_inventory.sos_scg_group_user,sos_inventory.sos_ce_user,sos_inventory.sos_rd_user,sos_inventory.sos_production_user,sos_inventory.sos_management_user,sos_inventory.sos_sales_user,sos_inventory.sos_finance_user" />
|
|
|
|
|
|
</odoo>
|