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

« back to all changes in this revision

Viewing changes to tender_flow/tender_flow_view.xml

  • Committer: Quentin THEURET
  • Date: 2016-03-04 10:44:48 UTC
  • Revision ID: qt@tempo-consulting.fr-20160304104448-u1pm8cvpkreodcfg
US-826 [FIX] Remove domain on product selection based on order category

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
                        <page string="Tender Lines">
28
28
                            <field colspan="4" mode="tree,form,graph" name="tender_line_ids" nolabel="1" widget="one2many_list">
29
29
                                <tree string="Tender Lines" editable="top" hide_delete_button="1" noteditable="line_state in ['cancel', 'done']" colors="blue: line_state=='cancel'">
30
 
                                    <field name="product_id" on_change="on_product_change(product_id, product_uom, qty, parent.categ)" attrs="{'readonly': [('state', '!=', 'draft')]}" domain="[('purchase_type', '=', parent.categ)]" context="{'available_for_restriction': 'tender', 'search_default_not_restricted': 1}" />
 
30
                                    <field name="product_id" on_change="on_product_change(product_id, product_uom, qty, parent.categ)" attrs="{'readonly': [('state', '!=', 'draft')]}" context="{'available_for_restriction': 'tender', 'search_default_not_restricted': 1}" />
31
31
                                    <field name="comment" />
32
32
                                    <field name="qty" attrs="{'readonly': [('state', '!=', 'draft')]}" 
33
33
                                        on_change="onchange_uom_qty(product_uom, qty)" />
171
171
            <field name="arch" type="xml">
172
172
                <tree string="Tender Lines" editable="top">
173
173
                    <!-- <field name="date_planned" /> -->
174
 
                    <field name="product_id" on_change="on_product_change(product_id, product_uom, qty)" attrs="{'readonly': [('state', '!=', 'draft')]}" domain="[('purchase_type', '=', parent.categ)]" context="{'available_for_restriction': 'tender', 'search_default_not_restricted': 1}" />
 
174
                    <field name="product_id" on_change="on_product_change(product_id, product_uom, qty)" attrs="{'readonly': [('state', '!=', 'draft')]}" context="{'available_for_restriction': 'tender', 'search_default_not_restricted': 1}" />
175
175
                    <field name="comment" />
176
176
                    <field name="qty" attrs="{'readonly': [('state', '!=', 'draft')]}" 
177
177
                           on_change="onchange_uom_qty(product_uom, qty)" />