Denis Ledoux
41f4b11ef4
[MERGE] forward port of branch saas-3 up to e552e09
2015-04-30 15:45:03 +02:00
Denis Ledoux
f043c41ac9
[FIX] account: report_vat with several periods
...
When fetching the VAT reports for several periods, only the last period was took into account
This is due to the fact that a browse record assignation no longer works in Odoo 8.0 API
at least not the same way.
code.sum_period = sum_tax_add just do nothing in Odoo 8.0.
Besides, using the variable "code" outside its loop is kinda crappy.
2015-01-29 16:26:58 +01:00
Denis Ledoux
0ec3c75c2d
[FIX] account: default value for report_vat report
...
If the report was printed from the tax codes list
Accounting > Configuration > Taxes > Tax codes
There is no information concerning what should be displayed (periods, details, etc.)
as the user did not printed the report from the wizard
(from Accounting > Reporting > Generic Reporting > Taxes > Taxes report)
We therefore set default values, in order the report to not crash
Nevertheless, the user has obviously to go through the wizard
if he wants to set a configuration different than the default one
2015-01-23 14:13:13 +01:00
Simon Lejeune
6bd36a8613
[FIX] account: tax report: translate account.tax.code according to context
...
As get_lines is called from the template, use a partial to embed the original context.
2014-10-23 15:43:52 +02:00
Simon Lejeune
106d06ce5d
[IMP] account* reports: removed unused class/report/commented code/test, added the abstract_report wrapper on all old style report classes + some fixes on views and wizards in order to use these classes to render the qweb reports
...
bzr revid: sle@openerp.com-20140402164053-gry12scy8zca68lv
2014-04-02 18:40:53 +02: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
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
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
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
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
openerp-sle
dd3122c050
[IMP] Taxes report converted to QWeb
...
bzr revid: openerp-sle@openerp-sle.home-20140213173910-w1srnhcyrwhrox1h
2014-02-13 18:39:10 +01:00