Skip to content

Commit 1009054

Browse files
committed
Use is for the titular, not the rights partner
1 parent 1b7d96d commit 1009054

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

som_generationkwh/assignment.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ def _get_generationkwh_use(self, cursor, uid, res_partner_id, date_domain):
494494
GenerationkWhInvoiceLineOwner = self.pool.get('generationkwh.invoice.line.owner')
495495
q = OOQuery(GenerationkWhInvoiceLineOwner, cursor, uid)
496496

497-
sql = q.select(['id']).where([('owner_id.id', '=', res_partner_id)]+date_domain)
497+
sql = q.select(['id']).where([('factura_id.polissa_id.titular.id', '=', res_partner_id)]+date_domain)
498498
cursor.execute(*sql)
499499
res = cursor.fetchall()
500500
generation_line_ids = [line[0] for line in res]

0 commit comments

Comments
 (0)