Files
odoo_source/addons/delivery/views/report_shipping.xml
T
Mansi Trivedi 977d1acc7c [IMP] sale_stock,delivery: Various imp on delivery slips and picking reports
ON THE DELIVERY SLIP : 

1. CUSTOMER REFERENCE
- If a customer reference is filled in the SO, on the delivery slip, under
  Customer Address, add a section Customer Reference :
- Display every customer information in the header

2. SO NUMBER 
- Display the SO reference under the origin instead on the picking type name.
  Do not display it if unset

3. LOCATIONS AND STATUS
- remove the columns locations and status

4. ORDERED QUANTITY
- add a column (between product and quantity) named Ordered Quantity. It
  contains the quantity of the initial demand. Rename Quantity into
  Delivered Quantity

5. BACKORDER
- If the delivery is a backorder, add the string : This shipment is a backorder
  of "stock.picking.name".
- If a backorder has been created, add the string  : All items couldn't be shipped,
  the remaining ones will be shipped as soon as they become available.
- If it is a backorder and another backorder has been created, both strings should
  be printed.

6. SCHEDULE DATE
- Should be the date when the delivery order is validated.
- Rename Scheduled Date into "Date" 
    - If the DO is not yet validated, display the scheduled date.
    - If the DO is validated : display the date it was validated.

7. WEIGHT
- Add the unit of measure after the weight value
- Display only if set

8. CARRIER
- Display only if set

9. LOT/SERIAL NUMBERS
- Keep the header of the column + rename it into Serial Number / Lot

10. CUSTOMER/CONTACT ADDRESS
- Should be displayed on the right, keep only minimal information: Customer name,
  phone number

ON THE PICKING REPORT
- picking: https://drive.google.com/file/d/0Bx4JWs1efCreX1FrZUhaZDEtblU/view?usp=drivesdk
- form: https://drive.google.com/a/openerp.com/file/d/0B5BDHVRYo-q5X3VGVWI1aThWcWM/view?usp=drivesdk
2016-04-07 14:06:14 +02:00

18 lines
789 B
XML

<odoo>
<template id="report_shipping2" inherit_id="stock.report_picking">
<xpath expr="//th[@name='td_sched_date_h']" position="after">
<th t-if="o.picking_type_id.code == 'outgoing' and o.carrier_id"><strong>Carrier</strong></th>
<th t-if="o.weight"><strong>Weight</strong></th>
</xpath>
<xpath expr="//td[@name='td_sched_date']" position="after">
<td t-if="o.picking_type_id.code == 'outgoing' and o.carrier_id">
<span t-field="o.carrier_id"/>
</td>
<td t-if="o.weight">
<span t-field="o.weight"/>
<span t-field="o.weight_uom_id"/>
</td>
</xpath>
</template>
</odoo>