Simon Lejeune
5957efbde9
[MERGE] trunk
...
bzr revid: sle@openerp.com-20140428093503-mhb4nd70u8ctoyok
2014-04-28 11:35:03 +02:00
Fabien Meghazi
4f16d15120
[IMP] rename editor assets
...
bzr revid: fme@openerp.com-20140425101753-gz6c8q9huw9c04yp
2014-04-25 12:17:53 +02:00
Quentin (OpenERP)
7a6b00b651
[MERGE] merged with trunk up to revision 9381
...
bzr revid: qdp-launchpad@openerp.com-20140425090414-vpg4szws9y4fgznc
2014-04-25 11:04:14 +02:00
Fabien Meghazi
1c4e2cfd22
[IMP] bundlify addons (except website)
...
bzr revid: fme@openerp.com-20140424172129-ze74eaz2eaidmxhm
2014-04-24 19:21:29 +02:00
Simon Lejeune
b667f6a292
[MERGE] trunk
...
bzr revid: sle@openerp.com-20140422124030-gowf9zyx1d36j01g
bzr revid: sle@openerp.com-20140424124655-95ex30m25soiu4wd
2014-04-24 14:46:55 +02:00
Simon Lejeune
f340fc33ea
[MERGE] saas-4
...
bzr revid: sle@openerp.com-20140423141323-8rlqxuovo720hbyg
2014-04-23 16:13:23 +02:00
Simon Lejeune
d65b9c5e4c
[FIX] report: correct xpath to select paper format in the company form
...
bzr revid: sle@openerp.com-20140423132805-a5kdtvu052hdzbrr
2014-04-23 15:28:05 +02:00
Christophe Simonis
9ed196bc81
[FIX] report: set a default paperformat for companies, based on rml paperformat
...
bzr revid: chs@openerp.com-20140423132100-t6lmyd8qymoo4wqq
2014-04-23 15:21:00 +02:00
Simon Lejeune
7088ddc3be
[FIX] report footer: hide footer from external layout if a custom footer is set; use company.website instead of request.website.name
...
bzr revid: sle@openerp.com-20140423125104-38mrhuov0snti7js
2014-04-23 14:51:04 +02:00
Antony Lesuisse
fafe368331
[FIX] report explicitly import tests
...
bzr revid: al@openerp.com-20140422122155-jw89nc4g0m12mhvo
2014-04-22 14:21:55 +02:00
Simon Lejeune
7e8dcc5600
[IMP] l10n_be and l1n_fr reports converted to QWeb
...
bzr revid: sle@openerp.com-20140422121105-osvy8ji5v40t70jf
2014-04-22 14:11:05 +02:00
Simon Lejeune
afd490c984
[REM] removed details_summary, sales_user, sales_user_today, payment_user reports, wizards and rml
...
[REM] dead code: pos_box_entries.py/xml, pos_box_out.py/xml, pos_return_view.py/xml
[ADD] lines, invoice, cashbox of the day, payment, receipt, users product reports converted to QWeb. Added YML tests for the bank statement reports.
[FIX] closed cashbox of the day sql using old fields in its queries, yml test not correctly generating an invoice from a pos order
bzr revid: sle@openerp.com-20140414104954-xj10wi640tyr3ufe
2014-04-14 12:49:54 +02:00
Quentin (OpenERP)
398d96f273
[MERGE] merged trunk up to revision 9327
...
bzr revid: qdp-launchpad@openerp.com-20140414094743-hv0u7qhigv1to2uc
2014-04-14 11:47:43 +02:00
Simon Lejeune
e1bf5bd97c
[IMP] Report: renamed 'render_doc' method as 'translate_doc' for better understanding and added it a 'lang_field' attribute to explicitely set the lang. Adapted report_invoice, report_saleorder, report_overdue and report_intrastatinvoice this way.
...
bzr revid: sle@openerp.com-20140408134953-vql9ft8cosoanixt
2014-04-08 15:49:53 +02:00
Simon Lejeune
9660a92a91
[FIX] regression when fixing specific paperformat argument on a template
...
bzr revid: sle@openerp.com-20140407151515-dxdxjt60ld7jn2cs
2014-04-07 17:15:15 +02:00
Simon Lejeune
d908d26c7c
[REV] revert revid9276 (no need to include formatLang as qweb has since introduced t-esc-options)
...
bzr revid: sle@openerp.com-20140407133313-re7xwd5190hk6zqi
2014-04-07 15:33:13 +02:00
Simon Lejeune
0c07efd194
[FIX] Remove bootstrap default min-height on an empty row in the header, added a max-height on the header logo
...
bzr revid: sle@openerp.com-20140404130154-utzdx2gqhfl2bp0n
2014-04-04 15:01:54 +02:00
Simon Lejeune
bf41efa40b
[FIX] regression on rpc call to check wkhtmltopdf presence/version
...
bzr revid: sle@openerp.com-20140404124724-dves3liepcbmg6rv
2014-04-04 14:47:24 +02:00
Simon Lejeune
91a78667ba
[FIX] Report: insert formatLang in the rendering environment if not present; Sale_layout: use formatLang on the subtotal
...
bzr revid: sle@openerp.com-20140404121128-puvr1zs244lit5m2
2014-04-04 14:11:28 +02:00
Simon Lejeune
a1f08e0d10
[FIX] action manager: use EncodeURIComponent instead of EncodeURI because of bad encoding of the ampersand in the secund (resulting in impossibility to encode 'Belgium Profit & Loss' for instance)
...
bzr revid: sle@openerp.com-20140403211717-sb84ir2ts62yizzf
2014-04-03 23:17:17 +02:00
Simon Lejeune
3a917639c8
[FIX] report: there are not always ids in get_pdf...
...
bzr revid: sle@openerp.com-20140403165051-e6sg419c19xv3w7b
2014-04-03 18:50:51 +02:00
Simon Lejeune
ff1e5edcea
[FIX] guess the language in which the document must be translated without triggering an orm warning
...
bzr revid: sle@openerp.com-20140403162138-6yvh3q24n39tdi4r
2014-04-03 18:21:38 +02:00
Simon Lejeune
d5c06607b6
[FIX] Report: in the save_in_attachment logic, when a single report is printed, use the id passed in argument to identify it (and not the qweb branding)
...
bzr revid: sle@openerp.com-20140403160133-4axmxhw7bq2yf94l
2014-04-03 18:01:33 +02:00
Simon Lejeune
126d61796a
[FIX] abstract_report: correctly pass the active ids in wrapped_report.set_context, fix analytic journal from ir.ui.menu by setting a consistent context
...
bzr revid: sle@openerp.com-20140403154856-s3i220d6w1yw4e5s
2014-04-03 17:48:56 +02:00
Simon Lejeune
4975d2b9dc
[FIX] fixed report translation and translate overdue report into partner's lang
...
bzr revid: sle@openerp.com-20140403143235-mpw30fq4j2nyov6x
2014-04-03 16:32:35 +02:00
Simon Lejeune
2c90fad7ac
[REF][IMP] report module: merge the four report's routes into one; extra report arguments are passed json encoded (therefore removed the _eval_params method); added an abstract_report model to wrap old-style report without touching them; Removed formatLang method from report as it is embeded in the old-style report localcontext; moved the save_in_attachment logic in a method for readability; adapted the action manager to encode data and context of action if needed; fixed the post install test to test the generic report
...
bzr revid: sle@openerp.com-20140402162344-3lrako0jepmhasvl
2014-04-02 18:23:44 +02:00
Quentin (OpenERP)
fe7b3c66a3
[FIX] stock_picking_wave: fixed picking wave report
...
bzr revid: qdp-launchpad@openerp.com-20140328105254-0n0jm309n2v4q160
2014-03-28 11:52:54 +01:00
Simon Lejeune
c771903c3b
[IMP] account* reports: removed rml, added qweb template, changed the wizard to return qweb actions
...
bzr revid: sle@openerp.com-20140327182520-uu7ezsqic30x7mqo
2014-03-27 19:25:20 +01:00
Simon Lejeune
b6f6f8614a
[FIX] Handle the case where website is installed but the pdf generation is not called in a website request context
...
bzr revid: sle@openerp.com-20140324174630-43wi6nlh6bigaq7g
2014-03-24 18:46:30 +01:00
Simon Lejeune
abce91a8c1
[WIP] tests reports not using httpcase, commented out until post installt tests are working
...
bzr revid: sle@openerp.com-20140324170222-oxjbgzyvoko2tez3
2014-03-24 18:02:22 +01:00
Simon Lejeune
25b993a62c
[FIX] hide the 'search associated qweb views' button when the report_type is not qweb-pdf/qweb-html
...
bzr revid: sle@openerp.com-20140324162729-k3n6pkhhe8pe6bdp
2014-03-24 17:27:29 +01:00
Simon Lejeune
d87cd37d67
[FIX] removed 'debugger' statement
...
bzr revid: sle@openerp.com-20140321184347-ph5n6cnywhwasvcf
2014-03-21 19:43:47 +01:00
Simon Lejeune
1b6b320445
[FIX] fixed the report type 'controller', fixed the report_vat_xls route
...
bzr revid: sle@openerp.com-20140321183649-rg8wrlvcrzvv0d29
2014-03-21 19:36:49 +01:00
Simon Lejeune
8581b1847f
[IMP] Multiple improvements: eval_param is set on the controller, the subprocess to get the version of wkhtmltopdf is only open at OpenERP start, better exceptions handling (try to avoid exceptions shallowing) and the rpc call from the webclient to know the version of wkhtmltopdf is only done once
...
bzr revid: sle@openerp.com-20140321164716-uksuu6hsjj7q3698
2014-03-21 17:47:16 +01:00
Simon Lejeune
1128743932
[FIX] Added the decorator website on the get_file route, correctly pass the context on the mrp bom structure and allow to install report module without pypdf installed
...
bzr revid: sle@openerp.com-20140321122103-mzp465s8hxckq4ai
2014-03-21 13:21:03 +01:00
Simon Lejeune
e06cefb4be
[FIX] Correctly separate website variable between report and website_report layouts
...
bzr revid: sle@openerp.com-20140321111742-rzkykk00z6fbum8d
2014-03-21 12:17:42 +01:00
Simon Lejeune
57e6e8fd28
[FIX] Multiples fixes: correct context passing, changed osv.Model to osv.AbstractModel to avoid creating tables in database when the model use for the reports contains only method
...
bzr revid: sle@openerp.com-20140321105806-0bwo992995la91fe
2014-03-21 11:58:06 +01:00
Simon Lejeune
ad50d5fcfe
[FIX] Multiple improvements in report including giving formatlang a cursor and a uid via a lambda method, cleaning of some comments and restoring the page numbering
...
bzr revid: sle@openerp.com-20140320165841-21clvch4ujak1y3m
2014-03-20 17:58:41 +01:00
Simon Lejeune
d941bce076
[FIX] Adapted mrp bom structure (exit controller, added model)
...
bzr revid: sle@openerp.com-20140320142520-3qapc7039q46eg9k
2014-03-20 15:25:20 +01:00
Simon Lejeune
52522bf0f9
[FIX] get_pdf can be called on is own (no need to call get_html before on particular controller-report) and make the multiple ids work
...
bzr revid: sle@openerp.com-20140320140609-7ozly6f55sgeow7k
2014-03-20 15:06:09 +01:00
Simon Lejeune
221d2a6eeb
[FIX] Reports not using the generic controller should not declare a controller anymore. They are now openerp models and are availabel either trough openerp model 'report' with get_html, get_pdf or through a controller. Adapted report_vat this way.
...
bzr revid: sle@openerp.com-20140320133425-z04ewof8ktjanmn9
2014-03-20 14:34:25 +01:00
Simon Lejeune
1c5a57a129
[FIX] email_template now use the new get_pdf method on the report model in order to avoid the blocking bug of generating a pdf with a public request.session
...
bzr revid: sle@openerp.com-20140319185350-5t8iuvnzikwfajei
2014-03-19 19:53:50 +01:00
Simon Lejeune
060a171a26
[WIP] Refactoring report module to avoid using request in OpenERP models : the generation of the html/pdf is now done on the model side and not on the controller side anymore => it is possible to generate a pdf python-side without making a request to an url, request that can be refused because of access right in the request object at this precise moment
...
bzr revid: sle@openerp.com-20140319183614-vibnmm6kkh2h6piu
2014-03-19 19:36:14 +01:00
Simon Lejeune
77e56eea05
[REF] Changed seek(0) to flush when manipulating files and reordered the impors
...
bzr revid: sle@openerp.com-20140313133459-y3zvhhjby8pysew1
2014-03-13 14:34:59 +01:00
Simon Lejeune
5f417a7397
[FIX] Removed the ending slash of download attachment routes
...
bzr revid: sle@openerp.com-20140311171219-j80lkmaezfezptxx
2014-03-11 18:12:19 +01:00
Xavier Morel
b73cef9007
[FIX] don't fail installation entirely if pyPdf isn't available
...
should print an error message though
bzr revid: xmo@openerp.com-20140310083204-9akr4ucwqzbv3oxu
2014-03-10 09:32:04 +01:00
Antony Lesuisse
8915f444f3
[IMP] report, form view hide paperformat when not needed
...
bzr revid: al@openerp.com-20140307011359-nyj794c9pzkg64fh
2014-03-07 02:13:59 +01:00
Antony Lesuisse
cb82d93796
[IMP] report form view move inherited view, restore and refactor test case (kept commented atm) from non merged branch qweb-report
...
bzr revid: al@openerp.com-20140307000620-kqxm55smy34nc0zz
2014-03-07 01:06:20 +01:00
Simon Lejeune
03aa27fcca
[IMP] Add link to wkhtmltopdf.org in the webclient notifications
...
bzr revid: sle@openerp.com-20140227165509-qrdwy0s7xh044zf4
2014-02-27 17:55:09 +01:00
Simon Lejeune
27a232596c
[IMP] Add notification on the web client when wkhtmltopdf is not present or too old
...
bzr revid: sle@openerp.com-20140227154046-hxnhyho6v096hjx8
2014-02-27 16:40:46 +01:00
Simon Lejeune
a82c186611
[IMP] Added a route to check presence and version of wkhtmltopdf. If the soft is not present, qweb-pdf fallback on qweb-html mode.
...
bzr revid: sle@openerp.com-20140227144810-d14iwu5pudmrshh9
2014-02-27 15:48:10 +01:00
Simon Lejeune
258c8b5ee5
[FIX] type in the import of the reset stylesheet
...
bzr revid: sle@openerp.com-20140225144407-li218a3ppz4f8y7z
2014-02-25 15:44:07 +01:00
Simon Lejeune
1cf57507c0
[IMP] Added a button on the ir.actions.report.xml form view to allow direct access of the QWeb views associated and edit them
...
bzr revid: sle@openerp.com-20140224170839-7nqv07vp1tx5ou38
2014-02-24 18:08:39 +01:00
Simon Lejeune
d64c4a3f17
[FIX] mrp: removed empty files and barcode controller value set to path in order to be able to receive URL
...
bzr revid: sle@openerp.com-20140224151944-dqi63kjvyejp6xja
2014-02-24 16:19:44 +01:00
Simon Lejeune
901172a194
[FIX] Workaround to get printing done with 1 worker
...
bzr revid: sle@openerp.com-20140224134732-imptqwtzyoyml2qq
2014-02-24 14:47:32 +01:00
Simon Lejeune
5557a1152c
[IMP] Report controller: little changes to get the barcode route working with reportlab 2.5
...
bzr revid: sle@openerp.com-20140224120749-nlg3n95vgghxv63y
2014-02-24 13:07:49 +01:00
Simon Lejeune
09d34a8e96
[IMP] Report controller: put the css/js as relative links in the minimal html page (they were copied inline)
...
bzr revid: sle@openerp.com-20140224103329-pmmmcl56mzmynmx5
2014-02-24 11:33:29 +01:00
Simon Lejeune
ffa475afcd
[IMP] Added the possibility to define ultra-specific reports outputing any king of file. These reports are of type 'controller' because they redirects to a controller that must returns a response containing the http headers 'content-type' and 'content-disposition'. The route for this controller is specified in the report_file field. Added an XLS version of the tax report for the POC (testable by setting 'report_vat' type to controller and setting '/report/account.report_vat_xls' in the 'report_file' field).
...
bzr revid: sle@openerp.com-20140221163320-g5ouoywsuduoi0qe
2014-02-21 17:33:20 +01:00
Simon Lejeune
0304f71112
[FIX] Small changes in barcode controller and set default values when creating paper format
...
bzr revid: sle@openerp.com-20140221101520-tg522m1w38jdp55p
2014-02-21 11:15:20 +01:00
Simon Lejeune
8930e494d0
[FIX] Qweb-PDF: fixed 'werkzeug relative links' (like src='/report/getbarcode/QR/texttext') by setting a base_url and passing the cookie header to wkhtmltopdf. ; Barcode Controller: added possibility to set image size.
...
bzr revid: sle@openerp.com-20140220111323-z6zuic6lg77zutqb
2014-02-20 12:13:23 +01:00
Simon Lejeune
ac0641d21c
[IMP] Added a simple controller to generate barcode
...
bzr revid: sle@openerp.com-20140219142649-5ekx9pjvje45jclv
2014-02-19 15:26:49 +01:00
Simon Lejeune
1be06b0a67
[IMP] Independance from the website module: moved the editor into a 'website_report' module
...
bzr revid: sle@openerp.com-20140219105327-xx2jaqu4dvhv5goh
2014-02-19 11:53:27 +01:00
Simon Lejeune
fabc1cdd40
[FIX] renamed ir.actions.report.paperformat model to report.paperformat, renamed html_skeleton to html_container in report layouts and renamed paperformat.py file to report_paperformat.py
...
bzr revid: sle@openerp.com-20140218155347-tfxlndg9wgaw0bv1
2014-02-18 16:53:47 +01:00
Simon Lejeune
68115b2c6f
[IMP] Merge the pdf documents into a StringIO and not a File
...
bzr revid: sle@openerp.com-20140218131414-khmd3gy8dbjedmrg
2014-02-18 14:14:14 +01:00
Simon Lejeune
3c6c3d91d5
[IMP] qweb-pdf reports are now downloaded instead of being openned in a popup. It is done by using the 'session.get_file' of the webclient.
...
bzr revid: sle@openerp.com-20140218125322-yym87kc2c0guhgg2
2014-02-18 13:53:22 +01:00
Simon Lejeune
ed9061893a
[IMP] Moved the action manager for qweb reports into addons branch
...
bzr revid: sle@openerp.com-20140218104959-p0nqlizhvynqy4j3
2014-02-18 11:49:59 +01:00
openerp-sle
919a2fb29a
[FIX] Report layouts: location of bootstap.js in web module
...
bzr revid: openerp-sle@openerp-sle.home-20140217140921-bru0uvuvuq2nij0t
2014-02-17 15:09:21 +01:00
openerp-sle
f43f978427
[FIX] Use the local bootstrap
...
bzr revid: openerp-sle@openerp-sle.home-20140216110430-sbzd306ufay3ukxn
2014-02-16 12:04:30 +01:00
openerp-sle
488e8390c6
[IMP] Report model: added an 'eval_params' method that will convert a dict originated from jquery.param into a python dict
...
bzr revid: openerp-sle@openerp-sle.home-20140213173709-c8pzw0htrj0il53z
2014-02-13 18:37:09 +01:00
openerp-sle
305896b598
[IMP] Report model: added support for datas in 'get_action' method
...
bzr revid: openerp-sle@openerp-sle.home-20140213151248-rwlaebo32edot4a7
2014-02-13 16:12:48 +01:00
openerp-sle
0ae6d1f4e7
[FIX] More accurate values for the demo paper format and website contact widget enhanced
...
bzr revid: openerp-sle@openerp-sle.home-20140213120739-4jh30s94scfr584e
2014-02-13 13:07:39 +01:00
openerp-sle
cf9548f1a3
[FIX] Fix bug in report layouts due to 't-att-src' being treated before 't-if' on the same tag
...
bzr revid: openerp-sle@openerp-sle.home-20140213102547-sabhj66c98dxa8x0
2014-02-13 11:25:47 +01:00
openerp-sle
38a9bf0901
[FIX] Report module dependancies
...
bzr revid: openerp-sle@openerp-sle.home-20140212212026-e9jj8tm7esdywsfl
2014-02-12 22:20:26 +01:00
openerp-sle
d2cdf5c0eb
[IMP] Report model: added a method to easily returns a pdf and another to easily generate a report action
...
bzr revid: openerp-sle@openerp-sle.home-20140212181202-8kuc6cap1oymgjn3
2014-02-12 19:12:02 +01:00
openerp-sle
8dbd892d8b
[IMP] Added the route converting all reports to pdf thanks to wkhtmltopdf. The html rendered report is downloaded via werkzeug.test.client and then parsed into an lxml.etree in order to extract only the useful data : local css, header, content and footer. We then generate a minimalist html page that is passed to wkhtmltopdf. Save in attachment feature is handled. A method transform a paperformat object into a list of parameters for wkhtmltopdf. Multiple IDS reports are generated in different pdf merged at the end.
...
bzr revid: openerp-sle@openerp-sle.home-20140212180934-dupp8x2ivo52uzib
2014-02-12 19:09:34 +01:00
openerp-sle
5fa1be1303
[IMP] Added the default controller for the generic html reports (reports not needing data to be preprocessed)
...
bzr revid: openerp-sle@openerp-sle.home-20140212180025-c3p4xnixd3sty7gh
2014-02-12 19:00:25 +01:00
openerp-sle
fe7d55cbdb
[IMP] Added some default layouts (internal and external with more or less information). The website RTE is called from these layouts, as well as the language selector. Note: currently, the link of the bootstrap 3.1 css points to the official bootstrap site.
...
bzr revid: openerp-sle@openerp-sle.home-20140212175819-8cr53bzafn2uo8rc
2014-02-12 18:58:19 +01:00
openerp-sle
0d01d96dd4
[IMP] Added a 'paperformat' model that will handle properties of pdf documents that are generated from html reports. A company is linked to a default paper format and a report can be linked to a specific paperformat in order to override the default one.
...
bzr revid: openerp-sle@openerp-sle.home-20140212175412-aeij8e9ifwjwgc1m
2014-02-12 18:54:12 +01:00
openerp-sle
7b66c1e35f
[IMP] Report model: Added a 'render_doc' method that renders a template into the associated partner's lang (used in invoices for instance).
...
bzr revid: openerp-sle@openerp-sle.home-20140212173037-889koy9to39xg38c
2014-02-12 18:30:37 +01:00
openerp-sle
c3c43a9ce5
[IMP] Report model: Added a 'render' method that redirects to request.websit.render. Reports rendering therefore needs the website module.
...
bzr revid: openerp-sle@openerp-sle.home-20140212172750-va0dkdavcomwsy87
2014-02-12 18:27:50 +01:00
openerp-sle
71be2de1ef
[IMP] Add structure of the 'report' module
...
bzr revid: openerp-sle@openerp-sle.home-20140212172214-r0n8wzngr1hkp8q0
2014-02-12 18:22:14 +01:00
Xavier Morel
48f8a793c3
[fix] rename installer addons (potentially) conflicting with server modules
...
bzr revid: xmo@tinyerp.com-20100113150121-kmki5vszfwyscow2
2010-01-13 16:01:21 +01:00
Xavier Morel
da1d686187
[add] report: new extension/installer
...
bzr revid: xmo@tinyerp.com-20100107144324-6dialaju0bgjb92i
2010-01-07 15:43:24 +01:00