currently the delivery to shows in purchase order is warehouse ID only. how can I setting to the delivery to because to the warehouse address that I needed?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Účtovníctvo
- Sklady
- PoS
- Projektové riadenie
- MRP
This question has been flagged
In the purchase order printout, Odoo uses the warehouse ID by default because the template is referencing picking_type_id.warehouse_id.name instead of the warehouse’s address fields.
To print the actual warehouse address, you need to edit the Purchase Order QWeb report:
Activate Developer Mode
Settings → Developer Mode
Go to
Settings → Technical → User Interface → Views
Search for:
report_purchaseorder_document
(or Purchase Order QWeb template)
Find the part showing:
<t t-esc="o.picking_type_id.warehouse_id"/>
or something similar displaying only the ID.
Replace it with the warehouse address fields, for example:
<div> <t t-esc="o.picking_type_id.warehouse_id.name"/><br/> <t t-esc="o.picking_type_id.warehouse_id.partner_id.street"/><br/> <t t-esc="o.picking_type_id.warehouse_id.partner_id.city"/> <t t-esc="o.picking_type_id.warehouse_id.partner_id.zip"/><br/> <t t-esc="o.picking_type_id.warehouse_id.partner_id.country_id.name"/> </div>
Odoo stores the warehouse address on the related partner record (warehouse_id.partner_id).
Save → Print the purchase order again.
Now the Delivery To section will show the full warehouse address instead of the ID.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrácia| Related Posts | Replies | Zobrazenia | Aktivita | |
|---|---|---|---|---|
|
|
0
nov 25
|
2 | ||
|
|
0
nov 25
|
3 | ||
|
|
1
nov 25
|
77 | ||
|
|
7
nov 25
|
596 | ||
|
|
3
nov 25
|
393 |