Hi all,
Can anyone tell me how I can add the shipping and invoicing addresses to the delivery slip?
At the moment it only displays the customer address.
I have managed to edit the other reports but the delivery slip is proving to be more difficult!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi all,
Can anyone tell me how I can add the shipping and invoicing addresses to the delivery slip?
At the moment it only displays the customer address.
I have managed to edit the other reports but the delivery slip is proving to be more difficult!
If you could post more details next time, it would help those of us trying to help you. "my car is proving to be more difficult to drive" doesn't give a mechanic much to go by. I bet you'd pay a lot to have that car fixed. :)
The Shipping Address IS ALREADY the address on the Delivery Slip:
1. Sales Order:
2. Delivery Order:
3. Delivery Slip:
You just need to add something like this to your own view that inherits and overrides the default Odoo view report_delivery_document:
<div class="col-xs-4">
<div>
<strong><span>Ordered By:</span></strong>
</div>
<div>
<div t-field="o.sale_id.partner_id"
t-options="{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True}"/>
</div>
</div>
<div class="col-xs-4">
<div>
<strong><span>Invoice To:</span></strong>
</div>
<div>
<div t-field="o.sale_id.partner_invoice_id"
t-options="{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True}"/>
</div>
</div>
That will give you something like this:
Thanks for your reply.
Sorry, I was not aware of any other information that you'd need to answer my query.
Funnily enough you managed to answer my question anyway, without any further information.
Lucky you that my guess at what you needed was actually what you needed. Next time you might not be so lucky - that's the only point I was trying to make - probably unsuccessfully. It might be relevant to tell us the VERSION of Odoo you are using and the EDITION. It is also generally more effective to tell us WHAT you have tried, so we can NARROW down our advice to a SPECIFIC solution to a WELL DEFINED problem. If you are happy with the quality of the answers you are getting here, then do nothing different. You are welcome to post exactly what you want, and ignore all the advice you get from people wanting to help you and the people who setup the forum who have taken the time to outline 'best practices'. See also https://www.odoo.com/forum/help-1/faq and https://www.odoo.com/forum/help-1/question/meta-why-do-some-questions-get-answers-and-others-do-not-25620
Thank you for your comments, I have taken them on board and I appreciate them and your help. However, the way you have answered my question and comment is quite patronising, it may be worth rethinking how you answer and remembering that others may not be as used to forums as much as you are.
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Jan 23
|
2070 | ||
|
2
Nov 19
|
6939 | ||
|
0
Oct 23
|
596 | ||
|
1
Sep 23
|
1178 | ||
|
2
Mar 21
|
2308 |