Merge lp:~dorian-kemps/unifield-server/US-11739-11741-11827-11835 into lp:unifield-server
- US-11739-11741-11827-11835
- Merge into trunk
Proposed by
jftempo
Status: | Merged |
---|---|
Merged at revision: | 6587 |
Proposed branch: | lp:~dorian-kemps/unifield-server/US-11739-11741-11827-11835 |
Merge into: | lp:unifield-server |
Diff against target: |
855 lines (+185/-111) 23 files modified
bin/addons/delete_button/view/sale_view.xml (+2/-2) bin/addons/msf_outgoing/msf_outgoing.py (+19/-4) bin/addons/msf_outgoing/msf_outgoing_view.xml (+8/-3) bin/addons/msf_outgoing/report/empty_picking_ticket.rml (+3/-0) bin/addons/msf_outgoing/report/freight_manifest.rml (+1/-1) bin/addons/msf_outgoing/report/packing_list.py (+2/-1) bin/addons/msf_outgoing/report/packing_list.rml (+28/-2) bin/addons/msf_outgoing/report/picking_ticket.rml (+7/-5) bin/addons/msf_printed_documents/report/report_reception.rml (+1/-0) bin/addons/msf_printed_documents/report/sale_order.rml (+2/-0) bin/addons/msf_profile/i18n/fr_MF.po (+42/-10) bin/addons/procurement_request/procurement_request_view.xml (+3/-0) bin/addons/procurement_request/report/procurement_request_report.rml (+8/-8) bin/addons/reason_types_moves/reason_type_view.xml (+0/-16) bin/addons/reason_types_moves/stock_view.xml (+2/-0) bin/addons/service_purchasing/service_purchasing_view.xml (+0/-33) bin/addons/stock/stock.py (+1/-0) bin/addons/stock/stock_move.py (+1/-0) bin/addons/stock/stock_view.xml (+13/-2) bin/addons/stock_override/report/delivery_order.rml (+20/-0) bin/addons/stock_override/report/internal_move.rml (+2/-2) bin/addons/stock_override/stock.py (+15/-8) bin/addons/stock_override/stock_view.xml (+5/-14) |
To merge this branch: | bzr merge lp:~dorian-kemps/unifield-server/US-11739-11741-11827-11835 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
UniField Reviewer Team | Pending | ||
Review via email:
|
Commit message
Description of the change
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'bin/addons/delete_button/view/sale_view.xml' | |||
2 | --- bin/addons/delete_button/view/sale_view.xml 2018-12-03 11:35:29 +0000 | |||
3 | +++ bin/addons/delete_button/view/sale_view.xml 2023-10-23 07:51:06 +0000 | |||
4 | @@ -51,8 +51,8 @@ | |||
5 | 51 | </data> | 51 | </data> |
6 | 52 | </field> | 52 | </field> |
7 | 53 | </record> | 53 | </record> |
10 | 54 | 54 | ||
11 | 55 | 55 | ||
12 | 56 | <record id="procurement_request_tree_view" model="ir.ui.view"> | 56 | <record id="procurement_request_tree_view" model="ir.ui.view"> |
13 | 57 | <field name="name">procurement.request.tree.view</field> | 57 | <field name="name">procurement.request.tree.view</field> |
14 | 58 | <field name="model">sale.order</field> | 58 | <field name="model">sale.order</field> |
15 | 59 | 59 | ||
16 | === modified file 'bin/addons/msf_outgoing/msf_outgoing.py' | |||
17 | --- bin/addons/msf_outgoing/msf_outgoing.py 2023-08-08 09:24:25 +0000 | |||
18 | +++ bin/addons/msf_outgoing/msf_outgoing.py 2023-10-23 07:51:06 +0000 | |||
19 | @@ -2523,7 +2523,7 @@ | |||
20 | 2523 | store={'stock.move': (_get_picking_ids, ['picking_id', 'state', 'product_qty'], 10), | 2523 | store={'stock.move': (_get_picking_ids, ['picking_id', 'state', 'product_qty'], 10), |
21 | 2524 | 'stock.picking': (lambda self, cr, uid, ids, c={}: ids, ['move_lines'], 10)}), | 2524 | 'stock.picking': (lambda self, cr, uid, ids, c={}: ids, ['move_lines'], 10)}), |
22 | 2525 | 'pack_family_memory_ids': fields.one2many('pack.family.memory', 'ppl_id', string='Memory Families'), | 2525 | 'pack_family_memory_ids': fields.one2many('pack.family.memory', 'ppl_id', string='Memory Families'), |
24 | 2526 | 'description_ppl': fields.char('Description', size=256), | 2526 | 'description_ppl': fields.char('Details', size=256), |
25 | 2527 | 'already_shipped': fields.boolean(string='The shipment is done'), # UF-1617: only for indicating the PPL that the relevant Ship has been closed | 2527 | 'already_shipped': fields.boolean(string='The shipment is done'), # UF-1617: only for indicating the PPL that the relevant Ship has been closed |
26 | 2528 | 'has_draft_moves': fields.function(_get_draft_moves, method=True, type='boolean', string='Has draft moves ?', store=False), | 2528 | 'has_draft_moves': fields.function(_get_draft_moves, method=True, type='boolean', string='Has draft moves ?', store=False), |
27 | 2529 | 'has_to_be_resourced': fields.boolean(string='Picking has to be resourced'), | 2529 | 'has_to_be_resourced': fields.boolean(string='Picking has to be resourced'), |
28 | @@ -3789,6 +3789,7 @@ | |||
29 | 3789 | 'previous_step_id': picking.id, | 3789 | 'previous_step_id': picking.id, |
30 | 3790 | 'backorder_id': False, | 3790 | 'backorder_id': False, |
31 | 3791 | 'move_lines': [], | 3791 | 'move_lines': [], |
32 | 3792 | 'description_ppl': picking.details, | ||
33 | 3792 | } | 3793 | } |
34 | 3793 | context.update({ | 3794 | context.update({ |
35 | 3794 | 'keep_prodlot': True, | 3795 | 'keep_prodlot': True, |
36 | @@ -4727,7 +4728,8 @@ | |||
37 | 4727 | bool_and(m.not_shipped) as not_shipped, | 4728 | bool_and(m.not_shipped) as not_shipped, |
38 | 4728 | ''::varchar(1) as comment, | 4729 | ''::varchar(1) as comment, |
39 | 4729 | p.flow_type = 'quick' as quick_flow, | 4730 | p.flow_type = 'quick' as quick_flow, |
41 | 4730 | p.state as pack_state | 4731 | p.state as pack_state, |
42 | 4732 | min(m.parcel_comment) as parcel_comment | ||
43 | 4731 | from stock_picking p | 4733 | from stock_picking p |
44 | 4732 | inner join stock_move m on m.picking_id = p.id and m.state != 'cancel' and m.product_qty > 0 | 4734 | inner join stock_move m on m.picking_id = p.id and m.state != 'cancel' and m.product_qty > 0 |
45 | 4733 | left join sale_order so on so.id = p.sale_id | 4735 | left join sale_order so on so.id = p.sale_id |
46 | @@ -4787,6 +4789,7 @@ | |||
47 | 4787 | 'ppl_id': fields.many2one('stock.picking', string="PPL Ref"), | 4789 | 'ppl_id': fields.many2one('stock.picking', string="PPL Ref"), |
48 | 4788 | 'from_pack': fields.integer(string='From p.'), | 4790 | 'from_pack': fields.integer(string='From p.'), |
49 | 4789 | 'to_pack': fields.integer(string='To p.'), | 4791 | 'to_pack': fields.integer(string='To p.'), |
50 | 4792 | 'parcel_comment': fields.char(string='Parcel Comment', size=256), | ||
51 | 4790 | 'pack_type': fields.many2one('pack.type', string='Pack Type'), | 4793 | 'pack_type': fields.many2one('pack.type', string='Pack Type'), |
52 | 4791 | 'length': fields.float(digits=(16, 2), string='Length [cm]'), | 4794 | 'length': fields.float(digits=(16, 2), string='Length [cm]'), |
53 | 4792 | 'width': fields.float(digits=(16, 2), string='Width [cm]'), | 4795 | 'width': fields.float(digits=(16, 2), string='Width [cm]'), |
54 | @@ -4812,7 +4815,7 @@ | |||
55 | 4812 | 'selected_number': fields.integer('Nb. Parcels to Ship'), | 4815 | 'selected_number': fields.integer('Nb. Parcels to Ship'), |
56 | 4813 | 'total_weight': fields.function(_vals_get, method=True, type='float', string='Total Weight[kg]', multi='get_vals',), | 4816 | 'total_weight': fields.function(_vals_get, method=True, type='float', string='Total Weight[kg]', multi='get_vals',), |
57 | 4814 | 'total_volume': fields.function(_vals_get, method=True, type='float', string=u'Total Volume[dm³]', multi='get_vals',), | 4817 | 'total_volume': fields.function(_vals_get, method=True, type='float', string=u'Total Volume[dm³]', multi='get_vals',), |
59 | 4815 | 'description_ppl': fields.char('Description', size=256), | 4818 | 'description_ppl': fields.char('Details', size=256), |
60 | 4816 | 'not_shipped': fields.boolean(string='Not shipped'), | 4819 | 'not_shipped': fields.boolean(string='Not shipped'), |
61 | 4817 | 'comment': fields.char(string='Comment', size=1024), | 4820 | 'comment': fields.char(string='Comment', size=1024), |
62 | 4818 | 'volume_set': fields.boolean('Volume set at PPL'), | 4821 | 'volume_set': fields.boolean('Volume set at PPL'), |
63 | @@ -4845,12 +4848,24 @@ | |||
64 | 4845 | fields.append('selected_number=%(to_ship)s') | 4848 | fields.append('selected_number=%(to_ship)s') |
65 | 4846 | 4849 | ||
66 | 4847 | if 'total_weight' in vals: | 4850 | if 'total_weight' in vals: |
67 | 4851 | try: | ||
68 | 4852 | vals['total_weight'] = float(vals['total_weight']) | ||
69 | 4853 | except Exception, e: | ||
70 | 4854 | raise osv.except_osv(_('Error'), _('The Total Weight[kg] must be a number')) | ||
71 | 4848 | sql_data['total_weight'] = vals['total_weight'] or 0 | 4855 | sql_data['total_weight'] = vals['total_weight'] or 0 |
72 | 4849 | fields.append('weight=%%(total_weight)s/(%s-from_pack+1)' % to_pack_field) | 4856 | fields.append('weight=%%(total_weight)s/(%s-from_pack+1)' % to_pack_field) |
73 | 4850 | if 'total_volume' in vals: | 4857 | if 'total_volume' in vals: |
74 | 4858 | try: | ||
75 | 4859 | vals['total_volume'] = float(vals['total_volume']) | ||
76 | 4860 | except Exception, e: | ||
77 | 4861 | raise osv.except_osv(_('Error'), _('The Total Volume[dm³] must be a number')) | ||
78 | 4851 | sql_data['size'] = (vals['total_volume']**(1.0/3))*10. or 0 | 4862 | sql_data['size'] = (vals['total_volume']**(1.0/3))*10. or 0 |
79 | 4852 | fields += ['length=%%(size)s/(%s-from_pack+1)' % to_pack_field, 'width=%(size)s', 'height=%(size)s'] | 4863 | fields += ['length=%%(size)s/(%s-from_pack+1)' % to_pack_field, 'width=%(size)s', 'height=%(size)s'] |
80 | 4853 | 4864 | ||
81 | 4865 | if 'parcel_comment' in vals: | ||
82 | 4866 | sql_data['parcel_comment'] = vals.get('parcel_comment', '') | ||
83 | 4867 | fields.append('parcel_comment=%(parcel_comment)s') | ||
84 | 4868 | |||
85 | 4854 | if fields: | 4869 | if fields: |
86 | 4855 | cr.execute(''' | 4870 | cr.execute(''' |
87 | 4856 | update stock_move | 4871 | update stock_move |
88 | @@ -4874,7 +4889,7 @@ | |||
89 | 4874 | for pack in pack_obj: | 4889 | for pack in pack_obj: |
90 | 4875 | res_id = pack['draft_packing_id'][0] | 4890 | res_id = pack['draft_packing_id'][0] |
91 | 4876 | return { | 4891 | return { |
93 | 4877 | 'name': 'Change description', | 4892 | 'name': _('Change details'), |
94 | 4878 | 'view_type': 'form', | 4893 | 'view_type': 'form', |
95 | 4879 | 'view_mode': 'form', | 4894 | 'view_mode': 'form', |
96 | 4880 | 'view_id': [res and res[1] or False], | 4895 | 'view_id': [res and res[1] or False], |
97 | 4881 | 4896 | ||
98 | === modified file 'bin/addons/msf_outgoing/msf_outgoing_view.xml' | |||
99 | --- bin/addons/msf_outgoing/msf_outgoing_view.xml 2023-08-08 09:24:25 +0000 | |||
100 | +++ bin/addons/msf_outgoing/msf_outgoing_view.xml 2023-10-23 07:51:06 +0000 | |||
101 | @@ -164,6 +164,7 @@ | |||
102 | 164 | <field name="sale_id" invisible="True" /> | 164 | <field name="sale_id" invisible="True" /> |
103 | 165 | <field name="reason_type_id" /> | 165 | <field name="reason_type_id" /> |
104 | 166 | <field name="origin"/> | 166 | <field name="origin"/> |
105 | 167 | <field name="details" truncate="15"/> | ||
106 | 167 | <field name="packing_list"/> | 168 | <field name="packing_list"/> |
107 | 168 | <field name="order_category" string="Order\nCategory"/> | 169 | <field name="order_category" string="Order\nCategory"/> |
108 | 169 | <field name="incoming_id" /> | 170 | <field name="incoming_id" /> |
109 | @@ -200,6 +201,7 @@ | |||
110 | 200 | <field name="backorder_id" readonly="1" string="Original PICK" /> | 201 | <field name="backorder_id" readonly="1" string="Original PICK" /> |
111 | 201 | <field name="reason_type_id" widget="selection" readonly="1" /> | 202 | <field name="reason_type_id" widget="selection" readonly="1" /> |
112 | 202 | <field name="order_category" /> | 203 | <field name="order_category" /> |
113 | 204 | <field name="details" readonly="1" /> | ||
114 | 203 | </group> | 205 | </group> |
115 | 204 | 206 | ||
116 | 205 | <group colspan="2" col="2"> | 207 | <group colspan="2" col="2"> |
117 | @@ -498,6 +500,7 @@ | |||
118 | 498 | <field name="name"/> | 500 | <field name="name"/> |
119 | 499 | <field name="partner_id2" /> | 501 | <field name="partner_id2" /> |
120 | 500 | <field name="origin"/> | 502 | <field name="origin"/> |
121 | 503 | <field name="details"/> | ||
122 | 501 | <field name="packing_list" /> | 504 | <field name="packing_list" /> |
123 | 502 | <field name="order_category" /> | 505 | <field name="order_category" /> |
124 | 503 | <newline /> | 506 | <newline /> |
125 | @@ -1285,9 +1288,9 @@ | |||
126 | 1285 | <field name="type">form</field> | 1288 | <field name="type">form</field> |
127 | 1286 | <field name="priority">21</field> | 1289 | <field name="priority">21</field> |
128 | 1287 | <field name="arch" type="xml"> | 1290 | <field name="arch" type="xml"> |
130 | 1288 | <form string="Change description shipment line"> | 1291 | <form string="Change details shipment line"> |
131 | 1289 | <field name="description_ppl"/> | 1292 | <field name="description_ppl"/> |
133 | 1290 | <button name="change_description_save" string="Save description" icon="gtk-save" type="object" /> | 1293 | <button name="change_description_save" string="Save details" icon="gtk-save" type="object" /> |
134 | 1291 | </form> | 1294 | </form> |
135 | 1292 | </field> | 1295 | </field> |
136 | 1293 | </record> | 1296 | </record> |
137 | @@ -1355,9 +1358,10 @@ | |||
138 | 1355 | <field name="ppl_id" readonly="1"/> | 1358 | <field name="ppl_id" readonly="1"/> |
139 | 1356 | <field name="packing_list" readonly="1" /> | 1359 | <field name="packing_list" readonly="1" /> |
140 | 1357 | <field name="description_ppl" readonly="1" /> | 1360 | <field name="description_ppl" readonly="1" /> |
142 | 1358 | <button name="change_description" string="Change description" icon="gtk-edit" type="object" attrs="{'invisible': [('fake_state', 'not in', ['draft', 'assigned'])]}" /> | 1361 | <button name="change_description" string="Change details" icon="gtk-edit" type="object" attrs="{'invisible': [('fake_state', 'not in', ['draft', 'assigned'])]}" /> |
143 | 1359 | <field name="from_pack" readonly="1" /> | 1362 | <field name="from_pack" readonly="1" /> |
144 | 1360 | <field name="to_pack" attrs="{'readonly': ['|', '|', '|', ('quick_flow', '=', False), ('fake_state', 'not in', ['draft', 'assigned']), ('from_pack', '!=', 1), ('pack_state', '!=', 'draft')]}" readonly="0"/> | 1363 | <field name="to_pack" attrs="{'readonly': ['|', '|', '|', ('quick_flow', '=', False), ('fake_state', 'not in', ['draft', 'assigned']), ('from_pack', '!=', 1), ('pack_state', '!=', 'draft')]}" readonly="0"/> |
145 | 1364 | <field name="parcel_comment" attrs="{'readonly': ['|', ('pack_state', '!=', 'draft'), ('fake_state', '!=', 'assigned')]}"/> | ||
146 | 1361 | <field name="num_of_packs" readonly="1" /> | 1365 | <field name="num_of_packs" readonly="1" /> |
147 | 1362 | <field name="selected_number" string="Nb Parcels\nTo Ship" attrs="{'readonly': ['|', ('pack_state', '!=', 'draft'), ('fake_state', '!=', 'assigned')]}" readonly="0" on_change="change_selected_number(selected_number)"/> | 1366 | <field name="selected_number" string="Nb Parcels\nTo Ship" attrs="{'readonly': ['|', ('pack_state', '!=', 'draft'), ('fake_state', '!=', 'assigned')]}" readonly="0" on_change="change_selected_number(selected_number)"/> |
148 | 1363 | <field name="pack_type" readonly="1" /> | 1367 | <field name="pack_type" readonly="1" /> |
149 | @@ -1381,6 +1385,7 @@ | |||
150 | 1381 | <newline /> | 1385 | <newline /> |
151 | 1382 | <field name="from_pack" readonly="1" /> | 1386 | <field name="from_pack" readonly="1" /> |
152 | 1383 | <field name="to_pack" attrs="{'readonly': ['|', '|', '|', ('quick_flow', '=', False), ('fake_state', 'not in', ['draft', 'assigned']), ('from_pack', '!=', 1), ('pack_state', '!=', 'draft')]}" /> | 1387 | <field name="to_pack" attrs="{'readonly': ['|', '|', '|', ('quick_flow', '=', False), ('fake_state', 'not in', ['draft', 'assigned']), ('from_pack', '!=', 1), ('pack_state', '!=', 'draft')]}" /> |
153 | 1388 | <field name="parcel_comment" attrs="{'readonly': ['|', ('pack_state', '!=', 'draft'), ('fake_state', '!=', 'assigned')]}"/> | ||
154 | 1384 | <field name="num_of_packs" readonly="1"/> | 1389 | <field name="num_of_packs" readonly="1"/> |
155 | 1385 | <field name="selected_number" attrs="{'readonly': ['|', ('pack_state', '!=', 'draft'), ('fake_state', '!=', 'assigned')]}" on_change="change_selected_number(selected_number)" /> | 1390 | <field name="selected_number" attrs="{'readonly': ['|', ('pack_state', '!=', 'draft'), ('fake_state', '!=', 'assigned')]}" on_change="change_selected_number(selected_number)" /> |
156 | 1386 | <field name="pack_type" readonly="1" /> | 1391 | <field name="pack_type" readonly="1" /> |
157 | 1387 | 1392 | ||
158 | === modified file 'bin/addons/msf_outgoing/report/empty_picking_ticket.rml' | |||
159 | --- bin/addons/msf_outgoing/report/empty_picking_ticket.rml 2023-07-27 15:06:19 +0000 | |||
160 | +++ bin/addons/msf_outgoing/report/empty_picking_ticket.rml 2023-10-23 07:51:06 +0000 | |||
161 | @@ -198,6 +198,9 @@ | |||
162 | 198 | <tr> | 198 | <tr> |
163 | 199 | <td><para style="HeaderInfosTitle">Transport mode:</para></td><td><para style="HeaderInfosTitle">[[ pt.sale_id and pt.sale_id.transport_type and getSel(pt.sale_id, 'transport_type') or '' ]]</para></td> | 199 | <td><para style="HeaderInfosTitle">Transport mode:</para></td><td><para style="HeaderInfosTitle">[[ pt.sale_id and pt.sale_id.transport_type and getSel(pt.sale_id, 'transport_type') or '' ]]</para></td> |
164 | 200 | </tr> | 200 | </tr> |
165 | 201 | <tr> | ||
166 | 202 | <td><para style="HeaderInfosTitle">Details:</para></td><td><para style="HeaderInfosTitle">[[ pt.description_ppl ]]</para></td> | ||
167 | 203 | </tr> | ||
168 | 201 | </blockTable> | 204 | </blockTable> |
169 | 202 | </td> | 205 | </td> |
170 | 203 | <td> | 206 | <td> |
171 | 204 | 207 | ||
172 | === modified file 'bin/addons/msf_outgoing/report/freight_manifest.rml' | |||
173 | --- bin/addons/msf_outgoing/report/freight_manifest.rml 2020-11-30 15:46:46 +0000 | |||
174 | +++ bin/addons/msf_outgoing/report/freight_manifest.rml 2023-10-23 07:51:06 +0000 | |||
175 | @@ -496,7 +496,7 @@ | |||
176 | 496 | <para style="TextInformation5" alignment="CENTER">Packing list</para> | 496 | <para style="TextInformation5" alignment="CENTER">Packing list</para> |
177 | 497 | </td> | 497 | </td> |
178 | 498 | <td> | 498 | <td> |
180 | 499 | <para style="TextInformation5" alignment="CENTER">Description</para> | 499 | <para style="TextInformation5" alignment="CENTER">Details</para> |
181 | 500 | </td> | 500 | </td> |
182 | 501 | <td> | 501 | <td> |
183 | 502 | <para style="TextInformation5" alignment="CENTER">Parcels</para> | 502 | <para style="TextInformation5" alignment="CENTER">Parcels</para> |
184 | 503 | 503 | ||
185 | === modified file 'bin/addons/msf_outgoing/report/packing_list.py' | |||
186 | --- bin/addons/msf_outgoing/report/packing_list.py 2018-07-17 13:18:35 +0000 | |||
187 | +++ bin/addons/msf_outgoing/report/packing_list.py 2023-10-23 07:51:06 +0000 | |||
188 | @@ -66,6 +66,7 @@ | |||
189 | 66 | 'total_volume': 0.00, | 66 | 'total_volume': 0.00, |
190 | 67 | 'total_weight': 0.00, | 67 | 'total_weight': 0.00, |
191 | 68 | 'nb_parcel': 0, | 68 | 'nb_parcel': 0, |
192 | 69 | 'pf_description_ppl': pf.description_ppl | ||
193 | 69 | }) | 70 | }) |
194 | 70 | if not pf.not_shipped: | 71 | if not pf.not_shipped: |
195 | 71 | res[pf.ppl_id.name]['pf'].append(pf) | 72 | res[pf.ppl_id.name]['pf'].append(pf) |
196 | @@ -79,7 +80,7 @@ | |||
197 | 79 | for key in sort_keys: | 80 | for key in sort_keys: |
198 | 80 | result.append(res.get(key)) | 81 | result.append(res.get(key)) |
199 | 81 | 82 | ||
201 | 82 | filtered_result = [] # remove empty PPL | 83 | filtered_result = [] # remove empty PPL |
202 | 83 | for data in result: | 84 | for data in result: |
203 | 84 | if data.get('pf'): | 85 | if data.get('pf'): |
204 | 85 | filtered_result.append(data) | 86 | filtered_result.append(data) |
205 | 86 | 87 | ||
206 | === modified file 'bin/addons/msf_outgoing/report/packing_list.rml' | |||
207 | --- bin/addons/msf_outgoing/report/packing_list.rml 2023-07-28 09:33:52 +0000 | |||
208 | +++ bin/addons/msf_outgoing/report/packing_list.rml 2023-10-23 07:51:06 +0000 | |||
209 | @@ -177,6 +177,14 @@ | |||
210 | 177 | <para style="HeaderInfosValue">[[ getSel(objects[0], 'transport_type') ]]</para> | 177 | <para style="HeaderInfosValue">[[ getSel(objects[0], 'transport_type') ]]</para> |
211 | 178 | </td> | 178 | </td> |
212 | 179 | </tr> | 179 | </tr> |
213 | 180 | <tr> | ||
214 | 181 | <td> | ||
215 | 182 | <para style="HeaderInfosTitle">Details:</para> | ||
216 | 183 | </td> | ||
217 | 184 | <td> | ||
218 | 185 | <para style="HeaderInfosValue">[[ p['pf_description_ppl'] or '' ]]</para> | ||
219 | 186 | </td> | ||
220 | 187 | </tr> | ||
221 | 180 | </blockTable> | 188 | </blockTable> |
222 | 181 | </td> | 189 | </td> |
223 | 182 | <td> | 190 | <td> |
224 | @@ -246,7 +254,7 @@ | |||
225 | 246 | <para style="ParcelInfosRight" alignment="CENTER">Containing</para> | 254 | <para style="ParcelInfosRight" alignment="CENTER">Containing</para> |
226 | 247 | </td> | 255 | </td> |
227 | 248 | <td> | 256 | <td> |
229 | 249 | <para style="ParcelInfos">Description</para> | 257 | <para style="ParcelInfos">Parcel Comment</para> |
230 | 250 | </td> | 258 | </td> |
231 | 251 | </tr> | 259 | </tr> |
232 | 252 | </blockTable> | 260 | </blockTable> |
233 | @@ -292,7 +300,7 @@ | |||
234 | 292 | <para style="ParcelLineTitle">MSL</para> | 300 | <para style="ParcelLineTitle">MSL</para> |
235 | 293 | </td> | 301 | </td> |
236 | 294 | <td> | 302 | <td> |
238 | 295 | <para style="ParcelLineTitle">[[ pf.description_ppl or ' ' ]]</para> | 303 | <para style="ParcelLineTitle">[[ pf.parcel_comment or ' ' ]]</para> |
239 | 296 | </td> | 304 | </td> |
240 | 297 | </tr> | 305 | </tr> |
241 | 298 | <tr> | 306 | <tr> |
242 | @@ -351,6 +359,24 @@ | |||
243 | 351 | <font color="white"> </font> | 359 | <font color="white"> </font> |
244 | 352 | </para> | 360 | </para> |
245 | 353 | 361 | ||
246 | 362 | <blockTable rowHeights="10.0" colWidths="10.0,45.0,755.0,10.0" style="HeaderInfos"> | ||
247 | 363 | <tr> | ||
248 | 364 | <td></td> | ||
249 | 365 | <td> | ||
250 | 366 | <para style="HeaderInfosTitle">Notes :</para> | ||
251 | 367 | </td> | ||
252 | 368 | <td> | ||
253 | 369 | <para style="HeaderInfosValue">[[ p['ppl'].note ]] total</para> | ||
254 | 370 | </td> | ||
255 | 371 | <td></td> | ||
256 | 372 | </tr> | ||
257 | 373 | </blockTable> | ||
258 | 374 | |||
259 | 375 | <!-- Empty line --> | ||
260 | 376 | <para style="HeaderInfosTitle"> | ||
261 | 377 | <font color="white"> </font> | ||
262 | 378 | </para> | ||
263 | 379 | |||
264 | 354 | <blockTable rowHeights="10.0" colWidths="250.0,170.0,170.0,230.0" style="Totals"> | 380 | <blockTable rowHeights="10.0" colWidths="250.0,170.0,170.0,230.0" style="Totals"> |
265 | 355 | <tr> | 381 | <tr> |
266 | 356 | <td></td> | 382 | <td></td> |
267 | 357 | 383 | ||
268 | === modified file 'bin/addons/msf_outgoing/report/picking_ticket.rml' | |||
269 | --- bin/addons/msf_outgoing/report/picking_ticket.rml 2023-08-08 09:24:25 +0000 | |||
270 | +++ bin/addons/msf_outgoing/report/picking_ticket.rml 2023-10-23 07:51:06 +0000 | |||
271 | @@ -4,7 +4,7 @@ | |||
272 | 4 | <!-- Templating --> | 4 | <!-- Templating --> |
273 | 5 | <template pageSize="(842.0,595.0)" title="Packing-List" author="Unifield,MSF" allowSplitting="20"> | 5 | <template pageSize="(842.0,595.0)" title="Packing-List" author="Unifield,MSF" allowSplitting="20"> |
274 | 6 | <pageTemplate id="first"> | 6 | <pageTemplate id="first"> |
276 | 7 | <frame id="first" x1="0.0" y1="0.0" width="842" height="520" /> | 7 | <frame id="first" x1="0.0" y1="0.0" width="842" height="505" /> |
277 | 8 | 8 | ||
278 | 9 | <pageGraphics> | 9 | <pageGraphics> |
279 | 10 | <setFont name="Helvetica-Bold" size="13.0"/> | 10 | <setFont name="Helvetica-Bold" size="13.0"/> |
280 | @@ -12,11 +12,13 @@ | |||
281 | 12 | <fill color="blue"/> | 12 | <fill color="blue"/> |
282 | 13 | <drawString x="20.0" y="541.0">[[ objects[0].name ]]</drawString> | 13 | <drawString x="20.0" y="541.0">[[ objects[0].name ]]</drawString> |
283 | 14 | <image x="705.0" y="525.0" height="53.3" width="100">[[ company.logo or removeParentNode('image') ]]</image> | 14 | <image x="705.0" y="525.0" height="53.3" width="100">[[ company.logo or removeParentNode('image') ]]</image> |
284 | 15 | <setFont name="Helvetica" size="9" /> | ||
285 | 16 | <fill color="black" /> | ||
286 | 17 | <drawString x="20.0" y="525.0">Details : [[ objects[0].details ]]</drawString> | ||
287 | 15 | <setFont name="Helvetica" size="8" /> | 18 | <setFont name="Helvetica" size="8" /> |
292 | 16 | <fill color="black" /> | 19 | <drawString x="20.0" y="510.0">Page : <pageNumber /> / </drawString> |
293 | 17 | <drawString x="20.0" y="525.0">Page : <pageNumber /> / </drawString> | 20 | <drawString x="62.0" y="510.0"><pageCount /></drawString> |
294 | 18 | <drawString x="62.0" y="525.0"><pageCount /></drawString> | 21 | <drawString x="20.0" y="495.0">Date [[ formatLang(time.strftime('%Y-%m-%d'), date=True) ]]</drawString> |
291 | 19 | <drawString x="20.0" y="510.0">Date [[ formatLang(time.strftime('%Y-%m-%d'), date=True) ]]</drawString> | ||
295 | 20 | </pageGraphics> | 22 | </pageGraphics> |
296 | 21 | </pageTemplate> | 23 | </pageTemplate> |
297 | 22 | 24 | ||
298 | 23 | 25 | ||
299 | === modified file 'bin/addons/msf_printed_documents/report/report_reception.rml' | |||
300 | --- bin/addons/msf_printed_documents/report/report_reception.rml 2023-08-08 09:24:25 +0000 | |||
301 | +++ bin/addons/msf_printed_documents/report/report_reception.rml 2023-10-23 07:51:06 +0000 | |||
302 | @@ -302,6 +302,7 @@ | |||
303 | 302 | </para> | 302 | </para> |
304 | 303 | 303 | ||
305 | 304 | <blockTable colWidths="800.0" > | 304 | <blockTable colWidths="800.0" > |
306 | 305 | <tr><td><para style="Standard">Details : [[ objects[0].details ]]</para></td></tr> | ||
307 | 305 | <tr><td><para style="Standard">Expected Receipt Date : [[ getERD(objects[0]) ]]</para></td></tr> | 306 | <tr><td><para style="Standard">Expected Receipt Date : [[ getERD(objects[0]) ]]</para></td></tr> |
308 | 306 | <tr><td><para style="Standard">Actual Receipt Date : [[ getActualReceiptDate(objects[0]) ]]</para></td></tr> | 307 | <tr><td><para style="Standard">Actual Receipt Date : [[ getActualReceiptDate(objects[0]) ]]</para></td></tr> |
309 | 307 | </blockTable> | 308 | </blockTable> |
310 | 308 | 309 | ||
311 | === modified file 'bin/addons/msf_printed_documents/report/sale_order.rml' | |||
312 | --- bin/addons/msf_printed_documents/report/sale_order.rml 2023-08-08 09:24:25 +0000 | |||
313 | +++ bin/addons/msf_printed_documents/report/sale_order.rml 2023-10-23 07:51:06 +0000 | |||
314 | @@ -8,6 +8,8 @@ | |||
315 | 8 | <pageGraphics> | 8 | <pageGraphics> |
316 | 9 | <drawString x="35" y="560.0">FIELD ORDER [[ '%s (%s/%s)' % (objects[0].name, getSel(objects[0],'order_type'), getSel(objects[0],'state')) ]]</drawString> | 9 | <drawString x="35" y="560.0">FIELD ORDER [[ '%s (%s/%s)' % (objects[0].name, getSel(objects[0],'order_type'), getSel(objects[0],'state')) ]]</drawString> |
317 | 10 | <image x="700" y="530.0" height="53.3" width="100">[[ company.logo or removeParentNode('image') ]]</image> | 10 | <image x="700" y="530.0" height="53.3" width="100">[[ company.logo or removeParentNode('image') ]]</image> |
318 | 11 | <setFont name="Helvetica" size="9"/> | ||
319 | 12 | <drawString x="35" y="520.0">Details : [[ objects[0].details ]]</drawString> | ||
320 | 11 | <setFont name="Helvetica" size="8"/> | 13 | <setFont name="Helvetica" size="8"/> |
321 | 12 | <fill color="black"/> | 14 | <fill color="black"/> |
322 | 13 | <drawString x="730" y="520.0">Page : <pageNumber /></drawString> | 15 | <drawString x="730" y="520.0">Page : <pageNumber /></drawString> |
323 | 14 | 16 | ||
324 | === modified file 'bin/addons/msf_profile/i18n/fr_MF.po' | |||
325 | --- bin/addons/msf_profile/i18n/fr_MF.po 2023-08-16 09:21:58 +0000 | |||
326 | +++ bin/addons/msf_profile/i18n/fr_MF.po 2023-10-23 07:51:06 +0000 | |||
327 | @@ -5882,10 +5882,8 @@ | |||
328 | 5882 | #: field:hr.payroll.msf,name:0 | 5882 | #: field:hr.payroll.msf,name:0 |
329 | 5883 | #: report:empty.picking.ticket:0 | 5883 | #: report:empty.picking.ticket:0 |
330 | 5884 | #: report:invoice:0 | 5884 | #: report:invoice:0 |
331 | 5885 | #: field:pack.family.memory,description_ppl:0 | ||
332 | 5886 | #: report:packing.list:0 | 5885 | #: report:packing.list:0 |
333 | 5887 | #: report:picking.ticket:0 | 5886 | #: report:picking.ticket:0 |
334 | 5888 | #: field:stock.picking,description_ppl:0 | ||
335 | 5889 | #: report:po.follow.up_rml:0 | 5887 | #: report:po.follow.up_rml:0 |
336 | 5890 | #: report:addons/msf_tools/report/report_inconsistencies_xls.mako:81 | 5888 | #: report:addons/msf_tools/report/report_inconsistencies_xls.mako:81 |
337 | 5891 | #: field:process.transition,note:0 | 5889 | #: field:process.transition,note:0 |
338 | @@ -8007,8 +8005,8 @@ | |||
339 | 8007 | 8005 | ||
340 | 8008 | #. module: msf_outgoing | 8006 | #. module: msf_outgoing |
341 | 8009 | #: view:stock.picking:0 | 8007 | #: view:stock.picking:0 |
344 | 8010 | msgid "Save description" | 8008 | msgid "Save details" |
345 | 8011 | msgstr "Sauvegarder la description" | 8009 | msgstr "Sauvegarder les détails" |
346 | 8012 | 8010 | ||
347 | 8013 | #. module: procurement | 8011 | #. module: procurement |
348 | 8014 | #: view:stock.warehouse.orderpoint:0 | 8012 | #: view:stock.warehouse.orderpoint:0 |
349 | @@ -41360,6 +41358,7 @@ | |||
350 | 41360 | #: report:purchase.order.merged:0 | 41358 | #: report:purchase.order.merged:0 |
351 | 41361 | #: report:msf.sale.order:0 | 41359 | #: report:msf.sale.order:0 |
352 | 41362 | #: report:po.follow.up_rml:0 | 41360 | #: report:po.follow.up_rml:0 |
353 | 41361 | #: report:packing.list:0 | ||
354 | 41363 | msgid "Notes :" | 41362 | msgid "Notes :" |
355 | 41364 | msgstr "Notes :" | 41363 | msgstr "Notes :" |
356 | 41365 | 41364 | ||
357 | @@ -44632,8 +44631,8 @@ | |||
358 | 44632 | #: view:shipment:0 | 44631 | #: view:shipment:0 |
359 | 44633 | #: code:addons/msf_outgoing/msf_outgoing.py:5347 | 44632 | #: code:addons/msf_outgoing/msf_outgoing.py:5347 |
360 | 44634 | #, python-format | 44633 | #, python-format |
363 | 44635 | msgid "Change description" | 44634 | msgid "Change details" |
364 | 44636 | msgstr "Changer la description" | 44635 | msgstr "Changer les détails" |
365 | 44637 | 44636 | ||
366 | 44638 | #. module: account | 44637 | #. module: account |
367 | 44639 | #: view:report.account.sales:0 | 44638 | #: view:report.account.sales:0 |
368 | @@ -70067,8 +70066,8 @@ | |||
369 | 70067 | 70066 | ||
370 | 70068 | #. module: msf_outgoing | 70067 | #. module: msf_outgoing |
371 | 70069 | #: view:stock.picking:0 | 70068 | #: view:stock.picking:0 |
374 | 70070 | msgid "Change description shipment line" | 70069 | msgid "Change details shipment line" |
375 | 70071 | msgstr "Changer la description de la ligne d'expédition" | 70070 | msgstr "Changer les détails de la ligne d'expédition" |
376 | 70072 | 70071 | ||
377 | 70073 | #. module: msf_tools | 70072 | #. module: msf_tools |
378 | 70074 | #: code:addons/msf_tools/automated_import.py:163 | 70073 | #: code:addons/msf_tools/automated_import.py:163 |
379 | @@ -90631,7 +90630,7 @@ | |||
380 | 90631 | msgid "%sDestination %s is not active at this date: %s" | 90630 | msgid "%sDestination %s is not active at this date: %s" |
381 | 90632 | msgstr "%sLa Destination %s n'est pas active à cette date: %s" | 90631 | msgstr "%sLa Destination %s n'est pas active à cette date: %s" |
382 | 90633 | 90632 | ||
384 | 90634 | #. modules: purchase, tender_flow, purchase_allocation_report, sale, procurement, msf_supply_doc_export, msf_doc_import, purchase_compare_rfq, stock, consumption_calculation | 90633 | #. modules: purchase, tender_flow, purchase_allocation_report, sale, procurement, msf_supply_doc_export, msf_doc_import, purchase_compare_rfq, stock, consumption_calculation, msf_outgoing |
385 | 90635 | #: view:wizard.import.in.simulation.screen:0 | 90634 | #: view:wizard.import.in.simulation.screen:0 |
386 | 90636 | #: view:wizard.import.po:0 | 90635 | #: view:wizard.import.po:0 |
387 | 90637 | #: view:wizard.import.po.simulation.screen:0 | 90636 | #: view:wizard.import.po.simulation.screen:0 |
388 | @@ -90649,9 +90648,19 @@ | |||
389 | 90649 | #: report:addons/tender_flow/report/tender_rfq_comparison_xls.mako:549 | 90648 | #: report:addons/tender_flow/report/tender_rfq_comparison_xls.mako:549 |
390 | 90650 | #: field:tender,details:0 | 90649 | #: field:tender,details:0 |
391 | 90651 | #: field:real.average.consumption,details:0 | 90650 | #: field:real.average.consumption,details:0 |
392 | 90651 | #: field:stock.picking,details:0 | ||
393 | 90652 | #: report:freight_manifest:0 | ||
394 | 90653 | #: field:pack.family.memory,description_ppl:0 | ||
395 | 90654 | #: field:stock.picking,description_ppl:0 | ||
396 | 90652 | msgid "Details" | 90655 | msgid "Details" |
397 | 90653 | msgstr "Détails" | 90656 | msgstr "Détails" |
398 | 90654 | 90657 | ||
399 | 90658 | #. module: msf_outgoing | ||
400 | 90659 | #: report:empty.picking.ticket:0 | ||
401 | 90660 | #: report:packing.list:0 | ||
402 | 90661 | msgid "Details:" | ||
403 | 90662 | msgstr "Détails:" | ||
404 | 90663 | |||
405 | 90655 | #. module: account_hq_entries | 90664 | #. module: account_hq_entries |
406 | 90656 | #: model:ir.model,name:account_hq_entries.model_hq_reallocation | 90665 | #: model:ir.model,name:account_hq_entries.model_hq_reallocation |
407 | 90657 | msgid "HQ reallocation wizard" | 90666 | msgid "HQ reallocation wizard" |
408 | @@ -92332,8 +92341,13 @@ | |||
409 | 92332 | msgid "You have to enter the quantities you want to process before processing the move." | 92341 | msgid "You have to enter the quantities you want to process before processing the move." |
410 | 92333 | msgstr "Vous devez saisir les quantités avant de traiter le mouvement" | 92342 | msgstr "Vous devez saisir les quantités avant de traiter le mouvement" |
411 | 92334 | 92343 | ||
413 | 92335 | #. module: sale | 92344 | #. module: msf_outgoing, sale, stock_override, procurement_request |
414 | 92336 | #: report:msf.report_reception_in:0 | 92345 | #: report:msf.report_reception_in:0 |
415 | 92346 | #: report:picking.ticket:0 | ||
416 | 92347 | #: report:procurement.request.report:0 | ||
417 | 92348 | #: report:msf.sale.order:0 | ||
418 | 92349 | #: report:delivery.order:0 | ||
419 | 92350 | #: report:internal.move:0 | ||
420 | 92337 | msgid "Details :" | 92351 | msgid "Details :" |
421 | 92338 | msgstr "Détails :" | 92352 | msgstr "Détails :" |
422 | 92339 | 92353 | ||
423 | @@ -121450,3 +121464,21 @@ | |||
424 | 121450 | msgid "In-Pipe Quantity included" | 121464 | msgid "In-Pipe Quantity included" |
425 | 121451 | msgstr "Quantité en attente incluse" | 121465 | msgstr "Quantité en attente incluse" |
426 | 121452 | 121466 | ||
427 | 121467 | #. modules: msf_outgoing, stock | ||
428 | 121468 | #: field:pack.family.memory,parcel_comment:0 | ||
429 | 121469 | #: report:packing.list:0 | ||
430 | 121470 | #: field:stock.move,parcel_comment:0 | ||
431 | 121471 | msgid "Parcel Comment" | ||
432 | 121472 | msgstr "Commentaire de Colis" | ||
433 | 121473 | |||
434 | 121474 | #. module: msf_outgoing | ||
435 | 121475 | #: code:addons/msf_outgoing/msf_outgoing.py:4853 | ||
436 | 121476 | #, python-format | ||
437 | 121477 | msgid "The Total Weight[kg] must be a number" | ||
438 | 121478 | msgstr "Le Poids Total[kg] doit être un nombre" | ||
439 | 121479 | |||
440 | 121480 | #. module: msf_outgoing | ||
441 | 121481 | #: code:addons/msf_outgoing/msf_outgoing.py:4860 | ||
442 | 121482 | #, python-format | ||
443 | 121483 | msgid "The Total Volume[dm³] must be a number" | ||
444 | 121484 | msgstr "Le Volume Total[dm³] doit être un nombre" | ||
445 | 121453 | 121485 | ||
446 | === modified file 'bin/addons/procurement_request/procurement_request_view.xml' | |||
447 | --- bin/addons/procurement_request/procurement_request_view.xml 2023-07-24 13:26:27 +0000 | |||
448 | +++ bin/addons/procurement_request/procurement_request_view.xml 2023-10-23 07:51:06 +0000 | |||
449 | @@ -52,6 +52,7 @@ | |||
450 | 52 | <button colspan="1" name="update_date" string="Apply to lines" type="object" context="{'field_name': 'stock_take', 'type': 'sale.order'}" icon="gtk-indent" | 52 | <button colspan="1" name="update_date" string="Apply to lines" type="object" context="{'field_name': 'stock_take', 'type': 'sale.order'}" icon="gtk-indent" |
451 | 53 | attrs="{'invisible': [('state', 'not in', ['draft', 'draft_p', 'validated'])]}" /> | 53 | attrs="{'invisible': [('state', 'not in', ['draft', 'draft_p', 'validated'])]}" /> |
452 | 54 | </group> | 54 | </group> |
453 | 55 | <field name="details" attrs="{'readonly': [('state', 'not in', ['draft', 'draft_p', 'validated'])]}"/> | ||
454 | 55 | <field name="fo_to_resource" invisible="1" /> | 56 | <field name="fo_to_resource" invisible="1" /> |
455 | 56 | <field name="parent_order_name" attrs="{'invisible': [('fo_to_resource', '=', False)]}" /> | 57 | <field name="parent_order_name" attrs="{'invisible': [('fo_to_resource', '=', False)]}" /> |
456 | 57 | </group> | 58 | </group> |
457 | @@ -175,6 +176,7 @@ | |||
458 | 175 | <field name="origin" /> | 176 | <field name="origin" /> |
459 | 176 | <field name="requestor" /> | 177 | <field name="requestor" /> |
460 | 177 | <field name="location_requestor_id" /> | 178 | <field name="location_requestor_id" /> |
461 | 179 | <field name="details" truncate="15"/> | ||
462 | 178 | <field name="ir_total_amount" string="Indicative Total Value"/> | 180 | <field name="ir_total_amount" string="Indicative Total Value"/> |
463 | 179 | <field name="functional_currency_id" /> | 181 | <field name="functional_currency_id" /> |
464 | 180 | <field name="line_count"/> | 182 | <field name="line_count"/> |
465 | @@ -202,6 +204,7 @@ | |||
466 | 202 | <field name="origin" /> | 204 | <field name="origin" /> |
467 | 203 | <field name="requestor" /> | 205 | <field name="requestor" /> |
468 | 204 | <field name="location_requestor_id" /> | 206 | <field name="location_requestor_id" /> |
469 | 207 | <field name="details" /> | ||
470 | 205 | <field name="product_id" /> | 208 | <field name="product_id" /> |
471 | 206 | <newline /> | 209 | <newline /> |
472 | 207 | <group string="Group By..."> | 210 | <group string="Group By..."> |
473 | 208 | 211 | ||
474 | === modified file 'bin/addons/procurement_request/report/procurement_request_report.rml' | |||
475 | --- bin/addons/procurement_request/report/procurement_request_report.rml 2023-08-08 09:24:25 +0000 | |||
476 | +++ bin/addons/procurement_request/report/procurement_request_report.rml 2023-10-23 07:51:06 +0000 | |||
477 | @@ -138,19 +138,25 @@ | |||
478 | 138 | <para style="Header">[[ req.origin ]]</para> | 138 | <para style="Header">[[ req.origin ]]</para> |
479 | 139 | </td> | 139 | </td> |
480 | 140 | <td> | 140 | <td> |
481 | 141 | <para style="HeaderRight">Details :</para> | ||
482 | 142 | </td> | ||
483 | 143 | <td> | ||
484 | 144 | <para style="Header">[[ req.details ]]</para> | ||
485 | 145 | </td> | ||
486 | 146 | <td> | ||
487 | 141 | <para style="HeaderRight">Functional Currency :</para> | 147 | <para style="HeaderRight">Functional Currency :</para> |
488 | 142 | </td> | 148 | </td> |
489 | 143 | <td> | 149 | <td> |
490 | 144 | <para style="Header">[[ req.functional_currency_id and get_name('res.currency', req.functional_currency_id.id) or '' ]]</para> | 150 | <para style="Header">[[ req.functional_currency_id and get_name('res.currency', req.functional_currency_id.id) or '' ]]</para> |
491 | 145 | </td> | 151 | </td> |
492 | 152 | </tr> | ||
493 | 153 | <tr> | ||
494 | 146 | <td> | 154 | <td> |
495 | 147 | <para style="HeaderRight">Warehouse :</para> | 155 | <para style="HeaderRight">Warehouse :</para> |
496 | 148 | </td> | 156 | </td> |
497 | 149 | <td> | 157 | <td> |
498 | 150 | <para style="Header">[[ req.warehouse_id and get_name('stock.warehouse', req.warehouse_id.id) or '' ]]</para> | 158 | <para style="Header">[[ req.warehouse_id and get_name('stock.warehouse', req.warehouse_id.id) or '' ]]</para> |
499 | 151 | </td> | 159 | </td> |
500 | 152 | </tr> | ||
501 | 153 | <tr> | ||
502 | 154 | <td> | 160 | <td> |
503 | 155 | <para style="HeaderRight">Order category :</para> | 161 | <para style="HeaderRight">Order category :</para> |
504 | 156 | </td> | 162 | </td> |
505 | @@ -163,12 +169,6 @@ | |||
506 | 163 | <td> | 169 | <td> |
507 | 164 | <para style="Header"></para> | 170 | <para style="Header"></para> |
508 | 165 | </td> | 171 | </td> |
509 | 166 | <td> | ||
510 | 167 | <para style="HeaderRight"></para> | ||
511 | 168 | </td> | ||
512 | 169 | <td> | ||
513 | 170 | <para style="Header"></para> | ||
514 | 171 | </td> | ||
515 | 172 | </tr> | 172 | </tr> |
516 | 173 | </blockTable> | 173 | </blockTable> |
517 | 174 | 174 | ||
518 | 175 | 175 | ||
519 | === modified file 'bin/addons/reason_types_moves/reason_type_view.xml' | |||
520 | --- bin/addons/reason_types_moves/reason_type_view.xml 2022-06-13 15:38:44 +0000 | |||
521 | +++ bin/addons/reason_types_moves/reason_type_view.xml 2023-10-23 07:51:06 +0000 | |||
522 | @@ -118,9 +118,6 @@ | |||
523 | 118 | <field name="inherit_id" ref="stock.vpicktree" /> | 118 | <field name="inherit_id" ref="stock.vpicktree" /> |
524 | 119 | <field name="arch" type="xml"> | 119 | <field name="arch" type="xml"> |
525 | 120 | <data> | 120 | <data> |
526 | 121 | <xpath expr="/tree/field[@name='origin']" position="after"> | ||
527 | 122 | <field name="reason_type_id" /> | ||
528 | 123 | </xpath> | ||
529 | 124 | <xpath expr="/tree/field[@name='stock_journal_id']" position="replace" /> | 121 | <xpath expr="/tree/field[@name='stock_journal_id']" position="replace" /> |
530 | 125 | <xpath expr="/tree/field[@name='invoice_state']" position="replace" /> | 122 | <xpath expr="/tree/field[@name='invoice_state']" position="replace" /> |
531 | 126 | </data> | 123 | </data> |
532 | @@ -139,9 +136,6 @@ | |||
533 | 139 | <xpath expr="/tree//field[@name='origin']" position="before"> | 136 | <xpath expr="/tree//field[@name='origin']" position="before"> |
534 | 140 | <field name="backorder_id" /> | 137 | <field name="backorder_id" /> |
535 | 141 | </xpath> | 138 | </xpath> |
536 | 142 | <xpath expr="/tree/field[@name='origin']" position="after"> | ||
537 | 143 | <field name="reason_type_id" /> | ||
538 | 144 | </xpath> | ||
539 | 145 | <xpath expr="/tree//field[@name='invoice_state']" position="replace" /> | 139 | <xpath expr="/tree//field[@name='invoice_state']" position="replace" /> |
540 | 146 | <xpath expr="/tree//field[@name='stock_journal_id']" position="replace" /> | 140 | <xpath expr="/tree//field[@name='stock_journal_id']" position="replace" /> |
541 | 147 | </data> | 141 | </data> |
542 | @@ -239,16 +233,6 @@ | |||
543 | 239 | <field name="inherit_id" ref="stock.view_picking_internal_search" /> | 233 | <field name="inherit_id" ref="stock.view_picking_internal_search" /> |
544 | 240 | <field name="arch" type="xml"> | 234 | <field name="arch" type="xml"> |
545 | 241 | <data> | 235 | <data> |
546 | 242 | <xpath expr="/search/group/field[@name='origin']" position="after"> | ||
547 | 243 | <field name="reason_type_id" widget="selection" /> | ||
548 | 244 | </xpath> | ||
549 | 245 | <xpath expr="/search//field[@name='stock_journal_id']" position="replace"> | ||
550 | 246 | <field name="date" /> | ||
551 | 247 | </xpath> | ||
552 | 248 | <xpath expr="/search//field[@name='company_id']" position="replace"> | ||
553 | 249 | <field name="min_date" string="Expected Move Date" attrs="{'readonly': [('state', 'in', ['done', 'cancel', 'import'])]}" | ||
554 | 250 | on_change="change_min_date()" required="1"/> | ||
555 | 251 | </xpath> | ||
556 | 252 | <xpath expr="/search/group[@string='Group By...']/filter[@string='Journal']" position="replace"> | 236 | <xpath expr="/search/group[@string='Group By...']/filter[@string='Journal']" position="replace"> |
557 | 253 | <filter string="Reason type" icon="terp-purchase" domain="[]" context="{'group_by': 'reason_type_id'}" /> | 237 | <filter string="Reason type" icon="terp-purchase" domain="[]" context="{'group_by': 'reason_type_id'}" /> |
558 | 254 | </xpath> | 238 | </xpath> |
559 | 255 | 239 | ||
560 | === modified file 'bin/addons/reason_types_moves/stock_view.xml' | |||
561 | --- bin/addons/reason_types_moves/stock_view.xml 2022-06-13 15:38:44 +0000 | |||
562 | +++ bin/addons/reason_types_moves/stock_view.xml 2023-10-23 07:51:06 +0000 | |||
563 | @@ -152,6 +152,7 @@ | |||
564 | 152 | <field name="origin"/> | 152 | <field name="origin"/> |
565 | 153 | <field name="customers" /> | 153 | <field name="customers" /> |
566 | 154 | <field name="order_category" /> | 154 | <field name="order_category" /> |
567 | 155 | <field name="details" /> | ||
568 | 155 | <field name="reason_type_id" widget="selection" domain="[('incoming_ok', '=', True)]" /> | 156 | <field name="reason_type_id" widget="selection" domain="[('incoming_ok', '=', True)]" /> |
569 | 156 | <newline /> | 157 | <newline /> |
570 | 157 | <field name="date" string="Creation date" /> | 158 | <field name="date" string="Creation date" /> |
571 | @@ -190,6 +191,7 @@ | |||
572 | 190 | <field name="customer_ref" /> | 191 | <field name="customer_ref" /> |
573 | 191 | <field name="customers" /> | 192 | <field name="customers" /> |
574 | 192 | <field name="order_category" /> | 193 | <field name="order_category" /> |
575 | 194 | <field name="details" truncate="15" /> | ||
576 | 193 | <field name="shipment_ref" /> | 195 | <field name="shipment_ref" /> |
577 | 194 | <field name="reason_type_id" domain="[('incoming_ok', '=', True)]" /> | 196 | <field name="reason_type_id" domain="[('incoming_ok', '=', True)]" /> |
578 | 195 | <field name="date" string="Creation Date" /> | 197 | <field name="date" string="Creation Date" /> |
579 | 196 | 198 | ||
580 | === modified file 'bin/addons/service_purchasing/service_purchasing_view.xml' | |||
581 | --- bin/addons/service_purchasing/service_purchasing_view.xml 2023-02-08 13:27:53 +0000 | |||
582 | +++ bin/addons/service_purchasing/service_purchasing_view.xml 2023-10-23 07:51:06 +0000 | |||
583 | @@ -17,21 +17,6 @@ | |||
584 | 17 | </record> | 17 | </record> |
585 | 18 | 18 | ||
586 | 19 | <!-- OUT --> | 19 | <!-- OUT --> |
587 | 20 | <record id="view_picking_out_tree" model="ir.ui.view"> | ||
588 | 21 | <field name="name">stock.picking.out.tree</field> | ||
589 | 22 | <field name="model">stock.picking</field> | ||
590 | 23 | <field name="type">tree</field> | ||
591 | 24 | <field name="priority">25</field> | ||
592 | 25 | <field name="inherit_id" ref="stock.view_picking_out_tree" /> | ||
593 | 26 | <field name="arch" type="xml"> | ||
594 | 27 | <data> | ||
595 | 28 | <xpath expr="//field[@name='origin']" position="after"> | ||
596 | 29 | <field name="order_category" /> | ||
597 | 30 | </xpath> | ||
598 | 31 | </data> | ||
599 | 32 | </field> | ||
600 | 33 | </record> | ||
601 | 34 | |||
602 | 35 | <record id="view_picking_out_search" model="ir.ui.view"> | 20 | <record id="view_picking_out_search" model="ir.ui.view"> |
603 | 36 | <field name="name">stock.picking.out.search</field> | 21 | <field name="name">stock.picking.out.search</field> |
604 | 37 | <field name="model">stock.picking</field> | 22 | <field name="model">stock.picking</field> |
605 | @@ -40,9 +25,6 @@ | |||
606 | 40 | <field name="inherit_id" ref="stock.view_picking_out_search" /> | 25 | <field name="inherit_id" ref="stock.view_picking_out_search" /> |
607 | 41 | <field name="arch" type="xml"> | 26 | <field name="arch" type="xml"> |
608 | 42 | <data> | 27 | <data> |
609 | 43 | <field name="origin" position="after"> | ||
610 | 44 | <field name="order_category" /> | ||
611 | 45 | </field> | ||
612 | 46 | <filter string="Partner" position="after"> | 28 | <filter string="Partner" position="after"> |
613 | 47 | <separator orientation="vertical" /> | 29 | <separator orientation="vertical" /> |
614 | 48 | <filter string="Order Category" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'order_category'}" /> | 30 | <filter string="Order Category" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'order_category'}" /> |
615 | @@ -59,21 +41,6 @@ | |||
616 | 59 | 41 | ||
617 | 60 | <!-- id: view_picking_form, name: stock.picking.form, inherit_id:stock.view_picking_form was here --> | 42 | <!-- id: view_picking_form, name: stock.picking.form, inherit_id:stock.view_picking_form was here --> |
618 | 61 | 43 | ||
619 | 62 | <record id="view_picking_internal_search" model="ir.ui.view"> | ||
620 | 63 | <field name="name">stock.picking.internal.search</field> | ||
621 | 64 | <field name="model">stock.picking</field> | ||
622 | 65 | <field name="type">search</field> | ||
623 | 66 | <field name="priority">20</field> | ||
624 | 67 | <field name="inherit_id" ref="stock.view_picking_internal_search" /> | ||
625 | 68 | <field name="arch" type="xml"> | ||
626 | 69 | <data> | ||
627 | 70 | <field name="origin" position="after"> | ||
628 | 71 | <field name="order_category" /> | ||
629 | 72 | </field> | ||
630 | 73 | </data> | ||
631 | 74 | </field> | ||
632 | 75 | </record> | ||
633 | 76 | |||
634 | 77 | <record id="view_stock_picking_filter" model="ir.ui.view"> | 44 | <record id="view_stock_picking_filter" model="ir.ui.view"> |
635 | 78 | <field name="name">stock.picking.list.select</field> | 45 | <field name="name">stock.picking.list.select</field> |
636 | 79 | <field name="model">stock.picking</field> | 46 | <field name="model">stock.picking</field> |
637 | 80 | 47 | ||
638 | === modified file 'bin/addons/stock/stock.py' | |||
639 | --- bin/addons/stock/stock.py 2023-08-08 09:24:25 +0000 | |||
640 | +++ bin/addons/stock/stock.py 2023-10-23 07:51:06 +0000 | |||
641 | @@ -1116,6 +1116,7 @@ | |||
642 | 1116 | 'total_qty_process_str': fields.function(_get_total_qty_str, method=1, string='Qties to Process', type='char', multi='total_qty'), | 1116 | 'total_qty_process_str': fields.function(_get_total_qty_str, method=1, string='Qties to Process', type='char', multi='total_qty'), |
643 | 1117 | 'product_id': fields.function(_get_fake, method=True, type='many2one', relation='product.product', string='Product', help='Product to find in the lines', store=False, readonly=True), | 1117 | 'product_id': fields.function(_get_fake, method=True, type='many2one', relation='product.product', string='Product', help='Product to find in the lines', store=False, readonly=True), |
644 | 1118 | 'alert_msl_mml': fields.function(_get_alert_msl_mml, method=True, type='char', string="Contains non-conform MML/MSL"), | 1118 | 'alert_msl_mml': fields.function(_get_alert_msl_mml, method=True, type='char', string="Contains non-conform MML/MSL"), |
645 | 1119 | 'details': fields.char(size=86, string='Details', readonly=True), | ||
646 | 1119 | } | 1120 | } |
647 | 1120 | 1121 | ||
648 | 1121 | _defaults = { | 1122 | _defaults = { |
649 | 1122 | 1123 | ||
650 | === modified file 'bin/addons/stock/stock_move.py' | |||
651 | --- bin/addons/stock/stock_move.py 2023-08-02 12:18:23 +0000 | |||
652 | +++ bin/addons/stock/stock_move.py 2023-10-23 07:51:06 +0000 | |||
653 | @@ -583,6 +583,7 @@ | |||
654 | 583 | # msf_outgoing | 583 | # msf_outgoing |
655 | 584 | 'from_pack': fields.integer(string='From p.'), | 584 | 'from_pack': fields.integer(string='From p.'), |
656 | 585 | 'to_pack': fields.integer(string='To p.'), | 585 | 'to_pack': fields.integer(string='To p.'), |
657 | 586 | 'parcel_comment': fields.char(string='Parcel Comment', size=256), | ||
658 | 586 | 'ppl_returned_ok': fields.boolean(string='Has been returned ?', readonly=True, internal=True), | 587 | 'ppl_returned_ok': fields.boolean(string='Has been returned ?', readonly=True, internal=True), |
659 | 587 | 'integrity_error': fields.selection(INTEGRITY_STATUS_SELECTION, 'Error', readonly=True), | 588 | 'integrity_error': fields.selection(INTEGRITY_STATUS_SELECTION, 'Error', readonly=True), |
660 | 588 | 'pack_type': fields.many2one('pack.type', string='Pack Type'), | 589 | 'pack_type': fields.many2one('pack.type', string='Pack Type'), |
661 | 589 | 590 | ||
662 | === modified file 'bin/addons/stock/stock_view.xml' | |||
663 | --- bin/addons/stock/stock_view.xml 2023-01-31 15:24:11 +0000 | |||
664 | +++ bin/addons/stock/stock_view.xml 2023-10-23 07:51:06 +0000 | |||
665 | @@ -738,6 +738,8 @@ | |||
666 | 738 | <field name="name"/> | 738 | <field name="name"/> |
667 | 739 | <field name="backorder_id" groups="base.group_extended"/> | 739 | <field name="backorder_id" groups="base.group_extended"/> |
668 | 740 | <field name="origin"/> | 740 | <field name="origin"/> |
669 | 741 | <field name="details" truncate="15"/> | ||
670 | 742 | <field name="reason_type_id" /> | ||
671 | 741 | <field name="date"/> | 743 | <field name="date"/> |
672 | 742 | <field name="min_date"/> | 744 | <field name="min_date"/> |
673 | 743 | <field name="invoice_state"/> | 745 | <field name="invoice_state"/> |
674 | @@ -807,6 +809,9 @@ | |||
675 | 807 | <field name="partner_id"/> | 809 | <field name="partner_id"/> |
676 | 808 | <field name="destinations_list"/> | 810 | <field name="destinations_list"/> |
677 | 809 | <field name="origin"/> | 811 | <field name="origin"/> |
678 | 812 | <field name="details" truncate="15"/> | ||
679 | 813 | <field name="order_category" /> | ||
680 | 814 | <field name="reason_type_id" /> | ||
681 | 810 | <field name="date"/> | 815 | <field name="date"/> |
682 | 811 | <field name="min_date"/> | 816 | <field name="min_date"/> |
683 | 812 | <field name="backorder_id" groups="base.group_extended"/> | 817 | <field name="backorder_id" groups="base.group_extended"/> |
684 | @@ -847,6 +852,8 @@ | |||
685 | 847 | <field name="name"/> | 852 | <field name="name"/> |
686 | 848 | <field name="partner_id" /> | 853 | <field name="partner_id" /> |
687 | 849 | <field name="origin"/> | 854 | <field name="origin"/> |
688 | 855 | <field name="details"/> | ||
689 | 856 | <field name="order_category" /> | ||
690 | 850 | <field name="stock_journal_id" groups="base.group_extended" widget="selection"/> | 857 | <field name="stock_journal_id" groups="base.group_extended" widget="selection"/> |
691 | 851 | <field name="company_id" widget="selection" groups="base.group_multi_company"/> | 858 | <field name="company_id" widget="selection" groups="base.group_multi_company"/> |
692 | 852 | </group> | 859 | </group> |
693 | @@ -1001,8 +1008,12 @@ | |||
694 | 1001 | <separator orientation="vertical"/> | 1008 | <separator orientation="vertical"/> |
695 | 1002 | <field name="name"/> | 1009 | <field name="name"/> |
696 | 1003 | <field name="origin"/> | 1010 | <field name="origin"/> |
699 | 1004 | <field name="stock_journal_id" groups="base.group_extended" widget="selection"/> | 1011 | <field name="details"/> |
700 | 1005 | <field name="company_id" widget="selection"/> | 1012 | <field name="reason_type_id" widget="selection" /> |
701 | 1013 | <field name="order_category" /> | ||
702 | 1014 | <field name="date" /> | ||
703 | 1015 | <newline/> | ||
704 | 1016 | <field name="min_date" string="Expected Move Date" attrs="{'readonly': [('state', 'in', ['done', 'cancel', 'import'])]}" on_change="change_min_date()" required="1"/> | ||
705 | 1006 | <field name="product_id"/> | 1017 | <field name="product_id"/> |
706 | 1007 | </group> | 1018 | </group> |
707 | 1008 | <newline/> | 1019 | <newline/> |
708 | 1009 | 1020 | ||
709 | === modified file 'bin/addons/stock_override/report/delivery_order.rml' | |||
710 | --- bin/addons/stock_override/report/delivery_order.rml 2023-08-10 11:18:31 +0000 | |||
711 | +++ bin/addons/stock_override/report/delivery_order.rml 2023-10-23 07:51:06 +0000 | |||
712 | @@ -186,6 +186,26 @@ | |||
713 | 186 | <para style="Header">[[ picking.warehouse_id and picking.warehouse_id.name or '' ]]</para> | 186 | <para style="Header">[[ picking.warehouse_id and picking.warehouse_id.name or '' ]]</para> |
714 | 187 | </td> | 187 | </td> |
715 | 188 | </tr> | 188 | </tr> |
716 | 189 | <tr> | ||
717 | 190 | <td> | ||
718 | 191 | <para style="HeaderRight">Details :</para> | ||
719 | 192 | </td> | ||
720 | 193 | <td> | ||
721 | 194 | <para style="Header">[[ picking.details ]]</para> | ||
722 | 195 | </td> | ||
723 | 196 | <td> | ||
724 | 197 | <para style="HeaderRight"></para> | ||
725 | 198 | </td> | ||
726 | 199 | <td> | ||
727 | 200 | <para style="Header"></para> | ||
728 | 201 | </td> | ||
729 | 202 | <td> | ||
730 | 203 | <para style="HeaderRight"></para> | ||
731 | 204 | </td> | ||
732 | 205 | <td> | ||
733 | 206 | <para style="Header"></para> | ||
734 | 207 | </td> | ||
735 | 208 | </tr> | ||
736 | 189 | </blockTable> | 209 | </blockTable> |
737 | 190 | 210 | ||
738 | 191 | <para style="Header"> | 211 | <para style="Header"> |
739 | 192 | 212 | ||
740 | === modified file 'bin/addons/stock_override/report/internal_move.rml' | |||
741 | --- bin/addons/stock_override/report/internal_move.rml 2023-07-27 14:18:08 +0000 | |||
742 | +++ bin/addons/stock_override/report/internal_move.rml 2023-10-23 07:51:06 +0000 | |||
743 | @@ -152,10 +152,10 @@ | |||
744 | 152 | <para style="Header">[[ get_selec(picking, 'state') ]]</para> | 152 | <para style="Header">[[ get_selec(picking, 'state') ]]</para> |
745 | 153 | </td> | 153 | </td> |
746 | 154 | <td> | 154 | <td> |
748 | 155 | <para style="HeaderRight"> </para> | 155 | <para style="HeaderRight">Details :</para> |
749 | 156 | </td> | 156 | </td> |
750 | 157 | <td> | 157 | <td> |
752 | 158 | <para style="Header"> </para> | 158 | <para style="Header">[[ picking.details ]]</para> |
753 | 159 | </td> | 159 | </td> |
754 | 160 | <td> | 160 | <td> |
755 | 161 | <para style="HeaderRight"> </para> | 161 | <para style="HeaderRight"> </para> |
756 | 162 | 162 | ||
757 | === modified file 'bin/addons/stock_override/stock.py' | |||
758 | --- bin/addons/stock_override/stock.py 2023-07-24 15:36:24 +0000 | |||
759 | +++ bin/addons/stock_override/stock.py 2023-10-23 07:51:06 +0000 | |||
760 | @@ -364,14 +364,20 @@ | |||
761 | 364 | if context.get('not_workflow', False): | 364 | if context.get('not_workflow', False): |
762 | 365 | vals['from_wkf'] = False | 365 | vals['from_wkf'] = False |
763 | 366 | 366 | ||
772 | 367 | if vals.get('from_wkf') and vals.get('purchase_id'): | 367 | if vals.get('from_wkf'): |
773 | 368 | po = self.pool.get('purchase.order').browse(cr, uid, vals.get('purchase_id'), fields_to_fetch=['dest_partner_names', 'short_customer_ref', 'linked_sol_id', 'order_line'], context=context) | 368 | if vals.get('purchase_id'): |
774 | 369 | vals['customers'] = po.dest_partner_names | 369 | ftf = ['dest_partner_names', 'short_customer_ref', 'linked_sol_id', 'order_line', 'details'] |
775 | 370 | vals['customer_ref'] = po.short_customer_ref | 370 | po = self.pool.get('purchase.order').browse(cr, uid, vals['purchase_id'], fields_to_fetch=ftf, context=context) |
776 | 371 | for line in po.order_line: | 371 | vals['customers'] = po.dest_partner_names |
777 | 372 | if line.linked_sol_id: | 372 | vals['customer_ref'] = po.short_customer_ref |
778 | 373 | vals['from_wkf_sourcing'] = True | 373 | if 'details' not in vals: |
779 | 374 | break | 374 | vals['details'] = po.details |
780 | 375 | for line in po.order_line: | ||
781 | 376 | if line.linked_sol_id: | ||
782 | 377 | vals['from_wkf_sourcing'] = True | ||
783 | 378 | break | ||
784 | 379 | elif vals.get('sale_id') and 'details' not in vals: | ||
785 | 380 | vals['details'] = self.pool.get('sale.order').read(cr, uid, vals['sale_id'], ['details'], context=context)['details'] | ||
786 | 375 | 381 | ||
787 | 376 | if not vals.get('partner_id2') and vals.get('address_id'): | 382 | if not vals.get('partner_id2') and vals.get('address_id'): |
788 | 377 | addr = self.pool.get('res.partner.address').browse(cr, uid, vals.get('address_id'), context=context) | 383 | addr = self.pool.get('res.partner.address').browse(cr, uid, vals.get('address_id'), context=context) |
789 | @@ -1786,6 +1792,7 @@ | |||
790 | 1786 | 'reason_type_id': reason_type_id, | 1792 | 'reason_type_id': reason_type_id, |
791 | 1787 | 'previous_chained_pick_id': picking.id, | 1793 | 'previous_chained_pick_id': picking.id, |
792 | 1788 | 'from_wkf': picking.from_wkf, | 1794 | 'from_wkf': picking.from_wkf, |
793 | 1795 | 'details': picking.details, | ||
794 | 1789 | } | 1796 | } |
795 | 1790 | return picking_obj.create(cr, uid, pick_values, context=context) | 1797 | return picking_obj.create(cr, uid, pick_values, context=context) |
796 | 1791 | 1798 | ||
797 | 1792 | 1799 | ||
798 | === modified file 'bin/addons/stock_override/stock_view.xml' | |||
799 | --- bin/addons/stock_override/stock_view.xml 2023-08-08 09:24:25 +0000 | |||
800 | +++ bin/addons/stock_override/stock_view.xml 2023-10-23 07:51:06 +0000 | |||
801 | @@ -198,8 +198,9 @@ | |||
802 | 198 | <group colspan="4" col="6"> | 198 | <group colspan="4" col="6"> |
803 | 199 | <group colspan="4" col="4"> | 199 | <group colspan="4" col="4"> |
804 | 200 | <field name="name" readonly="1"/> | 200 | <field name="name" readonly="1"/> |
806 | 201 | <field name="origin" attrs="{'readonly': [('state', 'not in', ['draft', 'auto', 'assigned', 'confirmed'])]}"/> | 201 | <field name="origin" attrs="{'readonly': ['|', ('state', 'not in', ['auto', 'assigned', 'confirmed']), '&', '&', ('incoming_id', '=', False), ('sale_id', '=', False), ('from_pick_cancel_id', '=', False)]}"/> |
807 | 202 | <field name="backorder_id" readonly="1"/> | 202 | <field name="backorder_id" readonly="1"/> |
808 | 203 | <field name="details" attrs="{'readonly': [('state', '!=', 'draft')]}"/> | ||
809 | 203 | <field name="reason_type_id" widget="selection" | 204 | <field name="reason_type_id" widget="selection" |
810 | 204 | domain="[('internal_ok', '=', True)]" | 205 | domain="[('internal_ok', '=', True)]" |
811 | 205 | attrs="{'readonly': [('state', 'not in', ('draft', 'confirmed', 'assigned'))]}"/> | 206 | attrs="{'readonly': [('state', 'not in', ('draft', 'confirmed', 'assigned'))]}"/> |
812 | @@ -391,18 +392,6 @@ | |||
813 | 391 | </field> | 392 | </field> |
814 | 392 | </record> | 393 | </record> |
815 | 393 | 394 | ||
816 | 394 | <record id="sale.stock_picking_inherit_sale" model="ir.ui.view"> | ||
817 | 395 | <field name="name">stock.picking.form</field> | ||
818 | 396 | <field name="model">stock.picking</field> | ||
819 | 397 | <field name="type">form</field> | ||
820 | 398 | <field name="inherit_id" ref="stock.view_picking_form"/> | ||
821 | 399 | <field name="arch" type="xml"> | ||
822 | 400 | <field name="auto_picking" position="after"> | ||
823 | 401 | <field name="sale_id" attrs="{'readonly': [('state', 'not in', ['draft', 'auto', 'assigned', 'confirmed'])]}"/> | ||
824 | 402 | </field> | ||
825 | 403 | </field> | ||
826 | 404 | </record> | ||
827 | 405 | |||
828 | 406 | <record id="stock.view_picking_in_form" model="ir.ui.view"> | 395 | <record id="stock.view_picking_in_form" model="ir.ui.view"> |
829 | 407 | <field name="name">view.picking.in.form</field> | 396 | <field name="name">view.picking.in.form</field> |
830 | 408 | <field name="model">stock.picking</field> | 397 | <field name="model">stock.picking</field> |
831 | @@ -451,7 +440,7 @@ | |||
832 | 451 | <group colspan="4" col="6"> | 440 | <group colspan="4" col="6"> |
833 | 452 | <group colspan="4" col="4"> | 441 | <group colspan="4" col="4"> |
834 | 453 | <field name="name" readonly="1"/> | 442 | <field name="name" readonly="1"/> |
836 | 454 | <field name="origin" attrs="{'readonly': [('state', 'not in', ['draft', 'auto', 'assigned', 'confirmed'])]}"/> | 443 | <field name="origin" attrs="{'readonly': ['|', ('state', 'not in', ['auto', 'assigned', 'confirmed']), ('purchase_id', '=', False)]}"/> |
837 | 455 | <field name="partner_id2" on_change="on_change_partner(partner_id2, address_id)" required="0" attrs="{'readonly': ['|', '|', '|', '|', ('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned']), ('ext_cu', '!=', False), ('purchase_id', '!=', False), ('backorder_id', '!=', False), ('ret_from_unit_rt', '=', True)], 'required': [('ext_cu', '=', False)]}"/> | 444 | <field name="partner_id2" on_change="on_change_partner(partner_id2, address_id)" required="0" attrs="{'readonly': ['|', '|', '|', '|', ('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned']), ('ext_cu', '!=', False), ('purchase_id', '!=', False), ('backorder_id', '!=', False), ('ret_from_unit_rt', '=', True)], 'required': [('ext_cu', '=', False)]}"/> |
838 | 456 | <field name="ext_cu" on_change="on_change_ext_cu(ext_cu)" attrs="{'readonly': ['|', '|', '|', ('partner_id2', '!=', False), ('sale_id', '!=', False), ('purchase_id', '!=', False), ('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])], 'required': ['|', ('purchase_id', '=', False), '&', ('partner_id2', '=', False), ('ret_from_unit_rt', '=', True)]}" domain="[('location_category', '=', 'consumption_unit'), ('usage', 'in', ('customer', 'supplier'))]" /> | 445 | <field name="ext_cu" on_change="on_change_ext_cu(ext_cu)" attrs="{'readonly': ['|', '|', '|', ('partner_id2', '!=', False), ('sale_id', '!=', False), ('purchase_id', '!=', False), ('state', 'not in', ['draft', 'waiting', 'confirmed', 'assigned'])], 'required': ['|', ('purchase_id', '=', False), '&', ('partner_id2', '=', False), ('ret_from_unit_rt', '=', True)]}" domain="[('location_category', '=', 'consumption_unit'), ('usage', 'in', ('customer', 'supplier'))]" /> |
839 | 457 | <field name="address_id" invisible="1" /> | 446 | <field name="address_id" invisible="1" /> |
840 | @@ -471,6 +460,7 @@ | |||
841 | 471 | <field name="min_date_manually" invisible="1" /> | 460 | <field name="min_date_manually" invisible="1" /> |
842 | 472 | <field name="warehouse_id" widget="selection" attrs="{'readonly': [('state', 'not in', ('draft', 'confirmed', 'assigned'))]}"/> | 461 | <field name="warehouse_id" widget="selection" attrs="{'readonly': [('state', 'not in', ('draft', 'confirmed', 'assigned'))]}"/> |
843 | 473 | <field name="shipment_ref" /> | 462 | <field name="shipment_ref" /> |
844 | 463 | <field name="details" attrs="{'readonly': [('state', '!=', 'draft')]}" /> | ||
845 | 474 | <field name="claim_name" readonly="1" attrs="{'invisible': [('claim', '=', False)]}"/> | 464 | <field name="claim_name" readonly="1" attrs="{'invisible': [('claim', '=', False)]}"/> |
846 | 475 | </group> | 465 | </group> |
847 | 476 | </group> | 466 | </group> |
848 | @@ -800,6 +790,7 @@ | |||
849 | 800 | attrs="{'readonly': ['|', ('from_wkf', '=', True), ('state', 'not in', ('draft', 'confirmed', 'assigned'))]}" | 790 | attrs="{'readonly': ['|', ('from_wkf', '=', True), ('state', 'not in', ('draft', 'confirmed', 'assigned'))]}" |
850 | 801 | on_change="on_change_rt_out(partner_id2, reason_type_id)" | 791 | on_change="on_change_rt_out(partner_id2, reason_type_id)" |
851 | 802 | /> | 792 | /> |
852 | 793 | <field name="details" attrs="{'readonly': [('state', '!=', 'draft')]}" /> | ||
853 | 803 | </group> | 794 | </group> |
854 | 804 | <group colspan="2" col="2"> | 795 | <group colspan="2" col="2"> |
855 | 805 | <field name="date" attrs="{'readonly': [('state', 'not in', ['draft', 'auto', 'assigned', 'confirmed'])]}"/> | 796 | <field name="date" attrs="{'readonly': [('state', 'not in', ['draft', 'auto', 'assigned', 'confirmed'])]}"/> |