changes
This commit is contained in:
@@ -1,105 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<!-- SA Signature Template - Form View -->
|
||||
<record id="view_fusion_sa_signature_template_form" model="ir.ui.view">
|
||||
<field name="name">fusion.sa.signature.template.form</field>
|
||||
<field name="model">fusion.sa.signature.template</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="SA Signature Template">
|
||||
<sheet>
|
||||
<div class="oe_title">
|
||||
<h1><field name="name" placeholder="e.g. SA Mobility Standard"/></h1>
|
||||
</div>
|
||||
<group>
|
||||
<group>
|
||||
<field name="sa_default_sig_page" string="Default Signature Page"/>
|
||||
<field name="active"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="notes" placeholder="Usage notes"/>
|
||||
</group>
|
||||
</group>
|
||||
<div class="row mt-3">
|
||||
<div class="col-5">
|
||||
<h4>Signature Coordinates</h4>
|
||||
<div class="text-muted mb-2" style="font-size: 0.85em;">
|
||||
PDF points (72 pts = 1 inch). Y = from top.
|
||||
</div>
|
||||
<group string="Name">
|
||||
<field name="sa_sig_name_x" string="X"/>
|
||||
<field name="sa_sig_name_y" string="Y from top"/>
|
||||
</group>
|
||||
<group string="Date">
|
||||
<field name="sa_sig_date_x" string="X"/>
|
||||
<field name="sa_sig_date_y" string="Y from top"/>
|
||||
</group>
|
||||
<group string="Signature">
|
||||
<field name="sa_sig_x" string="X"/>
|
||||
<field name="sa_sig_y" string="Y from top"/>
|
||||
<field name="sa_sig_w" string="Width"/>
|
||||
<field name="sa_sig_h" string="Height"/>
|
||||
</group>
|
||||
<separator/>
|
||||
<group>
|
||||
<field name="preview_pdf" filename="preview_pdf_filename"
|
||||
string="Sample PDF"/>
|
||||
<field name="preview_pdf_filename" invisible="1"/>
|
||||
<field name="preview_pdf_page" string="Preview Page"
|
||||
help="0 = use Default Signature Page above"/>
|
||||
</group>
|
||||
</div>
|
||||
<div class="col-7">
|
||||
<h4>Preview</h4>
|
||||
<div class="text-muted mb-2" style="font-size: 0.85em;">
|
||||
Upload a sample PDF on the left to see where signatures land.
|
||||
</div>
|
||||
<field name="preview_image" widget="image" invisible="not preview_image"
|
||||
options="{'size': [700, 0]}" class="w-100"/>
|
||||
<div invisible="preview_image" class="text-muted text-center p-5"
|
||||
style="border: 1px dashed #666; border-radius: 8px;">
|
||||
<p>No preview available.</p>
|
||||
<p>Upload a sample SA Mobility approval PDF to see signature placement.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- SA Signature Template - List View -->
|
||||
<record id="view_fusion_sa_signature_template_list" model="ir.ui.view">
|
||||
<field name="name">fusion.sa.signature.template.list</field>
|
||||
<field name="model">fusion.sa.signature.template</field>
|
||||
<field name="arch" type="xml">
|
||||
<list string="SA Signature Templates">
|
||||
<field name="name"/>
|
||||
<field name="sa_default_sig_page" string="Sig Page"/>
|
||||
<field name="active" column_invisible="1"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- SA Signature Template - Action -->
|
||||
<record id="action_fusion_sa_signature_templates" model="ir.actions.act_window">
|
||||
<field name="name">SA Signature Templates</field>
|
||||
<field name="res_model">fusion.sa.signature.template</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
<field name="help" type="html">
|
||||
<p class="o_view_nocontent_smiling_face">
|
||||
Create a SA Mobility Signature Template
|
||||
</p>
|
||||
<p>
|
||||
Define where client name, date, and signature are placed on ODSP approval forms.
|
||||
Set once, used automatically for all SA Mobility cases.
|
||||
</p>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- Menu item under Configuration -->
|
||||
<menuitem id="menu_fusion_sa_signature_templates"
|
||||
name="SA Signature Templates"
|
||||
parent="menu_adp_config"
|
||||
action="action_fusion_sa_signature_templates"
|
||||
sequence="45"/>
|
||||
<!-- SA Signature Templates have been retired.
|
||||
ODSP signing positions are now managed via Configuration > PDF Templates
|
||||
(category = ODSP) using the drag-and-drop visual editor. -->
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user