~unifield-team/unifield-wm/wm-2418-rw-fix

« back to all changes in this revision

Viewing changes to unifield_setup/installer/allocation_setup_view.xml

  • Committer: pierre-marie
  • Date: 2012-07-25 14:13:53 UTC
  • mfrom: (1038 unifield-wm)
  • mto: This revision was merged to the branch mainline in revision 1060.
  • Revision ID: pierre-marie@pierre-marie-laptop-20120725141353-9iwjdr1kltbei90e
Merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<openerp>
 
2
  <data>
 
3
    <record id="view_allocation_stock_setup" model="ir.ui.view">
 
4
      <field name="name">Allocated Stock Configuration</field>
 
5
      <field name="model">allocation.stock.setup</field>
 
6
      <field name="type">form</field>
 
7
      <field name="inherit_id" ref="base.res_config_view_base"/>
 
8
      <field name="arch" type="xml">
 
9
        <data>
 
10
          <form position="attributes">
 
11
            <attribute name="string">Allocation Stock Configuration</attribute>
 
12
          </form>
 
13
          <xpath expr="//label[@string='description']" position="attributes">
 
14
                <attribute name="string">Determines if the stock is allocated or not or both.</attribute>
 
15
          </xpath>
 
16
          <xpath expr='//separator[@string="title"]' position='attributes'>
 
17
                    <attribute name='string'>Configure Your Allocated Stock</attribute>
 
18
          </xpath>
 
19
          <xpath expr='//separator[@string="vsep"]' position='attributes'>
 
20
                    <attribute name='rowspan'>25</attribute>
 
21
                    <attribute name='string'></attribute>
 
22
          </xpath>
 
23
          <group string="res_config_contents" position="replace">
 
24
              <group colspan="5">
 
25
                <field name="allocation_setup" on_change="allocation_on_change(allocation_setup)" />
 
26
                <field name="unallocated_ok" readonly="1" />
 
27
                <group colspan="5" col="4" attrs="{'invisible': [('error_ok', '=', False)]}">
 
28
                        <separator colspan="4" string="Error" />
 
29
                        <field name="error_ok" invisible="1" />
 
30
                        <field name="error_po_ok" invisible="1" />
 
31
                        <field name="error_cross_ok" invisible="1" />
 
32
                        <field name="error_central_ok" invisible="1" />
 
33
                        <field name="error_location_ok" invisible="1" />
 
34
                        <field name="error_msg" attrs="{'invisible': [('error_ok', '=', False)]}" nolabel="1" colspan="4" />
 
35
                        <button name="go_to_po" attrs="{'invisible': [('error_po_ok', '=', False)]}" string="Display PO" type="object" />
 
36
                        <button name="go_to_cross" attrs="{'invisible': [('error_cross_ok', '=', False)]}" string="Display Picking (Cross-docking)" type="object" />
 
37
                        <button name="go_to_central" attrs="{'invisible': [('error_central_ok', '=', False)]}" string="Display Picking (Central stock)" type="object" />
 
38
                        <button name="go_to_location" attrs="{'invisible': [('error_location_ok', '=', False)]}" string="Display Locations" type="object" />
 
39
                </group>
 
40
              </group>
 
41
           </group>
 
42
        </data>
 
43
      </field>
 
44
    </record>
 
45
 
 
46
    <record id="action_allocation_stock_setup" model="ir.actions.act_window">
 
47
      <field name="name">Allocated Setup Configuration</field>
 
48
      <field name="type">ir.actions.act_window</field>
 
49
      <field name="res_model">allocation.stock.setup</field>
 
50
      <field name="view_id" ref="view_allocation_stock_setup"/>
 
51
      <field name="view_type">form</field>
 
52
      <field name="view_mode">form</field>
 
53
      <field name="target">new</field>
 
54
    </record>
 
55
 
 
56
    <record id="allocation_stock_setup_todo" model="ir.actions.todo">
 
57
        <field name="action_id" ref="action_allocation_stock_setup"/>
 
58
        <field name="sequence">20</field>
 
59
        <field name="restart">always</field>
 
60
    </record>
 
61
  </data>
 
62
</openerp>