|
@@ -76,7 +76,8 @@ def get_account_invoice_line():
|
|
|
LEFT JOIN res_partner AS user_partner
|
|
|
ON user_partner.id = users.partner_id
|
|
|
WHERE invoice.state NOT IN ('draft', 'cancel')
|
|
|
- AND invoice.type in ('out_invoice','out_refund')
|
|
|
+ AND invoice.type in ('out_invoice')
|
|
|
+ AND template.type = 'product'
|
|
|
GROUP BY
|
|
|
invoice.id,
|
|
|
line.id,
|
|
@@ -159,6 +160,7 @@ def get_account_invoice_line():
|
|
|
ON user_partner.id = users.partner_id
|
|
|
WHERE invoice.state NOT IN ('draft', 'cancel')
|
|
|
AND invoice.type = 'out_invoice'
|
|
|
+ AND template.type = 'product'
|
|
|
GROUP BY
|
|
|
invoice.id,
|
|
|
line.id,
|