Skip to content

Commit

Permalink
[MIG] account_journal_security: Migration to 16.0
Browse files Browse the repository at this point in the history
closes #380

Signed-off-by: Nacho Cainelli <ica@adhoc.com.ar>
  • Loading branch information
nicomacr committed Jan 4, 2023
1 parent 66a4f2a commit d85dd68
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions account_journal_security/__manifest__.py
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Journal Security',
'version': "15.0.1.0.0",
'version': "16.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,
}
2 changes: 1 addition & 1 deletion account_journal_security/models/account_journal.py
Expand Up @@ -15,7 +15,7 @@ class AccountJournal(models.Model):
'journal_id',
'user_id',
# string='Restricted to Users',
string='Totally restricted to',
string='Totally allowed to',
help='If choose some users, then this journal and the information'
' related to it will be only visible for those users.',
copy=False,
Expand Down
4 changes: 1 addition & 3 deletions account_journal_security/views/account_journal_views.xml
Expand Up @@ -7,13 +7,11 @@
<field name="arch" type="xml">
<xpath expr="//page[@name='advanced_settings']/group" position="inside">
<group string="Restringir a Usuarios">
<field name="journal_restriction" invisible="1"/>
<field name="journal_restriction" widget="radio" groups="base.group_erp_manager"/>
<field name="user_ids" widget="many2many_tags" groups="base.group_erp_manager" attrs="{'invisible': [('journal_restriction', '!=', 'total')]}"/>
<field name="modification_user_ids" widget="many2many_tags" groups="base.group_erp_manager" attrs="{'invisible': [('journal_restriction', '!=', 'modification')]}"/>
<div class="alert alert-warning" attrs="{'invisible': [('journal_restriction', '!=', 'total')]}" colspan="2" role="alert">
<p>
Tenga mucho cuidado al elegir esta opción ya que puede bloquear acciones de odoo. No lo recomendamos para diarios de ventas, compras, liquidez o cualquier diario en el cual se generen registros desde otra acción. Un caso tipico para este tipo de restricción es el diario de sueldos.
</p>
<p>
<b>IMPORTANTE:</b> Los usuarios que no estén en la lista no podrán ver facturas, pagos, asiento o apuntes contables en este diario, pero si podrán ver información relativa a este diario en, por ejemplo, resumen de cuenta, detalle de deuda e informes contables.
</p>
Expand Down

0 comments on commit d85dd68

Please sign in to comment.