Skip to content

Commit

Permalink
[MIG] account_journal_security: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
docker-odoo authored and rov-adhoc committed Nov 12, 2024
1 parent c980542 commit 09e8fff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions account_journal_security/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Journal Security',
'version': "17.0.1.0.0",
'version': "18.0.1.0.0",
'category': 'Accounting',
'sequence': 14,
'summary': 'Restrict the use of certain journals to certain users',
Expand All @@ -39,7 +39,7 @@
],
'test': [
],
'installable': False,
'installable': True,
'auto_install': False,
'application': False,
}
4 changes: 2 additions & 2 deletions account_journal_security/models/account_journal.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def _check_journal_users_restriction(self, field):
self.env.registry.clear_cache()

@api.model
def _search(self, domain, offset=0, limit=None, order=None, access_rights_uid=None):
def _search(self, domain, offset=0, limit=None, order=None):
"""
Para que usuarios los usuarios no puedan elegir diarios donde no puedan
escribir, modificamos la funcion search. No lo hacemos por regla de
Expand All @@ -110,7 +110,7 @@ def _search(self, domain, offset=0, limit=None, order=None, access_rights_uid=No
domain += [
'|', ('modification_user_ids', '=', False),
('id', 'in', user.modification_journal_ids.ids)]
return super()._search(domain, offset, limit, order, access_rights_uid=access_rights_uid)
return super()._search(domain, offset, limit, order)

@api.onchange('journal_restriction')
def unset_modification_user_ids(self):
Expand Down

0 comments on commit 09e8fff

Please sign in to comment.