odoo/addons
Olivier Dony 0f7099bb30 [FIX] sale,sale_stock: sales analysis view using incorrect JOIN and group by clause
Similarly to the recent fixes in Purchase Analysis,
the Sales Analysis view must not group on the quantity
field. It is one of the columns that must be aggregated,
not used to fold PO lines into the same
result row.
The line count was also incorrect because of this, and
had to be corrected to actually count() the underlying
SO lines.

In addition, the JOINs were done in the wrong order,
which could cause problems (e.g. if an empty SO ever
landed in the database, all the SO line columns
would be empty in the JOIN, and cause errors)

bzr revid: odo@openerp.com-20131105103011-vkix07lsb6q3y9fd
2013-11-05 11:30:11 +01:00
..
account Launchpad automatic translations update. 2013-11-05 06:00:56 +00:00
account_accountant Launchpad automatic translations update. 2013-11-04 06:02:49 +00:00
account_analytic_analysis Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
account_analytic_default Launchpad automatic translations update. 2013-11-05 06:00:56 +00:00
account_analytic_plans Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
account_anglo_saxon Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
account_asset Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
account_bank_statement_extensions Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
account_budget Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
account_cancel Launchpad automatic translations update. 2013-11-04 06:02:49 +00:00
account_chart Launchpad automatic translations update. 2013-11-04 06:02:49 +00:00
account_check_writing Launchpad automatic translations update. 2013-08-12 05:06:50 +00:00
account_followup Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
account_payment Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
account_report_company Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
account_sequence Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
account_test Launchpad automatic translations update. 2013-08-19 04:57:37 +00:00
account_voucher Launchpad automatic translations update. 2013-11-04 06:02:49 +00:00
analytic Launchpad automatic translations update. 2013-11-05 06:00:56 +00:00
analytic_contract_hr_expense Launchpad automatic translations update. 2013-10-14 05:33:13 +00:00
analytic_user_function [FIX] analytic_user_function: initialise variable 2013-08-21 17:44:01 +02:00
anonymization Launchpad automatic translations update. 2013-07-15 05:14:00 +00:00
association Launchpad automatic translations update. 2013-08-05 06:30:55 +00:00
audittrail Launchpad automatic translations update. 2013-10-10 05:25:50 +00:00
auth_crypt Launchpad automatic translations update. 2013-11-04 06:02:49 +00:00
auth_ldap Launchpad automatic translations update. 2013-09-10 05:23:39 +00:00
auth_oauth Launchpad automatic translations update. 2013-08-19 04:57:37 +00:00
auth_oauth_signup Launchpad automatic translations update. 2013-10-10 05:25:50 +00:00
auth_openid Launchpad automatic translations update. 2013-09-12 07:17:31 +00:00
auth_signup Launchpad automatic translations update. 2013-10-14 05:33:13 +00:00
base_action_rule Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
base_calendar Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
base_gengo Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
base_iban Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
base_import [FIX]base_import: context was not considered while importing. Thus, default value (for instance) was not set, and that leaded to inconsistencies (Like importing supplier invoices was actually creating customer invoices 2013-10-31 14:56:05 +01:00
base_report_designer Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
base_setup Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
base_status Launchpad automatic translations update. 2013-11-04 06:02:49 +00:00
base_vat Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
board Launchpad automatic translations update. 2013-11-04 06:02:49 +00:00
claim_from_delivery Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
contacts Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
crm Launchpad automatic translations update. 2013-11-04 06:02:49 +00:00
crm_claim [FIX] hr_recruitment: avoid overriding email_from and email_cc in 2013-11-04 10:27:31 +01:00
crm_helpdesk [FIX] hr_recruitment: avoid overriding email_from and email_cc in 2013-11-04 10:27:31 +01:00
crm_partner_assign [FIX]crm_partner_assign: assign_geo_localize function was assigning the latitude/longitude of the first lead to all other leads passed 2013-10-31 17:02:15 +01:00
crm_profiling Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
crm_todo Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
decimal_precision Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
delivery Launchpad automatic translations update. 2013-11-04 06:02:49 +00:00
document [FIX] document: correct numbering of attachments with the same name 2013-11-04 12:05:12 +01:00
document_ftp Launchpad automatic translations update. 2013-07-22 05:59:49 +00:00
document_page Launchpad automatic translations update. 2013-10-14 05:33:13 +00:00
document_webdav Launchpad automatic translations update. 2013-07-15 05:14:00 +00:00
edi Launchpad automatic translations update. 2013-08-26 05:12:53 +00:00
email_template Launchpad automatic translations update. 2013-10-14 05:33:13 +00:00
event Launchpad automatic translations update. 2013-10-21 04:57:23 +00:00
event_moodle Launchpad automatic translations update. 2013-08-19 04:57:37 +00:00
event_sale Launchpad automatic translations update. 2013-11-05 06:00:56 +00:00
fetchmail Launchpad automatic translations update. 2013-09-23 05:35:31 +00:00
fleet Launchpad automatic translations update. 2013-11-05 06:00:56 +00:00
google_base_account Launchpad automatic translations update. 2013-08-27 05:03:16 +00:00
google_docs Launchpad automatic translations update. 2013-08-02 05:58:26 +00:00
hr [FIX] hr: fixed priorities of kanban views. Employees see the 2013-10-16 11:21:06 +02:00
hr_attendance Launchpad automatic translations update. 2013-09-24 06:37:29 +00:00
hr_contract Launchpad automatic translations update. 2013-11-05 06:00:56 +00:00
hr_evaluation Launchpad automatic translations update. 2013-08-08 04:59:27 +00:00
hr_expense Launchpad automatic translations update. 2013-10-25 06:01:00 +00:00
hr_holidays Launchpad automatic translations update. 2013-10-14 05:33:13 +00:00
hr_payroll Launchpad automatic translations update. 2013-10-14 05:33:13 +00:00
hr_payroll_account Launchpad automatic translations update. 2013-08-12 05:06:50 +00:00
hr_recruitment [FIX] hr_recruitment: avoid overriding email_from and email_cc in 2013-11-04 10:27:31 +01:00
hr_timesheet Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
hr_timesheet_invoice Launchpad automatic translations update. 2013-10-14 05:33:13 +00:00
hr_timesheet_sheet [FIX] hr_timesheet_sheet: use timezone in hour computation for timesheet 2013-09-16 16:33:00 +02:00
idea Launchpad automatic translations update. 2013-08-19 04:57:37 +00:00
knowledge Launchpad automatic translations update. 2013-07-15 05:14:00 +00:00
l10n_ar [MRG] add default values for currency in all l10n_ modules lp:~openerp-dev/openobject-addons/7.0-coa-wizard-data-cod 2013-09-09 11:09:41 +05:30
l10n_at [IMP] Improved data for account chart template 2013-09-06 17:35:36 +05:30
l10n_be [MRG] add default values for currency in all l10n_ modules lp:~openerp-dev/openobject-addons/7.0-coa-wizard-data-cod 2013-09-09 11:09:41 +05:30
l10n_be_coda Launchpad automatic translations update. 2013-10-14 05:33:13 +00:00
l10n_be_hr_payroll Launchpad automatic translations update. 2013-07-15 05:14:00 +00:00
l10n_be_hr_payroll_account [FIX] l10n_be: move yml file to l10n_be_hr_payroll_account 2013-08-14 11:40:47 +02:00
l10n_be_invoice_bba [FIX] l10n_be_invoice_bba: add copy method to invoice to generate a new bba comunication when duplicating, courtesy of Peter Langenberg (Agaplan) 2013-08-05 17:37:13 +02:00
l10n_bo [IMP] Improved code as per coding convention 2013-09-06 18:25:57 +05:30
l10n_br [MERGE] l10n_br: addition of some IPI taxes, courtesy of Renato Lima (Akretion) 2013-10-03 17:56:13 +02:00
l10n_ca [IMP] Improved code as per coding convention 2013-09-06 18:25:57 +05:30
l10n_ch [IMP] Improved data for account chart template 2013-09-06 17:35:36 +05:30
l10n_cl [IMP]Improved currency as per country data file 2013-09-09 10:50:54 +05:30
l10n_cn [IMP] Improved data for account chart template 2013-09-06 17:35:36 +05:30
l10n_co [IMP] Improved data for account chart template 2013-09-06 17:35:36 +05:30
l10n_cr [IMP] Improved data for account chart template 2013-09-06 17:35:36 +05:30
l10n_de [IMP] Improved data for account chart template 2013-09-06 17:35:36 +05:30
l10n_ec [IMP] Improved code as per coding convention 2013-09-06 18:25:57 +05:30
l10n_es [IMP] Improved data for account chart template 2013-09-06 17:35:36 +05:30
l10n_et Add Ethiopian localization for SMEs. 2012-12-14 19:52:54 +03:00
l10n_fr [FIX] l10n_fr: 2014 tax update patch has removed obsolete templates, causing an error at module update 2013-10-21 14:47:48 +02:00
l10n_fr_hr_payroll [IMP] clean permissions and shebang in files 2013-05-14 12:31:13 +02:00
l10n_fr_rib Launchpad automatic translations update. 2013-07-15 05:14:00 +00:00
l10n_gr [IMP] Improved data for account chart template 2013-09-06 17:35:36 +05:30
l10n_gt [IMP] Improved data for account chart template 2013-09-06 17:35:36 +05:30
l10n_hn [IMP] Improved data for account chart template 2013-09-06 17:35:36 +05:30
l10n_hr [IMP] Improved code as per coding convention 2013-09-06 18:25:57 +05:30
l10n_in [IMP] Improved data for account chart template 2013-09-06 17:35:36 +05:30
l10n_in_hr_payroll Launchpad automatic translations update. 2013-07-22 05:59:49 +00:00
l10n_it [add] l10n_it: add new 22% tax 2013-10-04 13:39:56 +02:00
l10n_lu [IMP] Improved data for account chart template 2013-09-06 17:35:36 +05:30
l10n_ma [MRG] add default values for currency in all l10n_ modules lp:~openerp-dev/openobject-addons/7.0-coa-wizard-data-cod 2013-09-09 11:09:41 +05:30
l10n_multilang [IMP] l10n_multilang: remove force_write from function call, mark parameter as deprecated 2013-10-31 11:53:18 +01:00
l10n_mx [IMP] Improved data for account chart template 2013-09-06 17:35:36 +05:30
l10n_nl [IMP] Improved data for account chart template 2013-09-06 17:35:36 +05:30
l10n_pa [IMP] Improved data for account chart template 2013-09-06 17:35:36 +05:30
l10n_pe [IMP] Improved data for account chart template 2013-09-06 17:35:36 +05:30
l10n_pl [IMP]Improved currency as per country data file 2013-09-09 10:50:54 +05:30
l10n_pt [IMP] Improved data for account chart template 2013-09-06 17:35:36 +05:30
l10n_ro [IMP]Improved currency as per country data file 2013-09-09 10:50:54 +05:30
l10n_si [MERGE]l10n_si : slovenian chart of account courtesy of Mentis d.o.o 2012-12-21 11:20:16 +01:00
l10n_syscohada [IMP] Improved data for account chart template 2013-09-06 17:35:36 +05:30
l10n_th [IMP] Improved data for account chart template 2013-09-06 17:35:36 +05:30
l10n_tr [IMP]Improved currency as per country data file 2013-09-09 10:50:54 +05:30
l10n_uk Launchpad automatic translations update. 2013-07-15 05:14:00 +00:00
l10n_us [MRG] add default values for currency in all l10n_ modules lp:~openerp-dev/openobject-addons/7.0-coa-wizard-data-cod 2013-09-09 11:09:41 +05:30
l10n_uy [IMP]Improved currency as per country data file 2013-09-09 10:50:54 +05:30
l10n_ve [MRG] add default values for currency in all l10n_ modules lp:~openerp-dev/openobject-addons/7.0-coa-wizard-data-cod 2013-09-09 11:09:41 +05:30
l10n_vn [IMP] Improved data for account chart template 2013-09-06 17:35:36 +05:30
lunch Launchpad automatic translations update. 2013-08-23 05:52:41 +00:00
mail Launchpad automatic translations update. 2013-11-05 06:00:56 +00:00
marketing Launchpad automatic translations update. 2013-10-25 06:01:00 +00:00
marketing_campaign Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
marketing_campaign_crm_demo Launchpad automatic translations update. 2013-07-15 05:14:00 +00:00
membership [FIX] membership: set priority on search view to avoid getting it for other modules 2013-09-02 09:50:12 +02:00
mrp Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
mrp_byproduct Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
mrp_jit Launchpad automatic translations update. 2013-08-26 05:12:53 +00:00
mrp_operations Launchpad automatic translations update. 2013-11-04 06:02:49 +00:00
mrp_repair Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
multi_company Launchpad automatic translations update. 2013-07-15 05:14:00 +00:00
note Launchpad automatic translations update. 2013-10-14 05:33:13 +00:00
note_pad Launchpad automatic translations update. 2013-08-26 05:12:53 +00:00
pad Launchpad automatic translations update. 2013-08-05 06:30:55 +00:00
pad_project Launchpad automatic translations update. 2013-07-15 05:14:00 +00:00
plugin Launchpad automatic translations update. 2013-10-25 06:01:00 +00:00
plugin_outlook Launchpad automatic translations update. 2013-07-15 05:14:00 +00:00
plugin_thunderbird Launchpad automatic translations update. 2013-07-15 05:14:00 +00:00
point_of_sale Launchpad automatic translations update. 2013-11-05 06:00:56 +00:00
portal Launchpad automatic translations update. 2013-10-25 06:01:00 +00:00
portal_anonymous Launchpad automatic translations update. 2013-09-20 06:01:45 +00:00
portal_claim Launchpad automatic translations update. 2013-08-26 05:12:53 +00:00
portal_crm Launchpad automatic translations update. 2013-10-21 04:57:23 +00:00
portal_event Launchpad automatic translations update. 2013-09-20 06:01:45 +00:00
portal_hr_employees [FIX] hr: fixed priorities of kanban views. Employees see the 2013-10-16 11:21:06 +02:00
portal_project Launchpad automatic translations update. 2013-09-30 05:43:18 +00:00
portal_project_issue Launchpad automatic translations update. 2013-08-26 05:12:53 +00:00
portal_project_long_term [FIX] portal_project_long_term: fixed access right using a non-existing field. 2013-05-14 13:15:59 +02:00
portal_sale Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
portal_stock [FIX]portal_stock: remove 2 useless ir rules since the model doesn't inherit mail.thread 2013-04-04 11:14:01 +02:00
process Launchpad automatic translations update. 2013-07-15 05:14:00 +00:00
procurement Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
product Launchpad automatic translations update. 2013-10-31 05:47:53 +00:00
product_expiry Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
product_manufacturer Launchpad automatic translations update. 2013-10-31 05:47:53 +00:00
product_margin Launchpad automatic translations update. 2013-10-31 05:47:53 +00:00
product_visible_discount Launchpad automatic translations update. 2013-10-31 05:47:53 +00:00
project Launchpad automatic translations update. 2013-11-05 06:00:56 +00:00
project_gtd Launchpad automatic translations update. 2013-11-05 06:00:56 +00:00
project_issue [FIX] hr_recruitment: avoid overriding email_from and email_cc in 2013-11-04 10:27:31 +01:00
project_issue_sheet Launchpad automatic translations update. 2013-10-21 04:57:23 +00:00
project_long_term Launchpad automatic translations update. 2013-10-22 05:15:35 +00:00
project_mrp Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
project_timesheet Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
purchase [FIX] purchase: analysis view must not group by quantity, otherwise identical PO lines are counted only once 2013-11-05 11:19:30 +01:00
purchase_analytic_plans Launchpad automatic translations update. 2013-11-05 06:00:56 +00:00
purchase_double_validation Launchpad automatic translations update. 2013-11-05 06:00:56 +00:00
purchase_requisition Launchpad automatic translations update. 2013-11-05 06:00:56 +00:00
report_intrastat Launchpad automatic translations update. 2013-10-02 05:37:24 +00:00
report_webkit Launchpad automatic translations update. 2013-09-25 05:49:14 +00:00
resource Launchpad automatic translations update. 2013-11-04 06:02:49 +00:00
sale [FIX] sale,sale_stock: sales analysis view using incorrect JOIN and group by clause 2013-11-05 11:30:11 +01:00
sale_analytic_plans Launchpad automatic translations update. 2013-11-04 06:02:49 +00:00
sale_crm Launchpad automatic translations update. 2013-11-04 06:02:49 +00:00
sale_journal Launchpad automatic translations update. 2013-11-04 06:02:49 +00:00
sale_margin Launchpad automatic translations update. 2013-11-05 06:00:56 +00:00
sale_mrp Launchpad automatic translations update. 2013-11-04 06:02:49 +00:00
sale_order_dates Launchpad automatic translations update. 2013-11-04 06:02:49 +00:00
sale_stock [FIX] sale,sale_stock: sales analysis view using incorrect JOIN and group by clause 2013-11-05 11:30:11 +01:00
share Launchpad automatic translations update. 2013-11-04 06:02:49 +00:00
stock [FIX] stock: no early currency rounding when computing average price 2013-11-04 18:32:32 +01:00
stock_invoice_directly Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
stock_location Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
stock_no_autopicking Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
subscription Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
survey Launchpad automatic translations update. 2013-11-05 06:00:56 +00:00
thunderbird/plugin
warning Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
web Launchpad automatic translations update. 2013-11-04 06:02:53 +00:00
web_analytics [FIX] web_analytics: test mock does not have a proper wbeclient instance 2013-01-30 18:43:34 +01:00
web_api Launchpad automatic translations update. 2013-05-29 07:58:39 +00:00
web_calendar Launchpad automatic translations update. 2013-10-13 05:38:46 +00:00
web_diagram Launchpad automatic translations update. 2013-09-19 04:56:31 +00:00
web_gantt Launchpad automatic translations update. 2013-06-18 06:51:32 +00:00
web_graph Launchpad automatic translations update. 2013-11-04 06:02:53 +00:00
web_hello Launchpad automatic translations update. 2013-05-29 07:58:39 +00:00
web_kanban [FIX] web_kanban: correct design of vertical title on IE 2013-11-04 15:23:10 +01:00
web_linkedin Launchpad automatic translations update. 2013-10-25 06:01:00 +00:00
web_shortcuts Launchpad automatic translations update. 2013-10-30 05:54:38 +00:00
web_tests Launchpad automatic translations update. 2013-07-15 05:14:00 +00:00
web_tests_demo [FIX] warning due to missing description of web_tests_demo module 2012-12-12 14:16:51 +01:00
web_view_editor Launchpad automatic translations update. 2013-11-04 06:02:53 +00:00
.bzrignore