~stock-logistic-core-editors/carriers-deliveries/github-7.0

« back to all changes in this revision

Viewing changes to base_delivery_carrier_label/stock_view.xml

  • Committer: Joel Grand-Guillaume
  • Author(s): Yannick Vaucher
  • Date: 2014-01-17 15:32:57 UTC
  • mfrom: (7.1.22)
  • Revision ID: git-v1:0748467ab0e1873d434e8b30dc0e871af2d4e659
[MRG][MIGR] Port of delivery_base and deliver_shipping_label removing direct print logic

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<openerp>
 
3
  <data>
 
4
    <!-- From DELIVERY module on STOCK.PICKING -->
 
5
    <!-- FORM -->
 
6
    <record id="view_picking_out_form" model="ir.ui.view">
 
7
      <field name="name">delivery.stock.picking.out.form</field>
 
8
      <field name="model">stock.picking.out</field>
 
9
      <field name="inherit_id" ref="delivery.view_picking_withcarrier_out_form"/>
 
10
      <field name="arch" type="xml">
 
11
        <field name="state" position="before">
 
12
          <button name="action_generate_carrier_label" states="assigned,confirmed,draft" string="Create Shipping Label" type="object"/>
 
13
        </field>
 
14
        <field name="carrier_id" position="attributes">
 
15
          <attribute name="on_change">carrier_id_change(carrier_id, context)</attribute>
 
16
        </field>
 
17
        <notebook position='inside'>
 
18
          <page name="carrier" string="Carrier Info">
 
19
            <separator string="Delivery"/>
 
20
            <field name="carrier_type"/>
 
21
            <field name="carrier_code"/>
 
22
            <separator string="Options"/>
 
23
            <field name="option_ids" nolabel="1"
 
24
              on_change="option_ids_change(option_ids, carrier_id, context)"/>
 
25
          </page>
 
26
        </notebook>
 
27
      </field>
 
28
    </record>
 
29
 
 
30
    <!-- From DELIVERY module on STOCK.PICKING -->
 
31
    <!-- FORM -->
 
32
    <record id="view_picking_in_form" model="ir.ui.view">
 
33
      <field name="name">delivery.stock.picking.in.form</field>
 
34
      <field name="model">stock.picking.in</field>
 
35
      <field name="inherit_id" ref="delivery.view_picking_withcarrier_in_form"/>
 
36
      <field name="arch" type="xml">
 
37
        <field name="state" position="before">
 
38
          <button name="action_generate_carrier_label" states="assigned,confirmed,draft" string="Create Return Label" type="object"/>
 
39
        </field>
 
40
        <notebook position='inside'>
 
41
          <page name="carrier" string="Carrier Info">
 
42
            <separator string="Delivery"/>
 
43
            <field name="carrier_id" on_change="carrier_id_change(carrier_id, context)"/>
 
44
            <field name="carrier_type"/>
 
45
            <field name="carrier_code"/>
 
46
            <separator string="Options"/>
 
47
            <field name="option_ids" nolabel="1"
 
48
              on_change="option_ids_change(option_ids, carrier_id, context)"/>
 
49
          </page>
 
50
        </notebook>
 
51
      </field>
 
52
    </record>
 
53
 
 
54
  </data>
 
55
</openerp>