Merge lp:~unifield-team/unifield-server/us-1125 into lp:unifield-server
- us-1125
- Merge into trunk
Proposed by
Quentin THEURET @Amaris
Status: | Merged |
---|---|
Merged at revision: | 4034 |
Proposed branch: | lp:~unifield-team/unifield-server/us-1125 |
Merge into: | lp:unifield-server |
Diff against target: |
967 lines (+298/-22) 38 files modified
bin/addons/delivery_mechanism/delivery_mechanism.py (+8/-2) bin/addons/msf_outgoing/msf_outgoing.py (+4/-2) bin/addons/msf_outgoing/msf_outgoing_view.xml (+7/-2) bin/addons/msf_outgoing/report/empty_picking_ticket.rml (+100/-1) bin/addons/msf_outgoing/report/packing_list.rml (+1/-1) bin/addons/msf_outgoing/report/packing_list_xls.mako (+1/-1) bin/addons/msf_outgoing/report/picking_ticket.py (+1/-0) bin/addons/msf_outgoing/report/picking_ticket.rml (+1/-1) bin/addons/msf_outgoing/wizard/create_picking_processor.py (+12/-0) bin/addons/msf_outgoing/wizard/create_picking_processor_view.xml (+1/-0) bin/addons/msf_outgoing/wizard/incoming_shipment_processor.py (+22/-0) bin/addons/msf_outgoing/wizard/incoming_shipment_processor_view.xml (+1/-0) bin/addons/msf_outgoing/wizard/internal_move_processor.py (+12/-0) bin/addons/msf_outgoing/wizard/internal_move_processor_view.xml (+1/-0) bin/addons/msf_outgoing/wizard/outgoing_delivery_processor.py (+12/-0) bin/addons/msf_outgoing/wizard/outgoing_delivery_processor_view.xml (+1/-0) bin/addons/msf_outgoing/wizard/picking_processor.py (+14/-1) bin/addons/msf_outgoing/wizard/picking_processor_view.xml (+1/-0) bin/addons/msf_outgoing/wizard/ppl_processor.py (+12/-0) bin/addons/msf_outgoing/wizard/ppl_processor_view.xml (+1/-0) bin/addons/msf_outgoing/wizard/return_ppl_processor.py (+12/-0) bin/addons/msf_outgoing/wizard/return_ppl_processor_view.xml (+1/-0) bin/addons/msf_outgoing/wizard/validate_picking_processor.py (+12/-0) bin/addons/msf_outgoing/wizard/validate_picking_processor_view.xml (+1/-0) bin/addons/msf_printed_documents/report/report_reception.rml (+1/-1) bin/addons/msf_profile/i18n/fr_MF.po (+12/-0) bin/addons/msf_supply_doc_export/report/report_internal_move_xls.mako (+2/-0) bin/addons/msf_sync_data_server/data/sync_server.message_rule.csv (+3/-3) bin/addons/purchase_compare_rfq/wizard/compare_rfq.py (+1/-0) bin/addons/purchase_override/purchase.py (+3/-2) bin/addons/sale_override/sale.py (+1/-0) bin/addons/sourcing/procurement_order.py (+3/-0) bin/addons/stock_override/report/delivery_order.rml (+8/-2) bin/addons/stock_override/report/internal_move.rml (+8/-2) bin/addons/stock_override/stock_view.xml (+5/-0) bin/addons/sync_so/picking.py (+9/-1) bin/addons/sync_so/purchase.py (+1/-0) bin/addons/tender_flow/tender_flow.py (+2/-0) |
To merge this branch: | bzr merge lp:~unifield-team/unifield-server/us-1125 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
UniField Reviewer Team | Pending | ||
Review via email: mp+309869@code.launchpad.net |
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/delivery_mechanism/delivery_mechanism.py' | |||
2 | --- bin/addons/delivery_mechanism/delivery_mechanism.py 2016-08-23 12:54:03 +0000 | |||
3 | +++ bin/addons/delivery_mechanism/delivery_mechanism.py 2016-11-09 08:29:21 +0000 | |||
4 | @@ -783,6 +783,7 @@ | |||
5 | 783 | 'prodlot_id': line.prodlot_id and line.prodlot_id.id or False, | 783 | 'prodlot_id': line.prodlot_id and line.prodlot_id.id or False, |
6 | 784 | 'asset_id': line.asset_id and line.asset_id.id or False, | 784 | 'asset_id': line.asset_id and line.asset_id.id or False, |
7 | 785 | 'change_reason': line.change_reason, | 785 | 'change_reason': line.change_reason, |
8 | 786 | 'comment': line.comment or move.comment, | ||
9 | 786 | # Values from incoming wizard | 787 | # Values from incoming wizard |
10 | 787 | 'direct_incoming': line.wizard_id.direct_incoming, | 788 | 'direct_incoming': line.wizard_id.direct_incoming, |
11 | 788 | # Values for Direct Purchase Order | 789 | # Values for Direct Purchase Order |
12 | @@ -850,7 +851,7 @@ | |||
13 | 850 | 851 | ||
14 | 851 | if wizard.dest_type != 'to_cross_docking': | 852 | if wizard.dest_type != 'to_cross_docking': |
15 | 852 | values['direct_incoming'] = wizard.direct_incoming | 853 | values['direct_incoming'] = wizard.direct_incoming |
17 | 853 | 854 | ||
18 | 854 | return values | 855 | return values |
19 | 855 | 856 | ||
20 | 856 | def update_processing_info(self, cr, uid, picking_id, prog_id=False, values=None, context=None): | 857 | def update_processing_info(self, cr, uid, picking_id, prog_id=False, values=None, context=None): |
21 | @@ -1598,13 +1599,14 @@ | |||
22 | 1598 | # give the purchase order line a link to corresponding procurement | 1599 | # give the purchase order line a link to corresponding procurement |
23 | 1599 | procurement = kwargs['procurement'] | 1600 | procurement = kwargs['procurement'] |
24 | 1600 | line.update({'procurement_id': procurement.id, }) | 1601 | line.update({'procurement_id': procurement.id, }) |
25 | 1602 | |||
26 | 1601 | # for Internal Request (IR) on make_to_order we update PO line data according to the data of the IR (=sale_order) | 1603 | # for Internal Request (IR) on make_to_order we update PO line data according to the data of the IR (=sale_order) |
27 | 1602 | sale_order_line_ids = sale_obj.search(cr, uid, [('procurement_id', '=', procurement.id)], context=context) | 1604 | sale_order_line_ids = sale_obj.search(cr, uid, [('procurement_id', '=', procurement.id)], context=context) |
28 | 1603 | for sol in sale_obj.browse(cr, uid, sale_order_line_ids, context=context): | 1605 | for sol in sale_obj.browse(cr, uid, sale_order_line_ids, context=context): |
29 | 1604 | if (sol.order_id.procurement_request or procurement.supplier.partner_type == 'esc') and not sol.product_id and sol.comment: | 1606 | if (sol.order_id.procurement_request or procurement.supplier.partner_type == 'esc') and not sol.product_id and sol.comment: |
30 | 1605 | line.update({'product_id': False, | 1607 | line.update({'product_id': False, |
31 | 1606 | 'name': 'Description: %s' % sol.comment, | 1608 | 'name': 'Description: %s' % sol.comment, |
33 | 1607 | 'comment': sol.comment, | 1609 | 'comment': procurement.tender_line_id and procurement.tender_line_id.comment or sol.comment, |
34 | 1608 | 'product_qty': sol.product_uom_qty, | 1610 | 'product_qty': sol.product_uom_qty, |
35 | 1609 | 'price_unit': sol.price_unit, | 1611 | 'price_unit': sol.price_unit, |
36 | 1610 | 'date_planned': sol.date_planned, | 1612 | 'date_planned': sol.date_planned, |
37 | @@ -1619,6 +1621,10 @@ | |||
38 | 1619 | 'nomen_sub_3': sol.nomen_sub_3.id or False, | 1621 | 'nomen_sub_3': sol.nomen_sub_3.id or False, |
39 | 1620 | 'nomen_sub_4': sol.nomen_sub_4.id or False, | 1622 | 'nomen_sub_4': sol.nomen_sub_4.id or False, |
40 | 1621 | 'nomen_sub_5': sol.nomen_sub_5.id or False}) | 1623 | 'nomen_sub_5': sol.nomen_sub_5.id or False}) |
41 | 1624 | |||
42 | 1625 | if procurement.tender_line_id and procurement.tender_line_id.purchase_order_line_id and procurement.tender_line_id.purchase_order_line_id.comment: | ||
43 | 1626 | line['comment'] = procurement.tender_line_id.purchase_order_line_id.comment | ||
44 | 1627 | |||
45 | 1622 | return line | 1628 | return line |
46 | 1623 | 1629 | ||
47 | 1624 | procurement_order() | 1630 | procurement_order() |
48 | 1625 | 1631 | ||
49 | === modified file 'bin/addons/msf_outgoing/msf_outgoing.py' | |||
50 | --- bin/addons/msf_outgoing/msf_outgoing.py 2016-10-25 07:49:35 +0000 | |||
51 | +++ bin/addons/msf_outgoing/msf_outgoing.py 2016-11-09 08:29:21 +0000 | |||
52 | @@ -4931,14 +4931,15 @@ | |||
53 | 4931 | '_name'::varchar(5) as name, | 4931 | '_name'::varchar(5) as name, |
54 | 4932 | min(pl.currency_id) as currency_id, | 4932 | min(pl.currency_id) as currency_id, |
55 | 4933 | sum(sol.price_unit * m.product_qty) as total_amount, | 4933 | sum(sol.price_unit * m.product_qty) as total_amount, |
57 | 4934 | bool_and(m.not_shipped) as not_shipped | 4934 | bool_and(m.not_shipped) as not_shipped, |
58 | 4935 | m.comment as comment | ||
59 | 4935 | from stock_picking p | 4936 | from stock_picking p |
60 | 4936 | inner join stock_move m on m.picking_id = p.id and m.state != 'cancel' and m.product_qty > 0 | 4937 | inner join stock_move m on m.picking_id = p.id and m.state != 'cancel' and m.product_qty > 0 |
61 | 4937 | left join sale_order so on so.id = p.sale_id | 4938 | left join sale_order so on so.id = p.sale_id |
62 | 4938 | left join sale_order_line sol on sol.id = m.sale_line_id | 4939 | left join sale_order_line sol on sol.id = m.sale_line_id |
63 | 4939 | left join product_pricelist pl on pl.id = so.pricelist_id | 4940 | left join product_pricelist pl on pl.id = so.pricelist_id |
64 | 4940 | where p.shipment_id is not null | 4941 | where p.shipment_id is not null |
66 | 4941 | group by p.shipment_id, p.description_ppl, to_pack, sale_id, p.subtype, p.id, p.previous_step_id | 4942 | group by p.shipment_id, p.description_ppl, to_pack, sale_id, p.subtype, p.id, p.previous_step_id, m.comment |
67 | 4942 | ) | 4943 | ) |
68 | 4943 | ''') | 4944 | ''') |
69 | 4944 | 4945 | ||
70 | @@ -5033,6 +5034,7 @@ | |||
71 | 5033 | 'total_volume': fields.function(_vals_get, method=True, type='float', string=u'Total Volume[dm³]', multi='get_vals',), | 5034 | 'total_volume': fields.function(_vals_get, method=True, type='float', string=u'Total Volume[dm³]', multi='get_vals',), |
72 | 5034 | 'description_ppl': fields.char('Description', size=256), | 5035 | 'description_ppl': fields.char('Description', size=256), |
73 | 5035 | 'not_shipped': fields.boolean(string='Not shipped'), | 5036 | 'not_shipped': fields.boolean(string='Not shipped'), |
74 | 5037 | 'comment': fields.char(string='Comment', size=1024) | ||
75 | 5036 | } | 5038 | } |
76 | 5037 | 5039 | ||
77 | 5038 | _defaults = { | 5040 | _defaults = { |
78 | 5039 | 5041 | ||
79 | === modified file 'bin/addons/msf_outgoing/msf_outgoing_view.xml' | |||
80 | --- bin/addons/msf_outgoing/msf_outgoing_view.xml 2016-05-30 07:12:04 +0000 | |||
81 | +++ bin/addons/msf_outgoing/msf_outgoing_view.xml 2016-11-09 08:29:21 +0000 | |||
82 | @@ -227,6 +227,7 @@ | |||
83 | 227 | <tree string="Stock Moves" noteditable="fake_state in ('assigned', 'cancel')" hide_new_button="context.get('from_wkf')" hide_delete_button="True" | 227 | <tree string="Stock Moves" noteditable="fake_state in ('assigned', 'cancel')" hide_new_button="context.get('from_wkf')" hide_delete_button="True" |
84 | 228 | colors="red: inactive_product==True"> | 228 | colors="red: inactive_product==True"> |
85 | 229 | <field name="product_id" context="{'available_for_restriction': 'picking', 'search_default_not_restricted': 1}"/> | 229 | <field name="product_id" context="{'available_for_restriction': 'picking', 'search_default_not_restricted': 1}"/> |
86 | 230 | <field name="comment" /> | ||
87 | 230 | <field name="composition_list_id" /> | 231 | <field name="composition_list_id" /> |
88 | 231 | <field name="product_qty" string="Qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/> | 232 | <field name="product_qty" string="Qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/> |
89 | 232 | <field name="product_uom" string="UoM"/> | 233 | <field name="product_uom" string="UoM"/> |
90 | @@ -279,6 +280,7 @@ | |||
91 | 279 | domain="[('uom_by_product', '=', product_id)]" | 280 | domain="[('uom_by_product', '=', product_id)]" |
92 | 280 | /> | 281 | /> |
93 | 281 | <field name="product_packaging" domain="[('product_id','=',product_id)]" colspan="4" invisible="1" /> | 282 | <field name="product_packaging" domain="[('product_id','=',product_id)]" colspan="4" invisible="1" /> |
94 | 283 | <field name="comment" colspan="4" /> | ||
95 | 282 | </group> | 284 | </group> |
96 | 283 | <group colspan="2" col="2"> | 285 | <group colspan="2" col="2"> |
97 | 284 | <separator string="Locations" colspan="2" /> | 286 | <separator string="Locations" colspan="2" /> |
98 | @@ -612,6 +614,7 @@ | |||
99 | 612 | <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']) ]}" > | 614 | <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']) ]}" > |
100 | 613 | <tree string="Stock Moves" hide_new_button="True" colors="red: inactive_product==True"> | 615 | <tree string="Stock Moves" hide_new_button="True" colors="red: inactive_product==True"> |
101 | 614 | <field name="product_id" context="{'available_for_restriction': 'picking', 'search_default_not_restricted': 1}" /> | 616 | <field name="product_id" context="{'available_for_restriction': 'picking', 'search_default_not_restricted': 1}" /> |
102 | 617 | <field name="comment" /> | ||
103 | 615 | <field name="composition_list_id" /> | 618 | <field name="composition_list_id" /> |
104 | 616 | <field name="product_qty" string="Qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/> | 619 | <field name="product_qty" string="Qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/> |
105 | 617 | <field name="product_uom" string="UoM"/> | 620 | <field name="product_uom" string="UoM"/> |
106 | @@ -649,9 +652,10 @@ | |||
107 | 649 | <field name="composition_list_id" invisible="True" /> | 652 | <field name="composition_list_id" invisible="True" /> |
108 | 650 | <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" /> | 653 | <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" /> |
109 | 651 | <field name="product_uom" string="Unit Of Measure" colspan="2" domain="[('uom_by_product', '=', product_id)]"/> | 654 | <field name="product_uom" string="Unit Of Measure" colspan="2" domain="[('uom_by_product', '=', product_id)]"/> |
112 | 652 | <field name="product_uos_qty" on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" colspan="4" /> | 655 | <field name="product_uos_qty" on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" /> |
113 | 653 | <field name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="4" /> | 656 | <field name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="2" /> |
114 | 654 | <field name="product_packaging" domain="[('product_id','=',product_id)]" colspan="4" invisible="1" /> | 657 | <field name="product_packaging" domain="[('product_id','=',product_id)]" colspan="4" invisible="1" /> |
115 | 658 | <field name="comment" colspan="4" /> | ||
116 | 655 | </group> | 659 | </group> |
117 | 656 | <group colspan="2" col="2"> | 660 | <group colspan="2" col="2"> |
118 | 657 | <separator string="Locations" colspan="2" /> | 661 | <separator string="Locations" colspan="2" /> |
119 | @@ -1267,6 +1271,7 @@ | |||
120 | 1267 | <field name="location_id" /> | 1271 | <field name="location_id" /> |
121 | 1268 | <field name="location_dest_id" /> | 1272 | <field name="location_dest_id" /> |
122 | 1269 | <field name="state" /> | 1273 | <field name="state" /> |
123 | 1274 | <field name="comment" /> | ||
124 | 1270 | <field name="move_lines" nolabel="True" colspan="4" mode="tree" readonly="True"> | 1275 | <field name="move_lines" nolabel="True" colspan="4" mode="tree" readonly="True"> |
125 | 1271 | <tree colors="red: inactive_product==True"> | 1276 | <tree colors="red: inactive_product==True"> |
126 | 1272 | <field name="name" /> | 1277 | <field name="name" /> |
127 | 1273 | 1278 | ||
128 | === modified file 'bin/addons/msf_outgoing/report/empty_picking_ticket.rml' | |||
129 | --- bin/addons/msf_outgoing/report/empty_picking_ticket.rml 2016-07-28 12:34:28 +0000 | |||
130 | +++ bin/addons/msf_outgoing/report/empty_picking_ticket.rml 2016-11-09 08:29:21 +0000 | |||
131 | @@ -58,6 +58,17 @@ | |||
132 | 58 | <blockBackground colorName="#c0c0c0" start="0,1" stop="-1,-1" /> | 58 | <blockBackground colorName="#c0c0c0" start="0,1" stop="-1,-1" /> |
133 | 59 | <lineStyle kind="OUTLINE" colorName="black" start="-5,0" stop="-1,0" /> | 59 | <lineStyle kind="OUTLINE" colorName="black" start="-5,0" stop="-1,0" /> |
134 | 60 | <lineStyle kind="GRID" colorName="black" start="0,1" stop="-1,-1" /> | 60 | <lineStyle kind="GRID" colorName="black" start="0,1" stop="-1,-1" /> |
135 | 61 | <blockSpan start="0,1" stop="0,-1" /> | ||
136 | 62 | <blockSpan start="3,1" stop="3,-1" /> | ||
137 | 63 | <blockSpan start="4,1" stop="4,-1" /> | ||
138 | 64 | <blockSpan start="5,1" stop="5,-1" /> | ||
139 | 65 | <blockSpan start="6,1" stop="6,-1" /> | ||
140 | 66 | <blockSpan start="7,1" stop="7,-1" /> | ||
141 | 67 | <blockSpan start="8,1" stop="8,-1" /> | ||
142 | 68 | <blockSpan start="9,1" stop="9,-1" /> | ||
143 | 69 | <blockSpan start="10,1" stop="10,-1" /> | ||
144 | 70 | <blockSpan start="11,1" stop="11,-1" /> | ||
145 | 71 | <blockSpan start="12,1" stop="12,-1" /> | ||
146 | 61 | </blockTableStyle> | 72 | </blockTableStyle> |
147 | 62 | 73 | ||
148 | 63 | <blockTableStyle id="LinesValues"> | 74 | <blockTableStyle id="LinesValues"> |
149 | @@ -251,6 +262,50 @@ | |||
150 | 251 | <para style="LineHeader">(w x l x h) (cm)</para> | 262 | <para style="LineHeader">(w x l x h) (cm)</para> |
151 | 252 | </td> | 263 | </td> |
152 | 253 | </tr> | 264 | </tr> |
153 | 265 | <tr> | ||
154 | 266 | <td> | ||
155 | 267 | <para style="LineHeader"></para> | ||
156 | 268 | </td> | ||
157 | 269 | <td> | ||
158 | 270 | <para style="LineHeaderLeft"></para> | ||
159 | 271 | </td> | ||
160 | 272 | <td> | ||
161 | 273 | <para style="LineHeaderLeft">Comment</para> | ||
162 | 274 | </td> | ||
163 | 275 | <td> | ||
164 | 276 | <para style="LineHeader"></para> | ||
165 | 277 | </td> | ||
166 | 278 | <td> | ||
167 | 279 | <para style="LineHeader"></para> | ||
168 | 280 | </td> | ||
169 | 281 | <td> | ||
170 | 282 | <para style="LineHeader"></para> | ||
171 | 283 | </td> | ||
172 | 284 | <td> | ||
173 | 285 | <para style="LineHeader"></para> | ||
174 | 286 | </td> | ||
175 | 287 | <td> | ||
176 | 288 | <para style="LineHeader"></para> | ||
177 | 289 | </td> | ||
178 | 290 | <td> | ||
179 | 291 | <para style="LineHeader"></para> | ||
180 | 292 | </td> | ||
181 | 293 | <td> | ||
182 | 294 | <para style="LineHeader"></para> | ||
183 | 295 | </td> | ||
184 | 296 | <td> | ||
185 | 297 | <para style="LineHeader"></para> | ||
186 | 298 | </td> | ||
187 | 299 | <td> | ||
188 | 300 | <para style="LineHeader"></para> | ||
189 | 301 | </td> | ||
190 | 302 | <td> | ||
191 | 303 | <para style="LineHeader"></para> | ||
192 | 304 | </td> | ||
193 | 305 | <td> | ||
194 | 306 | <para style="LineHeader"></para> | ||
195 | 307 | </td> | ||
196 | 308 | </tr> | ||
197 | 254 | </blockTable> | 309 | </blockTable> |
198 | 255 | 310 | ||
199 | 256 | <pto> | 311 | <pto> |
200 | @@ -344,6 +399,50 @@ | |||
201 | 344 | <para style="LineHeader">Size (w x l x h) (cm)</para> | 399 | <para style="LineHeader">Size (w x l x h) (cm)</para> |
202 | 345 | </td> | 400 | </td> |
203 | 346 | </tr> | 401 | </tr> |
204 | 402 | <tr> | ||
205 | 403 | <td> | ||
206 | 404 | <para style="LineHeader"></para> | ||
207 | 405 | </td> | ||
208 | 406 | <td> | ||
209 | 407 | <para style="LineHeaderLeft"></para> | ||
210 | 408 | </td> | ||
211 | 409 | <td> | ||
212 | 410 | <para style="LineHeaderLeft">Comment</para> | ||
213 | 411 | </td> | ||
214 | 412 | <td> | ||
215 | 413 | <para style="LineHeader"></para> | ||
216 | 414 | </td> | ||
217 | 415 | <td> | ||
218 | 416 | <para style="LineHeader"></para> | ||
219 | 417 | </td> | ||
220 | 418 | <td> | ||
221 | 419 | <para style="LineHeader"></para> | ||
222 | 420 | </td> | ||
223 | 421 | <td> | ||
224 | 422 | <para style="LineHeader"></para> | ||
225 | 423 | </td> | ||
226 | 424 | <td> | ||
227 | 425 | <para style="LineHeader"></para> | ||
228 | 426 | </td> | ||
229 | 427 | <td> | ||
230 | 428 | <para style="LineHeader"></para> | ||
231 | 429 | </td> | ||
232 | 430 | <td> | ||
233 | 431 | <para style="LineHeader"></para> | ||
234 | 432 | </td> | ||
235 | 433 | <td> | ||
236 | 434 | <para style="LineHeader"></para> | ||
237 | 435 | </td> | ||
238 | 436 | <td> | ||
239 | 437 | <para style="LineHeader"></para> | ||
240 | 438 | </td> | ||
241 | 439 | <td> | ||
242 | 440 | <para style="LineHeader"></para> | ||
243 | 441 | </td> | ||
244 | 442 | <td> | ||
245 | 443 | <para style="LineHeader"></para> | ||
246 | 444 | </td> | ||
247 | 445 | </tr> | ||
248 | 347 | </blockTable> | 446 | </blockTable> |
249 | 348 | </pto_header> | 447 | </pto_header> |
250 | 349 | 448 | ||
251 | @@ -409,7 +508,7 @@ | |||
252 | 409 | <para style="LineValue"></para> | 508 | <para style="LineValue"></para> |
253 | 410 | </td> | 509 | </td> |
254 | 411 | <td> | 510 | <td> |
256 | 412 | <para style="LineValue"></para> | 511 | <para style="LineValueLeft">[[ m.comment ]]</para> |
257 | 413 | </td> | 512 | </td> |
258 | 414 | <td> | 513 | <td> |
259 | 415 | <para style="LineValue"></para> | 514 | <para style="LineValue"></para> |
260 | 416 | 515 | ||
261 | === modified file 'bin/addons/msf_outgoing/report/packing_list.rml' | |||
262 | --- bin/addons/msf_outgoing/report/packing_list.rml 2016-03-22 08:24:13 +0000 | |||
263 | +++ bin/addons/msf_outgoing/report/packing_list.rml 2016-11-09 08:29:21 +0000 | |||
264 | @@ -252,7 +252,7 @@ | |||
265 | 252 | <para style="ParcelLineValue">[[ m.product_id.name ]]</para> | 252 | <para style="ParcelLineValue">[[ m.product_id.name ]]</para> |
266 | 253 | </td> | 253 | </td> |
267 | 254 | <td> | 254 | <td> |
269 | 255 | <para style="ParcelLineValue">[[ m.sale_line_id and m.sale_line_id.notes or '' ]]</para> | 255 | <para style="ParcelLineValue">[[ m.comment or '' ]]</para> |
270 | 256 | </td> | 256 | </td> |
271 | 257 | <td> | 257 | <td> |
272 | 258 | <para style="ParcelLineValue">[[ formatLang(m.product_qty or 0.00) ]] [[ m.product_uom.name ]]</para> | 258 | <para style="ParcelLineValue">[[ formatLang(m.product_qty or 0.00) ]] [[ m.product_uom.name ]]</para> |
273 | 259 | 259 | ||
274 | === modified file 'bin/addons/msf_outgoing/report/packing_list_xls.mako' | |||
275 | --- bin/addons/msf_outgoing/report/packing_list_xls.mako 2016-03-22 08:24:13 +0000 | |||
276 | +++ bin/addons/msf_outgoing/report/packing_list_xls.mako 2016-11-09 08:29:21 +0000 | |||
277 | @@ -441,7 +441,7 @@ | |||
278 | 441 | <Cell ss:StyleID="s134"><Data ss:Type="Number">${(m.line_number)|x}</Data></Cell> | 441 | <Cell ss:StyleID="s134"><Data ss:Type="Number">${(m.line_number)|x}</Data></Cell> |
279 | 442 | <Cell ss:StyleID="s134"><Data ss:Type="String">${(m.product_id.default_code)|x}</Data></Cell> | 442 | <Cell ss:StyleID="s134"><Data ss:Type="String">${(m.product_id.default_code)|x}</Data></Cell> |
280 | 443 | <Cell ss:StyleID="s134"><Data ss:Type="String">${(m.product_id.name)|x}</Data></Cell> | 443 | <Cell ss:StyleID="s134"><Data ss:Type="String">${(m.product_id.name)|x}</Data></Cell> |
282 | 444 | <Cell ss:StyleID="s134" ss:MergeAcross="2"><Data ss:Type="String">${(m.sale_line_id and m.sale_line_id.notes or '')|x}</Data></Cell> | 444 | <Cell ss:StyleID="s134" ss:MergeAcross="2"><Data ss:Type="String">${(m.comment or '')|x}</Data></Cell> |
283 | 445 | <Cell ss:StyleID="s134"><Data ss:Type="String">${(formatLang(m.product_qty or 0.00))|x} ${(m.product_uom.name)|x}</Data></Cell> | 445 | <Cell ss:StyleID="s134"><Data ss:Type="String">${(formatLang(m.product_qty or 0.00))|x} ${(m.product_uom.name)|x}</Data></Cell> |
284 | 446 | <Cell ss:StyleID="s134"><Data ss:Type="String">${(m.prodlot_id.name or '')|x}</Data></Cell> | 446 | <Cell ss:StyleID="s134"><Data ss:Type="String">${(m.prodlot_id.name or '')|x}</Data></Cell> |
285 | 447 | % if m.prodlot_id.life_date and m.prodlot_id.life_date not in (False, 'False'): | 447 | % if m.prodlot_id.life_date and m.prodlot_id.life_date not in (False, 'False'): |
286 | 448 | 448 | ||
287 | === modified file 'bin/addons/msf_outgoing/report/picking_ticket.py' | |||
288 | --- bin/addons/msf_outgoing/report/picking_ticket.py 2016-07-28 12:32:01 +0000 | |||
289 | +++ bin/addons/msf_outgoing/report/picking_ticket.py 2016-11-09 08:29:21 +0000 | |||
290 | @@ -36,6 +36,7 @@ | |||
291 | 36 | self.sale_line_id = move.sale_line_id | 36 | self.sale_line_id = move.sale_line_id |
292 | 37 | self.product_uom = move.product_id.uom_id | 37 | self.product_uom = move.product_id.uom_id |
293 | 38 | self.state = move.state | 38 | self.state = move.state |
294 | 39 | self.comment = move.comment | ||
295 | 39 | self.product_qty = 0.00 | 40 | self.product_qty = 0.00 |
296 | 40 | self.prodlot_id = None | 41 | self.prodlot_id = None |
297 | 41 | self.kc_check = False | 42 | self.kc_check = False |
298 | 42 | 43 | ||
299 | === modified file 'bin/addons/msf_outgoing/report/picking_ticket.rml' | |||
300 | --- bin/addons/msf_outgoing/report/picking_ticket.rml 2016-07-28 12:32:01 +0000 | |||
301 | +++ bin/addons/msf_outgoing/report/picking_ticket.rml 2016-11-09 08:29:21 +0000 | |||
302 | @@ -414,7 +414,7 @@ | |||
303 | 414 | <para style="LineValue"></para> | 414 | <para style="LineValue"></para> |
304 | 415 | </td> | 415 | </td> |
305 | 416 | <td> | 416 | <td> |
307 | 417 | <para style="LineValueLeft">[[ m.sale_line_id and m.sale_line_id.notes or '' ]]</para> | 417 | <para style="LineValueLeft">[[ m.comment or '' ]]</para> |
308 | 418 | </td> | 418 | </td> |
309 | 419 | <td> | 419 | <td> |
310 | 420 | <para style="LineValueLeft">[[ m.sale_line_id and m.sale_line_id.product_id != m.product_id and '[%s] %s' % (m.product_id.default_code, m.product_id.name) or '' ]]</para> | 420 | <para style="LineValueLeft">[[ m.sale_line_id and m.sale_line_id.product_id != m.product_id and '[%s] %s' % (m.product_id.default_code, m.product_id.name) or '' ]]</para> |
311 | 421 | 421 | ||
312 | === modified file 'bin/addons/msf_outgoing/wizard/create_picking_processor.py' | |||
313 | --- bin/addons/msf_outgoing/wizard/create_picking_processor.py 2016-03-08 15:48:47 +0000 | |||
314 | +++ bin/addons/msf_outgoing/wizard/create_picking_processor.py 2016-11-09 08:29:21 +0000 | |||
315 | @@ -103,6 +103,18 @@ | |||
316 | 103 | help="Expected product to receive", | 103 | help="Expected product to receive", |
317 | 104 | multi='move_info', | 104 | multi='move_info', |
318 | 105 | ), | 105 | ), |
319 | 106 | 'comment': fields.function( | ||
320 | 107 | _get_move_info, | ||
321 | 108 | method=True, | ||
322 | 109 | string='Comment', | ||
323 | 110 | type='text', | ||
324 | 111 | store={ | ||
325 | 112 | 'create.picking.move.processor': (lambda self, cr, uid, ids, c=None: ids, ['move_id'], 20), | ||
326 | 113 | }, | ||
327 | 114 | readonly=True, | ||
328 | 115 | help="Comment of the move", | ||
329 | 116 | multi='move_info', | ||
330 | 117 | ), | ||
331 | 106 | 'ordered_uom_id': fields.function( | 118 | 'ordered_uom_id': fields.function( |
332 | 107 | _get_move_info, | 119 | _get_move_info, |
333 | 108 | method=True, | 120 | method=True, |
334 | 109 | 121 | ||
335 | === modified file 'bin/addons/msf_outgoing/wizard/create_picking_processor_view.xml' | |||
336 | --- bin/addons/msf_outgoing/wizard/create_picking_processor_view.xml 2016-03-17 08:30:04 +0000 | |||
337 | +++ bin/addons/msf_outgoing/wizard/create_picking_processor_view.xml 2016-11-09 08:29:21 +0000 | |||
338 | @@ -46,6 +46,7 @@ | |||
339 | 46 | <!-- Visible fields --> | 46 | <!-- Visible fields --> |
340 | 47 | <field name="line_number" string="Line" /> | 47 | <field name="line_number" string="Line" /> |
341 | 48 | <field name="product_id" string="Product" /> | 48 | <field name="product_id" string="Product" /> |
342 | 49 | <field name="comment" readonly="1" /> | ||
343 | 49 | <button name="open_change_product_wizard" | 50 | <button name="open_change_product_wizard" |
344 | 50 | type="object" | 51 | type="object" |
345 | 51 | icon="gtk-convert" | 52 | icon="gtk-convert" |
346 | 52 | 53 | ||
347 | === modified file 'bin/addons/msf_outgoing/wizard/incoming_shipment_processor.py' | |||
348 | --- bin/addons/msf_outgoing/wizard/incoming_shipment_processor.py 2016-07-25 08:20:05 +0000 | |||
349 | +++ bin/addons/msf_outgoing/wizard/incoming_shipment_processor.py 2016-11-09 08:29:21 +0000 | |||
350 | @@ -488,6 +488,15 @@ | |||
351 | 488 | res[id] = False | 488 | res[id] = False |
352 | 489 | return res | 489 | return res |
353 | 490 | 490 | ||
354 | 491 | def _set_comment(self, cr, uid, ml_id, name=None, value=None, fnct_inv_arg=None, context=None): | ||
355 | 492 | """ | ||
356 | 493 | Just used to not break default OpenERP behaviour | ||
357 | 494 | """ | ||
358 | 495 | if name and value: | ||
359 | 496 | sql = "UPDATE "+ self._table + " SET " + name + " = %s WHERE id = %s" | ||
360 | 497 | cr.execute(sql, (value, ml_id)) | ||
361 | 498 | return True | ||
362 | 499 | |||
363 | 491 | _columns = { | 500 | _columns = { |
364 | 492 | # Parent wizard | 501 | # Parent wizard |
365 | 493 | 'wizard_id': fields.many2one( | 502 | 'wizard_id': fields.many2one( |
366 | @@ -512,6 +521,19 @@ | |||
367 | 512 | help="Expected product to receive", | 521 | help="Expected product to receive", |
368 | 513 | multi='move_info', | 522 | multi='move_info', |
369 | 514 | ), | 523 | ), |
370 | 524 | 'comment': fields.function( | ||
371 | 525 | _get_move_info, | ||
372 | 526 | fnct_inv=_set_comment, | ||
373 | 527 | method=True, | ||
374 | 528 | string='Comment', | ||
375 | 529 | type='text', | ||
376 | 530 | store={ | ||
377 | 531 | 'stock.move.in.processor': (lambda self, cr, uid, ids, c=None: ids, ['move_id'], 20), | ||
378 | 532 | }, | ||
379 | 533 | readonly=True, | ||
380 | 534 | help="Comment of the move", | ||
381 | 535 | multi='move_info', | ||
382 | 536 | ), | ||
383 | 515 | 'ordered_uom_id': fields.function( | 537 | 'ordered_uom_id': fields.function( |
384 | 516 | _get_move_info, | 538 | _get_move_info, |
385 | 517 | method=True, | 539 | method=True, |
386 | 518 | 540 | ||
387 | === modified file 'bin/addons/msf_outgoing/wizard/incoming_shipment_processor_view.xml' | |||
388 | --- bin/addons/msf_outgoing/wizard/incoming_shipment_processor_view.xml 2016-03-17 08:30:04 +0000 | |||
389 | +++ bin/addons/msf_outgoing/wizard/incoming_shipment_processor_view.xml 2016-11-09 08:29:21 +0000 | |||
390 | @@ -111,6 +111,7 @@ | |||
391 | 111 | <!-- Visible fields --> | 111 | <!-- Visible fields --> |
392 | 112 | <field name="line_number" string="Line" /> | 112 | <field name="line_number" string="Line" /> |
393 | 113 | <field name="product_id" string="Product" /> | 113 | <field name="product_id" string="Product" /> |
394 | 114 | <field name="comment" readonly="1" /> | ||
395 | 114 | <field name="batch_location_ids" invisible="1" /> | 115 | <field name="batch_location_ids" invisible="1" /> |
396 | 115 | <button name="open_change_product_wizard" | 116 | <button name="open_change_product_wizard" |
397 | 116 | type="object" | 117 | type="object" |
398 | 117 | 118 | ||
399 | === modified file 'bin/addons/msf_outgoing/wizard/internal_move_processor.py' | |||
400 | --- bin/addons/msf_outgoing/wizard/internal_move_processor.py 2016-03-08 15:48:47 +0000 | |||
401 | +++ bin/addons/msf_outgoing/wizard/internal_move_processor.py 2016-11-09 08:29:21 +0000 | |||
402 | @@ -402,6 +402,18 @@ | |||
403 | 402 | help="Expected product to receive", | 402 | help="Expected product to receive", |
404 | 403 | multi='move_info', | 403 | multi='move_info', |
405 | 404 | ), | 404 | ), |
406 | 405 | 'comment': fields.function( | ||
407 | 406 | _get_move_info, | ||
408 | 407 | method=True, | ||
409 | 408 | string='Comment', | ||
410 | 409 | type='text', | ||
411 | 410 | store={ | ||
412 | 411 | 'internal.move.processor': (lambda self, cr, uid, ids, c=None: ids, ['move_id'], 20), | ||
413 | 412 | }, | ||
414 | 413 | readonly=True, | ||
415 | 414 | help="Comment of the move", | ||
416 | 415 | multi='move_info', | ||
417 | 416 | ), | ||
418 | 405 | 'ordered_uom_id': fields.function( | 417 | 'ordered_uom_id': fields.function( |
419 | 406 | _get_move_info, | 418 | _get_move_info, |
420 | 407 | method=True, | 419 | method=True, |
421 | 408 | 420 | ||
422 | === modified file 'bin/addons/msf_outgoing/wizard/internal_move_processor_view.xml' | |||
423 | --- bin/addons/msf_outgoing/wizard/internal_move_processor_view.xml 2016-03-17 08:37:36 +0000 | |||
424 | +++ bin/addons/msf_outgoing/wizard/internal_move_processor_view.xml 2016-11-09 08:29:21 +0000 | |||
425 | @@ -66,6 +66,7 @@ | |||
426 | 66 | <!-- Visible fields --> | 66 | <!-- Visible fields --> |
427 | 67 | <field name="line_number" string="Line" /> | 67 | <field name="line_number" string="Line" /> |
428 | 68 | <field name="product_id" string="Product" /> | 68 | <field name="product_id" string="Product" /> |
429 | 69 | <field name="comment" readonly="1" /> | ||
430 | 69 | <button name="open_change_product_wizard" | 70 | <button name="open_change_product_wizard" |
431 | 70 | type="object" | 71 | type="object" |
432 | 71 | icon="gtk-convert" | 72 | icon="gtk-convert" |
433 | 72 | 73 | ||
434 | === modified file 'bin/addons/msf_outgoing/wizard/outgoing_delivery_processor.py' | |||
435 | --- bin/addons/msf_outgoing/wizard/outgoing_delivery_processor.py 2016-03-08 15:48:47 +0000 | |||
436 | +++ bin/addons/msf_outgoing/wizard/outgoing_delivery_processor.py 2016-11-09 08:29:21 +0000 | |||
437 | @@ -190,6 +190,18 @@ | |||
438 | 190 | help="Expected product to receive", | 190 | help="Expected product to receive", |
439 | 191 | multi='move_info', | 191 | multi='move_info', |
440 | 192 | ), | 192 | ), |
441 | 193 | 'comment': fields.function( | ||
442 | 194 | _get_move_info, | ||
443 | 195 | method=True, | ||
444 | 196 | string='Comment', | ||
445 | 197 | type='text', | ||
446 | 198 | store={ | ||
447 | 199 | 'outgoing.delivery.move.processor': (lambda self, cr, uid, ids, c=None: ids, ['move_id'], 20), | ||
448 | 200 | }, | ||
449 | 201 | readonly=True, | ||
450 | 202 | help="Comment of the move", | ||
451 | 203 | multi='move_info', | ||
452 | 204 | ), | ||
453 | 193 | 'ordered_uom_id': fields.function( | 205 | 'ordered_uom_id': fields.function( |
454 | 194 | _get_move_info, | 206 | _get_move_info, |
455 | 195 | method=True, | 207 | method=True, |
456 | 196 | 208 | ||
457 | === modified file 'bin/addons/msf_outgoing/wizard/outgoing_delivery_processor_view.xml' | |||
458 | --- bin/addons/msf_outgoing/wizard/outgoing_delivery_processor_view.xml 2016-03-17 08:37:36 +0000 | |||
459 | +++ bin/addons/msf_outgoing/wizard/outgoing_delivery_processor_view.xml 2016-11-09 08:29:21 +0000 | |||
460 | @@ -46,6 +46,7 @@ | |||
461 | 46 | <!-- Visible fields --> | 46 | <!-- Visible fields --> |
462 | 47 | <field name="line_number" string="Line" /> | 47 | <field name="line_number" string="Line" /> |
463 | 48 | <field name="product_id" string="Product" /> | 48 | <field name="product_id" string="Product" /> |
464 | 49 | <field name="comment" readonly="1" /> | ||
465 | 49 | <button name="open_change_product_wizard" | 50 | <button name="open_change_product_wizard" |
466 | 50 | type="object" | 51 | type="object" |
467 | 51 | icon="gtk-convert" | 52 | icon="gtk-convert" |
468 | 52 | 53 | ||
469 | === modified file 'bin/addons/msf_outgoing/wizard/picking_processor.py' | |||
470 | --- bin/addons/msf_outgoing/wizard/picking_processor.py 2016-08-18 08:32:03 +0000 | |||
471 | +++ bin/addons/msf_outgoing/wizard/picking_processor.py 2016-11-09 08:29:21 +0000 | |||
472 | @@ -238,7 +238,7 @@ | |||
473 | 238 | 238 | ||
474 | 239 | for line in self.browse(cr, uid, ids, context=context): | 239 | for line in self.browse(cr, uid, ids, context=context): |
475 | 240 | # Return an error if the move has no product defined | 240 | # Return an error if the move has no product defined |
477 | 241 | if not line.move_id.product_id: | 241 | if not line.move_id or not line.move_id.product_id: |
478 | 242 | raise osv.except_osv( | 242 | raise osv.except_osv( |
479 | 243 | _('Data Error'), | 243 | _('Data Error'), |
480 | 244 | _('The move you are trying to process has no product defined - Please set a product on it before process it.') | 244 | _('The move you are trying to process has no product defined - Please set a product on it before process it.') |
481 | @@ -268,6 +268,7 @@ | |||
482 | 268 | 'location_id': location_id, | 268 | 'location_id': location_id, |
483 | 269 | 'location_supplier_customer_mem_out': loc_supplier or loc_cust or valid_pt, | 269 | 'location_supplier_customer_mem_out': loc_supplier or loc_cust or valid_pt, |
484 | 270 | 'type_check': line.move_id.picking_id.type, | 270 | 'type_check': line.move_id.picking_id.type, |
485 | 271 | 'comment': line.move_id.comment, | ||
486 | 271 | } | 272 | } |
487 | 272 | 273 | ||
488 | 273 | return res | 274 | return res |
489 | @@ -452,6 +453,18 @@ | |||
490 | 452 | help="Expected product to receive", | 453 | help="Expected product to receive", |
491 | 453 | multi='move_info', | 454 | multi='move_info', |
492 | 454 | ), | 455 | ), |
493 | 456 | 'comment': fields.function( | ||
494 | 457 | _get_move_info, | ||
495 | 458 | method=True, | ||
496 | 459 | string='Comment', | ||
497 | 460 | type='text', | ||
498 | 461 | store={ | ||
499 | 462 | 'stock.move.processor': (lambda self, cr, uid, ids, c=None: ids, ['move_id'], 20), | ||
500 | 463 | }, | ||
501 | 464 | readonly=True, | ||
502 | 465 | help="Comment of the move", | ||
503 | 466 | multi='move_info', | ||
504 | 467 | ), | ||
505 | 455 | 'quantity': fields.float( | 468 | 'quantity': fields.float( |
506 | 456 | string='Quantity', | 469 | string='Quantity', |
507 | 457 | digits_compute=dp.get_precision('Product UoM'), | 470 | digits_compute=dp.get_precision('Product UoM'), |
508 | 458 | 471 | ||
509 | === modified file 'bin/addons/msf_outgoing/wizard/picking_processor_view.xml' | |||
510 | --- bin/addons/msf_outgoing/wizard/picking_processor_view.xml 2016-03-17 08:37:36 +0000 | |||
511 | +++ bin/addons/msf_outgoing/wizard/picking_processor_view.xml 2016-11-09 08:29:21 +0000 | |||
512 | @@ -46,6 +46,7 @@ | |||
513 | 46 | <!-- Visible fields --> | 46 | <!-- Visible fields --> |
514 | 47 | <field name="line_number" string="Line" /> | 47 | <field name="line_number" string="Line" /> |
515 | 48 | <field name="product_id" string="Product" /> | 48 | <field name="product_id" string="Product" /> |
516 | 49 | <field name="comment" readonly="1" /> | ||
517 | 49 | <button name="open_change_product_wizard" | 50 | <button name="open_change_product_wizard" |
518 | 50 | type="object" | 51 | type="object" |
519 | 51 | icon="gtk-convert" | 52 | icon="gtk-convert" |
520 | 52 | 53 | ||
521 | === modified file 'bin/addons/msf_outgoing/wizard/ppl_processor.py' | |||
522 | --- bin/addons/msf_outgoing/wizard/ppl_processor.py 2016-08-18 08:32:03 +0000 | |||
523 | +++ bin/addons/msf_outgoing/wizard/ppl_processor.py 2016-11-09 08:29:21 +0000 | |||
524 | @@ -440,6 +440,18 @@ | |||
525 | 440 | help="Expected product to receive", | 440 | help="Expected product to receive", |
526 | 441 | multi='move_info', | 441 | multi='move_info', |
527 | 442 | ), | 442 | ), |
528 | 443 | 'comment': fields.function( | ||
529 | 444 | _get_move_info, | ||
530 | 445 | method=True, | ||
531 | 446 | string='Comment', | ||
532 | 447 | type='text', | ||
533 | 448 | store={ | ||
534 | 449 | 'ppl.move.processor': (lambda self, cr, uid, ids, c=None: ids, ['move_id'], 20), | ||
535 | 450 | }, | ||
536 | 451 | readonly=True, | ||
537 | 452 | help="Comment of the move", | ||
538 | 453 | multi='move_info', | ||
539 | 454 | ), | ||
540 | 443 | 'ordered_uom_id': fields.function( | 455 | 'ordered_uom_id': fields.function( |
541 | 444 | _get_move_info, | 456 | _get_move_info, |
542 | 445 | method=True, | 457 | method=True, |
543 | 446 | 458 | ||
544 | === modified file 'bin/addons/msf_outgoing/wizard/ppl_processor_view.xml' | |||
545 | --- bin/addons/msf_outgoing/wizard/ppl_processor_view.xml 2016-03-17 08:37:36 +0000 | |||
546 | +++ bin/addons/msf_outgoing/wizard/ppl_processor_view.xml 2016-11-09 08:29:21 +0000 | |||
547 | @@ -66,6 +66,7 @@ | |||
548 | 66 | string="Product" | 66 | string="Product" |
549 | 67 | readonly="1" | 67 | readonly="1" |
550 | 68 | /> | 68 | /> |
551 | 69 | <field name="comment" readonly="1" /> | ||
552 | 69 | <field name="asset_id" readonly="1" /> | 70 | <field name="asset_id" readonly="1" /> |
553 | 70 | <field name="composition_list_id" readonly="1" /> | 71 | <field name="composition_list_id" readonly="1" /> |
554 | 71 | <field name="quantity" | 72 | <field name="quantity" |
555 | 72 | 73 | ||
556 | === modified file 'bin/addons/msf_outgoing/wizard/return_ppl_processor.py' | |||
557 | --- bin/addons/msf_outgoing/wizard/return_ppl_processor.py 2016-03-08 15:48:47 +0000 | |||
558 | +++ bin/addons/msf_outgoing/wizard/return_ppl_processor.py 2016-11-09 08:29:21 +0000 | |||
559 | @@ -142,6 +142,18 @@ | |||
560 | 142 | help="Expected product to receive", | 142 | help="Expected product to receive", |
561 | 143 | multi='move_info', | 143 | multi='move_info', |
562 | 144 | ), | 144 | ), |
563 | 145 | 'comment': fields.function( | ||
564 | 146 | _get_move_info, | ||
565 | 147 | method=True, | ||
566 | 148 | string='Comment', | ||
567 | 149 | type='text', | ||
568 | 150 | store={ | ||
569 | 151 | 'return.ppl.move.processor': (lambda self, cr, uid, ids, c=None: ids, ['move_id'], 20), | ||
570 | 152 | }, | ||
571 | 153 | readonly=True, | ||
572 | 154 | help="Comment of the move", | ||
573 | 155 | multi='move_info', | ||
574 | 156 | ), | ||
575 | 145 | 'ordered_uom_id': fields.function( | 157 | 'ordered_uom_id': fields.function( |
576 | 146 | _get_move_info, | 158 | _get_move_info, |
577 | 147 | method=True, | 159 | method=True, |
578 | 148 | 160 | ||
579 | === modified file 'bin/addons/msf_outgoing/wizard/return_ppl_processor_view.xml' | |||
580 | --- bin/addons/msf_outgoing/wizard/return_ppl_processor_view.xml 2016-03-17 08:37:36 +0000 | |||
581 | +++ bin/addons/msf_outgoing/wizard/return_ppl_processor_view.xml 2016-11-09 08:29:21 +0000 | |||
582 | @@ -47,6 +47,7 @@ | |||
583 | 47 | string="Product" | 47 | string="Product" |
584 | 48 | readonly="1" | 48 | readonly="1" |
585 | 49 | /> | 49 | /> |
586 | 50 | <field name="comment" readonly="1" /> | ||
587 | 50 | <field name="asset_id" readonly="1" /> | 51 | <field name="asset_id" readonly="1" /> |
588 | 51 | <field name="composition_list_id" readonly="1" /> | 52 | <field name="composition_list_id" readonly="1" /> |
589 | 52 | <field name="ordered_quantity" readonly="1" /> | 53 | <field name="ordered_quantity" readonly="1" /> |
590 | 53 | 54 | ||
591 | === modified file 'bin/addons/msf_outgoing/wizard/validate_picking_processor.py' | |||
592 | --- bin/addons/msf_outgoing/wizard/validate_picking_processor.py 2016-03-08 15:48:47 +0000 | |||
593 | +++ bin/addons/msf_outgoing/wizard/validate_picking_processor.py 2016-11-09 08:29:21 +0000 | |||
594 | @@ -197,6 +197,18 @@ | |||
595 | 197 | help="Expected product to receive", | 197 | help="Expected product to receive", |
596 | 198 | multi='move_info', | 198 | multi='move_info', |
597 | 199 | ), | 199 | ), |
598 | 200 | 'comment': fields.function( | ||
599 | 201 | _get_move_info, | ||
600 | 202 | method=True, | ||
601 | 203 | string='Comment', | ||
602 | 204 | type='text', | ||
603 | 205 | store={ | ||
604 | 206 | 'validate.move.processor': (lambda self, cr, uid, ids, c=None: ids, ['move_id'], 20), | ||
605 | 207 | }, | ||
606 | 208 | readonly=True, | ||
607 | 209 | help="Comment of the move", | ||
608 | 210 | multi='move_info', | ||
609 | 211 | ), | ||
610 | 200 | 'ordered_uom_id': fields.function( | 212 | 'ordered_uom_id': fields.function( |
611 | 201 | _get_move_info, | 213 | _get_move_info, |
612 | 202 | method=True, | 214 | method=True, |
613 | 203 | 215 | ||
614 | === modified file 'bin/addons/msf_outgoing/wizard/validate_picking_processor_view.xml' | |||
615 | --- bin/addons/msf_outgoing/wizard/validate_picking_processor_view.xml 2016-03-17 08:37:36 +0000 | |||
616 | +++ bin/addons/msf_outgoing/wizard/validate_picking_processor_view.xml 2016-11-09 08:29:21 +0000 | |||
617 | @@ -52,6 +52,7 @@ | |||
618 | 52 | string="Change Product" | 52 | string="Change Product" |
619 | 53 | attrs="{'invisible': [('type_check', '!=', 'in')]}" | 53 | attrs="{'invisible': [('type_check', '!=', 'in')]}" |
620 | 54 | /> | 54 | /> |
621 | 55 | <field name="comment" readonly="1" /> | ||
622 | 55 | <field name="asset_id" | 56 | <field name="asset_id" |
623 | 56 | domain="[('product_id', '=', product_id)]" | 57 | domain="[('product_id', '=', product_id)]" |
624 | 57 | attrs="{'readonly': [('asset_check', '=', False)], 'required': [('location_supplier_customer_mem_out', '=', True), ('asset_check', '=', True)]}" | 58 | attrs="{'readonly': [('asset_check', '=', False)], 'required': [('location_supplier_customer_mem_out', '=', True), ('asset_check', '=', True)]}" |
625 | 58 | 59 | ||
626 | === modified file 'bin/addons/msf_printed_documents/report/report_reception.rml' | |||
627 | --- bin/addons/msf_printed_documents/report/report_reception.rml 2016-03-22 08:24:13 +0000 | |||
628 | +++ bin/addons/msf_printed_documents/report/report_reception.rml 2016-11-09 08:29:21 +0000 | |||
629 | @@ -575,7 +575,7 @@ | |||
630 | 575 | </tr> | 575 | </tr> |
631 | 576 | <tr> | 576 | <tr> |
632 | 577 | <td> | 577 | <td> |
634 | 578 | <para style="TextInformationN" alignment="LEFT">-</para> | 578 | <para style="TextInformation" alignment="LEFT">[[ line.comment or '-' ]]</para> |
635 | 579 | </td> | 579 | </td> |
636 | 580 | <td> | 580 | <td> |
637 | 581 | <para style="TextInformationN" alignment="LEFT">-</para> | 581 | <para style="TextInformationN" alignment="LEFT">-</para> |
638 | 582 | 582 | ||
639 | === modified file 'bin/addons/msf_profile/i18n/fr_MF.po' | |||
640 | --- bin/addons/msf_profile/i18n/fr_MF.po 2016-10-25 09:13:52 +0000 | |||
641 | +++ bin/addons/msf_profile/i18n/fr_MF.po 2016-11-09 08:29:21 +0000 | |||
642 | @@ -18099,6 +18099,7 @@ | |||
643 | 18099 | #: report:addons/msf_supply_doc_export/report/report_purchase_order_xls.mako:77 | 18099 | #: report:addons/msf_supply_doc_export/report/report_purchase_order_xls.mako:77 |
644 | 18100 | #: report:addons/msf_supply_doc_export/report/report_request_for_quotation_xls.mako:76 | 18100 | #: report:addons/msf_supply_doc_export/report/report_request_for_quotation_xls.mako:76 |
645 | 18101 | #: report:addons/msf_supply_doc_export/report/report_sale_order_xls.mako:77 | 18101 | #: report:addons/msf_supply_doc_export/report/report_sale_order_xls.mako:77 |
646 | 18102 | #: report:addons/msf_supply_doc_export/report/report_internal_move_xls.mako:70 | ||
647 | 18102 | #: field:purchase.order.line,comment:0 | 18103 | #: field:purchase.order.line,comment:0 |
648 | 18103 | #: field:purchase.order.merged.line,comment:0 | 18104 | #: field:purchase.order.merged.line,comment:0 |
649 | 18104 | #: field:sale.order.line,comment:0 | 18105 | #: field:sale.order.line,comment:0 |
650 | @@ -74689,3 +74690,14 @@ | |||
651 | 74689 | msgid "You can't search on this object without using at least one exact search term (precede your search with the character '=')." | 74690 | msgid "You can't search on this object without using at least one exact search term (precede your search with the character '=')." |
652 | 74690 | msgstr "Vous ne pouvez pas exécuter de recherche sur cet objet sans utiliser au moins une recherche exacte (ajoutez le caractère = devant votre filtre)." | 74691 | msgstr "Vous ne pouvez pas exécuter de recherche sur cet objet sans utiliser au moins une recherche exacte (ajoutez le caractère = devant votre filtre)." |
653 | 74691 | 74692 | ||
654 | 74693 | #. module: msf_instance | ||
655 | 74694 | #: code:addons/msf_instance/analytic.py:45 | ||
656 | 74695 | #, python-format | ||
657 | 74696 | msgid "Domain %s not suported" | ||
658 | 74697 | msgstr "Domaine %s non supporté" | ||
659 | 74698 | |||
660 | 74699 | #. module: msf_instance | ||
661 | 74700 | #: code:addons/msf_instance/analytic.py:48 | ||
662 | 74701 | #, python-format | ||
663 | 74702 | msgid "Operator '%s' not suported" | ||
664 | 74703 | msgstr "Opérateur '%s' non supporté" | ||
665 | 74692 | 74704 | ||
666 | === modified file 'bin/addons/msf_supply_doc_export/report/report_internal_move_xls.mako' | |||
667 | --- bin/addons/msf_supply_doc_export/report/report_internal_move_xls.mako 2013-06-26 09:00:06 +0000 | |||
668 | +++ bin/addons/msf_supply_doc_export/report/report_internal_move_xls.mako 2016-11-09 08:29:21 +0000 | |||
669 | @@ -67,6 +67,7 @@ | |||
670 | 67 | <Row> | 67 | <Row> |
671 | 68 | <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Product Code')}</Data></Cell> | 68 | <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Product Code')}</Data></Cell> |
672 | 69 | <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Product Description')}</Data></Cell> | 69 | <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Product Description')}</Data></Cell> |
673 | 70 | <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Comment')}</Data></Cell> | ||
674 | 70 | <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Quantity')}</Data></Cell> | 71 | <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Quantity')}</Data></Cell> |
675 | 71 | <Cell ss:StyleID="header" ><Data ss:Type="String">${_('UoM')}</Data></Cell> | 72 | <Cell ss:StyleID="header" ><Data ss:Type="String">${_('UoM')}</Data></Cell> |
676 | 72 | <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Kit')}</Data></Cell> | 73 | <Cell ss:StyleID="header" ><Data ss:Type="String">${_('Kit')}</Data></Cell> |
677 | @@ -80,6 +81,7 @@ | |||
678 | 80 | <Row> | 81 | <Row> |
679 | 81 | <Cell ss:StyleID="line" ><Data ss:Type="String">${(move.product_id.default_code or '')|x}</Data></Cell> | 82 | <Cell ss:StyleID="line" ><Data ss:Type="String">${(move.product_id.default_code or '')|x}</Data></Cell> |
680 | 82 | <Cell ss:StyleID="line" ><Data ss:Type="String">${(move.product_id.name or '')|x}</Data></Cell> | 83 | <Cell ss:StyleID="line" ><Data ss:Type="String">${(move.product_id.name or '')|x}</Data></Cell> |
681 | 84 | <Cell ss:StyleID="line" ><Data ss:Type="String">${(move.comment or '')|x}</Data></Cell> | ||
682 | 83 | <Cell ss:StyleID="line" ><Data ss:Type="Number">${(move.product_qty or '')|x}</Data></Cell> | 85 | <Cell ss:StyleID="line" ><Data ss:Type="Number">${(move.product_qty or '')|x}</Data></Cell> |
683 | 84 | <Cell ss:StyleID="line" ><Data ss:Type="String">${(move.product_uom.name or '')|x}</Data></Cell> | 86 | <Cell ss:StyleID="line" ><Data ss:Type="String">${(move.product_uom.name or '')|x}</Data></Cell> |
684 | 85 | <Cell ss:StyleID="line" ><Data ss:Type="String">${(move.composition_list_id.composition_reference or '')|x}</Data></Cell> | 87 | <Cell ss:StyleID="line" ><Data ss:Type="String">${(move.composition_list_id.composition_reference or '')|x}</Data></Cell> |
685 | 86 | 88 | ||
686 | === modified file 'bin/addons/msf_sync_data_server/data/sync_server.message_rule.csv' | |||
687 | --- bin/addons/msf_sync_data_server/data/sync_server.message_rule.csv 2016-10-25 08:35:46 +0000 | |||
688 | +++ bin/addons/msf_sync_data_server/data/sync_server.message_rule.csv 2016-11-09 08:29:21 +0000 | |||
689 | @@ -10,9 +10,9 @@ | |||
690 | 10 | fo_updates_po_ref,TRUE,TRUE,"['name','state','client_order_ref']","['&','&','&',('partner_type','!=','external'),('client_order_ref','!=',False),('split_type_sale_order','=','original_sale_order'),'!',('client_order_ref', 'like', 'invalid_by_recovery')]",partner_id,MISSION,purchase.order.update_fo_ref,sale.order,FO updates PO ref,9,Valid | 10 | fo_updates_po_ref,TRUE,TRUE,"['name','state','client_order_ref']","['&','&','&',('partner_type','!=','external'),('client_order_ref','!=',False),('split_type_sale_order','=','original_sale_order'),'!',('client_order_ref', 'like', 'invalid_by_recovery')]",partner_id,MISSION,purchase.order.update_fo_ref,sale.order,FO updates PO ref,9,Valid |
691 | 11 | update_in_ref,TRUE,TRUE,"['name','shipment_ref']","['&',('shipment_ref','!=',False),'!',('shipment_ref', 'like', 'invalid_by_recovery')]",partner_id,MISSION,stock.picking.update_in_ref,stock.picking,IN updates ref to OUT SHIP,10,Valid | 11 | update_in_ref,TRUE,TRUE,"['name','shipment_ref']","['&',('shipment_ref','!=',False),'!',('shipment_ref', 'like', 'invalid_by_recovery')]",partner_id,MISSION,stock.picking.update_in_ref,stock.picking,IN updates ref to OUT SHIP,10,Valid |
692 | 12 | canceled_fo_cancels_po,TRUE,TRUE,"['name','state', 'client_order_ref']","[('state', '=', 'cancel'), ('client_order_ref', '!=', '')]",partner_id,MISSION,purchase.order.canceled_fo_cancel_po,sale.order,Canceled FO cancels PO,18,Valid | 12 | canceled_fo_cancels_po,TRUE,TRUE,"['name','state', 'client_order_ref']","[('state', '=', 'cancel'), ('client_order_ref', '!=', '')]",partner_id,MISSION,purchase.order.canceled_fo_cancel_po,sale.order,Canceled FO cancels PO,18,Valid |
696 | 13 | partial_shipped_coordo_updates_in_at_project,TRUE,TRUE,"['name', 'state', 'origin', 'partner_type_stock_picking', 'shipment_id/name', 'min_date', 'note', 'move_lines/processed_stock_move', 'move_lines/id', 'move_lines/state','move_lines/original_qty_partial', 'move_lines/line_number', 'move_lines/name', 'move_lines/change_reason', 'move_lines/product_id/id', 'move_lines/product_id/name', 'move_lines/product_qty', 'move_lines/prodlot_id/id','move_lines/prodlot_id/name','move_lines/prodlot_id/life_date', 'move_lines/expired_date', 'move_lines/asset_id/id','move_lines/product_uom/id', 'move_lines/product_uom/name', 'move_lines/date', 'move_lines/date_expected', 'move_lines/note', 'move_lines/location_dest_id/usage']","['&','&','&','&','&','&',('partner_type_stock_picking', '!=', 'external'), ('type', '=', 'out'), ('subtype', 'in', ['standard', 'packing']), ('state', '=', 'done'), ('already_shipped', '=', True), ('do_not_sync', '=', False), ('claim', '=', False)]",partner_id,MISSION,stock.picking.partial_shipped_fo_updates_in_po,stock.picking,Partial shipped at Coordo updates IN at Project,19,Valid | 13 | partial_shipped_coordo_updates_in_at_project,TRUE,TRUE,"['name', 'state', 'origin', 'partner_type_stock_picking', 'shipment_id/name', 'min_date', 'note', 'move_lines/processed_stock_move', 'move_lines/id', 'move_lines/state','move_lines/original_qty_partial', 'move_lines/line_number', 'move_lines/name', 'move_lines/change_reason', 'move_lines/product_id/id', 'move_lines/product_id/name', 'move_lines/product_qty', 'move_lines/prodlot_id/id','move_lines/prodlot_id/name','move_lines/prodlot_id/life_date', 'move_lines/expired_date', 'move_lines/asset_id/id','move_lines/product_uom/id', 'move_lines/product_uom/name', 'move_lines/date', 'move_lines/date_expected', 'move_lines/note', 'move_lines/location_dest_id/usage', 'move_lines/comment']","['&','&','&','&','&','&',('partner_type_stock_picking', '!=', 'external'), ('type', '=', 'out'), ('subtype', 'in', ['standard', 'packing']), ('state', '=', 'done'), ('already_shipped', '=', True), ('do_not_sync', '=', False), ('claim', '=', False)]",partner_id,MISSION,stock.picking.partial_shipped_fo_updates_in_po,stock.picking,Partial shipped at Coordo updates IN at Project,19,Valid |
697 | 14 | moves_from_dpo_closed_coordo_updates_in_at_project,TRUE,TRUE,"['name', 'state', 'origin', 'subtype', 'partner_type_stock_picking', 'shipment_id/name', 'min_date', 'note', 'move_lines/processed_stock_move', 'move_lines/id', 'move_lines/state','move_lines/original_qty_partial', 'move_lines/line_number', 'move_lines/name', 'move_lines/change_reason', 'move_lines/product_id/id', 'move_lines/product_id/name', 'move_lines/product_qty', 'move_lines/prodlot_id/id','move_lines/prodlot_id/name','move_lines/prodlot_id/life_date', 'move_lines/expired_date', 'move_lines/asset_id/id','move_lines/product_uom/id', 'move_lines/product_uom/name', 'move_lines/date', 'move_lines/date_expected', 'move_lines/note', 'move_lines/dpo_line_id']","['&', '&', '&', ('partner_type_stock_picking', '!=', 'external'), ('type', '=', 'out'), ('subtype', 'in', ['picking', 'standard']), ('dpo_out', '=', True)]",partner_id,MISSION,stock.picking.partial_shippped_dpo_updates_in_po,stock.picking,Moves from DPO closed at Coordo updates IN at Project,20,Valid | 14 | moves_from_dpo_closed_coordo_updates_in_at_project,TRUE,TRUE,"['name', 'state', 'origin', 'subtype', 'partner_type_stock_picking', 'shipment_id/name', 'min_date', 'note', 'move_lines/processed_stock_move', 'move_lines/id', 'move_lines/state','move_lines/original_qty_partial', 'move_lines/line_number', 'move_lines/name', 'move_lines/change_reason', 'move_lines/product_id/id', 'move_lines/product_id/name', 'move_lines/product_qty', 'move_lines/prodlot_id/id','move_lines/prodlot_id/name','move_lines/prodlot_id/life_date', 'move_lines/expired_date', 'move_lines/asset_id/id','move_lines/product_uom/id', 'move_lines/product_uom/name', 'move_lines/date', 'move_lines/date_expected', 'move_lines/note', 'move_lines/dpo_line_id', 'move_lines/comment']","['&', '&', '&', ('partner_type_stock_picking', '!=', 'external'), ('type', '=', 'out'), ('subtype', 'in', ['picking', 'standard']), ('dpo_out', '=', True)]",partner_id,MISSION,stock.picking.partial_shippped_dpo_updates_in_po,stock.picking,Moves from DPO closed at Coordo updates IN at Project,20,Valid |
698 | 15 | dpo_service_lines_update_in_at_project,FALSE,TRUE,"['order_id/name', 'order_id/delivery_confirmed_date', 'fake_id', 'origin', 'confirmed_delivery_date', 'name', 'product_uom/id', 'product_uom/name', 'link_sol_id/line_number', 'notes', 'product_qty', 'product_id/name', 'product_id/id']","[('dest_partner_id.partner_type', '=', 'internal'), ('order_id.order_type', '=', 'direct'), ('order_id.state', 'in', ['approved', 'done']), ('product_id.type', 'in', ['service', 'service_recep'])]",dest_partner_id,MISSION,purchase.order.line.confirmed_dpo_service_lines_update_in_po,purchase.order.line,DPO service lines update IN at Project,21,Valid | 15 | dpo_service_lines_update_in_at_project,FALSE,TRUE,"['order_id/name', 'order_id/delivery_confirmed_date', 'fake_id', 'origin', 'confirmed_delivery_date', 'name', 'product_uom/id', 'product_uom/name', 'link_sol_id/line_number', 'notes', 'product_qty', 'product_id/name', 'product_id/id', 'comment']","[('dest_partner_id.partner_type', '=', 'internal'), ('order_id.order_type', '=', 'direct'), ('order_id.state', 'in', ['approved', 'done']), ('product_id.type', 'in', ['service', 'service_recep'])]",dest_partner_id,MISSION,purchase.order.line.confirmed_dpo_service_lines_update_in_po,purchase.order.line,DPO service lines update IN at Project,21,Valid |
699 | 16 | cancel_out_at_coordo_cancels_in_at_project,TRUE,TRUE,"['name', 'state', 'origin']","['&','&','&','&',('partner_type_stock_picking', '!=', 'external'), ('type', '=', 'out'),('state', '=', 'cancel'),('subtype', '=', 'standard'),('do_not_sync', '=', False)]",partner_id,MISSION,stock.picking.cancel_out_pick_cancel_in,stock.picking,Canceled OUT at Coordo cancels IN at Project,22,Valid | 16 | cancel_out_at_coordo_cancels_in_at_project,TRUE,TRUE,"['name', 'state', 'origin']","['&','&','&','&',('partner_type_stock_picking', '!=', 'external'), ('type', '=', 'out'),('state', '=', 'cancel'),('subtype', '=', 'standard'),('do_not_sync', '=', False)]",partner_id,MISSION,stock.picking.cancel_out_pick_cancel_in,stock.picking,Canceled OUT at Coordo cancels IN at Project,22,Valid |
700 | 17 | cancel_pick_at_coordo_cancels_in_at_project,TRUE,TRUE,"['name', 'state', 'origin']","['&','&','&','&','&',('partner_type_stock_picking', '!=', 'external'), ('type', '=', 'out'),('state', '=', 'cancel'),('subtype', '=', 'picking'),('backorder_id', '=', False),('do_not_sync', '=', False)]",partner_id,MISSION,stock.picking.cancel_out_pick_cancel_in,stock.picking,Canceled PICK at Coordo cancels IN at Project,23,Valid | 17 | cancel_pick_at_coordo_cancels_in_at_project,TRUE,TRUE,"['name', 'state', 'origin']","['&','&','&','&','&',('partner_type_stock_picking', '!=', 'external'), ('type', '=', 'out'),('state', '=', 'cancel'),('subtype', '=', 'picking'),('backorder_id', '=', False),('do_not_sync', '=', False)]",partner_id,MISSION,stock.picking.cancel_out_pick_cancel_in,stock.picking,Canceled PICK at Coordo cancels IN at Project,23,Valid |
701 | 18 | cancel_stock_move_at_coordo_cancels_in_at_project,TRUE,TRUE,"['name', 'state', 'origin', 'date_cancel']","['&','&','&','&','&','&',('picking_id.partner_type_stock_picking', '!=', 'external'), ('type', '=', 'out'),('state', '=', 'cancel'),('picking_id.state', '=', 'done'),('picking_id.do_not_sync', '=', False),('to_be_sent', '=', True), '&', '|', ('picking_id.subtype', '=', 'picking'), ('picking_id.subtype', '=', 'standard'), ('picking_id.already_shipped', '=', False)]",partner_id,MISSION,stock.picking.cancel_stock_move_of_pick_cancel_in,stock.move,Canceled stock move cancels IN,24,Valid | 18 | cancel_stock_move_at_coordo_cancels_in_at_project,TRUE,TRUE,"['name', 'state', 'origin', 'date_cancel']","['&','&','&','&','&','&',('picking_id.partner_type_stock_picking', '!=', 'external'), ('type', '=', 'out'),('state', '=', 'cancel'),('picking_id.state', '=', 'done'),('picking_id.do_not_sync', '=', False),('to_be_sent', '=', True), '&', '|', ('picking_id.subtype', '=', 'picking'), ('picking_id.subtype', '=', 'standard'), ('picking_id.already_shipped', '=', False)]",partner_id,MISSION,stock.picking.cancel_stock_move_of_pick_cancel_in,stock.move,Canceled stock move cancels IN,24,Valid |
702 | 19 | 19 | ||
703 | === modified file 'bin/addons/purchase_compare_rfq/wizard/compare_rfq.py' | |||
704 | --- bin/addons/purchase_compare_rfq/wizard/compare_rfq.py 2016-07-21 10:12:49 +0000 | |||
705 | +++ bin/addons/purchase_compare_rfq/wizard/compare_rfq.py 2016-11-09 08:29:21 +0000 | |||
706 | @@ -343,6 +343,7 @@ | |||
707 | 343 | pol_id = wl_brw.rfq_line_id and wl_brw.rfq_line_id.id or False | 343 | pol_id = wl_brw.rfq_line_id and wl_brw.rfq_line_id.id or False |
708 | 344 | tl_obj.write(cr, uid, [wl_brw.tender_line_id.id], { | 344 | tl_obj.write(cr, uid, [wl_brw.tender_line_id.id], { |
709 | 345 | 'purchase_order_line_id': pol_id, | 345 | 'purchase_order_line_id': pol_id, |
710 | 346 | 'comment': wl_brw.rfq_line_id.comment or '', | ||
711 | 346 | }, context=context) | 347 | }, context=context) |
712 | 347 | 348 | ||
713 | 348 | # UF-733: if all tender lines have been compared (have PO Line id), | 349 | # UF-733: if all tender lines have been compared (have PO Line id), |
714 | 349 | 350 | ||
715 | === modified file 'bin/addons/purchase_override/purchase.py' | |||
716 | --- bin/addons/purchase_override/purchase.py 2016-10-26 07:22:24 +0000 | |||
717 | +++ bin/addons/purchase_override/purchase.py 2016-11-09 08:29:21 +0000 | |||
718 | @@ -2148,7 +2148,7 @@ | |||
719 | 2148 | pick_obj = self.pool.get('stock.picking') | 2148 | pick_obj = self.pool.get('stock.picking') |
720 | 2149 | if pick_obj.search_exist(cr, uid, [('purchase_id', 'in', [order.id])], context=context): | 2149 | if pick_obj.search_exist(cr, uid, [('purchase_id', 'in', [order.id])], context=context): |
721 | 2150 | return | 2150 | return |
723 | 2151 | 2151 | ||
724 | 2152 | picking_id = self.pool.get('stock.picking').create(cr, uid, picking_values, context=context) | 2152 | picking_id = self.pool.get('stock.picking').create(cr, uid, picking_values, context=context) |
725 | 2153 | todo_moves = [] | 2153 | todo_moves = [] |
726 | 2154 | for order_line in order.order_line: | 2154 | for order_line in order.order_line: |
727 | @@ -2196,6 +2196,7 @@ | |||
728 | 2196 | 'date': order_line.confirmed_delivery_date, | 2196 | 'date': order_line.confirmed_delivery_date, |
729 | 2197 | 'date_expected': order_line.confirmed_delivery_date, | 2197 | 'date_expected': order_line.confirmed_delivery_date, |
730 | 2198 | 'line_number': order_line.line_number, | 2198 | 'line_number': order_line.line_number, |
731 | 2199 | 'comment': order_line.comment, | ||
732 | 2199 | } | 2200 | } |
733 | 2200 | 2201 | ||
734 | 2201 | if reason_type_id: | 2202 | if reason_type_id: |
735 | @@ -3066,7 +3067,7 @@ | |||
736 | 3066 | 3067 | ||
737 | 3067 | # utp-518:we write the comment from the sale.order.line on the PO line through the procurement (only for the create!!) | 3068 | # utp-518:we write the comment from the sale.order.line on the PO line through the procurement (only for the create!!) |
738 | 3068 | po_procurement_id = vals.get('procurement_id', False) | 3069 | po_procurement_id = vals.get('procurement_id', False) |
740 | 3069 | if po_procurement_id: | 3070 | if po_procurement_id and not vals.get('comment'): |
741 | 3070 | sale_id = sol_obj.search(cr, uid, [('procurement_id', '=', po_procurement_id)], context=context) | 3071 | sale_id = sol_obj.search(cr, uid, [('procurement_id', '=', po_procurement_id)], context=context) |
742 | 3071 | if sale_id: | 3072 | if sale_id: |
743 | 3072 | comment_so = sol_obj.read(cr, uid, sale_id, ['comment'], context=context)[0]['comment'] | 3073 | comment_so = sol_obj.read(cr, uid, sale_id, ['comment'], context=context)[0]['comment'] |
744 | 3073 | 3074 | ||
745 | === modified file 'bin/addons/sale_override/sale.py' | |||
746 | --- bin/addons/sale_override/sale.py 2016-08-22 13:55:25 +0000 | |||
747 | +++ bin/addons/sale_override/sale.py 2016-11-09 08:29:21 +0000 | |||
748 | @@ -1911,6 +1911,7 @@ | |||
749 | 1911 | 'price_currency_id': order.procurement_request and order.functional_currency_id.id or order.pricelist_id.currency_id.id, | 1911 | 'price_currency_id': order.procurement_request and order.functional_currency_id.id or order.pricelist_id.currency_id.id, |
750 | 1912 | 'price_unit': order.procurement_request and line.cost_price or line.price_unit, | 1912 | 'price_unit': order.procurement_request and line.cost_price or line.price_unit, |
751 | 1913 | 'line_number': line.line_number, | 1913 | 'line_number': line.line_number, |
752 | 1914 | 'comment': line.comment, | ||
753 | 1914 | } | 1915 | } |
754 | 1915 | 1916 | ||
755 | 1916 | if line.order_id.procurement_request and line.order_id.location_requestor_id.usage == 'customer' and not line.product_id and line.comment: | 1917 | if line.order_id.procurement_request and line.order_id.location_requestor_id.usage == 'customer' and not line.product_id and line.comment: |
756 | 1917 | 1918 | ||
757 | === modified file 'bin/addons/sourcing/procurement_order.py' | |||
758 | --- bin/addons/sourcing/procurement_order.py 2016-08-22 13:55:25 +0000 | |||
759 | +++ bin/addons/sourcing/procurement_order.py 2016-11-09 08:29:21 +0000 | |||
760 | @@ -124,6 +124,9 @@ | |||
761 | 124 | if procurement.po_cft in ('cft', 'rfq') and procurement.price_unit: | 124 | if procurement.po_cft in ('cft', 'rfq') and procurement.price_unit: |
762 | 125 | line.update({'price_unit': procurement.price_unit}) | 125 | line.update({'price_unit': procurement.price_unit}) |
763 | 126 | 126 | ||
764 | 127 | if procurement.tender_line_id and procurement.tender_line_id.comment: | ||
765 | 128 | line['comment'] = procurement.tender_line_id | ||
766 | 129 | |||
767 | 127 | if not line.get('price_unit', False): | 130 | if not line.get('price_unit', False): |
768 | 128 | cur_id = self.pool.get('res.users').browse(cr, uid, uid, context=context).company_id.currency_id.id | 131 | cur_id = self.pool.get('res.users').browse(cr, uid, uid, context=context).company_id.currency_id.id |
769 | 129 | if 'pricelist' in kwargs: | 132 | if 'pricelist' in kwargs: |
770 | 130 | 133 | ||
771 | === modified file 'bin/addons/stock_override/report/delivery_order.rml' | |||
772 | --- bin/addons/stock_override/report/delivery_order.rml 2016-07-28 12:21:46 +0000 | |||
773 | +++ bin/addons/stock_override/report/delivery_order.rml 2016-11-09 08:29:21 +0000 | |||
774 | @@ -177,7 +177,7 @@ | |||
775 | 177 | 177 | ||
776 | 178 | 178 | ||
777 | 179 | <section> | 179 | <section> |
779 | 180 | <blockTable colWidths="25.0,70.0,120.0,60.0,45.0,40.0,70.0,70.0,70.0,80.0,80.0,80.0" style="LineHeader" repeatRows="1"> | 180 | <blockTable colWidths="20.0,70.0,120.0,50.0,60.0,45.0,40.0,70.0,70.0,70.0,65.0,65.0,65.0" style="LineHeader" repeatRows="1"> |
780 | 181 | <tr> | 181 | <tr> |
781 | 182 | <td> | 182 | <td> |
782 | 183 | <para style="LHeader">Line</para> | 183 | <para style="LHeader">Line</para> |
783 | @@ -189,6 +189,9 @@ | |||
784 | 189 | <para style="LHeader">Product Name</para> | 189 | <para style="LHeader">Product Name</para> |
785 | 190 | </td> | 190 | </td> |
786 | 191 | <td> | 191 | <td> |
787 | 192 | <para style="LHeader">CommentS</para> | ||
788 | 193 | </td> | ||
789 | 194 | <td> | ||
790 | 192 | <para style="LHeader">Kit</para> | 195 | <para style="LHeader">Kit</para> |
791 | 193 | </td> | 196 | </td> |
792 | 194 | <td> | 197 | <td> |
793 | @@ -229,6 +232,9 @@ | |||
794 | 229 | <para style="Line">[[ line.product_id.name ]]</para> | 232 | <para style="Line">[[ line.product_id.name ]]</para> |
795 | 230 | </td> | 233 | </td> |
796 | 231 | <td> | 234 | <td> |
797 | 235 | <para style="Line">[[ line.comment ]]</para> | ||
798 | 236 | </td> | ||
799 | 237 | <td> | ||
800 | 232 | <para style="Line">[[ line.composition_list_id.name ]]</para> | 238 | <para style="Line">[[ line.composition_list_id.name ]]</para> |
801 | 233 | </td> | 239 | </td> |
802 | 234 | <td> | 240 | <td> |
803 | @@ -253,7 +259,7 @@ | |||
804 | 253 | <para style="Line">[[ line.location_dest_id.name ]]</para> | 259 | <para style="Line">[[ line.location_dest_id.name ]]</para> |
805 | 254 | </td> | 260 | </td> |
806 | 255 | <td> | 261 | <td> |
808 | 256 | <para style="Line">[[ formatLang(line.date, date_time=True) ]]</para> | 262 | <para style="Line">[[ formatLang(line.date[:10], date=True) ]]</para> |
809 | 257 | </td> | 263 | </td> |
810 | 258 | </tr> | 264 | </tr> |
811 | 259 | </blockTable> | 265 | </blockTable> |
812 | 260 | 266 | ||
813 | === modified file 'bin/addons/stock_override/report/internal_move.rml' | |||
814 | --- bin/addons/stock_override/report/internal_move.rml 2015-03-02 17:03:58 +0000 | |||
815 | +++ bin/addons/stock_override/report/internal_move.rml 2016-11-09 08:29:21 +0000 | |||
816 | @@ -180,7 +180,7 @@ | |||
817 | 180 | <setNextTemplate name="second" /> | 180 | <setNextTemplate name="second" /> |
818 | 181 | 181 | ||
819 | 182 | <section> | 182 | <section> |
821 | 183 | <blockTable colWidths="25.0,70.0,120.0,60.0,45.0,40.0,70.0,70.0,70.0,80.0,80.0,80.0" style="LineHeader" repeatRows="1"> | 183 | <blockTable colWidths="20.0,70.0,120.0,50.0,60.0,45.0,40.0,70.0,70.0,70.0,65.0,65.0,65.0" style="LineHeader" repeatRows="1"> |
822 | 184 | <tr> | 184 | <tr> |
823 | 185 | <td> | 185 | <td> |
824 | 186 | <para style="LHeader">Line</para> | 186 | <para style="LHeader">Line</para> |
825 | @@ -192,6 +192,9 @@ | |||
826 | 192 | <para style="LHeader">Product Name</para> | 192 | <para style="LHeader">Product Name</para> |
827 | 193 | </td> | 193 | </td> |
828 | 194 | <td> | 194 | <td> |
829 | 195 | <para style="LHeader">Comment</para> | ||
830 | 196 | </td> | ||
831 | 197 | <td> | ||
832 | 195 | <para style="LHeader">Kit</para> | 198 | <para style="LHeader">Kit</para> |
833 | 196 | </td> | 199 | </td> |
834 | 197 | <td> | 200 | <td> |
835 | @@ -231,6 +234,9 @@ | |||
836 | 231 | <para style="Line">[[ line.product_id.name ]]</para> | 234 | <para style="Line">[[ line.product_id.name ]]</para> |
837 | 232 | </td> | 235 | </td> |
838 | 233 | <td> | 236 | <td> |
839 | 237 | <para style="Line">[[ line.comment ]]</para> | ||
840 | 238 | </td> | ||
841 | 239 | <td> | ||
842 | 234 | <para style="Line">[[ line.composition_list_id.name ]]</para> | 240 | <para style="Line">[[ line.composition_list_id.name ]]</para> |
843 | 235 | </td> | 241 | </td> |
844 | 236 | <td> | 242 | <td> |
845 | @@ -255,7 +261,7 @@ | |||
846 | 255 | <para style="Line">[[ line.location_dest_id.name ]]</para> | 261 | <para style="Line">[[ line.location_dest_id.name ]]</para> |
847 | 256 | </td> | 262 | </td> |
848 | 257 | <td> | 263 | <td> |
850 | 258 | <para style="Line">[[ formatLang(line.date, date_time=True) ]]</para> | 264 | <para style="Line">[[ formatLang(line.date[:10], date=True) ]]</para> |
851 | 259 | </td> | 265 | </td> |
852 | 260 | </tr> | 266 | </tr> |
853 | 261 | </blockTable> | 267 | </blockTable> |
854 | 262 | 268 | ||
855 | === modified file 'bin/addons/stock_override/stock_view.xml' | |||
856 | --- bin/addons/stock_override/stock_view.xml 2016-08-03 12:08:12 +0000 | |||
857 | +++ bin/addons/stock_override/stock_view.xml 2016-11-09 08:29:21 +0000 | |||
858 | @@ -335,6 +335,7 @@ | |||
859 | 335 | <tree colors="grey:scrapped == True; red: inactive_product or to_correct_ok or expired_lot" string="Stock Moves" noteditable="fake_state=='assigned'" hide_new_button="context.get('from_wkf')" hide_delete_button="context.get('from_wkf')"> | 335 | <tree colors="grey:scrapped == True; red: inactive_product or to_correct_ok or expired_lot" string="Stock Moves" noteditable="fake_state=='assigned'" hide_new_button="context.get('from_wkf')" hide_delete_button="context.get('from_wkf')"> |
860 | 336 | <field name="line_number"/> | 336 | <field name="line_number"/> |
861 | 337 | <field name="product_id" /> | 337 | <field name="product_id" /> |
862 | 338 | <field name="comment" /> | ||
863 | 338 | <field name="composition_list_id"/> | 339 | <field name="composition_list_id"/> |
864 | 339 | <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/> | 340 | <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/> |
865 | 340 | <field name="product_uom" string="UoM"/> | 341 | <field name="product_uom" string="UoM"/> |
866 | @@ -405,6 +406,7 @@ | |||
867 | 405 | invisible="1" | 406 | invisible="1" |
868 | 406 | /> | 407 | /> |
869 | 407 | <field name="product_packaging" domain="[('product_id','=',product_id)]" colspan="4" invisible="1"/> | 408 | <field name="product_packaging" domain="[('product_id','=',product_id)]" colspan="4" invisible="1"/> |
870 | 409 | <field name="comment" colspan="4" /> | ||
871 | 408 | </group> | 410 | </group> |
872 | 409 | 411 | ||
873 | 410 | <group colspan="2" col="2"> | 412 | <group colspan="2" col="2"> |
874 | @@ -594,6 +596,7 @@ | |||
875 | 594 | <field name="line_number"/> | 596 | <field name="line_number"/> |
876 | 595 | <field name="product_id" context="{'available_for_restriction': 'consumption', 'search_default_not_restricted': 1}" /> | 597 | <field name="product_id" context="{'available_for_restriction': 'consumption', 'search_default_not_restricted': 1}" /> |
877 | 596 | <field name="inactive_product" invisible="1" /> | 598 | <field name="inactive_product" invisible="1" /> |
878 | 599 | <field name="comment" /> | ||
879 | 597 | <field name="product_qty"/> | 600 | <field name="product_qty"/> |
880 | 598 | <field name="product_uom" string="UoM"/> | 601 | <field name="product_uom" string="UoM"/> |
881 | 599 | <field name="scrapped" invisible="1"/> | 602 | <field name="scrapped" invisible="1"/> |
882 | @@ -644,6 +647,7 @@ | |||
883 | 644 | attrs="{'readonly': [('from_wkf_line', '=', True)]}" | 647 | attrs="{'readonly': [('from_wkf_line', '=', True)]}" |
884 | 645 | colspan="2" | 648 | colspan="2" |
885 | 646 | domain="[('uom_by_product', '=', product_id)]"/> | 649 | domain="[('uom_by_product', '=', product_id)]"/> |
886 | 650 | <field name="comment" colspan="4" /> | ||
887 | 647 | <field name="product_uos_qty" on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" colspan="4" invisible="1"/> | 651 | <field name="product_uos_qty" on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" colspan="4" invisible="1"/> |
888 | 648 | <field name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="4" invisible="1"/> | 652 | <field name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="4" invisible="1"/> |
889 | 649 | <field name="product_packaging" domain="[('product_id','=',product_id)]" colspan="4" invisible="1" /> | 653 | <field name="product_packaging" domain="[('product_id','=',product_id)]" colspan="4" invisible="1" /> |
890 | @@ -879,6 +883,7 @@ | |||
891 | 879 | <tree colors="grey:scrapped==True; red: inactive_product == True or product_tbd == True" string="Stock Moves" noteditable="fake_state in ('assigned', 'cancel')" hide_new_button="context.get('from_wkf')" hide_delete_button="True"> | 883 | <tree colors="grey:scrapped==True; red: inactive_product == True or product_tbd == True" string="Stock Moves" noteditable="fake_state in ('assigned', 'cancel')" hide_new_button="context.get('from_wkf')" hide_delete_button="True"> |
892 | 880 | <field name="line_number"/> | 884 | <field name="line_number"/> |
893 | 881 | <field name="product_id" context="{'available_for_restriction': 'picking', 'search_default_not_restricted': 1}"/> | 885 | <field name="product_id" context="{'available_for_restriction': 'picking', 'search_default_not_restricted': 1}"/> |
894 | 886 | <field name="comment" /> | ||
895 | 882 | <field name="composition_list_id"/> | 887 | <field name="composition_list_id"/> |
896 | 883 | <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/> | 888 | <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/> |
897 | 884 | <field name="product_uom" string="UoM"/> | 889 | <field name="product_uom" string="UoM"/> |
898 | 885 | 890 | ||
899 | === modified file 'bin/addons/sync_so/picking.py' | |||
900 | --- bin/addons/sync_so/picking.py 2016-08-23 12:54:03 +0000 | |||
901 | +++ bin/addons/sync_so/picking.py 2016-11-09 08:29:21 +0000 | |||
902 | @@ -201,6 +201,7 @@ | |||
903 | 201 | 'name': data['name'], | 201 | 'name': data['name'], |
904 | 202 | 'quantity': data['product_qty'] or 0.0, | 202 | 'quantity': data['product_qty'] or 0.0, |
905 | 203 | 'note': data['note'], | 203 | 'note': data['note'], |
906 | 204 | 'comment': data.get('comment'), | ||
907 | 204 | } | 205 | } |
908 | 205 | return result | 206 | return result |
909 | 206 | 207 | ||
910 | @@ -337,6 +338,7 @@ | |||
911 | 337 | ln = data.get('line_number') | 338 | ln = data.get('line_number') |
912 | 338 | # UF-2148: if the line contains 0 qty, just ignore it! | 339 | # UF-2148: if the line contains 0 qty, just ignore it! |
913 | 339 | qty = data.get('quantity', 0) | 340 | qty = data.get('quantity', 0) |
914 | 341 | comment = data.get('comment', False) | ||
915 | 340 | if qty == 0: | 342 | if qty == 0: |
916 | 341 | message = "Line number " + str(ln) + " with quantity 0 is ignored!" | 343 | message = "Line number " + str(ln) + " with quantity 0 is ignored!" |
917 | 342 | self._logger.info(message) | 344 | self._logger.info(message) |
918 | @@ -453,10 +455,16 @@ | |||
919 | 453 | (line.prodlot_id and line.prodlot_id.id == data.get('prodlot_id')) or (not line.prodlot_id and not data.get('prodlot_id')) and \ | 455 | (line.prodlot_id and line.prodlot_id.id == data.get('prodlot_id')) or (not line.prodlot_id and not data.get('prodlot_id')) and \ |
920 | 454 | (line.asset_id and line.asset_id.id == data.get('asset_id')) or (not line.asset_id and not data.get('asset_id')): | 456 | (line.asset_id and line.asset_id.id == data.get('asset_id')) or (not line.asset_id and not data.get('asset_id')): |
921 | 455 | move_proc.write(cr, uid, [line.id], data, context=context) | 457 | move_proc.write(cr, uid, [line.id], data, context=context) |
922 | 458 | if data.get('comment'): | ||
923 | 459 | move_proc.write(cr, uid, line.id, { | ||
924 | 460 | 'comment': data['comment'] | ||
925 | 461 | }, context=context) | ||
926 | 456 | break | 462 | break |
927 | 457 | else: | 463 | else: |
928 | 458 | data['ordered_quantity'] = data['quantity'] | 464 | data['ordered_quantity'] = data['quantity'] |
930 | 459 | move_proc.create(cr, uid, data, context=context) | 465 | move_proc_id = move_proc.create(cr, uid, data, context=context) |
931 | 466 | if data.get('comment'): | ||
932 | 467 | move_proc.write(cr, uid, move_proc_id, {'comment': data['comment']}, context=context) | ||
933 | 460 | #US-1294: Add this move and quantity as already shipped, since it's added to the wizard for processing | 468 | #US-1294: Add this move and quantity as already shipped, since it's added to the wizard for processing |
934 | 461 | self._add_to_shipped_moves(already_shipped_moves, move_id, data['quantity']) | 469 | self._add_to_shipped_moves(already_shipped_moves, move_id, data['quantity']) |
935 | 462 | 470 | ||
936 | 463 | 471 | ||
937 | === modified file 'bin/addons/sync_so/purchase.py' | |||
938 | --- bin/addons/sync_so/purchase.py 2016-10-24 15:41:52 +0000 | |||
939 | +++ bin/addons/sync_so/purchase.py 2016-11-09 08:29:21 +0000 | |||
940 | @@ -74,6 +74,7 @@ | |||
941 | 74 | 'date': line_dict.get('confirmed_delivery_date', time.strftime('%Y-%m-%d %H:%M:%S')), | 74 | 'date': line_dict.get('confirmed_delivery_date', time.strftime('%Y-%m-%d %H:%M:%S')), |
942 | 75 | 'change_reason': False, | 75 | 'change_reason': False, |
943 | 76 | 'product_id': line_dict.get('product_id'), | 76 | 'product_id': line_dict.get('product_id'), |
944 | 77 | 'comment': line_dict.get('comment'), | ||
945 | 77 | }], | 78 | }], |
946 | 78 | } | 79 | } |
947 | 79 | 80 | ||
948 | 80 | 81 | ||
949 | === modified file 'bin/addons/tender_flow/tender_flow.py' | |||
950 | --- bin/addons/tender_flow/tender_flow.py 2016-08-18 08:32:03 +0000 | |||
951 | +++ bin/addons/tender_flow/tender_flow.py 2016-11-09 08:29:21 +0000 | |||
952 | @@ -375,6 +375,7 @@ | |||
953 | 375 | 'notes': line.product_id.description_purchase, | 375 | 'notes': line.product_id.description_purchase, |
954 | 376 | 'order_id': po_id, | 376 | 'order_id': po_id, |
955 | 377 | 'tender_line_id': line.id, | 377 | 'tender_line_id': line.id, |
956 | 378 | 'comment': line.comment, | ||
957 | 378 | } | 379 | } |
958 | 379 | # create purchase order line | 380 | # create purchase order line |
959 | 380 | pol_id = pol_obj.create(cr, uid, values, context=context) | 381 | pol_id = pol_obj.create(cr, uid, values, context=context) |
960 | @@ -651,6 +652,7 @@ | |||
961 | 651 | 'date_planned': line.date_planned, | 652 | 'date_planned': line.date_planned, |
962 | 652 | 'move_dest_id': False, | 653 | 'move_dest_id': False, |
963 | 653 | 'notes': line.product_id.description_purchase, | 654 | 'notes': line.product_id.description_purchase, |
964 | 655 | 'comment': line.comment, | ||
965 | 654 | })) | 656 | })) |
966 | 655 | 657 | ||
967 | 656 | # fill data corresponding to po creation | 658 | # fill data corresponding to po creation |