You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

40 lines
1.8 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!--wizard view of send.document model-->
<record id="send_document_view_form" model="ir.ui.view">
<field name="name">send.document.view.form</field>
<field name="model">send.document</field>
<field name="arch" type="xml">
<form>
<group>
<field name="email_id" string="Customer"/>
<field name="check" id='check' invisible="1"/>
<field name="attachment_ids" class='attach_id'
string="Select File"
filename="my_file_fname"
widget="many2many_binary"
domain="['|',('create_uid','=',uid),('create_uid','=',False)]"/>
<field name="file"
attachment="True" string="" widget="pdf_viewer"/>
</group>
<footer>
<button name="action_edit_documents" type="object"
string="Edit Documents"
class="oe_highlight js_btn_edit_doc"/>
<button name="action_send_documents" type="object"
context="{'key': 0}" attrs="{'invisible':[('check', '=', False)]}"
string="Send Documents"
class="oe_highlight"/>
</footer>
</form>
</field>
</record>
<!--action for viewing send.document model-->
<record id="action_send_document" model="ir.actions.act_window">
<field name="name">send document view action</field>
<field name="res_model">send.document</field>
<field name="type">ir.actions.act_window</field>
<field name="view_mode">form</field>
</record>
</odoo>