Open r31gnf1r3 opened 10 years ago
Examples of invoices from old system
CAA Invoice:
Smart Methods Invoice:
Smart Practice Invoice:
Back order customer note:
Packing Labels:
Back order Printout:
Hi @r31gnf1r3
Done using ReportLAB. Need to create base invoice.rml using OpenOffice then convert for best results.
explain please.
Basic PDF view mixin and utils using reportlab:
@r31gnf1r3 how it going with RML?
Commands for converting odt into rml. And also rml into pdf:
cd /usr/lib/pymodules/python2.7/openerp/addons/base_report_designer/wizard/tiny_sxw2rml/
python tiny_sxw2rml.py /home/ubuntu/ExampleDocument.odt > /home/ubuntu/ExampleDocument.rml
trml2pdf /home/ubuntu/ExampleDocument.rml > /home/ubuntu/ExampleDocument.pdf
Adding a image dynamically into rml.
http://stackoverflow.com/questions/5089886/adding-images-dynamically-to-an-openerp-rml-report-file
https://pythonhosted.org/django-webodt/tables.html https://pythonhosted.org/django-webodt/quickstart.html so we can just work with the .odt files.. and remove the .rml's totally)
Yup agreed. Seems like good solution, and use ooffice as the documents are complicated.
-- abiword is now installed. Opens odt fine as far as I can tell.
Also add into models:
documents model with:
Also add into company model:
Models have updated
@r31gnf1r3 Hi
I have added two new fields to the Company model
payments = models.CharField(max_length=255, null=True, blank=True)
abn = models.CharField(max_length=255, null=True, blank=True)
Invoice: http://ec2-54-215-172-148.us-west-1.compute.amazonaws.com/order/get_pdf/52572/
this is not final result
@r31gnf1r3 Please check invoice
http://ec2-54-215-172-148.us-west-1.compute.amazonaws.com/order/get_pdf/52572/?a=1
@r31gnf1r3 please explain how and when we use "Back order customer note", "Packing Labels" and "Back order Printout". I want to finish with it
With chrome, with invoice, it goes to 'save as'. Would be better if it was opened in new-window within browser using the built-in browser pdf viewer.
Also file name- should be 'invoiceID-CustomerName.pdf'. Because staff aren't going to save it, they will just want to print it straight out to the printer.
With email. Need a modal dialog to popup. Similar to Xero example below (but simpler).
With just these options:
Invoices/Quotes/Packing slips will be done using RML to ensure compliance with printed positioning.
Done using ReportLAB. Need to create base invoice.rml using OpenOffice then convert for best results.