[FIX] report_intrastat: delivery address
Complement of commit d5b46020c3, applied to the generic
Intrastat report.
opw-1878590
This commit is contained in:
committed by
Nicolas Martinelli
parent
d5b46020c3
commit
034e1d37d9
@@ -66,7 +66,7 @@ class ReportIntrastat(models.Model):
|
||||
left join report_intrastat_code intrastat on pt.intrastat_id = intrastat.id
|
||||
left join (res_partner inv_address
|
||||
left join res_country inv_country on (inv_country.id = inv_address.country_id))
|
||||
on (inv_address.id = inv.partner_id)
|
||||
on (inv_address.id = coalesce(inv.partner_shipping_id, inv.partner_id))
|
||||
where
|
||||
inv.state in ('open','paid')
|
||||
and inv_line.product_id is not null
|
||||
|
||||
Reference in New Issue
Block a user