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

« back to all changes in this revision

Viewing changes to stock_override/stock_view.xml

  • Committer: jf
  • Date: 2014-09-16 12:51:28 UTC
  • mfrom: (2210.2.7 utp-1139-1147)
  • Revision ID: jfb@tempo-consulting.fr-20140916125128-q302xqjhfjuxho7e
UTP-1139 [IMP] Performance issue of the Orders sourcing tool
UTP-1147 [FIX] Timeout error while processing large IN
lp:~unifield-team/unifield-wm/utp-1139-1147

Show diffs side-by-side

added added

removed removed

Lines of Context:
518
518
                <field name="type">form</field>
519
519
                <field name="arch" type="xml">
520
520
                        <form string="Incoming Shipments">
 
521
                    <field name="progress_memory_not_done" invisible="1" />
 
522
                    <group colspan="6">
 
523
                        <html>
 
524
                            <p id="view_incoming_in_progress"
 
525
                               style="display:none; text-align:center; color: red; font-weight: bold; font-size: 1.2em;">
 
526
                               WARNING: The processing of this incoming shipment is currently in progress, any modifications you make will not be considered.
 
527
                            </p>
 
528
                            <script language="javascript">
 
529
                                var is_synced = $('#progress_memory_not_done').val();
 
530
                                if (is_synced == "1") {
 
531
                                    msg_dom = $('#view_incoming_in_progress')
 
532
                                    msg_dom.show();
 
533
                                }
 
534
                            </script>
 
535
                        </html>
 
536
                    </group>
521
537
                    <group colspan="4" col="6">
522
538
                        <group colspan="4" col="4">
523
539
                            <field name="name" readonly="1"/>
669
685
                                <field name="state" readonly="1"/>
670
686
                                <button name="enter_reason"
671
687
                                    states="assigned,confirmed,draft,shipped"
 
688
                                    attrs="{'invisible': ['|', ('state', 'not in', ['assigned', 'confirmed', 'draft', 'shipped']), ('progress_memory_not_done', '!=', False)]}"
672
689
                                    string="Cancel"
673
690
                                    type="object"
674
691
                                    icon="gtk-cancel"
678
695
                                <field name="from_wkf_sourcing" invisible="1" />
679
696
                                <button name="enter_reason"
680
697
                                    states="assigned,confirmed,draft,shipped"
681
 
                                    attrs="{'invisible': [('from_wkf_sourcing', '=', False)]}"
 
698
                                    attrs="{'invisible': ['|', '|', ('state', 'not in', ['assigned', 'confirmed', 'draft', 'shipped']), ('progress_memory_not_done', '!=', False), ('from_wkf_sourcing', '=', False)]}"
682
699
                                    string="Cancel &amp; Resource"
683
700
                                    type="object"
684
701
                                    icon="gtk-cancel"
691
708
                                <!--
692
709
                                     To go to simulation screen, click on Process then Simulate button on the opened wizard
693
710
                                     <button name="go_to_simulation_screen" states="assigned,shipped" string="Simulate" type="object" icon="gtk-execute" attrs="{'invisible': [('is_esc', '=', False)]}" />-->
694
 
                                <button name="action_process" states="assigned,shipped" string="Process" type="object" icon="gtk-go-forward"/>
 
711
                                <field name="progress_memory" invisible="1" />
 
712
                                <button name="go_to_processing_wizard" states="assigned,shipped" string="Open processing wizard" type="object" icon="gtk-go-forward" attrs="{'invisible': ['|', '|', ('state', 'not in', ['assigned', 'shipped']), ('progress_memory', '=', -1), ('progress_memory_not_done', '=', False)]}" context="{'progress_wizard': True}" />
 
713
                                <button name="action_process" states="assigned,shipped" string="Process" type="object" icon="gtk-go-forward" attrs="{'invisible': [('progress_memory_not_done', '=', True)]}"/>
695
714
                                <group colspan="1" states="done">
696
715
                                    <button name="%(stock.act_stock_return_picking)d" string="Return Products" states="done" type="action" icon="gtk-execute"/>
697
716
                                </group>