~yannick-buron/sale-wkfl/sale-wkfl

« back to all changes in this revision

Viewing changes to sale_cancel_reason/wizard/cancel_reason_view.xml

  • Committer: Guewen Baconnier
  • Date: 2014-01-10 13:51:27 UTC
  • mfrom: (19.5.4 add-sale_cancel_reason-jge)
  • Revision ID: guewen.baconnier@camptocamp.com-20140110135127-665ppsgwppory0v4
[ADD] sale_cancel_reason: When a sale order is canceled, a reason must be given, it is chosen from a configured list.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<openerp>
 
3
    <data noupdate="0">
 
4
        <record id="view_sale_order_cancel" model="ir.ui.view">
 
5
            <field name="name">Reason for the cancellation</field>
 
6
            <field name="model">sale.order.cancel</field>
 
7
            <field name="arch" type="xml">
 
8
             <form string="Reason for the cancellation" version="7.0">
 
9
                <p class="oe_grey">
 
10
                    Choose the reason for the cancellation of the
 
11
                    sale order.
 
12
                </p>
 
13
                <group>
 
14
                    <field name="reason_id" widget="selection"/>
 
15
                </group>
 
16
                <footer>
 
17
                    <button name="confirm_cancel"
 
18
                        string="Confirm" type="object"
 
19
                        class="oe_highlight"/>
 
20
                    or
 
21
                    <button string="Cancel" class="oe_link"
 
22
                        special="cancel" />
 
23
                </footer>
 
24
            </form>
 
25
            </field>
 
26
        </record>
 
27
 
 
28
        <record id="action_sale_order_cancel" model="ir.actions.act_window">
 
29
            <field name="name">Reason for the cancellation</field>
 
30
            <field name="type">ir.actions.act_window</field>
 
31
            <field name="res_model">sale.order.cancel</field>
 
32
            <field name="view_type">form</field>
 
33
            <field name="view_mode">form</field>
 
34
            <field name="view_id" ref="view_sale_order_cancel"/>
 
35
            <field name="target">new</field>
 
36
        </record>
 
37
    </data>
 
38
</openerp>
 
39