mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
fix sale comm
This commit is contained in:
@@ -31,4 +31,4 @@ class AccountMove(models.Model):
|
|||||||
domains.append([('res_model', '=', 'account.bank.statement'), ('res_id', 'in', statement_ids.ids)])
|
domains.append([('res_model', '=', 'account.bank.statement'), ('res_id', 'in', statement_ids.ids)])
|
||||||
if payment_ids:
|
if payment_ids:
|
||||||
domains.append([('res_model', '=', 'account.payment'), ('res_id', 'in', payment_ids.ids)])
|
domains.append([('res_model', '=', 'account.payment'), ('res_id', 'in', payment_ids.ids)])
|
||||||
return self.env['ir.attachment'].search_count(expression.OR(domains))
|
return self.env['ir.attachment'].search_count(expression.OR(domains))
|
||||||
|
|||||||
Reference in New Issue
Block a user