Skip to content

Commit

Permalink
[FIX] l10n_do_accounting: TypeError: AccountMove._name_search() got a…
Browse files Browse the repository at this point in the history
…n unexpected keyword argument 'order'
  • Loading branch information
jose-pcg committed Aug 27, 2024
1 parent 66560cd commit 36a565e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion l10n_do_accounting/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"category": "Localization",
"license": "LGPL-3",
"website": "https://github.com/odoo-dominicana",
"version": "17.0.1.0.2",
"version": "17.0.1.0.3",
"countries": ["do"],
# any module necessary for this one to work correctly
"depends": ["l10n_latam_invoice_document", "l10n_do"],
Expand Down
14 changes: 4 additions & 10 deletions l10n_do_accounting/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,20 +190,14 @@ def _auto_init(self):
return super()._auto_init()

@api.model
def _name_search(
self, name="", args=None, operator="ilike", limit=100, name_get_uid=None
):
args = args or []
domain = []
def _name_search(self, name, domain=None, operator='ilike', limit=None, order=None):
if name:
domain = [
domain = expression.AND([[
"|",
("name", operator, name),
("l10n_do_fiscal_number", operator, name),
]
return self._search(
expression.AND([domain, args]), limit=limit, access_rights_uid=name_get_uid
)
], domain])
return super()._name_search(name, domain, operator, limit, order)

def _l10n_do_is_new_expiration_date(self):
self.ensure_one()
Expand Down

0 comments on commit 36a565e

Please sign in to comment.