Rename "Customer packing" report into "Delivery Note"

This commit is contained in:
Bertrand Chenal
2009-03-26 18:59:56 +01:00
parent 8e6b226cf1
commit dace7ca2f6
4 changed files with 9 additions and 9 deletions
BIN
View File
Binary file not shown.
+3 -3
View File
@@ -1522,8 +1522,8 @@ class CreatePackingOutReturn(Wizard):
CreatePackingOutReturn()
class PackingOutReport(CompanyReport):
_name = 'stock.packing.out'
class DeliveryNote(CompanyReport):
_name = 'stock.packing.out.delivery_note'
def parse(self, cursor, user, report, objects, datas, context):
if context is None:
@@ -1532,7 +1532,7 @@ class PackingOutReport(CompanyReport):
context['product_name'] = lambda product_id, language: \
self.product_name(cursor, user, product_id, language,
context)
return super(PackingOutReport, self).parse(cursor, user, report,
return super(DeliveryNote, self).parse(cursor, user, report,
objects, datas, context)
def product_name(self, cursor, user, product_id, language, context):
+6 -6
View File
@@ -1015,18 +1015,18 @@ this repository contains the full copyright notices and license terms. -->
</record>
<record model="ir.action.report" id="report_packing_out">
<field name="name">Customer Shipment</field>
<record model="ir.action.report" id="report_packing_out_delivery_note">
<field name="name">Delivery Note</field>
<field name="model">stock.packing.out</field>
<field name="report_name">stock.packing.out</field>
<field name="report">stock/packing_out.odt</field>
<field name="report_name">stock.packing.out.delivery_note</field>
<field name="report">stock/delivery_note.odt</field>
<field name="style">company/header_A4.odt</field>
</record>
<record model="ir.action.keyword"
id="report_packing_out_keyword">
id="report_packing_out_delivery_note_keyword">
<field name="keyword">form_print</field>
<field name="model">stock.packing.out,0</field>
<field name="action" ref="report_packing_out"/>
<field name="action" ref="report_packing_out_delivery_note"/>
</record>
BIN
View File
Binary file not shown.