Files
account-financial-tools/account_credit_control/wizard/credit_control_printer_view.xml
Sylvain Van Hoof 5cb7d0a9ec [MIG] Migration of the module account_credit_control (from v8 to v10)
(cherry picked from commit 811310fd06ca8589fa8e87da6b8bdaea403bf660)

[MIG] Improve the code and fix some bugs

(cherry picked from commit 5bcdfe3f748884d650120f76d1642b820d0a800b)

[FIX] Change the parent for the menu Credit Control (the previous parent menu was not in the Odoo standard)

(cherry picked from commit 826257ce7b5248956d838cae9c94a012d550327e)

[FIX] Fix a lot of errors to respect pep8

(cherry picked from commit bed6cf35d665eea32122c91d33322af141053f29)

[FIX] Respect PEP8

(cherry picked from commit 6353eef0dce1bfe5db8a38d3410d1cc7f833fa10)
2017-06-09 11:25:17 +02:00

51 lines
1.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<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="arch" type="xml">
<form string="Lines report" version="7.0">
<separator string="Print the selected lines" colspan="4"/>
<newline/>
<group>
<field name="mark_as_sent"
colspan="4"/>
</group>
<newline/>
<notebook>
<page string="Lines">
<field name="line_ids" colspan="4" nolabel="1"/>
</page>
</notebook>
<footer>
<button class="oe_highlight" name="print_lines"
string="Print" type="object"/>
or
<button class="oe_link" special="cancel" string="Cancel"/>
</footer>
</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>
</odoo>