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

« back to all changes in this revision

Viewing changes to sale_override/sale_view.xml

  • Committer: jf
  • Date: 2014-05-28 13:16:31 UTC
  • mto: This revision was merged to the branch mainline in revision 2187.
  • Revision ID: jfb@tempo-consulting.fr-20140528131631-13qcl8f5h390rmtu
UFTP-244 [FIX] In sync context, do not auto create the link between account.account and account.destination.link for default destination
this link is created by a dedicated sync rule

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
                    <xpath expr="/form//field[@name='name']" position="replace">
17
17
                        <field name="name" required="1" />
18
18
                    </xpath>
 
19
 
19
20
                    <!-- UF-1846: we hide the product_uos_qty and product_uos that were displayed after the user right installation -->
20
21
                    <xpath expr="/form//field[@name='order_line']/form//field[@name='product_uos_qty']" position="attributes">
21
22
                         <attribute name="invisible">1</attribute>
23
24
                    <xpath expr="/form//field[@name='order_line']/form//field[@name='product_uos']" position="attributes">
24
25
                         <attribute name="invisible">1</attribute>
25
26
                    </xpath>
 
27
                    <xpath expr="/form//field[@name='order_line']/form//field[@name='invoiced']" position="attributes">
 
28
                         <attribute name="invisible">1</attribute>
 
29
                    </xpath>
26
30
 
27
31
                    <!-- uf-1499
28
32
                    <xpath expr="/form/group//field[@name='invoiced']" position="attributes">
32
36
                     -->
33
37
 
34
38
                    <xpath expr="/form/notebook//page[@string='Sales Order']//field[@name='order_line']/form/notebook//field[@name='product_id']" position="attributes">
35
 
                         <attribute name="domain">[('sale_ok', '=', True), ('purchase_type', '=', parent.categ)]</attribute>
 
39
                        <attribute name="domain">[('sale_ok', '=', True), ('purchase_type', '=', parent.categ)]</attribute>
 
40
                        <attribute name="context">partner_id=parent.partner_id,quantity=product_uom_qty,pricelist=parent.pricelist_id,warehouse=parent.warehouse_id,uom=product_uom,available_for_restriction=parent.partner_type,search_default_not_restricted=1</attribute>
36
41
                    </xpath>
37
42
 
38
43
                    <xpath expr="/form/group//field[@name='invoiced']" position="attributes">
45
50
                    <xpath expr="/form/notebook//page[@string='Sales Order']//field[@name='order_line']/form/notebook//page[@string='History']" position="replace">
46
51
                    </xpath>
47
52
 
 
53
                    <xpath expr="/form/notebook//page[@string='Sales Order']//field[@name='order_line']/form/notebook//field[@name='product_uom']" position="attributes">
 
54
                        <attribute name="domain">[('uom_by_product', '=', product_id)]</attribute>
 
55
                    </xpath>
 
56
 
48
57
                    <xpath expr="/form/group/field[@name='client_order_ref']" position="attributes">
49
58
                        <attribute name="attrs">{'readonly': ['|', ('partner_type', 'not in', ['external', 'esc']), ('state', 'not in', ['draft', 'validated'])]}</attribute>
50
59
                    </xpath>
58
67
                        <field name="order_type" />
59
68
                        <field name="priority" />
60
69
                        <field name="categ" on_change="onchange_categ(categ)" />
61
 
                        <field name="loan_duration" attrs="{'invisible': [('order_type', '!=', 'loan')], 'required': [('order_type', '=', 'loan')]}" />
 
70
                        <group colspan="2" col="2">
 
71
                            <field name="fo_to_resource" invisible="1" />
 
72
                            <field name="loan_duration" attrs="{'invisible': [('order_type', '!=', 'loan')], 'required': [('order_type', '=', 'loan')]}" />
 
73
                            <field name="parent_order_name" readonly="True" attrs="{'invisible': [('fo_to_resource', '=', False)]}" />
 
74
                        </group>
62
75
                        <field name="details" />
63
76
                        <field name="noinvoice" invisible="1" />
64
77
                    </xpath>
88
101
                    <!-- <xpath expr="/form/notebook/page[@string='Other Information']/group/field[@name='order_policy']" position="replace">
89
102
                        <field name="order_policy" on_change="shipping_policy_change(order_policy, order_type, partner_id, 'order_policy')"/>
90
103
                    </xpath> -->
 
104
                    <xpath expr="/form//field[@name='order_line']/tree" position="attributes">
 
105
                        <attribute name="hide_delete_button">True</attribute>
 
106
                    </xpath>
 
107
 
91
108
                    <xpath expr="/form/notebook//tree/field[@name='price_subtotal']" position="after">
92
 
                        <field name="state" invisible="1" />
 
109
                        <field name="state" invisible="1" />
 
110
                        <field name="fake_state" invisible="1" />
93
111
                        <button string="Split line" icon="terp-stock_effects-object-colorize" 
94
 
                                name="open_split_wizard" type="object" 
95
 
                                attrs="{'invisible': [('state', 'in', ('sourced', 'confirmed', 'done', 'cancel', 'exception'))]}" />
 
112
                                                name="open_split_wizard" type="object" 
 
113
                                attrs="{'invisible': [('state', 'in', ('sourced', 'confirmed', 'done', 'cancel', 'exception'))]}" />
 
114
                        <button string="Delete" icon="gtk-del" type="object" name="ask_unlink"
 
115
                                confirm="Do you really want to delete selected record ?"
 
116
                                attrs="{'invisible': [('state', 'in', ('sourced', 'confirmed', 'done', 'cancel', 'exception'))]}" />
96
117
                    </xpath>
97
118
 
98
119
                    <xpath expr="/form/notebook//field[@name='incoterm']" position="attributes">
250
271
                      <page string="Order Line">
251
272
                         <field name="product_id" colspan="4" on_change="requested_product_id_change(product_id, comment)" />
252
273
                         <field name="product_uom_qty" />
253
 
                         <field name="product_uom" on_change="onchange_uom(product_id, product_uom)"/>
 
274
                         <field name="product_uom" on_change="onchange_uom(product_id, product_uom, product_uom_qty)"/>
254
275
                         <field name="price_unit" invisible="1"/>
255
276
                         <field name="currency_id" />
256
277
                         <field name="date_planned" />
430
451
            used in useability_dashboard_and_menu/menu/supply_config_menu.xml
431
452
-->
432
453
 
433
 
 
434
 
 
 
454
        <record id="sale_order_unlink_wizard" model="ir.ui.view">
 
455
            <field name="name">sale.order.unlink.wizard</field>
 
456
            <field name="model">sale.order.unlink.wizard</field>
 
457
            <field name="type">form</field>
 
458
            <field name="arch" type="xml">
 
459
                <form string="Delete Field Order">
 
460
                    <group colspan="4" col="1">
 
461
                        <html>
 
462
                            <h4 style="text-align: center; margin: 10px">You removed all lines of this field order, would you cancel it ?</h4>
 
463
                        </html>
 
464
                    </group>
 
465
                    <newline />
 
466
                    <button colspan="2" type="object" icon="gtk-execute" name="cancel_fo" string="Yes" />
 
467
                    <button colspan="2" type="object" icon="gtk-execute" name="close_window" string="No" />
 
468
                </form>
 
469
            </field>
 
470
        </record>
 
471
 
 
472
        <record id="sale_order_cancelation_wizard_form_view" model="ir.ui.view">
 
473
            <field name="name">sale.order.cancelation.wizard.form.view</field>
 
474
            <field name="model">sale.order.cancelation.wizard</field>
 
475
            <field name="type">form</field>
 
476
            <field name="arch" type="xml">
 
477
                <form string="Cancel Field Order">
 
478
                    <group colspan="4" col="1">
 
479
                        <html>
 
480
                            <h4 style="text-align: center; margin: 10px">Do you want to re-source all lines of this order ?</h4>
 
481
                        </html>
 
482
                    </group>
 
483
                    <newline/>
 
484
                    <button colspan="2" type="object" icon="gtk-execute" name="resource_lines" string="Yes"/>
 
485
                    <button colspan="2" type="object" icon="gtk-execute" name="only_cancel" string="No"/>
 
486
                </form>
 
487
            </field>
 
488
        </record>
435
489
 
436
490
    </data>
437
491
</openerp>