Merge lp:~matjaz-6/openerpsl/openerpsl_02_17 into lp:openerpsl/7.0
- openerpsl_02_17
- Merge into 7.0
Proposed by
Matjaz Kalic
Status: | Merged |
---|---|
Merged at revision: | 373 |
Proposed branch: | lp:~matjaz-6/openerpsl/openerpsl_02_17 |
Merge into: | lp:openerpsl/7.0 |
Diff against target: |
240 lines (+79/-68) 4 files modified
mrp_procurement_qty/bakery_production_view.xml (+1/-1) mrp_procurement_qty/report/delivery_order_return_report.rml (+72/-64) mrp_procurement_qty/security/ir.model.access.csv (+2/-2) mrp_procurement_qty/wizard/delivery_order_return.py (+4/-1) |
To merge this branch: | bzr merge lp:~matjaz-6/openerpsl/openerpsl_02_17 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mentis | Pending | ||
Review via email: mp+212411@code.launchpad.net |
Commit message
Description of the change
[MOD] delivery_
[MOD] bakery_production (security changed, running status can change only admin)
To post a comment you must log in.
- 373. By Dušan Laznik (Mentis)
-
Matjaz 2014-03-24 [MOD] delivery_
order_return (EAN code added to report, fix country translation)
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'mrp_procurement_qty/bakery_production_view.xml' | |||
2 | --- mrp_procurement_qty/bakery_production_view.xml 2014-03-19 15:57:31 +0000 | |||
3 | +++ mrp_procurement_qty/bakery_production_view.xml 2014-03-24 13:11:25 +0000 | |||
4 | @@ -88,7 +88,7 @@ | |||
5 | 88 | <field name="duration"/> | 88 | <field name="duration"/> |
6 | 89 | </group> | 89 | </group> |
7 | 90 | <group string="Details"> | 90 | <group string="Details"> |
9 | 91 | <field name="running"/> | 91 | <field name="running" groups="base.group_erp_manager"/> |
10 | 92 | <field name="misc"/> | 92 | <field name="misc"/> |
11 | 93 | <field name="error"/> | 93 | <field name="error"/> |
12 | 94 | </group> | 94 | </group> |
13 | 95 | 95 | ||
14 | === modified file 'mrp_procurement_qty/report/delivery_order_return_report.rml' | |||
15 | --- mrp_procurement_qty/report/delivery_order_return_report.rml 2014-01-31 13:02:06 +0000 | |||
16 | +++ mrp_procurement_qty/report/delivery_order_return_report.rml 2014-03-24 13:11:25 +0000 | |||
17 | @@ -36,6 +36,7 @@ | |||
18 | 36 | <lineStyle kind="LINEBELOW" colorName="#000000" start="7,-1" stop="7,-1"/> | 36 | <lineStyle kind="LINEBELOW" colorName="#000000" start="7,-1" stop="7,-1"/> |
19 | 37 | <lineStyle kind="LINEBELOW" colorName="#000000" start="8,-1" stop="8,-1"/> | 37 | <lineStyle kind="LINEBELOW" colorName="#000000" start="8,-1" stop="8,-1"/> |
20 | 38 | <lineStyle kind="LINEBELOW" colorName="#000000" start="9,-1" stop="9,-1"/> | 38 | <lineStyle kind="LINEBELOW" colorName="#000000" start="9,-1" stop="9,-1"/> |
21 | 39 | <lineStyle kind="LINEBELOW" colorName="#000000" start="10,-1" stop="10,-1"/> | ||
22 | 39 | </blockTableStyle> | 40 | </blockTableStyle> |
23 | 40 | <blockTableStyle id="Move_Line_Contect_Assign_State"> | 41 | <blockTableStyle id="Move_Line_Contect_Assign_State"> |
24 | 41 | <blockAlignment value="LEFT"/> | 42 | <blockAlignment value="LEFT"/> |
25 | @@ -50,6 +51,7 @@ | |||
26 | 50 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="7,-1" stop="7,-1"/> | 51 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="7,-1" stop="7,-1"/> |
27 | 51 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="8,-1" stop="8,-1"/> | 52 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="8,-1" stop="8,-1"/> |
28 | 52 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="9,-1" stop="9,-1"/> | 53 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="9,-1" stop="9,-1"/> |
29 | 54 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="10,-1" stop="10,-1"/> | ||
30 | 53 | </blockTableStyle> | 55 | </blockTableStyle> |
31 | 54 | <blockTableStyle id="Table_sum_price"> | 56 | <blockTableStyle id="Table_sum_price"> |
32 | 55 | <blockAlignment value="LEFT"/> | 57 | <blockAlignment value="LEFT"/> |
33 | @@ -78,13 +80,13 @@ | |||
34 | 78 | <paraStyle name="P7" fontName="Helvetica-Bold" fontSize="11.0" leading="14" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> | 80 | <paraStyle name="P7" fontName="Helvetica-Bold" fontSize="11.0" leading="14" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> |
35 | 79 | <paraStyle name="P8" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> | 81 | <paraStyle name="P8" fontName="Helvetica-Bold" fontSize="9.0" leading="11" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> |
36 | 80 | <paraStyle name="P9" fontName="Helvetica-Bold" fontSize="2.0" leading="3" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> | 82 | <paraStyle name="P9" fontName="Helvetica-Bold" fontSize="2.0" leading="3" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> |
44 | 81 | <paraStyle name="P10" fontName="Helvetica" fontSize="7.0" leading="9" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> | 83 | <paraStyle name="P10" fontName="Helvetica" fontSize="8.0" leading="10" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/> |
45 | 82 | <paraStyle name="P11" fontName="Helvetica" fontSize="7.0" leading="9" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/> | 84 | <paraStyle name="P11" fontName="Helvetica-Bold" fontSize="5.0" leading="7" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> |
46 | 83 | <paraStyle name="P12" fontName="Helvetica-Bold" fontSize="6.0" leading="8" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/> | 85 | <paraStyle name="P12" fontName="Helvetica-Bold" fontSize="5.0" leading="7" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/> |
47 | 84 | <paraStyle name="P13" fontName="Helvetica-Bold" fontSize="6.0" leading="8" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/> | 86 | <paraStyle name="P13" fontName="Helvetica-Bold" fontSize="5.0" leading="7" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/> |
48 | 85 | <paraStyle name="P14" fontName="Helvetica-Bold" fontSize="6.0" leading="8" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> | 87 | <paraStyle name="P14" fontName="Helvetica-Bold" fontSize="5.0" leading="7" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/> |
49 | 86 | <paraStyle name="P15" fontName="Helvetica-Bold" fontSize="6.0" leading="8" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/> | 88 | <paraStyle name="P15" fontName="Helvetica" fontSize="5.0" leading="7" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> |
50 | 87 | <paraStyle name="P16" fontName="Helvetica" fontSize="8.0" leading="10" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/> | 89 | <paraStyle name="P16" fontName="Helvetica" fontSize="7.0" leading="9" alignment="LEFT" spaceBefore="0.0" spaceAfter="0.0"/> |
51 | 88 | <paraStyle name="P17" fontName="Helvetica" fontSize="7.0" leading="9" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/> | 90 | <paraStyle name="P17" fontName="Helvetica" fontSize="7.0" leading="9" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/> |
52 | 89 | <paraStyle name="Standard" fontName="Helvetica"/> | 91 | <paraStyle name="Standard" fontName="Helvetica"/> |
53 | 90 | <paraStyle name="Heading" fontName="Helvetica" fontSize="14.0" leading="17" spaceBefore="12.0" spaceAfter="6.0"/> | 92 | <paraStyle name="Heading" fontName="Helvetica" fontSize="14.0" leading="17" spaceBefore="12.0" spaceAfter="6.0"/> |
54 | @@ -181,7 +183,7 @@ | |||
55 | 181 | </td> | 183 | </td> |
56 | 182 | </tr> | 184 | </tr> |
57 | 183 | </blockTable> | 185 | </blockTable> |
59 | 184 | <para style="P16"> | 186 | <para style="P10"> |
60 | 185 | <font color="white"> </font> | 187 | <font color="white"> </font> |
61 | 186 | </para> | 188 | </para> |
62 | 187 | </td> | 189 | </td> |
63 | @@ -190,37 +192,40 @@ | |||
64 | 190 | <para style="terp_default_5cm_Above_Space"> | 192 | <para style="terp_default_5cm_Above_Space"> |
65 | 191 | <font color="white"> </font> | 193 | <font color="white"> </font> |
66 | 192 | </para> | 194 | </para> |
68 | 193 | <blockTable colWidths="176.0,28.0,38.0,38.0,41.0,42.0,37.0,43.0,37.0,38.0" repeatRows="1" style="Move_Line_Header"> | 195 | <blockTable colWidths="47.0,181.0,26.0,40.0,37.0,26.0,35.0,34.0,35.0,27.0,28.0" repeatRows="1" style="Move_Line_Header"> |
69 | 194 | <tr> | 196 | <tr> |
70 | 195 | <td> | 197 | <td> |
99 | 196 | <para style="P14">Opis</para> | 198 | <para style="P11">EAN</para> |
100 | 197 | </td> | 199 | </td> |
101 | 198 | <td> | 200 | <td> |
102 | 199 | <para style="P15">EM</para> | 201 | <para style="P11">Opis</para> |
103 | 200 | </td> | 202 | </td> |
104 | 201 | <td> | 203 | <td> |
105 | 202 | <para style="P15">Naročena količina</para> | 204 | <para style="P12">EM</para> |
106 | 203 | </td> | 205 | </td> |
107 | 204 | <td> | 206 | <td> |
108 | 205 | <para style="P12">Dobavljena količina</para> | 207 | <para style="P12">Naročena količina</para> |
109 | 206 | </td> | 208 | </td> |
110 | 207 | <td> | 209 | <td> |
111 | 208 | <para style="P13">Zadnje vračilo</para> | 210 | <para style="P13">Dobavljena količina</para> |
112 | 209 | </td> | 211 | </td> |
113 | 210 | <td> | 212 | <td> |
114 | 211 | <para style="P13">Za obračun</para> | 213 | <para style="P14">Zadnje vračilo</para> |
115 | 212 | </td> | 214 | </td> |
116 | 213 | <td> | 215 | <td> |
117 | 214 | <para style="P13">Cena</para> | 216 | <para style="P14">Za obračun</para> |
118 | 215 | </td> | 217 | </td> |
119 | 216 | <td> | 218 | <td> |
120 | 217 | <para style="P13">Vrednost</para> | 219 | <para style="P14">Cena</para> |
121 | 218 | </td> | 220 | </td> |
122 | 219 | <td> | 221 | <td> |
123 | 220 | <para style="P12">Novo naročilo</para> | 222 | <para style="P14">Vrednost</para> |
124 | 221 | </td> | 223 | </td> |
125 | 222 | <td> | 224 | <td> |
126 | 223 | <para style="P12">Novo vračilo</para> | 225 | <para style="P13">Novo naročilo</para> |
127 | 226 | </td> | ||
128 | 227 | <td> | ||
129 | 228 | <para style="P13">Novo vračilo</para> | ||
130 | 224 | </td> | 229 | </td> |
131 | 225 | </tr> | 230 | </tr> |
132 | 226 | </blockTable> | 231 | </blockTable> |
133 | @@ -228,39 +233,42 @@ | |||
134 | 228 | <para style="P2"> | 233 | <para style="P2"> |
135 | 229 | <font face="Helvetica" size="8.0">[[ repeatIn(o['moves'], 'line') ]]</font> | 234 | <font face="Helvetica" size="8.0">[[ repeatIn(o['moves'], 'line') ]]</font> |
136 | 230 | </para> | 235 | </para> |
138 | 231 | <blockTable colWidths="177.0,28.0,38.0,39.0,41.0,42.0,37.0,43.0,37.0,38.0" style="Move_Line_Contect_Assign_State"> | 236 | <blockTable colWidths="48.0,182.0,26.0,40.0,37.0,26.0,35.0,34.0,35.0,28.0,27.0" style="Move_Line_Contect_Assign_State"> |
139 | 232 | <tr> | 237 | <tr> |
140 | 233 | <td> | 238 | <td> |
166 | 234 | <para style="P10">[[ line[1]['desc'] ]]</para> | 239 | <para style="P15">[[ line[1]['ean'] ]]</para> |
167 | 235 | </td> | 240 | </td> |
168 | 236 | <td> | 241 | <td> |
169 | 237 | <para style="P11">[[ line[1]['em'] ]]</para> | 242 | <para style="P16">[[ line[1]['desc'] ]]</para> |
170 | 238 | </td> | 243 | </td> |
171 | 239 | <td> | 244 | <td> |
172 | 240 | <para style="P11">[[ formatLang(line[1]['qty_ordered']) ]]</para> | 245 | <para style="P17">[[ line[1]['em'] ]]</para> |
173 | 241 | </td> | 246 | </td> |
174 | 242 | <td> | 247 | <td> |
175 | 243 | <para style="P11">[[ formatLang(line[1]['qty']) ]]</para> | 248 | <para style="P17">[[ formatLang(line[1]['qty_ordered']) ]]</para> |
176 | 244 | </td> | 249 | </td> |
177 | 245 | <td> | 250 | <td> |
178 | 246 | <para style="P11">[[ line[1]['qty_returned'] ]]</para> | 251 | <para style="P17">[[ formatLang(line[1]['qty']) ]]</para> |
179 | 247 | </td> | 252 | </td> |
180 | 248 | <td> | 253 | <td> |
181 | 249 | <para style="P11">[[ line[1]['qty_for_invoice'] ]]</para> | 254 | <para style="P17">[[ line[1]['qty_returned'] ]]</para> |
182 | 250 | </td> | 255 | </td> |
183 | 251 | <td> | 256 | <td> |
184 | 252 | <para style="P11">[[ formatLang(line[1]['price'], digits=get_digits(dp='Product Price')) ]]</para> | 257 | <para style="P17">[[ line[1]['qty_for_invoice'] ]]</para> |
185 | 253 | </td> | 258 | </td> |
186 | 254 | <td> | 259 | <td> |
187 | 255 | <para style="P11">[[ formatLang(line[1]['price_total']) ]]</para> | 260 | <para style="P17">[[ formatLang(line[1]['price'], digits=get_digits(dp='Product Price')) ]]</para> |
188 | 256 | </td> | 261 | </td> |
189 | 257 | <td> | 262 | <td> |
190 | 258 | <para style="P11"> | 263 | <para style="P17">[[ formatLang(line[1]['price_total']) ]]</para> |
191 | 264 | </td> | ||
192 | 265 | <td> | ||
193 | 266 | <para style="P17"> | ||
194 | 259 | <font color="white"> </font> | 267 | <font color="white"> </font> |
195 | 260 | </para> | 268 | </para> |
196 | 261 | </td> | 269 | </td> |
197 | 262 | <td> | 270 | <td> |
199 | 263 | <para style="P11"> | 271 | <para style="P17"> |
200 | 264 | <font color="white"> </font> | 272 | <font color="white"> </font> |
201 | 265 | </para> | 273 | </para> |
202 | 266 | </td> | 274 | </td> |
203 | 267 | 275 | ||
204 | === modified file 'mrp_procurement_qty/report/delivery_order_return_report.sxw' | |||
205 | 268 | Binary files mrp_procurement_qty/report/delivery_order_return_report.sxw 2014-01-31 13:02:06 +0000 and mrp_procurement_qty/report/delivery_order_return_report.sxw 2014-03-24 13:11:25 +0000 differ | 276 | Binary files mrp_procurement_qty/report/delivery_order_return_report.sxw 2014-01-31 13:02:06 +0000 and mrp_procurement_qty/report/delivery_order_return_report.sxw 2014-03-24 13:11:25 +0000 differ |
206 | === modified file 'mrp_procurement_qty/security/ir.model.access.csv' | |||
207 | --- mrp_procurement_qty/security/ir.model.access.csv 2014-03-19 15:57:31 +0000 | |||
208 | +++ mrp_procurement_qty/security/ir.model.access.csv 2014-03-24 13:11:25 +0000 | |||
209 | @@ -1,6 +1,6 @@ | |||
210 | 1 | id,name,model_id/id,group_id/id,perm_read,perm_write,perm_create,perm_unlink | 1 | id,name,model_id/id,group_id/id,perm_read,perm_write,perm_create,perm_unlink |
211 | 2 | access_procurement_order_journal,access_procurement_order_journal,model_procurement_order_journal,,True,True,True,True | 2 | access_procurement_order_journal,access_procurement_order_journal,model_procurement_order_journal,,True,True,True,True |
212 | 3 | access_bakery_process_admin,access_bakery_process_admin,model_bakery_process,base.group_erp_manager,True,True,True,False | 3 | access_bakery_process_admin,access_bakery_process_admin,model_bakery_process,base.group_erp_manager,True,True,True,False |
214 | 4 | access_bakery_process_user,access_bakery_process_user,model_bakery_process,mrp.group_mrp_user,True,False,False,False | 4 | access_bakery_process_user,access_bakery_process_user,model_bakery_process,mrp.group_mrp_user,True,True,True,False |
215 | 5 | access_bakery_production_admin,access_bakery_production_admin,model_bakery_production,base.group_erp_manager,True,True,True,False | 5 | access_bakery_production_admin,access_bakery_production_admin,model_bakery_production,base.group_erp_manager,True,True,True,False |
217 | 6 | access_bakery_production_user,access_bakery_production_user,model_bakery_production,mrp.group_mrp_user,True,False,False,False | 6 | access_bakery_production_user,access_bakery_production_user,model_bakery_production,mrp.group_mrp_user,True,True,True,False |
218 | 7 | 7 | ||
219 | === modified file 'mrp_procurement_qty/wizard/delivery_order_return.py' | |||
220 | --- mrp_procurement_qty/wizard/delivery_order_return.py 2014-02-03 15:28:57 +0000 | |||
221 | +++ mrp_procurement_qty/wizard/delivery_order_return.py 2014-03-24 13:11:25 +0000 | |||
222 | @@ -64,6 +64,8 @@ | |||
223 | 64 | move_ids = move_obj.search(cr, uid, [('picking_id','=',pick.id)], order='product_id') | 64 | move_ids = move_obj.search(cr, uid, [('picking_id','=',pick.id)], order='product_id') |
224 | 65 | for line in move_obj.browse(cr, uid, move_ids): | 65 | for line in move_obj.browse(cr, uid, move_ids): |
225 | 66 | dict_temp = {} | 66 | dict_temp = {} |
226 | 67 | |||
227 | 68 | dict_temp['ean'] = line.product_id.ean13 | ||
228 | 67 | naziv = '['+line.product_id.default_code+'] '+line.product_id.name_template | 69 | naziv = '['+line.product_id.default_code+'] '+line.product_id.name_template |
229 | 68 | if line.product_id.variants: | 70 | if line.product_id.variants: |
230 | 69 | naziv = naziv +' - '+line.product_id.variants | 71 | naziv = naziv +' - '+line.product_id.variants |
231 | @@ -167,7 +169,8 @@ | |||
232 | 167 | dict_data['address_street'] = pick.partner_id.street | 169 | dict_data['address_street'] = pick.partner_id.street |
233 | 168 | dict_data['address_zip'] = pick.partner_id.zip | 170 | dict_data['address_zip'] = pick.partner_id.zip |
234 | 169 | dict_data['address_city'] = pick.partner_id.city | 171 | dict_data['address_city'] = pick.partner_id.city |
236 | 170 | dict_data['address_country'] = pick.partner_id.country_id.name | 172 | trans_country = trans_obj._get_source(cr, uid, None, 'model', context['lang'], pick.partner_id.country_id.name) |
237 | 173 | dict_data['address_country'] = trans_country | ||
238 | 171 | dict_data['date'] = pick.date | 174 | dict_data['date'] = pick.date |
239 | 172 | dict_data['origin'] = pick.origin | 175 | dict_data['origin'] = pick.origin |
240 | 173 | dict_data['note'] = pick.note | 176 | dict_data['note'] = pick.note |