~akretion-team/stock-logistic-flows/70-product_serial-plus-plus

« back to all changes in this revision

Viewing changes to product_serial/wizard/prodlot_wizard_view.xml

  • Committer: Alexis de Lattre
  • Date: 2014-02-10 16:10:48 UTC
  • Revision ID: alexis@via.ecp.fr-20140210161048-ka5o0v4vend7jwrp
Modularize the code of the wizard for the module product_serial_mrp

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
    <field name="arch" type="xml">
48
48
        <xpath expr="//field[@name='origin']/.." position="after">
49
49
            <group name="prodlot_wizard">
50
 
                <button type="action" name="%(action_prodlot_selection)d" string="Spread Production Lots" states="draft,confirmed,assigned"/>
 
50
                <button type="action" name="%(action_prodlot_selection)d" string="Spread Production Lots" states="draft,confirmed,assigned" context="{'stock_move_field': 'move_lines'}"/>
51
51
            </group>
52
52
        </xpath>
53
53
    </field>
61
61
    <field name="arch" type="xml">
62
62
        <xpath expr="//field[@name='origin']/.." position="after">
63
63
            <group name="prodlot_wizard">
64
 
                <button type="action" name="%(action_prodlot_selection)d" string="Spread Production Lots" states="draft,confirmed,assigned"/>
 
64
                <button type="action" name="%(action_prodlot_selection)d" string="Spread Production Lots" states="draft,confirmed,assigned" context="{'stock_move_field': 'move_lines', 'default_create_prodlots': True}"/>
65
65
            </group>
66
66
        </xpath>
67
67
    </field>
75
75
    <field name="arch" type="xml">
76
76
        <xpath expr="//field[@name='origin']/.." position="after">
77
77
            <group name="prodlot_wizard">
78
 
                <button type="action" name="%(action_prodlot_selection)d" string="Spread Production Lots" states="draft,confirmed,assigned"/>
 
78
                <button type="action" name="%(action_prodlot_selection)d" string="Spread Production Lots" states="draft,confirmed,assigned" context="{'stock_move_field': 'move_lines'}"/>
79
79
            </group>
80
80
        </xpath>
81
81
    </field>