Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
244 Zobrazení

Hello, 

I would like to introduce a comment in a shipping note.  It's not enough to indicate quantities.  I need to illustrate with the nr of packages and weight in the document...

Avatar
Zrušit
Autor Nejlepší odpověď

I have well tried to adapt with studio but the text to complete is fixed without possibility to integrate my own comments each time I do a delivery note.  My question is really simple.  I want to add a comment on each delivery note I do

Avatar
Zrušit
Nejlepší odpověď

Add a custom note on the delivery (shipping) document that includes:

  • Number of packages
  • Total weight
  • Any additional comment you may want to add

 Steps to Add Package & Weight Info in the Shipping Note

1. Enable Developer Mode

  • Go to Settings > Activate Developer Mode.

2. Use the “Additional Notes” Field

  • Go to Inventory > Operations > Delivery Orders.
  • Open a delivery record.
  • Scroll to the “Additional Information” tab.
  • Use the “Notes” or “Shipping Information” field (may vary by Odoo version).

3. Manually Enter Your Custom Comment

Example:

csharp

CopyEdit

Shipment includes 5 packages. Total weight: 72.5 kg. Handle with care – perishable goods.

This note will appear in the printed delivery slip if configured.

4. Automate It with a Studio Field (Optional)

If you want Odoo to automatically calculate the number of packages and total weight:

  • Open Studio on the delivery order model.
  • Add a computed text field (e.g., “Shipping Note”).
  • Compute it using:

python

CopyEdit

f"Shipment includes {len(record.package_ids)} packages.\nTotal weight: {record.shipping_weight} kg."

(You can adjust this based on how your packaging is tracked.)

5. Add the Field to the Delivery Slip (Report)

  • Still in Studio, go to Reports > Delivery Slip.
  • Drag your custom field (or use the existing note field) into the layout.

 Result:

The printed shipping document will now include a clear, human-readable note like:

csharp

CopyEdit

Shipment includes 3 packages. Total weight: 45.8 kg. Fragile items included – handle with care.

Avatar
Zrušit