From a9d229d66f1104ea49abb3177c6d7825ee6d54fa Mon Sep 17 00:00:00 2001 From: ced <> Date: Tue, 23 Jan 2007 09:37:29 +0000 Subject: [PATCH] REPORT_INTRASTAT: set price to 0 if no SO or PO found bzr revid: ced-58fb25322435eb8da9e19e8834c2baaeffa96657 --- addons/report_intrastat/report_intrastat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/report_intrastat/report_intrastat.py b/addons/report_intrastat/report_intrastat.py index 3a420d150a6..315b5d5590c 100644 --- a/addons/report_intrastat/report_intrastat.py +++ b/addons/report_intrastat/report_intrastat.py @@ -83,7 +83,7 @@ class report_intrastat(osv.osv): else case when sol.price_unit is not null then sol.price_unit * m.product_qty - else pt.standard_price * m.product_qty + else 0 end end) as value, sum(pt.weight_net * m.product_qty) as weight,