~camptocamp/stock-logistic-flows/7.0-stock_cancel_restrict_reopen_button_to_wh_managers

« back to all changes in this revision

Viewing changes to stock_cancel/stock_view.xml

  • Committer: Romain Deheele
  • Date: 2014-06-18 09:34:33 UTC
  • Revision ID: romain.deheele@camptocamp.com-20140618093433-p5hiv1nhftpjo0eu
[UPD] restrict reopen button to warehouse managers

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
            <field name="inherit_id" ref="stock.view_picking_out_form"/>
9
9
            <field name="arch" type="xml">
10
10
                <button name="%(stock.act_stock_return_picking)d" position="after">
11
 
                    <button name="action_revert_done" string="Reopen" states="done,cancel" type="object" icon="gtk-cancel" confirm="Are you sure you want to reopen this stock picking?"/>
 
11
                    <button name="action_revert_done" string="Reopen" states="done,cancel" type="object" icon="gtk-cancel" confirm="Are you sure you want to reopen this stock picking?"
 
12
                            groups="stock.group_stock_manager"/>
12
13
                </button>
13
14
            </field>
14
15
                </record>
19
20
            <field name="inherit_id" ref="stock.view_picking_in_form"/>
20
21
            <field name="arch" type="xml">
21
22
                <button name="%(stock.act_stock_return_picking)d" position="after">
22
 
                    <button name="action_revert_done" string="Reopen" states="done,cancel" type="object" icon="gtk-cancel" confirm="Are you sure you want to reopen this stock picking?"/>
 
23
                    <button name="action_revert_done" string="Reopen" states="done,cancel" type="object" icon="gtk-cancel" confirm="Are you sure you want to reopen this stock picking?"
 
24
                            groups="stock.group_stock_manager"/>
23
25
                </button>
24
26
            </field>
25
27
                </record>
30
32
                        <field name="inherit_id" ref="stock.view_picking_form"/>
31
33
                        <field name="arch" type="xml">
32
34
                                <button name="%(stock.action_stock_invoice_onshipping)d" position="after">
33
 
                                        <button name="action_revert_done" string="Reopen" states="done,cancel" type="object" icon="gtk-cancel" confirm="Are you sure you want to reopen this stock picking?"/>
 
35
                                        <button name="action_revert_done" string="Reopen" states="done,cancel" type="object" icon="gtk-cancel" confirm="Are you sure you want to reopen this stock picking?"
 
36
                                                groups="stock.group_stock_manager"/>
34
37
                                </button>
35
38
                        </field>
36
39
                </record>