Files
account-financial-tools/account_credit_control/wizard/credit_control_printer_view.xml
Guewen Baconnier @ Camptocamp c5f7aaa96a [FIX] button cancel at left
(lp:c2c-addons/6.1  rev 89.1.11)
2012-10-23 14:58:16 +02:00

48 lines
1.9 KiB
XML

<openerp>
<data>
<record id="credit_line_printer_form" model="ir.ui.view">
<field name="name">credit.line.printer.form</field>
<field name="model">credit.control.printer</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form> <!-- editable="bottom" -->
<separator colspan="4" string="This wizard will print the selected manual lines. Mark lines, lines will pass lines to state done. Lines with canal email will not be passed to state done"/>
<newline/>
<field name="mark_as_sent"/>
<field name="print_all"/>
<newline/>
<field name="report_file" attrs="{'readonly': [('state', '!=', 'done')]}" colspan="4"/>
<field name="state" invisible="1" />
<newline/>
<group colspan="4">
<button special="cancel" string="Cancel" icon='gtk-cancel'/>
<button name="print_lines" string="Print Lines" type="object" icon="gtk-execute"/>
</group>
</form>
</field>
</record>
<!-- for menu -->
<act_window name="Print Lines"
res_model="credit.control.printer"
src_model="credit.control.line"
view_mode="form"
target="new"
key2="client_action_multi"
id="open_credit_line_printer_wizard_menu_action"/>
<record id="open_credit_line_printer_wizard" model="ir.actions.act_window">
<field name="name">Print Lines</field>
<field name="res_model">credit.control.printer</field>
<field name="src_model">credit.control.line</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="view_id" ref="credit_line_printer_form"/>
<field name="target">new</field>
<field name="help">Print selected lines</field>
</record>
</data>
</openerp>