Merge lp:~openerp-dev/openobject-addons/trunk-addons29-jap into lp:openobject-addons
- trunk-addons29-jap
- Merge into trunk
Status: | Work in progress |
---|---|
Proposed branch: | lp:~openerp-dev/openobject-addons/trunk-addons29-jap |
Merge into: | lp:openobject-addons |
Diff against target: |
650 lines (+109/-154) 11 files modified
account/account_invoice_view.xml (+2/-2) account/report/account_general_ledger.rml (+45/-113) account/report/account_print_overdue.rml (+1/-1) account/wizard/account_invoice_refund.py (+1/-1) account_followup/report/account_followup_report.xml (+1/-1) account_voucher/voucher_sales_purchase_view.xml (+2/-2) base_calendar/crm_meeting_view.xml (+6/-2) event/event.py (+17/-12) event/event_view.xml (+25/-10) l10n_be_invoice_bba/invoice.py (+8/-9) portal_event/event_view.xml (+1/-1) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-addons/trunk-addons29-jap |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jignesh Rathod(OpenERP) (community) | Needs Resubmitting | ||
Mustufa Rangwala (Open ERP) (community) | Needs Fixing | ||
Review via email: mp+163286@code.launchpad.net |
Commit message
Description of the change
Hello sir,
Accounting:
Improve in Overdue payments report set curruency symbol in total.
Improve Sales Receipt and Purchase Receipts Total fields in editable view.
Events:
Improve message for event kanvan view.
Rename fields.
Thanks
JAP
- 8703. By Jignesh Rathod(OpenERP)
-
[MERGE] merge wuth latest trunk
Mustufa Rangwala (Open ERP) (mra-tinyerp) wrote : | # |
- 8704. By Jignesh Rathod(OpenERP)
-
[IMP] Changes according to need fixing.
Jignesh Rathod(OpenERP) (jir-openerp) wrote : | # |
Hello Sir ,
I have improve code according to your suggestion.
Thanks.
- 8705. By Jignesh Rathod(OpenERP)
-
[IMP] Changes according to need fixing.
- 8706. By Jignesh Rathod(OpenERP)
-
[MERGE] merge with latest trunk
Unmerged revisions
- 8706. By Jignesh Rathod(OpenERP)
-
[MERGE] merge with latest trunk
- 8705. By Jignesh Rathod(OpenERP)
-
[IMP] Changes according to need fixing.
- 8704. By Jignesh Rathod(OpenERP)
-
[IMP] Changes according to need fixing.
- 8703. By Jignesh Rathod(OpenERP)
-
[MERGE] merge wuth latest trunk
- 8702. By Jagdish Panchal (Open ERP)
-
[IMP] Improve code for event kanban message
- 8701. By Jagdish Panchal (Open ERP)
-
[IMP] Improve code for kanban view message
- 8700. By Jagdish Panchal (Open ERP)
-
[MERGE] Merge with lp:~openerp-dev/openobject-addons/trunk-improve-addons29-psa
- 8699. By Jagdish Panchal (Open ERP)
-
[IMP] Improve code to show oder button when there is no maximum tickect define
- 8698. By Jagdish Panchal (Open ERP)
-
[MERGE] Merge with lp:~openerp-dev/openobject-addons/trunk-improve-addons29-psa
Preview Diff
1 | === modified file 'account/account_invoice_view.xml' | |||
2 | --- account/account_invoice_view.xml 2013-04-22 15:34:49 +0000 | |||
3 | +++ account/account_invoice_view.xml 2013-05-31 11:15:21 +0000 | |||
4 | @@ -173,7 +173,7 @@ | |||
5 | 173 | <field name="supplier_invoice_number"/> | 173 | <field name="supplier_invoice_number"/> |
6 | 174 | <label for="reference_type"/> | 174 | <label for="reference_type"/> |
7 | 175 | <div> | 175 | <div> |
9 | 176 | <field name="reference_type" class="oe_inline oe_edit_only"/> | 176 | <field name="reference_type" class="oe_inline"/> |
10 | 177 | <field name="reference" class="oe_inline"/> | 177 | <field name="reference" class="oe_inline"/> |
11 | 178 | </div> | 178 | </div> |
12 | 179 | </group> | 179 | </group> |
13 | @@ -249,7 +249,7 @@ | |||
14 | 249 | <page string="Other Info"> | 249 | <page string="Other Info"> |
15 | 250 | <group> | 250 | <group> |
16 | 251 | <group> | 251 | <group> |
18 | 252 | <field domain="[('partner_id', '=', partner_id)]" name="partner_bank_id" on_change="onchange_partner_bank(partner_bank_id)"/> | 252 | <field domain="[('partner_id', '=', partner_id)]" name="partner_bank_id" on_change="onchange_partner_bank(partner_bank_id)" context="{'default_partner_id':partner_id}"/> |
19 | 253 | <field name="user_id"/> | 253 | <field name="user_id"/> |
20 | 254 | <field name="name" invisible="1"/> | 254 | <field name="name" invisible="1"/> |
21 | 255 | <field name="payment_term" widget="selection"/> | 255 | <field name="payment_term" widget="selection"/> |
22 | 256 | 256 | ||
23 | === modified file 'account/report/account_general_ledger.rml' | |||
24 | --- account/report/account_general_ledger.rml 2012-06-13 09:06:00 +0000 | |||
25 | +++ account/report/account_general_ledger.rml 2013-05-31 11:15:21 +0000 | |||
26 | @@ -26,12 +26,9 @@ | |||
27 | 26 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="3,0" stop="3,0"/> | 26 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="3,0" stop="3,0"/> |
28 | 27 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="3,-1" stop="3,-1"/> | 27 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="3,-1" stop="3,-1"/> |
29 | 28 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="4,0" stop="4,-1"/> | 28 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="4,0" stop="4,-1"/> |
30 | 29 | <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="4,0" stop="4,-1"/> | ||
31 | 29 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="4,0" stop="4,0"/> | 30 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="4,0" stop="4,0"/> |
32 | 30 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="4,-1" stop="4,-1"/> | 31 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="4,-1" stop="4,-1"/> |
33 | 31 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="5,0" stop="5,-1"/> | ||
34 | 32 | <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="5,0" stop="5,-1"/> | ||
35 | 33 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="5,0" stop="5,0"/> | ||
36 | 34 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="5,-1" stop="5,-1"/> | ||
37 | 35 | </blockTableStyle> | 32 | </blockTableStyle> |
38 | 36 | <blockTableStyle id="Table1"> | 33 | <blockTableStyle id="Table1"> |
39 | 37 | <blockAlignment value="LEFT"/> | 34 | <blockAlignment value="LEFT"/> |
40 | @@ -77,12 +74,9 @@ | |||
41 | 77 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="11,0" stop="11,0"/> | 74 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="11,0" stop="11,0"/> |
42 | 78 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="11,-1" stop="11,-1"/> | 75 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="11,-1" stop="11,-1"/> |
43 | 79 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="12,0" stop="12,-1"/> | 76 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="12,0" stop="12,-1"/> |
44 | 77 | <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="12,0" stop="12,-1"/> | ||
45 | 80 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="12,0" stop="12,0"/> | 78 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="12,0" stop="12,0"/> |
46 | 81 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="12,-1" stop="12,-1"/> | 79 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="12,-1" stop="12,-1"/> |
47 | 82 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="13,0" stop="13,-1"/> | ||
48 | 83 | <lineStyle kind="LINEAFTER" colorName="#e6e6e6" start="13,0" stop="13,-1"/> | ||
49 | 84 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="13,0" stop="13,0"/> | ||
50 | 85 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="13,-1" stop="13,-1"/> | ||
51 | 86 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,1" stop="0,-1"/> | 80 | <lineStyle kind="LINEBEFORE" colorName="#e6e6e6" start="0,1" stop="0,-1"/> |
52 | 87 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,1" stop="0,1"/> | 81 | <lineStyle kind="LINEABOVE" colorName="#e6e6e6" start="0,1" stop="0,1"/> |
53 | 88 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/> | 82 | <lineStyle kind="LINEBELOW" colorName="#e6e6e6" start="0,-1" stop="0,-1"/> |
54 | @@ -227,6 +221,7 @@ | |||
55 | 227 | <initialize> | 221 | <initialize> |
56 | 228 | <paraStyle name="all" alignment="justify"/> | 222 | <paraStyle name="all" alignment="justify"/> |
57 | 229 | </initialize> | 223 | </initialize> |
58 | 224 | <paraStyle name="P1" fontName="Helvetica" fontSize="8.0" leading="10" alignment="RIGHT" spaceBefore="0.0" spaceAfter="0.0"/> | ||
59 | 230 | <paraStyle name="Standard" fontName="Helvetica"/> | 225 | <paraStyle name="Standard" fontName="Helvetica"/> |
60 | 231 | <paraStyle name="Text body" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/> | 226 | <paraStyle name="Text body" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/> |
61 | 232 | <paraStyle name="List" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/> | 227 | <paraStyle name="List" fontName="Helvetica" spaceBefore="0.0" spaceAfter="6.0"/> |
62 | @@ -262,86 +257,12 @@ | |||
63 | 262 | <images/> | 257 | <images/> |
64 | 263 | </stylesheet> | 258 | </stylesheet> |
65 | 264 | <story> | 259 | <story> |
66 | 265 | <pto> | ||
67 | 266 | <pto_header> | ||
68 | 267 | <blockTable colWidths="40.0,28.0,82.0,42.0,42.0,71.0,42.0,57.0,57.0,77.0" style="Table10">[[ data['form']['amount_currency'] == False or removeParentNode('blockTable') ]] | ||
69 | 268 | <tr> | ||
70 | 269 | <td> | ||
71 | 270 | <para style="terp_tblheader_Details">Date</para> | ||
72 | 271 | </td> | ||
73 | 272 | <td> | ||
74 | 273 | <para style="terp_tblheader_Details">JRNL</para> | ||
75 | 274 | </td> | ||
76 | 275 | <td> | ||
77 | 276 | <para style="terp_tblheader_Details">Partner</para> | ||
78 | 277 | </td> | ||
79 | 278 | <td> | ||
80 | 279 | <para style="terp_tblheader_Details_Centre">Ref</para> | ||
81 | 280 | </td> | ||
82 | 281 | <td> | ||
83 | 282 | <para style="terp_tblheader_Details_Centre">Move</para> | ||
84 | 283 | </td> | ||
85 | 284 | <td> | ||
86 | 285 | <para style="terp_tblheader_Details">Entry Label</para> | ||
87 | 286 | </td> | ||
88 | 287 | <td> | ||
89 | 288 | <para style="terp_tblheader_Details_Centre">Counterpart</para> | ||
90 | 289 | </td> | ||
91 | 290 | <td> | ||
92 | 291 | <para style="terp_tblheader_Details_Right">Debit</para> | ||
93 | 292 | </td> | ||
94 | 293 | <td> | ||
95 | 294 | <para style="terp_tblheader_Details_Right">Credit</para> | ||
96 | 295 | </td> | ||
97 | 296 | <td> | ||
98 | 297 | <para style="terp_tblheader_Details_Right">Balance</para> | ||
99 | 298 | </td> | ||
100 | 299 | </tr> | ||
101 | 300 | </blockTable> | ||
102 | 301 | <blockTable colWidths="40.0,28.0,48.0,42.0,42.0,48.0,28.0,57.0,57.0,74.0,74.0" style="Table7">[[data['form']['amount_currency'] == True or removeParentNode('blockTable')]] | ||
103 | 302 | <tr> | ||
104 | 303 | <td> | ||
105 | 304 | <para style="terp_tblheader_Details">Date</para> | ||
106 | 305 | </td> | ||
107 | 306 | <td> | ||
108 | 307 | <para style="terp_tblheader_Details">JRNL</para> | ||
109 | 308 | </td> | ||
110 | 309 | <td> | ||
111 | 310 | <para style="terp_tblheader_Details">Partner</para> | ||
112 | 311 | </td> | ||
113 | 312 | <td> | ||
114 | 313 | <para style="terp_tblheader_Details_Centre">Ref</para> | ||
115 | 314 | </td> | ||
116 | 315 | <td> | ||
117 | 316 | <para style="terp_tblheader_Details_Centre">Move</para> | ||
118 | 317 | </td> | ||
119 | 318 | <td> | ||
120 | 319 | <para style="terp_tblheader_Details">Entry Label</para> | ||
121 | 320 | </td> | ||
122 | 321 | <td> | ||
123 | 322 | <para style="terp_tblheader_Details_Centre">Counterpart</para> | ||
124 | 323 | </td> | ||
125 | 324 | <td> | ||
126 | 325 | <para style="terp_tblheader_Details_Right">Debit</para> | ||
127 | 326 | </td> | ||
128 | 327 | <td> | ||
129 | 328 | <para style="terp_tblheader_Details_Right">Credit</para> | ||
130 | 329 | </td> | ||
131 | 330 | <td> | ||
132 | 331 | <para style="terp_tblheader_Details_Right">Balance</para> | ||
133 | 332 | </td> | ||
134 | 333 | <td> | ||
135 | 334 | <para style="terp_tblheader_Details_Right">Currency</para> | ||
136 | 335 | </td> | ||
137 | 336 | </tr> | ||
138 | 337 | </blockTable> | ||
139 | 338 | </pto_header> | ||
140 | 339 | <para style="terp_default_8">[[ repeatIn(objects, 'a') ]]</para> | 260 | <para style="terp_default_8">[[ repeatIn(objects, 'a') ]]</para> |
141 | 340 | <para style="terp_header_Centre">General Ledger</para> | 261 | <para style="terp_header_Centre">General Ledger</para> |
142 | 341 | <para style="terp_default_8"> | 262 | <para style="terp_default_8"> |
143 | 342 | <font color="white"> </font> | 263 | <font color="white"> </font> |
144 | 343 | </para> | 264 | </para> |
146 | 344 | <blockTable colWidths="102.0,102.0,102.0,130.0,102.0" style="Table13"> | 265 | <blockTable colWidths="82.0,82.0,82.0,169.0,123.0" style="Table13"> |
147 | 345 | <tr> | 266 | <tr> |
148 | 346 | <td> | 267 | <td> |
149 | 347 | <para style="terp_tblheader_General_Centre">Chart of Accounts</para> | 268 | <para style="terp_tblheader_General_Centre">Chart of Accounts</para> |
150 | @@ -360,7 +281,7 @@ | |||
151 | 360 | </td> | 281 | </td> |
152 | 361 | </tr> | 282 | </tr> |
153 | 362 | </blockTable> | 283 | </blockTable> |
155 | 363 | <blockTable colWidths="102.0,102.0,102.0,130.0,102.0" style="Table1"> | 284 | <blockTable colWidths="82.0,82.0,82.0,169.0,123.0" style="Table1"> |
156 | 364 | <tr> | 285 | <tr> |
157 | 365 | <td> | 286 | <td> |
158 | 366 | <para style="terp_default_Centre_8">[[ get_account(data) or '' ]]</para> | 287 | <para style="terp_default_Centre_8">[[ get_account(data) or '' ]]</para> |
159 | @@ -373,40 +294,40 @@ | |||
160 | 373 | </td> | 294 | </td> |
161 | 374 | <td> | 295 | <td> |
162 | 375 | <para style="terp_default_Centre_8">[[ data['form']['filter']=='filter_no' and get_filter(data) or removeParentNode('para') ]]</para> | 296 | <para style="terp_default_Centre_8">[[ data['form']['filter']=='filter_no' and get_filter(data) or removeParentNode('para') ]]</para> |
164 | 376 | <blockTable colWidths="58.0,58.0" style="Table2">[[ data['form']['filter']=='filter_date' or removeParentNode('blockTable') ]] | 297 | <blockTable colWidths="58.0,58.0" style="Table2"> |
165 | 377 | <tr> | 298 | <tr> |
166 | 378 | <td> | 299 | <td> |
168 | 379 | <para style="terp_tblheader_General_Centre">Start Date</para> | 300 | <para style="terp_tblheader_General_Centre">[[ data['form']['filter']=='filter_date' or removeParentNode('blockTable') ]] Start Date</para> |
169 | 380 | </td> | 301 | </td> |
170 | 381 | <td> | 302 | <td> |
171 | 382 | <para style="terp_tblheader_General_Centre">End Date</para> | 303 | <para style="terp_tblheader_General_Centre">End Date</para> |
172 | 383 | </td> | 304 | </td> |
173 | 384 | </tr> | 305 | </tr> |
174 | 385 | </blockTable> | 306 | </blockTable> |
176 | 386 | <blockTable colWidths="58.0,58.0" style="Table3">[[ data['form']['filter']=='filter_date' or removeParentNode('blockTable') ]] | 307 | <blockTable colWidths="58.0,58.0" style="Table3"> |
177 | 387 | <tr> | 308 | <tr> |
178 | 388 | <td> | 309 | <td> |
180 | 389 | <para style="terp_default_Centre_8">[[ formatLang(get_start_date(data),date=True) ]]</para> | 310 | <para style="terp_default_Centre_8">[[ data['form']['filter']=='filter_date' or removeParentNode('blockTable') ]] [[ formatLang(get_start_date(data),date=True) ]]</para> |
181 | 390 | </td> | 311 | </td> |
182 | 391 | <td> | 312 | <td> |
183 | 392 | <para style="terp_default_Centre_8">[[ formatLang(get_end_date(data),date=True) ]]</para> | 313 | <para style="terp_default_Centre_8">[[ formatLang(get_end_date(data),date=True) ]]</para> |
184 | 393 | </td> | 314 | </td> |
185 | 394 | </tr> | 315 | </tr> |
186 | 395 | </blockTable> | 316 | </blockTable> |
188 | 396 | <blockTable colWidths="58.0,58.0" style="Table4">[[ data['form']['filter']=='filter_period' or removeParentNode('blockTable') ]] | 317 | <blockTable colWidths="58.0,58.0" style="Table4"> |
189 | 397 | <tr> | 318 | <tr> |
190 | 398 | <td> | 319 | <td> |
192 | 399 | <para style="terp_tblheader_General_Centre">Start Period</para> | 320 | <para style="terp_tblheader_General_Centre">[[ data['form']['filter']=='filter_period' or removeParentNode('blockTable') ]] Start Period</para> |
193 | 400 | </td> | 321 | </td> |
194 | 401 | <td> | 322 | <td> |
195 | 402 | <para style="terp_tblheader_General_Centre">End Period</para> | 323 | <para style="terp_tblheader_General_Centre">End Period</para> |
196 | 403 | </td> | 324 | </td> |
197 | 404 | </tr> | 325 | </tr> |
198 | 405 | </blockTable> | 326 | </blockTable> |
200 | 406 | <blockTable colWidths="58.0,58.0" style="Table5">[[ data['form']['filter']=='filter_period' or removeParentNode('blockTable') ]] | 327 | <blockTable colWidths="58.0,58.0" style="Table5"> |
201 | 407 | <tr> | 328 | <tr> |
202 | 408 | <td> | 329 | <td> |
204 | 409 | <para style="terp_default_Centre_8">[[ get_start_period(data) or removeParentNode('para') ]]</para> | 330 | <para style="terp_default_Centre_8">[[ data['form']['filter']=='filter_period' or removeParentNode('blockTable') ]] [[ get_start_period(data) or removeParentNode('para') ]]</para> |
205 | 410 | </td> | 331 | </td> |
206 | 411 | <td> | 332 | <td> |
207 | 412 | <para style="terp_default_Centre_8">[[ get_end_period(data) or removeParentNode('para') ]]</para> | 333 | <para style="terp_default_Centre_8">[[ get_end_period(data) or removeParentNode('para') ]]</para> |
208 | @@ -425,10 +346,10 @@ | |||
209 | 425 | <para style="terp_default_8"> | 346 | <para style="terp_default_8"> |
210 | 426 | <font color="white"> </font> | 347 | <font color="white"> </font> |
211 | 427 | </para> | 348 | </para> |
213 | 428 | <blockTable colWidths="40.0,28.0,48.0,42.0,42.0,48.0,28.0,57.0,57.0,74.0,74.0" style="Table7">[[data['form']['amount_currency'] == True or removeParentNode('blockTable')]] | 349 | <blockTable colWidths="40.0,28.0,48.0,36.0,49.0,48.0,28.0,57.0,57.0,74.0,74.0" style="Table7"> |
214 | 429 | <tr> | 350 | <tr> |
215 | 430 | <td> | 351 | <td> |
217 | 431 | <para style="terp_tblheader_Details">Date</para> | 352 | <para style="terp_tblheader_Details">[[data['form']['amount_currency'] == True or removeParentNode('blockTable')]] Date</para> |
218 | 432 | </td> | 353 | </td> |
219 | 433 | <td> | 354 | <td> |
220 | 434 | <para style="terp_tblheader_Details">JRNL</para> | 355 | <para style="terp_tblheader_Details">JRNL</para> |
221 | @@ -464,10 +385,10 @@ | |||
222 | 464 | </blockTable> | 385 | </blockTable> |
223 | 465 | <section> | 386 | <section> |
224 | 466 | <para style="terp_default_8">[[ repeatIn(get_children_accounts(a), 'o') ]]</para> | 387 | <para style="terp_default_8">[[ repeatIn(get_children_accounts(a), 'o') ]]</para> |
226 | 467 | <blockTable rowHeights="0.55cm" colWidths="278.0,57.0,57.0,74.0,74.0" style="Table8">[[data['form']['amount_currency'] == True or removeParentNode('blockTable')]] | 388 | <blockTable colWidths="278.0,57.0,57.0,74.0,74.0" style="Table8"> |
227 | 468 | <tr> | 389 | <tr> |
228 | 469 | <td> | 390 | <td> |
230 | 470 | <para style="terp_default_Bold_9"><font color="white">[[ '..'*(o.level-1) ]]</font>[[ o.code ]] [[ o.name ]]</para> | 391 | <para style="terp_default_Bold_9">[[data['form']['amount_currency'] == True or removeParentNode('blockTable')]] [[ '..'*(o.level-1) ]] [[ o.code ]] [[ o.name ]]</para> |
231 | 471 | </td> | 392 | </td> |
232 | 472 | <td> | 393 | <td> |
233 | 473 | <para style="terp_default_Bold_9_Right">[[ formatLang(sum_debit_account(o), digits=get_digits(dp='Account')) ]]</para> | 394 | <para style="terp_default_Bold_9_Right">[[ formatLang(sum_debit_account(o), digits=get_digits(dp='Account')) ]]</para> |
234 | @@ -476,19 +397,19 @@ | |||
235 | 476 | <para style="terp_default_Bold_9_Right">[[ formatLang(sum_credit_account(o), digits=get_digits(dp='Account')) ]]</para> | 397 | <para style="terp_default_Bold_9_Right">[[ formatLang(sum_credit_account(o), digits=get_digits(dp='Account')) ]]</para> |
236 | 477 | </td> | 398 | </td> |
237 | 478 | <td> | 399 | <td> |
239 | 479 | <para style="terp_default_Bold_9_Right">[[ formatLang(sum_balance_account(o), digits=get_digits(dp='Account'),currency_obj=company.currency_id) ]]</para> | 400 | <para style="terp_default_Bold_9_Right">[[ formatLang(sum_balance_account(o), digits=get_digits(dp='Account')) ]] [[ company.currency_id.symbol ]]</para> |
240 | 480 | </td> | 401 | </td> |
241 | 481 | <td> | 402 | <td> |
243 | 482 | <para style="terp_default_Bold_9_Right">[[ o.currency_id and formatLang(sum_currency_amount_account(o), digits=get_digits(dp='Account'),currency_obj=o.currency_id) or '' ]]</para> | 403 | <para style="terp_default_Bold_9_Right">[[ o.currency_id and formatLang(sum_currency_amount_account(o), digits=get_digits(dp='Account')) + o.currency_id.code or '' ]]</para> |
244 | 483 | </td> | 404 | </td> |
245 | 484 | </tr> | 405 | </tr> |
246 | 485 | </blockTable> | 406 | </blockTable> |
247 | 486 | <section> | 407 | <section> |
248 | 487 | <para style="terp_default_8">[[ repeatIn(lines(o), 'line') ]]</para> | 408 | <para style="terp_default_8">[[ repeatIn(lines(o), 'line') ]]</para> |
250 | 488 | <blockTable rowHeights="0.55cm" colWidths="40.0,28.0,48.0,42.0,42.0,48.0,28.0,57.0,57.0,74.0,74.0" style="Table9">[[data['form']['amount_currency'] == True or removeParentNode('blockTable')]] | 409 | <blockTable colWidths="40.0,28.0,48.0,36.0,49.0,48.0,28.0,57.0,57.0,74.0,74.0" style="Table9"> |
251 | 489 | <tr> | 410 | <tr> |
252 | 490 | <td> | 411 | <td> |
254 | 491 | <para style="terp_default_8">[[ formatLang(line['ldate'],date=True) ]]</para> | 412 | <para style="terp_default_8">[[data['form']['amount_currency'] == True or removeParentNode('blockTable')]] [[ formatLang(line['ldate'],date=True) ]]</para> |
255 | 492 | </td> | 413 | </td> |
256 | 493 | <td> | 414 | <td> |
257 | 494 | <para style="terp_default_8">[[ line['lcode'] ]]</para> | 415 | <para style="terp_default_8">[[ line['lcode'] ]]</para> |
258 | @@ -497,7 +418,7 @@ | |||
259 | 497 | <para style="terp_default_8">[[ strip_name(line['partner_name'],10) ]]</para> | 418 | <para style="terp_default_8">[[ strip_name(line['partner_name'],10) ]]</para> |
260 | 498 | </td> | 419 | </td> |
261 | 499 | <td> | 420 | <td> |
263 | 500 | <para style="terp_default_8">[[ line['lref'] and strip_name(line['lref'],9) ]]</para> | 421 | <para style="terp_default_8">[[ strip_name(line['lref'],9) ]]</para> |
264 | 501 | </td> | 422 | </td> |
265 | 502 | <td> | 423 | <td> |
266 | 503 | <para style="terp_default_8">[[ strip_name(line['move'],9) ]]</para> | 424 | <para style="terp_default_8">[[ strip_name(line['move'],9) ]]</para> |
267 | @@ -515,19 +436,19 @@ | |||
268 | 515 | <para style="terp_default_Right_8">[[ formatLang(line['credit'], digits=get_digits(dp='Account')) ]]</para> | 436 | <para style="terp_default_Right_8">[[ formatLang(line['credit'], digits=get_digits(dp='Account')) ]]</para> |
269 | 516 | </td> | 437 | </td> |
270 | 517 | <td> | 438 | <td> |
272 | 518 | <para style="terp_default_Right_8">[[ formatLang(line['progress'], digits=get_digits(dp='Account'),currency_obj=company.currency_id) ]] </para> | 439 | <para style="terp_default_Right_8">[[ formatLang(line['progress'], digits=get_digits(dp='Account')) ]] [[ company.currency_id.symbol ]]</para> |
273 | 519 | </td> | 440 | </td> |
274 | 520 | <td> | 441 | <td> |
276 | 521 | <para style="terp_default_Right_8"><font>[[ (line.has_key('currency_id') and line['currency_id']==None or line['amount_currency']==None) and removeParentNode('font') ]] [[ formatLang(line['amount_currency'])]] [[ line['currency_code'] or '']]</font></para> | 442 | <para style="P1">[[ (line.has_key('currency_id') and line['currency_id']==None or line['amount_currency']==None) and removeParentNode('font') ]] [[ formatLang(line['amount_currency'])]] [[ line['currency_code'] or '']]</para> |
277 | 522 | </td> | 443 | </td> |
278 | 523 | </tr> | 444 | </tr> |
279 | 524 | </blockTable> | 445 | </blockTable> |
280 | 525 | </section> | 446 | </section> |
281 | 526 | </section> | 447 | </section> |
283 | 527 | <blockTable colWidths="40.0,28.0,82.0,42.0,42.0,71.0,42.0,57.0,57.0,77.0" style="Table10">[[ data['form']['amount_currency'] == False or removeParentNode('blockTable') ]] | 448 | <blockTable colWidths="40.0,28.0,82.0,43.0,43.0,71.0,43.0,57.0,57.0,77.0" style="Table10"> |
284 | 528 | <tr> | 449 | <tr> |
285 | 529 | <td> | 450 | <td> |
287 | 530 | <para style="terp_tblheader_Details">Date</para> | 451 | <para style="terp_tblheader_Details">[[ data['form']['amount_currency'] == False or removeParentNode('blockTable') ]] Date</para> |
288 | 531 | </td> | 452 | </td> |
289 | 532 | <td> | 453 | <td> |
290 | 533 | <para style="terp_tblheader_Details">JRNL</para> | 454 | <para style="terp_tblheader_Details">JRNL</para> |
291 | @@ -560,10 +481,10 @@ | |||
292 | 560 | </blockTable> | 481 | </blockTable> |
293 | 561 | <section> | 482 | <section> |
294 | 562 | <para style="terp_default_8">[[ repeatIn(get_children_accounts(a), 'o') ]]</para> | 483 | <para style="terp_default_8">[[ repeatIn(get_children_accounts(a), 'o') ]]</para> |
296 | 563 | <blockTable rowHeights="0.55cm" colWidths="349.0,57.0,57.0,77.0" style="Table11">[[ data['form']['amount_currency'] == False or removeParentNode('blockTable') ]] | 484 | <blockTable colWidths="349.0,57.0,57.0,77.0" style="Table11"> |
297 | 564 | <tr> | 485 | <tr> |
298 | 565 | <td> | 486 | <td> |
300 | 566 | <para style="terp_default_Bold_9"><font color="white">[[ '..'*(o.level-1) ]]</font>[[ o.code ]] [[ o.name ]]</para> | 487 | <para style="terp_default_Bold_9">[[ data['form']['amount_currency'] == False or removeParentNode('blockTable') ]] [[ '..'*(o.level-1) ]] [[ o.code ]] [[ o.name ]]</para> |
301 | 567 | </td> | 488 | </td> |
302 | 568 | <td> | 489 | <td> |
303 | 569 | <para style="terp_default_Bold_9_Right">[[ formatLang(sum_debit_account(o), digits=get_digits(dp='Account')) ]]</para> | 490 | <para style="terp_default_Bold_9_Right">[[ formatLang(sum_debit_account(o), digits=get_digits(dp='Account')) ]]</para> |
304 | @@ -572,16 +493,16 @@ | |||
305 | 572 | <para style="terp_default_Bold_9_Right">[[ formatLang(sum_credit_account(o), digits=get_digits(dp='Account')) ]]</para> | 493 | <para style="terp_default_Bold_9_Right">[[ formatLang(sum_credit_account(o), digits=get_digits(dp='Account')) ]]</para> |
306 | 573 | </td> | 494 | </td> |
307 | 574 | <td> | 495 | <td> |
309 | 575 | <para style="terp_default_Bold_9_Right">[[ formatLang(sum_balance_account(o), digits=get_digits(dp='Account'),currency_obj=company.currency_id) ]]</para> | 496 | <para style="terp_default_Bold_9_Right">[[ formatLang(sum_balance_account(o), digits=get_digits(dp='Account')) ]] [[ company.currency_id.symbol ]]</para> |
310 | 576 | </td> | 497 | </td> |
311 | 577 | </tr> | 498 | </tr> |
312 | 578 | </blockTable> | 499 | </blockTable> |
313 | 579 | <section> | 500 | <section> |
314 | 580 | <para style="terp_default_8">[[ repeatIn(lines(o), 'line') ]]</para> | 501 | <para style="terp_default_8">[[ repeatIn(lines(o), 'line') ]]</para> |
316 | 581 | <blockTable rowHeights="0.55cm" colWidths="40.0,28.0,82.0,42.0,42.0,71.0,42.0,57.0,57.0,77.0" style="Table6">[[ data['form']['amount_currency'] == False or removeParentNode('blockTable') ]] | 502 | <blockTable colWidths="40.0,28.0,82.0,43.0,43.0,71.0,43.0,57.0,57.0,77.0" style="Table6"> |
317 | 582 | <tr> | 503 | <tr> |
318 | 583 | <td> | 504 | <td> |
320 | 584 | <para style="terp_default_8">[[ formatLang(line['ldate'],date=True) ]]</para> | 505 | <para style="terp_default_8">[[ data['form']['amount_currency'] == False or removeParentNode('blockTable') ]] [[ formatLang(line['ldate'],date=True) ]]</para> |
321 | 585 | </td> | 506 | </td> |
322 | 586 | <td> | 507 | <td> |
323 | 587 | <para style="terp_default_8">[[ line['lcode'] ]]</para> | 508 | <para style="terp_default_8">[[ line['lcode'] ]]</para> |
324 | @@ -590,7 +511,7 @@ | |||
325 | 590 | <para style="terp_default_8">[[ strip_name(line['partner_name'],20) ]]</para> | 511 | <para style="terp_default_8">[[ strip_name(line['partner_name'],20) ]]</para> |
326 | 591 | </td> | 512 | </td> |
327 | 592 | <td> | 513 | <td> |
329 | 593 | <para style="terp_default_8">[[ line['lref'] and strip_name(line['lref'],9) ]]</para> | 514 | <para style="terp_default_8">[[ strip_name(line['lref'],9) ]]</para> |
330 | 594 | </td> | 515 | </td> |
331 | 595 | <td> | 516 | <td> |
332 | 596 | <para style="terp_default_8">[[ strip_name(line['move'],9) ]]</para> | 517 | <para style="terp_default_8">[[ strip_name(line['move'],9) ]]</para> |
333 | @@ -608,12 +529,23 @@ | |||
334 | 608 | <para style="terp_default_Right_8">[[ formatLang(line['credit'], digits=get_digits(dp='Account')) ]]</para> | 529 | <para style="terp_default_Right_8">[[ formatLang(line['credit'], digits=get_digits(dp='Account')) ]]</para> |
335 | 609 | </td> | 530 | </td> |
336 | 610 | <td> | 531 | <td> |
338 | 611 | <para style="terp_default_Right_8">[[ formatLang(line['progress'], digits=get_digits(dp='Account'),currency_obj=company.currency_id) ]]</para> | 532 | <para style="terp_default_Right_8">[[ formatLang(line['progress'], digits=get_digits(dp='Account')) ]] [[ company.currency_id.symbol ]]</para> |
339 | 612 | </td> | 533 | </td> |
340 | 613 | </tr> | 534 | </tr> |
341 | 614 | </blockTable> | 535 | </blockTable> |
342 | 536 | <para style="terp_default_2"> | ||
343 | 537 | <font color="white"> </font> | ||
344 | 538 | </para> | ||
345 | 615 | </section> | 539 | </section> |
346 | 616 | </section> | 540 | </section> |
348 | 617 | </pto> | 541 | <para style="terp_default_8"> |
349 | 542 | <font color="white"> </font> | ||
350 | 543 | </para> | ||
351 | 544 | <para style="terp_default_8"> | ||
352 | 545 | <font color="white"> </font> | ||
353 | 546 | </para> | ||
354 | 547 | <para style="terp_default_8"> | ||
355 | 548 | <font color="white"> </font> | ||
356 | 549 | </para> | ||
357 | 618 | </story> | 550 | </story> |
358 | 619 | </document> | 551 | </document> |
359 | 620 | 552 | ||
360 | === modified file 'account/report/account_general_ledger.sxw' | |||
361 | 621 | Binary files account/report/account_general_ledger.sxw 2011-10-27 21:11:24 +0000 and account/report/account_general_ledger.sxw 2013-05-31 11:15:21 +0000 differ | 553 | Binary files account/report/account_general_ledger.sxw 2011-10-27 21:11:24 +0000 and account/report/account_general_ledger.sxw 2013-05-31 11:15:21 +0000 differ |
362 | === modified file 'account/report/account_print_overdue.rml' | |||
363 | --- account/report/account_print_overdue.rml 2012-12-04 10:31:46 +0000 | |||
364 | +++ account/report/account_print_overdue.rml 2013-05-31 11:15:21 +0000 | |||
365 | @@ -245,7 +245,7 @@ | |||
366 | 245 | </td> | 245 | </td> |
367 | 246 | </tr> | 246 | </tr> |
368 | 247 | </blockTable> | 247 | </blockTable> |
370 | 248 | <blockTable colWidths="244.0,71.0,62.0,132.0" style="Table4"> | 248 | <blockTable colWidths="244.0,71.0,75.0,120.0" style="Table4"> |
371 | 249 | <tr> | 249 | <tr> |
372 | 250 | <td> | 250 | <td> |
373 | 251 | <para style="terp_default_8"> | 251 | <para style="terp_default_8"> |
374 | 252 | 252 | ||
375 | === modified file 'account/wizard/account_invoice_refund.py' | |||
376 | --- account/wizard/account_invoice_refund.py 2013-04-15 10:23:49 +0000 | |||
377 | +++ account/wizard/account_invoice_refund.py 2013-05-31 11:15:21 +0000 | |||
378 | @@ -147,7 +147,7 @@ | |||
379 | 147 | refund_id = inv_obj.refund(cr, uid, [inv.id], date, period, description, journal_id, context=context) | 147 | refund_id = inv_obj.refund(cr, uid, [inv.id], date, period, description, journal_id, context=context) |
380 | 148 | refund = inv_obj.browse(cr, uid, refund_id[0], context=context) | 148 | refund = inv_obj.browse(cr, uid, refund_id[0], context=context) |
381 | 149 | inv_obj.write(cr, uid, [refund.id], {'date_due': date, | 149 | inv_obj.write(cr, uid, [refund.id], {'date_due': date, |
383 | 150 | 'check_total': inv.check_total}) | 150 | 'check_total': inv.check_total, 'origin': inv.number}) |
384 | 151 | inv_obj.button_compute(cr, uid, refund_id) | 151 | inv_obj.button_compute(cr, uid, refund_id) |
385 | 152 | 152 | ||
386 | 153 | created_inv.append(refund_id[0]) | 153 | created_inv.append(refund_id[0]) |
387 | 154 | 154 | ||
388 | === modified file 'account_followup/report/account_followup_report.xml' | |||
389 | --- account_followup/report/account_followup_report.xml 2012-12-04 10:31:46 +0000 | |||
390 | +++ account_followup/report/account_followup_report.xml 2013-05-31 11:15:21 +0000 | |||
391 | @@ -6,7 +6,7 @@ | |||
392 | 6 | <field name="name">account_followup.stat.tree</field> | 6 | <field name="name">account_followup.stat.tree</field> |
393 | 7 | <field name="model">account_followup.stat</field> | 7 | <field name="model">account_followup.stat</field> |
394 | 8 | <field name="arch" type="xml"> | 8 | <field name="arch" type="xml"> |
396 | 9 | <tree string="Follow-up lines"> | 9 | <tree string="Follow-up lines" create="false"> |
397 | 10 | <field name="partner_id"/> | 10 | <field name="partner_id"/> |
398 | 11 | <field name="date_move"/> | 11 | <field name="date_move"/> |
399 | 12 | <field name="date_move_last"/> | 12 | <field name="date_move_last"/> |
400 | 13 | 13 | ||
401 | === modified file 'account_voucher/voucher_sales_purchase_view.xml' | |||
402 | --- account_voucher/voucher_sales_purchase_view.xml 2013-05-14 11:52:13 +0000 | |||
403 | +++ account_voucher/voucher_sales_purchase_view.xml 2013-05-31 11:15:21 +0000 | |||
404 | @@ -110,7 +110,7 @@ | |||
405 | 110 | name="compute_tax" string="(update)" | 110 | name="compute_tax" string="(update)" |
406 | 111 | attrs="{'invisible': [('state','!=','draft')]}"/> | 111 | attrs="{'invisible': [('state','!=','draft')]}"/> |
407 | 112 | </div> | 112 | </div> |
409 | 113 | <field name="amount" class="oe_subtotal_footer_separator" nolabel="1"/> | 113 | <field name="amount" nolabel="1" class="oe_subtotal_footer_separator"/> |
410 | 114 | </group> | 114 | </group> |
411 | 115 | <group> | 115 | <group> |
412 | 116 | <field name="pay_now" on_change="onchange_payment(pay_now, journal_id, partner_id)" required="1"/> | 116 | <field name="pay_now" on_change="onchange_payment(pay_now, journal_id, partner_id)" required="1"/> |
413 | @@ -283,7 +283,7 @@ | |||
414 | 283 | name="compute_tax" string="(update)" | 283 | name="compute_tax" string="(update)" |
415 | 284 | attrs="{'invisible': [('state','!=','draft')]}"/> | 284 | attrs="{'invisible': [('state','!=','draft')]}"/> |
416 | 285 | </div> | 285 | </div> |
418 | 286 | <field name="amount" class="oe_subtotal_footer_separator" nolabel="1"/> | 286 | <field name="amount" nolabel="1" class="oe_subtotal_footer_separator"/> |
419 | 287 | </group> | 287 | </group> |
420 | 288 | </group> | 288 | </group> |
421 | 289 | </page> | 289 | </page> |
422 | 290 | 290 | ||
423 | === modified file 'base_calendar/crm_meeting_view.xml' | |||
424 | --- base_calendar/crm_meeting_view.xml 2013-02-14 09:33:51 +0000 | |||
425 | +++ base_calendar/crm_meeting_view.xml 2013-05-31 11:15:21 +0000 | |||
426 | @@ -80,7 +80,7 @@ | |||
427 | 80 | </page> | 80 | </page> |
428 | 81 | <page string="Options"> | 81 | <page string="Options"> |
429 | 82 | <group> | 82 | <group> |
431 | 83 | <group col="1"> | 83 | <group col="1" groups="base.group_no_one"> |
432 | 84 | <group> | 84 | <group> |
433 | 85 | <field name="recurrency"/> | 85 | <field name="recurrency"/> |
434 | 86 | </group> | 86 | </group> |
435 | @@ -234,12 +234,16 @@ | |||
436 | 234 | <field name="arch" type="xml"> | 234 | <field name="arch" type="xml"> |
437 | 235 | <search string="Search Meetings"> | 235 | <search string="Search Meetings"> |
438 | 236 | <field name="name" string="Meeting" filter_domain="[('name','ilike',self)]"/> | 236 | <field name="name" string="Meeting" filter_domain="[('name','ilike',self)]"/> |
439 | 237 | <filter string="Public" domain="[('class','=','public')]"/> | ||
440 | 238 | <filter string="Private" domain="[('class','=','private')]"/> | ||
441 | 237 | <field name="partner_ids"/> | 239 | <field name="partner_ids"/> |
442 | 238 | <field name="categ_ids"/> | 240 | <field name="categ_ids"/> |
443 | 239 | <field name="user_id"/> | 241 | <field name="user_id"/> |
444 | 240 | <separator/> | 242 | <separator/> |
445 | 243 | <group expand="0" string="Group By..."> | ||
446 | 244 | <filter string="Responsible" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/> | ||
447 | 245 | </group> | ||
448 | 241 | <filter string="My Meetings" help="My Meetings" domain="[('user_id','=',uid)]"/> | 246 | <filter string="My Meetings" help="My Meetings" domain="[('user_id','=',uid)]"/> |
449 | 242 | <filter string="Unread Messages" name="message_unread" domain="[('message_unread','=',True)]"/> | ||
450 | 243 | </search> | 247 | </search> |
451 | 244 | </field> | 248 | </field> |
452 | 245 | </record> | 249 | </record> |
453 | 246 | 250 | ||
454 | === modified file 'event/event.py' | |||
455 | --- event/event.py 2013-04-15 10:23:49 +0000 | |||
456 | +++ event/event.py 2013-05-31 11:15:21 +0000 | |||
457 | @@ -78,6 +78,9 @@ | |||
458 | 78 | return super(event_event, self).copy(cr, uid, id, default=default, context=context) | 78 | return super(event_event, self).copy(cr, uid, id, default=default, context=context) |
459 | 79 | 79 | ||
460 | 80 | def button_draft(self, cr, uid, ids, context=None): | 80 | def button_draft(self, cr, uid, ids, context=None): |
461 | 81 | registration = self.pool.get('event.registration') | ||
462 | 82 | reg_ids = registration.search(cr, uid, [('event_id','in',ids)], context=context) | ||
463 | 83 | registration.write(cr, uid, reg_ids, {'state': 'draft'}, context=context) | ||
464 | 81 | return self.write(cr, uid, ids, {'state': 'draft'}, context=context) | 84 | return self.write(cr, uid, ids, {'state': 'draft'}, context=context) |
465 | 82 | 85 | ||
466 | 83 | def button_cancel(self, cr, uid, ids, context=None): | 86 | def button_cancel(self, cr, uid, ids, context=None): |
467 | @@ -102,7 +105,7 @@ | |||
468 | 102 | for event in self.browse(cr, uid, ids, context=context): | 105 | for event in self.browse(cr, uid, ids, context=context): |
469 | 103 | available_seats = event.register_avail | 106 | available_seats = event.register_avail |
470 | 104 | if available_seats and no_of_registration > available_seats: | 107 | if available_seats and no_of_registration > available_seats: |
472 | 105 | raise osv.except_osv(_('Warning!'),_("Only %d Seats are Available!") % (available_seats)) | 108 | raise osv.except_osv(_('Warning!'),_("Only %d ticket(s) available!") % (available_seats)) |
473 | 106 | elif available_seats == 0: | 109 | elif available_seats == 0: |
474 | 107 | raise osv.except_osv(_('Warning!'),_("No Tickets Available!")) | 110 | raise osv.except_osv(_('Warning!'),_("No Tickets Available!")) |
475 | 108 | 111 | ||
476 | @@ -176,12 +179,12 @@ | |||
477 | 176 | 'name': fields.char('Name', size=64, required=True, translate=True, readonly=False, states={'done': [('readonly', True)]}), | 179 | 'name': fields.char('Name', size=64, required=True, translate=True, readonly=False, states={'done': [('readonly', True)]}), |
478 | 177 | 'user_id': fields.many2one('res.users', 'Responsible User', readonly=False, states={'done': [('readonly', True)]}), | 180 | 'user_id': fields.many2one('res.users', 'Responsible User', readonly=False, states={'done': [('readonly', True)]}), |
479 | 178 | 'type': fields.many2one('event.type', 'Type of Event', readonly=False, states={'done': [('readonly', True)]}), | 181 | 'type': fields.many2one('event.type', 'Type of Event', readonly=False, states={'done': [('readonly', True)]}), |
483 | 179 | 'register_max': fields.integer('Maximum Registrations', help="You can for each event define a maximum registration level. If you have too much registrations you are not able to confirm your event. (put 0 to ignore this rule )", readonly=True, states={'draft': [('readonly', False)]}), | 182 | 'register_max': fields.integer('Maximum Tickets', help="You can for each event define a maximum registration level. If you have too much registrations you are not able to confirm your event. (put 0 to ignore this rule )", readonly=True, states={'draft': [('readonly', False)]}), |
484 | 180 | 'register_min': fields.integer('Minimum Registrations', help="You can for each event define a minimum registration level. If you do not enough registrations you are not able to confirm your event. (put 0 to ignore this rule )", readonly=True, states={'draft': [('readonly', False)]}), | 183 | 'register_min': fields.integer('Minimum Tickets', help="You can for each event define a minimum registration level. If you do not enough registrations you are not able to confirm your event. (put 0 to ignore this rule )", readonly=True, states={'draft': [('readonly', False)]}), |
485 | 181 | 'register_current': fields.function(_get_register, string='Confirmed Registrations', multi='register_numbers'), | 184 | 'register_current': fields.function(_get_register, string='Confirmed Registrations', multi='register_numbers',type='integer'), |
486 | 182 | 'register_avail': fields.function(_get_register, string='Available Registrations', multi='register_numbers',type='integer'), | 185 | 'register_avail': fields.function(_get_register, string='Available Registrations', multi='register_numbers',type='integer'), |
489 | 183 | 'register_prospect': fields.function(_get_register, string='Unconfirmed Registrations', multi='register_numbers'), | 186 | 'register_prospect': fields.function(_get_register, string='Unconfirmed Registrations', multi='register_numbers',type='integer'), |
490 | 184 | 'register_attended': fields.function(_get_register, string='# of Participations', multi='register_numbers'), | 187 | 'register_attended': fields.function(_get_register, string='# of Attendees', multi='register_numbers',type='integer', help="The actual number of people who attended the event."), |
491 | 185 | 'registration_ids': fields.one2many('event.registration', 'event_id', 'Registrations', readonly=False, states={'done': [('readonly', True)]}), | 188 | 'registration_ids': fields.one2many('event.registration', 'event_id', 'Registrations', readonly=False, states={'done': [('readonly', True)]}), |
492 | 186 | 'date_begin': fields.datetime('Start Date', required=True, readonly=True, states={'draft': [('readonly', False)]}), | 189 | 'date_begin': fields.datetime('Start Date', required=True, readonly=True, states={'draft': [('readonly', False)]}), |
493 | 187 | 'date_end': fields.datetime('End Date', required=True, readonly=True, states={'draft': [('readonly', False)]}), | 190 | 'date_end': fields.datetime('End Date', required=True, readonly=True, states={'draft': [('readonly', False)]}), |
494 | @@ -282,8 +285,8 @@ | |||
495 | 282 | date_end = date_begin + timedelta(hours=1) | 285 | date_end = date_begin + timedelta(hours=1) |
496 | 283 | res['value'] = {'date_end': date_end.strftime("%Y-%m-%d %H:%M:%S")} | 286 | res['value'] = {'date_end': date_end.strftime("%Y-%m-%d %H:%M:%S")} |
497 | 284 | return res | 287 | return res |
500 | 285 | 288 | ||
501 | 286 | 289 | ||
502 | 287 | class event_registration(osv.osv): | 290 | class event_registration(osv.osv): |
503 | 288 | """Event Registration""" | 291 | """Event Registration""" |
504 | 289 | _name= 'event.registration' | 292 | _name= 'event.registration' |
505 | @@ -291,8 +294,8 @@ | |||
506 | 291 | _inherit = ['mail.thread', 'ir.needaction_mixin'] | 294 | _inherit = ['mail.thread', 'ir.needaction_mixin'] |
507 | 292 | _columns = { | 295 | _columns = { |
508 | 293 | 'id': fields.integer('ID'), | 296 | 'id': fields.integer('ID'), |
511 | 294 | 'origin': fields.char('Source Document', size=124,readonly=True,help="Reference of the sales order which created the registration"), | 297 | 'origin': fields.char('Source Document', size=124,readonly=True,help="Name of the sale order which create the registration"), |
512 | 295 | 'nb_register': fields.integer('Number of Participants', required=True, readonly=True, states={'draft': [('readonly', False)]}), | 298 | 'nb_register': fields.integer('Quantity', required=True, readonly=True, states={'draft': [('readonly', False)]}), |
513 | 296 | 'event_id': fields.many2one('event.event', 'Event', required=True, readonly=True, states={'draft': [('readonly', False)]}), | 299 | 'event_id': fields.many2one('event.event', 'Event', required=True, readonly=True, states={'draft': [('readonly', False)]}), |
514 | 297 | 'partner_id': fields.many2one('res.partner', 'Partner', states={'done': [('readonly', True)]}), | 300 | 'partner_id': fields.many2one('res.partner', 'Partner', states={'done': [('readonly', True)]}), |
515 | 298 | 'create_date': fields.datetime('Creation Date' , readonly=True), | 301 | 'create_date': fields.datetime('Creation Date' , readonly=True), |
516 | @@ -320,6 +323,9 @@ | |||
517 | 320 | } | 323 | } |
518 | 321 | _order = 'name, create_date desc' | 324 | _order = 'name, create_date desc' |
519 | 322 | 325 | ||
520 | 326 | _sql_constraints = [ | ||
521 | 327 | ('check_number', 'CHECK(nb_register > 0)', 'Wrong Number of Participants entry!'), | ||
522 | 328 | ] | ||
523 | 323 | def do_draft(self, cr, uid, ids, context=None): | 329 | def do_draft(self, cr, uid, ids, context=None): |
524 | 324 | return self.write(cr, uid, ids, {'state': 'draft'}, context=context) | 330 | return self.write(cr, uid, ids, {'state': 'draft'}, context=context) |
525 | 325 | 331 | ||
526 | @@ -339,7 +345,6 @@ | |||
527 | 339 | res = self.confirm_registration(cr, uid, ids, context=context) | 345 | res = self.confirm_registration(cr, uid, ids, context=context) |
528 | 340 | self.mail_user(cr, uid, ids, context=context) | 346 | self.mail_user(cr, uid, ids, context=context) |
529 | 341 | return res | 347 | return res |
530 | 342 | |||
531 | 343 | def button_reg_close(self, cr, uid, ids, context=None): | 348 | def button_reg_close(self, cr, uid, ids, context=None): |
532 | 344 | """ Close Registration | 349 | """ Close Registration |
533 | 345 | """ | 350 | """ |
534 | @@ -401,5 +406,5 @@ | |||
535 | 401 | d = self.onchange_contact_id(cr, uid, ids, addr, part, context) | 406 | d = self.onchange_contact_id(cr, uid, ids, addr, part, context) |
536 | 402 | data.update(d['value']) | 407 | data.update(d['value']) |
537 | 403 | return {'value': data} | 408 | return {'value': data} |
539 | 404 | 409 | ||
540 | 405 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | 410 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
541 | 406 | 411 | ||
542 | === modified file 'event/event_view.xml' | |||
543 | --- event/event_view.xml 2013-05-30 13:47:36 +0000 | |||
544 | +++ event/event_view.xml 2013-05-31 11:15:21 +0000 | |||
545 | @@ -225,29 +225,44 @@ | |||
546 | 225 | <t t-if="record.country_id.raw_value">@<field name="country_id"/><br/></t> | 225 | <t t-if="record.country_id.raw_value">@<field name="country_id"/><br/></t> |
547 | 226 | <t t-if="record.user_id.raw_value">Organized by <field name="user_id"/><br/></t> | 226 | <t t-if="record.user_id.raw_value">Organized by <field name="user_id"/><br/></t> |
548 | 227 | <t t-if="record.register_avail.raw_value lte 10 and record.register_avail.raw_value gt 0"><i>Only</i></t> | 227 | <t t-if="record.register_avail.raw_value lte 10 and record.register_avail.raw_value gt 0"><i>Only</i></t> |
551 | 228 | <t t-if="record.register_avail.raw_value == 9999"><i>No ticket available.</i></t> | 228 | <t t-if="record.register_avail.raw_value != 9999 and record.state.raw_value == 'draft' or record.state.raw_value == 'confirm' and record.register_max.raw_value != 0"> |
550 | 229 | <t t-if="record.register_avail.raw_value != 9999"> | ||
552 | 230 | <i><b><t t-if="record.register_avail.raw_value != 9999"><field name="register_avail"/></t></b></i> | 229 | <i><b><t t-if="record.register_avail.raw_value != 9999"><field name="register_avail"/></t></b></i> |
553 | 231 | <i> | 230 | <i> |
554 | 232 | <t t-if="record.register_avail.raw_value > 1">tickets </t> | 231 | <t t-if="record.register_avail.raw_value > 1">tickets </t> |
555 | 233 | <t t-if="record.register_avail.raw_value lte 1">ticket </t> | 232 | <t t-if="record.register_avail.raw_value lte 1">ticket </t> |
556 | 234 | available. | 233 | available. |
559 | 235 | </i> | 234 | </i><br/> |
560 | 236 | </t> | 235 | <t t-if="record.state.raw_value == 'confirm'"> |
561 | 236 | <i>This event is confirmed.</i> | ||
562 | 237 | </t> | ||
563 | 238 | </t> | ||
564 | 239 | <t t-if="record.state.raw_value == 'draft' and record.register_max.raw_value == 0"> | ||
565 | 240 | <i>Registrations are open.</i> | ||
566 | 241 | </t> | ||
567 | 242 | <t t-if="record.state.raw_value == 'confirm' and record.register_max.raw_value == 0"> | ||
568 | 243 | <i>This event is confirmed.</i> | ||
569 | 244 | </t> | ||
570 | 245 | <t t-if="record.state.raw_value == 'done'"> | ||
571 | 246 | <i>This event is finished.</i> | ||
572 | 247 | </t> | ||
573 | 248 | <t t-if="record.state.raw_value == 'cancel'"> | ||
574 | 249 | <i>This event is cancelled.</i> | ||
575 | 250 | </t> | ||
576 | 251 | |||
577 | 237 | </p> | 252 | </p> |
578 | 238 | <div groups="base.group_user,portal.group_portal"> | 253 | <div groups="base.group_user,portal.group_portal"> |
580 | 239 | <t t-if="record.register_avail.raw_value gt 0 and record.register_avail.raw_value lt 9999"> | 254 | <t t-if="record.register_avail.raw_value gt 0 and record.register_avail.raw_value lt 9999 or record.register_max.raw_value == 0"> |
581 | 240 | <t t-if="!record.is_subscribed.raw_value"> | 255 | <t t-if="!record.is_subscribed.raw_value"> |
583 | 241 | <input t-att-id="record.id.raw_value" type="text" name="subscribe" class="no_of_seats" value="1" onchange="document.getElementById('btn_sub' +this.id).setAttribute('data-context',JSON.stringify({'ticket':this.value}))"/> | 256 | <input t-att-id="record.id.raw_value" type="text" name="subscribe" class="no_of_seats" value="1" onchange="$('#btn_sub' +this.id).data('context',JSON.stringify({'ticket':this.value}))"/> |
584 | 242 | <button t-att-id="'btn_sub'+record.id.raw_value" type="object" name="subscribe_to_event" class="oe_subscribe_button"> | 257 | <button t-att-id="'btn_sub'+record.id.raw_value" type="object" name="subscribe_to_event" class="oe_subscribe_button"> |
586 | 243 | <span >Subscribe</span> | 258 | <span >Order</span> |
587 | 244 | </button> | 259 | </button> |
588 | 245 | </t> | 260 | </t> |
589 | 246 | </t> | 261 | </t> |
590 | 247 | <t t-if="record.is_subscribed.raw_value"> | 262 | <t t-if="record.is_subscribed.raw_value"> |
591 | 248 | <button type="object" name="unsubscribe_to_event" class="oe_unsubscribe_button "> | 263 | <button type="object" name="unsubscribe_to_event" class="oe_unsubscribe_button "> |
594 | 249 | <span>Subscribed</span> | 264 | <span>Ordered</span> |
595 | 250 | <span class="oe_unsubscribe">Unsubscribe</span> | 265 | <span class="oe_unsubscribe">Cancel Order</span> |
596 | 251 | </button> | 266 | </button> |
597 | 252 | </t> | 267 | </t> |
598 | 253 | </div> | 268 | </div> |
599 | @@ -288,7 +303,7 @@ | |||
600 | 288 | <separator/> | 303 | <separator/> |
601 | 289 | <filter icon="terp-personal" string="My Events" help="My Events" domain="[('user_id','=',uid)]"/> | 304 | <filter icon="terp-personal" string="My Events" help="My Events" domain="[('user_id','=',uid)]"/> |
602 | 290 | <separator/> | 305 | <separator/> |
604 | 291 | <filter icon="terp-go-today" string="Upcoming" name="upcoming" domain="[('date_begin','>=', time.strftime('%%Y-%%m-%%d 00:00:00'))]" help="Upcoming events from today" /> | 306 | <filter icon="terp-go-today" string="Upcoming" name="upcoming" domain="[('date_begin','>=', time.strftime('%%Y-%%m-%%d 00:00:00')),('state','not in',('cancel','done'))]" help="Upcoming events from today" /> |
605 | 292 | <field name="type"/> | 307 | <field name="type"/> |
606 | 293 | <field name="user_id"/> | 308 | <field name="user_id"/> |
607 | 294 | <group expand="0" string="Group By..."> | 309 | <group expand="0" string="Group By..."> |
608 | 295 | 310 | ||
609 | === modified file 'l10n_be_invoice_bba/invoice.py' | |||
610 | --- l10n_be_invoice_bba/invoice.py 2012-12-06 14:56:32 +0000 | |||
611 | +++ l10n_be_invoice_bba/invoice.py 2013-05-31 11:15:21 +0000 | |||
612 | @@ -69,17 +69,16 @@ | |||
613 | 69 | date_invoice, payment_term, partner_bank_id, company_id) | 69 | date_invoice, payment_term, partner_bank_id, company_id) |
614 | 70 | # reference_type = self.default_get(cr, uid, ['reference_type'])['reference_type'] | 70 | # reference_type = self.default_get(cr, uid, ['reference_type'])['reference_type'] |
615 | 71 | # _logger.warning('partner_id %s' % partner_id) | 71 | # _logger.warning('partner_id %s' % partner_id) |
617 | 72 | reference = False | 72 | reference = False |
618 | 73 | reference_type = 'none' | 73 | reference_type = 'none' |
619 | 74 | res_update = {} | ||
620 | 74 | if partner_id: | 75 | if partner_id: |
629 | 75 | if (type == 'out_invoice'): | 76 | reference_type = self.pool.get('res.partner').browse(cr, uid, partner_id).out_inv_comm_type |
630 | 76 | reference_type = self.pool.get('res.partner').browse(cr, uid, partner_id).out_inv_comm_type | 77 | res_update['reference_type'] = reference_type or 'none' |
631 | 77 | if reference_type: | 78 | if reference_type: |
632 | 78 | reference = self.generate_bbacomm(cr, uid, ids, type, reference_type, partner_id, '', context={})['value']['reference'] | 79 | reference = self.generate_bbacomm(cr, uid, ids, type, reference_type, partner_id, '', context={})['value']['reference'] |
633 | 79 | res_update = { | 80 | if reference: |
634 | 80 | 'reference_type': reference_type or 'none', | 81 | res_update['reference'] = reference |
627 | 81 | 'reference': reference, | ||
628 | 82 | } | ||
635 | 83 | result['value'].update(res_update) | 82 | result['value'].update(res_update) |
636 | 84 | return result | 83 | return result |
637 | 85 | 84 | ||
638 | 86 | 85 | ||
639 | === modified file 'portal_event/event_view.xml' | |||
640 | --- portal_event/event_view.xml 2012-12-05 14:40:51 +0000 | |||
641 | +++ portal_event/event_view.xml 2013-05-31 11:15:21 +0000 | |||
642 | @@ -8,7 +8,7 @@ | |||
643 | 8 | <field name="model">event.event</field> | 8 | <field name="model">event.event</field> |
644 | 9 | <field name="inherit_id" ref="event.view_event_form"/> | 9 | <field name="inherit_id" ref="event.view_event_form"/> |
645 | 10 | <field name="arch" type="xml"> | 10 | <field name="arch" type="xml"> |
647 | 11 | <xpath expr="//page[last()]" position="after"> | 11 | <xpath expr="//page[last()]" position="before"> |
648 | 12 | <page string="Portal Settings" groups="base.group_user"> | 12 | <page string="Portal Settings" groups="base.group_user"> |
649 | 13 | <group> | 13 | <group> |
650 | 14 | <field name="visibility"/> | 14 | <field name="visibility"/> |
Few points to fix:
- Revert line 28-31
- Email configuration tab is going to merge with email desc. in another task so you can revert it.
Regards,
Mustufa Rangwala