~openerp-connector-core-editors/openerp-connector/7.0-e-commerce-addons-shipping-setup-product

« back to all changes in this revision

Viewing changes to connector_ecommerce/wizard/sale_ignore_cancel_view.xml

  • Committer: Guewen Baconnier
  • Date: 2013-04-30 08:01:15 UTC
  • mfrom: (322.1.22 e-commerce-addons)
  • Revision ID: guewen.baconnier@camptocamp.com-20130430080115-j9n8n6j7qozpwa22
[ADD] cancelation of sales orders:

Propose a base implementation for sales orders canceled on a backend.

* sale_order.cancelled_in_backend means a sale order has been cancelled on the backend
* when sale_order.cancelled_in_backend is set to True, it tries to automatically cancel the SO
* when such a SO is cancelled, sale_order.cancellation_resolved is set to True
* the user has a button to set sale_order.cancellation_resolved to True without cancelling it
* search filter to display the SO to cancel
* Sales exceptions when a SO has been canceled on the backend
* SO can have a parent (logic of the parents is to implement in the connectors)
* Sales exception when a parent SO has been canceled on a backend
* adds notifications to inform the user what is happening

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_ignore_cancel" model="ir.ui.view">
 
5
            <field name="name">Sale Ignore Cancel</field>
 
6
            <field name="model">sale.ignore.cancel</field>
 
7
            <field name="arch" type="xml">
 
8
             <form string="Ignore the cancellation on the Backend" version="7.0">
 
9
                <p class="oe_grey">
 
10
                    This sales order has been canceled from the backend.
 
11
                    The usual action would be to cancel it in OpenERP along
 
12
                    all the documents generated (delivery orders, invoices, ...).
 
13
                </p>
 
14
                <p class="oe_grey">
 
15
                    However, if for any reason you need to keep it open in OpenERP,
 
16
                    write the reason here and it will stay open.
 
17
                </p>
 
18
                <group>
 
19
                    <label for="reason" colspan="2"/>
 
20
                    <field name="reason" nolabel="1" colspan="2"/>
 
21
                </group>
 
22
                <footer>
 
23
                    <button name="confirm_ignore_cancel"
 
24
                        string="Confirm" type="object"
 
25
                        class="oe_highlight"/>
 
26
                    or
 
27
                    <button string="Cancel" class="oe_link" special="cancel" />
 
28
                </footer>
 
29
            </form>
 
30
            </field>
 
31
        </record>
 
32
 
 
33
        <record id="action_sale_ignore_cancel" model="ir.actions.act_window">
 
34
            <field name="name">Ignore the cancellation on the Backend</field>
 
35
            <field name="type">ir.actions.act_window</field>
 
36
            <field name="res_model">sale.ignore.cancel</field>
 
37
            <field name="view_type">form</field>
 
38
            <field name="view_mode">form</field>
 
39
            <field name="view_id" ref="view_sale_ignore_cancel"/>
 
40
            <field name="target">new</field>
 
41
        </record>
 
42
    </data>
 
43
</openerp>