mirror of
https://github.com/bringout/oca-ocb-l10n_asia-pacific.git
synced 2026-04-26 12:41:59 +02:00
19.0 vanilla
This commit is contained in:
parent
7dc55599c6
commit
7f43bbbfcc
650 changed files with 45260 additions and 33436 deletions
|
|
@ -1,15 +1,15 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import api, fields, models, _
|
||||
from odoo.exceptions import ValidationError
|
||||
from odoo.osv import expression
|
||||
from odoo.fields import Domain
|
||||
|
||||
try:
|
||||
from cn2an import an2cn
|
||||
except ImportError:
|
||||
an2cn = None
|
||||
|
||||
|
||||
class AccountMove(models.Model):
|
||||
_inherit = 'account.move'
|
||||
|
||||
|
|
@ -40,4 +40,4 @@ class AccountMove(models.Model):
|
|||
domains.append([('res_model', '=', 'account.bank.statement'), ('res_id', 'in', statement_ids.ids)])
|
||||
if payment_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(Domain.OR(domains))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue