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
- Бухгалтерия
- Склад
- PoS
- Проекты
- MRP
Этот вопрос был отмечен
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.
Не оставайтесь в стороне – присоединяйтесь к обсуждению!
Создайте аккаунт сегодня, чтобы получить доступ к эксклюзивным функциям и стать частью нашего замечательного сообщества!
Регистрация| Похожие посты | Ответы | Просмотры | Активность | |
|---|---|---|---|---|
|
|
0
нояб. 25
|
2 | ||
|
|
0
нояб. 25
|
3 | ||
|
|
1
нояб. 25
|
77 | ||
|
|
7
нояб. 25
|
596 | ||
|
|
3
нояб. 25
|
393 |