279 lines
11 KiB
XML
Executable File
279 lines
11 KiB
XML
Executable File
<?xml version="1.0" encoding="UTF-8"?>
|
|
<odoo>
|
|
<record id="action_fptc_form_list" model="ir.actions.act_window">
|
|
<field name="name">Finished Product Transfer Challan</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">sos_fptc</field>
|
|
<field name="view_mode">tree,form,kanban</field>
|
|
|
|
</record>
|
|
<record id="action_serial_nos_form_list" model="ir.actions.act_window">
|
|
<field name="name">Batch & Serial Number Tracker</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">sos_serial_nos</field>
|
|
<field name="view_mode">tree</field>
|
|
<field name="context">{'group_by': 'customer_name'}</field>
|
|
</record>
|
|
<record id="sos_serial_nos_view_tree" model="ir.ui.view">
|
|
<field name="name">sos_serial_nos.view.tree</field>
|
|
<field name="model">sos_serial_nos</field>
|
|
<field name="arch" type="xml">
|
|
<tree>
|
|
|
|
<field name="customer_name"/>
|
|
<field name="batch_no"/>
|
|
<field name="serial_no"/>
|
|
<field name="fg_name"/>
|
|
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
<record id="sos_fptc_view_tree" model="ir.ui.view">
|
|
<field name="name">sos_fptc.view.tree</field>
|
|
<field name="model">sos_fptc</field>
|
|
<field name="arch" type="xml">
|
|
<tree>
|
|
|
|
<field name="fptc_no"/>
|
|
<field name="customer_name"/>
|
|
|
|
<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_fptc_form_view" model="ir.ui.view">
|
|
<field name="name">Form</field>
|
|
<field name="model">sos_fptc</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Model Form">
|
|
<header>
|
|
<button class="btn btn-primary" type="object"
|
|
name="action_report_fptc_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;">Finished Product Transfer Challan</h2><hr></hr><br></br>
|
|
|
|
<!-- Topmost Group -->
|
|
<group>
|
|
<!-- First Column -->
|
|
<group>
|
|
<field name="fptc_no"/>
|
|
<field name="deliverables_ref_no"/>
|
|
|
|
</group>
|
|
|
|
<!-- Second Column -->
|
|
<group>
|
|
<field name="customer_name"/>
|
|
<field name="fg_name" widget="many2many_tags"/>
|
|
|
|
|
|
</group>
|
|
</group>
|
|
|
|
<!-- <br></br>
|
|
<h3 style="text-transform: uppercase;
|
|
text-decoration: underline;">To be filled by Stores</h3>
|
|
-->
|
|
<notebook>
|
|
<page string="To Production">
|
|
<field name="stores_to_production_lines">
|
|
<tree editable="bottom" delete="false">
|
|
<field name="from_dept"/>
|
|
<field name="stores_to_production_transfer_on"/>
|
|
<field name="available_fg_names" column_invisible="1"/>
|
|
<field name="fg_name" domain="[('id', 'in', available_fg_names)]"/>
|
|
<field name="batch_no"/>
|
|
<field invisible="show_serial == False" name="serial_no" widget="text" style="height: 100px; overflow-y: auto;" placeholder="Enter serial numbers one per line.
|
|
Use 'to' for ranges (e.g., SOSMC250W2304BO1-000 to SOSMC250W2304BO1-100).
|
|
If no 'to' is used, values will be stored as entered."/>
|
|
<field name="show_serial" column_invisible="1"/>
|
|
<button name="toggle_serial" type="object" string="Show/Hide Serial No's"/>
|
|
<field name="stores_to_production_transfer_qty"/>
|
|
<field name="send_to_production_btn_display" column_invisible="1"/>
|
|
<button name="send_to_production_btn" string="Move to Production" type="object" class="oe_highlight" invisible="send_to_production_btn_display == False"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</page>
|
|
<page string="To QC">
|
|
<field name="line_ids">
|
|
<tree editable="bottom" delete="false">
|
|
<field name="from_dept"/>
|
|
<field name="available_fg_names" column_invisible="1"/>
|
|
<field name="fg_name" domain="[('id', 'in', available_fg_names)]"/>
|
|
<field name="production_to_qc_transfer_on" string="Transferred On"/>
|
|
<field name="batch_no"/>
|
|
<field invisible="show_serial == False" name="serial_no" widget="text" style="height: 100px; overflow-y: auto;" placeholder="Enter serial numbers one per line.
|
|
Use 'to' for ranges (e.g., SOSMC250W2304BO1-000 to SOSMC250W2304BO1-100).
|
|
If no 'to' is used, values will be stored as entered."/>
|
|
<field name="show_serial" column_invisible="1"/>
|
|
<button name="toggle_serial" type="object" string="Show/Hide Serial No's"/><field name="production_to_qc_transfer_qty"/>
|
|
<field name="production_to_qc_transfer_by" column_invisible="1"/>
|
|
<button name="send_to_qc_btn" invisible="production_to_qc_transfer_by" string="Move to QC" type="object" class="oe_highlight"/>
|
|
</tree>
|
|
</field>
|
|
</page>
|
|
<!-- QC pages -->
|
|
<page string="Quality Inspection">
|
|
<field name="line_ids">
|
|
<tree editable="bottom" delete="false" create="false">
|
|
<field name="fir_qc_report" string="QC Report" />
|
|
<field name="batch_no"/>
|
|
<field invisible="show_serial == False" name="serial_no" widget="text" style="height: 100px; overflow-y: auto;" placeholder="Enter serial numbers one per line.
|
|
Use 'to' for ranges (e.g., SOSMC250W2304BO1-000 to SOSMC250W2304BO1-100).
|
|
If no 'to' is used, values will be stored as entered."/>
|
|
<field name="show_serial" column_invisible="1"/>
|
|
<button name="toggle_serial" type="object" string="Show/Hide Serial No's"/>
|
|
<field name="production_to_qc_transfer_qty" string="Received Qty"/>
|
|
<field name="qc_to_stores_transfer_qty"/>
|
|
<field name="qc_to_stores_rejected_qty"/>
|
|
</tree>
|
|
</field>
|
|
</page>
|
|
|
|
|
|
|
|
|
|
<!-- End of QC pages -->
|
|
|
|
<page string="Stores Received">
|
|
<field name="line_ids">
|
|
<tree editable="bottom" delete="false">
|
|
<field name="available_fg_names" column_invisible="1"/>
|
|
<field name="fg_name" domain="[('id', 'in', available_fg_names)]"/>
|
|
|
|
<field name="batch_no"/>
|
|
<field invisible="show_serial == False" name="serial_no" widget="text" style="height: 100px; overflow-y: auto;" placeholder="Enter serial numbers one per line.
|
|
Use 'to' for ranges (e.g., SOSMC250W2304BO1-000 to SOSMC250W2304BO1-100).
|
|
If no 'to' is used, values will be stored as entered."/>
|
|
<field name="show_serial" column_invisible="1"/>
|
|
<button name="toggle_serial" type="object" string="Show/Hide Serial No's"/><field name="qc_to_stores_transfer_qty" string="Received Qty"/>
|
|
|
|
<field name="stores_received_by"/>
|
|
<field name="stores_received_on"/>
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
|
|
</page>
|
|
|
|
<page string="Transaction Summary">
|
|
<field name="line_ids">
|
|
<tree editable="bottom" delete="false">
|
|
<field name="production_to_qc_transfer_qty" string="Production to QC Qty" decoration-info="True"/>
|
|
<field name="production_to_qc_transfer_by" string="Transferred By" decoration-info="True"/>
|
|
<field name="production_to_qc_transfer_on" string="Transferred On" decoration-info="True"/>
|
|
|
|
<field name="qc_to_stores_transfer_qty" string="QC to Stores Qty" decoration-primary="True"/>
|
|
<field name="qc_to_stores_transfer_by" string="Transfered By" decoration-primary="True"/>
|
|
<field name="qc_to_stores_transfer_on" string="Transfered On" decoration-primary="True"/>
|
|
|
|
<field name="stores_received_by" string="Stores Received By" decoration-success="True"/>
|
|
<field name="stores_received_on" string="Received On" decoration-success="True"/>
|
|
|
|
|
|
|
|
</tree>
|
|
|
|
</field>
|
|
</page>
|
|
|
|
|
|
</notebook>
|
|
<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 colspan="2" class="column" style="background-color: #9689c1;color: #fff;">
|
|
To Be Filled By <span style="font-size: 18px;padding: 0px; color: #ffcc00;">Production</span> Team
|
|
</td> </tr>
|
|
<tr style="border-bottom: solid 1px #ccc;">
|
|
<td style="padding: 8px;" class="column"><b>Signature</b>
|
|
<br></br><br></br>
|
|
<button string="Approve" invisible="production_witness_image" class="btn-primary custom_btn" type="object" name="action_production_esign_btn"></button>
|
|
</td>
|
|
<td><field name="production_witness_image" widget="image"/></td>
|
|
</tr>
|
|
<tr invisible="production_witness_image == False">
|
|
<td style="padding: 8px;" class="column"><b>Witnessed On</b></td>
|
|
<td><field name="production_witness_approved_on" readonly="1"/></td>
|
|
</tr>
|
|
<tr invisible="production_witness_image == False">
|
|
<td style="padding: 8px;" class="column"><b>Witnessed By</b></td>
|
|
<td><field name="production_witness_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 colspan="2" class="column" style="background-color: #9689c1;color: #fff;">
|
|
To Be Filled By <span style="font-size: 18px;padding: 0px; color: #ffcc00;">QC</span> Team
|
|
</td> </tr>
|
|
<tr style="border-bottom: solid 1px #ccc;">
|
|
<td style="padding: 8px;" class="column"><b>Signature</b>
|
|
<br></br><br></br>
|
|
<button string="Approve" invisible="qc_witness_image" class="btn-primary custom_btn" type="object" name="action_qc_esign_btn"></button>
|
|
</td>
|
|
<td><field name="qc_witness_image" widget="image"/></td>
|
|
</tr>
|
|
<tr invisible="qc_witness_image == False">
|
|
<td style="padding: 8px;" class="column"><b>Witnessed On</b></td>
|
|
<td><field name="qc_witness_approved_on" readonly="1"/></td>
|
|
</tr>
|
|
<tr invisible="qc_witness_image == False">
|
|
<td style="padding: 8px;" class="column"><b>Witnessed By</b></td>
|
|
<td><field name="qc_witness_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 colspan="2" class="column" style="background-color: #9689c1;color: #fff;">
|
|
To Be Filled By <span style="font-size: 18px;padding: 0px; color: #ffcc00;">STORES</span> Team
|
|
</td> </tr>
|
|
<tr style="border-bottom: solid 1px #ccc;">
|
|
<td style="padding: 8px;" class="column"><b>Signature</b>
|
|
<br></br><br></br>
|
|
<button string="Approve" invisible="stores_witness_image" class="btn-primary custom_btn" type="object" name="action_stores_esign_btn"></button>
|
|
</td>
|
|
<td><field name="stores_witness_image" widget="image"/></td>
|
|
</tr>
|
|
<tr invisible="stores_witness_image == False">
|
|
<td style="padding: 8px;" class="column"><b>Witnessed On</b></td>
|
|
<td><field name="stores_witness_approved_on" readonly="1"/></td>
|
|
</tr>
|
|
<tr invisible="stores_witness_image == False">
|
|
<td style="padding: 8px;" class="column"><b>Witnessed By</b></td>
|
|
<td><field name="stores_witness_name" readonly="1"/></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
<menuitem id="fptc_menu"
|
|
name="Finished Product Transfer Challan (FPTC)"
|
|
parent="production_forms_menu_root" action="action_fptc_form_list" groups="sos_inventory.sos_scg_group_manager,sos_inventory.sos_scg_group_user,sos_inventory.sos_production_user,sos_inventory.sos_qc_user,sos_inventory.sos_management_user"/>
|
|
<menuitem id="serial_no_tracker_menu"
|
|
name="Batch & Serial Number Tracker"
|
|
parent="production_forms_menu_root" action="action_serial_nos_form_list" groups="sos_inventory.sos_scg_group_manager,sos_inventory.sos_scg_group_user,sos_inventory.sos_production_user,sos_inventory.sos_qc_user,sos_inventory.sos_management_user"/>
|
|
|
|
|
|
</odoo>
|
|
|