~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to msf_outgoing/msf_outgoing_view.xml

  • Committer: jf
  • Date: 2013-09-05 09:32:29 UTC
  • mfrom: (1743.1.6 unifield-wm)
  • Revision ID: jfb@tempo-consulting.fr-20130905093229-7vyntm4uaumxfbz1
UF-1042 [IMP] Product's drop down lists configuration access
UF-1044 [IMP] Product status restrictive rules
lp:~unifield-team/unifield-wm/uf-1044-qt-integration

Show diffs side-by-side

added added

removed removed

Lines of Context:
222
222
                                                            >
223
223
                                                                <tree string="Stock Moves" noteditable="fake_state=='assigned'" hide_new_button="context.get('from_wkf')" hide_delete_button="context.get('from_wkf')"
224
224
                                                                colors="red: inactive_product==True">
225
 
                                                                        <field name="product_id"/>
 
225
                                    <field name="product_id" context="{'available_for_restriction': 'picking', 'search_default_not_restricted': 1}"/>
226
226
                                                                        <field name="composition_list_id" />
227
227
                                                                        <field name="product_qty" string="Qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
228
228
                                                                        <field name="product_uom" string="UoM"/>
256
256
                                                                                <field name="from_wkf_line" invisible="1" />
257
257
                                                                                <!-- Service products can't be sent -->
258
258
                                        <field name="product_id"
259
 
                                               context="{'location': location_id, 'prodlot_id': prodlot_id, 'compute_child': True}"
 
259
                                               context="{'location': location_id, 'prodlot_id': prodlot_id, 'compute_child': True, 'available_for_restriction': 'picking', 'search_default_not_restricted': 1}"
260
260
                                               on_change="onchange_product_id(product_id,location_id,location_dest_id, parent.address_id,parent.type,purchase_line_id,True)"
261
261
                                               attrs="{'readonly': ['|', ('from_wkf_line', '=', True), ('state', '=', 'assigned')]}"
262
262
                                               colspan="4" />
593
593
                                                <page string="Products">
594
594
                                                        <field colspan="4" name="move_lines" nolabel="1" widget="one2many_list" default_get="{'move_line':move_lines and [move_lines[-1]] or [], 'address_out_id': address_id}"  attrs="{'readonly': [ ('from_wkf', '=', True),('state','in',['draft','confirmed','assigned']) ]}" >
595
595
                                                                <tree string="Stock Moves" hide_new_button="True" colors="red: inactive_product==True">
596
 
                                                                        <field name="product_id"/>
 
596
                                    <field name="product_id" context="{'available_for_restriction': 'picking', 'search_default_not_restricted': 1}" />
597
597
                                                                        <field name="composition_list_id" />
598
598
                                                                        <field name="product_qty" string="Qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
599
599
                                                                        <field name="product_uom" string="UoM"/>
624
624
                                                                        <group colspan="2" col="4">
625
625
                                                                                <separator colspan="4" string="Move Information"/>
626
626
                                                                                <field name="name" invisible="1" colspan="4" />
627
 
                                        <field name="product_id" context="{'location': location_id, 'prodlot_id': prodlot_id, 'compute_child': True}" on_change="onchange_product_id(product_id,location_id,location_dest_id, parent.address_id,parent.type,purchase_line_id,True)" colspan="4" />
 
627
                                        <field name="product_id" 
 
628
                                               context="{'location': location_id, 'prodlot_id': prodlot_id, 'compute_child': True, 'available_for_restriction': 'picking', 'search_default_not_restricted': 1}" 
 
629
                                               on_change="onchange_product_id(product_id,location_id,location_dest_id, parent.address_id,parent.type,purchase_line_id,True)" 
 
630
                                               colspan="4" />
628
631
                                        <field name="composition_list_id" invisible="True" />
629
632
                                                                                <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" />
630
633
                                                                                <field name="product_uom" string="Unit Of Measure" colspan="2" domain="[('uom_by_product', '=', product_id)]"/>