Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
how to add character ' to shippers company so the result is shipper's company
header += 'Pickup Time,Shippers Company,Shippers Name,Shippers Phone No.,Shippers Address 1,Shippers Address 2,Shippers Postal Code,Consignees Company,Consignees Name,Consignees Phone No.,Consignees Address 1,Consignees Address 2,Consignees Postal Code,Comments\n'
hope you understand what i mean.
thanks in advance
To handle this situation, you could opt for 4 options:
1. use single quotation inside a double quotation string (as Farid suggested)
e.g. "Shipper's Company".
2. use multi line string
e.g. """ Pickup Time,Shippers Company,Shippers Name,Shippers Phone No.,Shippers Address 1,Shippers Address 2,Shippers Postal Code,Consignees Company,Consignees Name,Consignees Phone No.,Consignees Address 1,Consignees Address 2,Consignees Postal Code,Comments\n"""
3. use escape character
e.g. 'Shipper\'s Company'
4. use of raw string
e.g. r"Shipper's company" # mostly used in matching expression of regular expression at python
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 7/22/15, 10:42 PM|
|Seen: 625 times|
|Last updated: 8/20/15, 5:13 AM|