openerp-dev-web team mailing list archive
-
openerp-dev-web team
-
Mailing list archive
-
Message #00909
[Merge] lp:~openerp-report/openobject-addons/report-dev-apa into lp:~openerp-dev/openobject-addons/report_dev
apa (Open ERP) has proposed merging lp:~openerp-report/openobject-addons/report-dev-apa into lp:~openerp-dev/openobject-addons/report_dev.
Requested reviews:
OpenERP R&D Team (openerp-dev)
Related bugs:
#645969 [trunk] accounting - GL report (and others) - repeat column headers
https://bugs.launchpad.net/bugs/645969
#667710 Account Trail Balance report rml font-size too large and PDF seems ugly
https://bugs.launchpad.net/bugs/667710
#680468 not able to make an allocation request
https://bugs.launchpad.net/bugs/680468
TASK ID : 956
=============
- add field origin in the print invoice report
- rename document title into 'Description"
- when creating an invoice from a SO, do not copy the origin into the description of the invoice (SO0006 if no description)
Bug : lp:680468
=============
- [FIX] hr_payroll : not able to make an allocation request.
--
https://code.launchpad.net/~openerp-report/openobject-addons/report-dev-apa/+merge/42465
Your team OpenERP R&D Team is requested to review the proposed merge of lp:~openerp-report/openobject-addons/report-dev-apa into lp:~openerp-dev/openobject-addons/report_dev.
=== modified file 'account/report/account_general_ledger_landscape.rml'
--- account/report/account_general_ledger_landscape.rml 2010-11-25 14:41:27 +0000
+++ account/report/account_general_ledger_landscape.rml 2010-12-02 11:59:47 +0000
@@ -313,7 +313,7 @@
<para style="terp_tblheader_Details_Right">Currency</para>
</td>
</tr>
- </blockTable>
+ </blockTable>
<blockTable colWidths="45.0,35.0,30.0,105.0,80.0,55.0,130.0,95.0,65.0,65.0,75.0" style="Table10">[[ data['form']['amount_currency'] == False or removeParentNode('blockTable') ]]
<tr>
<td>
=== modified file 'account/report/account_print_invoice.rml'
--- account/report/account_print_invoice.rml 2010-11-16 05:50:35 +0000
+++ account/report/account_print_invoice.rml 2010-12-02 11:59:47 +0000
@@ -193,7 +193,7 @@
<blockTable colWidths="177.0,177.0,177.0" style="Table_Invoice_General_Header">
<tr>
<td>
- <para style="terp_tblheader_General_Centre">Document</para>
+ <para style="terp_tblheader_General_Centre">Description</para>
</td>
<td>
<para style="terp_tblheader_General_Centre">Invoice Date</para>
=== modified file 'account/report/account_print_invoice.sxw'
Binary files account/report/account_print_invoice.sxw 2010-11-01 11:06:11 +0000 and account/report/account_print_invoice.sxw 2010-12-02 11:59:47 +0000 differ
=== modified file 'account_invoice_layout/report/report_account_invoice_layout.rml'
--- account_invoice_layout/report/report_account_invoice_layout.rml 2010-11-16 05:50:35 +0000
+++ account_invoice_layout/report/report_account_invoice_layout.rml 2010-12-02 11:59:47 +0000
@@ -240,7 +240,7 @@
<blockTable colWidths="180.0,179.0,180.0" style="Table_Invoice_General_Header">
<tr>
<td>
- <para style="terp_tblheader_General_Centre">Document</para>
+ <para style="terp_tblheader_General_Centre">Description</para>
</td>
<td>
<para style="terp_tblheader_General_Centre">Invoice Date</para>
=== modified file 'account_invoice_layout/report/report_account_invoice_layout.sxw'
Binary files account_invoice_layout/report/report_account_invoice_layout.sxw 2010-11-01 11:06:11 +0000 and account_invoice_layout/report/report_account_invoice_layout.sxw 2010-12-02 11:59:47 +0000 differ
=== modified file 'account_invoice_layout/report/special_message_invoice.rml'
--- account_invoice_layout/report/special_message_invoice.rml 2010-11-16 05:50:35 +0000
+++ account_invoice_layout/report/special_message_invoice.rml 2010-12-02 11:59:47 +0000
@@ -244,7 +244,7 @@
<blockTable colWidths="180.0,179.0,180.0" style="Table_Invoice_General_Header">
<tr>
<td>
- <para style="terp_tblheader_General_Centre">Document</para>
+ <para style="terp_tblheader_General_Centre">Description</para>
</td>
<td>
<para style="terp_tblheader_General_Centre">Invoice Date</para>
=== modified file 'account_invoice_layout/report/special_message_invoice.sxw'
Binary files account_invoice_layout/report/special_message_invoice.sxw 2010-11-01 11:06:11 +0000 and account_invoice_layout/report/special_message_invoice.sxw 2010-12-02 11:59:47 +0000 differ
=== modified file 'hr_holidays/hr_holidays.py'
--- hr_holidays/hr_holidays.py 2010-11-19 12:20:03 +0000
+++ hr_holidays/hr_holidays.py 2010-12-02 11:59:47 +0000
@@ -251,10 +251,11 @@
return False
if rec['type'] == 'add':
continue
- date_from = time.strptime(rec['date_from'], '%Y-%m-%d %H:%M:%S')
- date_to = time.strptime(rec['date_to'], '%Y-%m-%d %H:%M:%S')
- if date_from > date_to:
- return False
+ if rec.get('date_from',False) and rec.get('date_to',False):
+ date_from = time.strptime(rec['date_from'], '%Y-%m-%d %H:%M:%S')
+ date_to = time.strptime(rec['date_to'], '%Y-%m-%d %H:%M:%S')
+ if date_from > date_to:
+ return False
return True
_constraints = [(_check_date, 'Start date should not be larger than end date!\nNumber of Days should be greater than 1!', ['number_of_days_temp'])]
=== modified file 'sale/sale.py'
--- sale/sale.py 2010-11-11 06:22:25 +0000
+++ sale/sale.py 2010-12-02 11:59:47 +0000
@@ -425,7 +425,7 @@
inv_line_id = obj_invoice_line.copy(cr, uid, preline.id, {'invoice_id': False, 'price_unit': -preline.price_unit})
lines.append(inv_line_id)
inv = {
- 'name': order.client_order_ref or order.name,
+ 'name': order.origin or order.client_order_ref or order.name,
'origin': order.name,
'type': 'out_invoice',
'reference': "P%dSO%d" % (order.partner_id.id, order.id),
Follow ups