From da73f15cd0ee959898018ec59cc2305dba59dbde Mon Sep 17 00:00:00 2001 From: Matthieu Dietrich Date: Tue, 24 May 2016 15:20:22 +0200 Subject: [PATCH] Change button style again --- account_permanent_lock_move/__openerp__.py | 1 - account_permanent_lock_move/models/res_config.py | 4 ++-- account_permanent_lock_move/security/ir.model.access.csv | 2 -- account_permanent_lock_move/views/res_config_view.xml | 4 ++-- .../wizard/permanent_lock_date_wizard.py | 4 ++-- .../wizard/permanent_lock_date_wizard.xml | 2 +- 6 files changed, 7 insertions(+), 10 deletions(-) delete mode 100644 account_permanent_lock_move/security/ir.model.access.csv diff --git a/account_permanent_lock_move/__openerp__.py b/account_permanent_lock_move/__openerp__.py index b30ac3438..c18f0fc46 100644 --- a/account_permanent_lock_move/__openerp__.py +++ b/account_permanent_lock_move/__openerp__.py @@ -11,7 +11,6 @@ "data": [ "views/res_config_view.xml", "wizard/permanent_lock_date_wizard.xml", - "security/ir.model.access.csv", ], 'license': 'AGPL-3', "auto_install": False, diff --git a/account_permanent_lock_move/models/res_config.py b/account_permanent_lock_move/models/res_config.py index 5f6d1c54d..1e312fff8 100644 --- a/account_permanent_lock_move/models/res_config.py +++ b/account_permanent_lock_move/models/res_config.py @@ -10,8 +10,8 @@ class AccountConfigSettings(models.TransientModel): permanent_lock_date = fields.Date( string="Permanent Lock Date", related='company_id.permanent_lock_date', - help="Non-revertible closing of accounts prior to and inclusive of " - "this date. Use it for fiscal year locking instead of ""Lock Date"".") + help='Non-revertible closing of accounts prior to and inclusive of ' + 'this date. Use it for fiscal year locking instead of "Lock Date".') @api.multi def change_permanent_lock_date(self): diff --git a/account_permanent_lock_move/security/ir.model.access.csv b/account_permanent_lock_move/security/ir.model.access.csv deleted file mode 100644 index 01a499cc9..000000000 --- a/account_permanent_lock_move/security/ir.model.access.csv +++ /dev/null @@ -1,2 +0,0 @@ -id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink -access_account_permanent_lock_date_wizard,account.permanent.lock.move,model_permanent_lock_date_wizard,account.group_account_manager,1,1,1,1 diff --git a/account_permanent_lock_move/views/res_config_view.xml b/account_permanent_lock_move/views/res_config_view.xml index ff81a801a..acc77dd5f 100644 --- a/account_permanent_lock_move/views/res_config_view.xml +++ b/account_permanent_lock_move/views/res_config_view.xml @@ -7,10 +7,10 @@
-
diff --git a/account_permanent_lock_move/wizard/permanent_lock_date_wizard.py b/account_permanent_lock_move/wizard/permanent_lock_date_wizard.py index 6d849e9ce..7382d4414 100644 --- a/account_permanent_lock_move/wizard/permanent_lock_date_wizard.py +++ b/account_permanent_lock_move/wizard/permanent_lock_date_wizard.py @@ -19,7 +19,7 @@ class PermanentLockDateWizard(models.TransientModel): if (company.permanent_lock_date and self.lock_date < company.permanent_lock_date): raise UserError( - _("You cannot set the permanent lock date in the past!") + _("You cannot set the permanent lock date in the past.") ) # Then check if unposted moves are present before the date moves = self.env['account.move'].search( @@ -29,7 +29,7 @@ class PermanentLockDateWizard(models.TransientModel): if moves: raise UserError( _("You cannot permanently lock since entries " - "are still unposted before this date!") + "are still unposted before this date.") ) company.permanent_lock_date = self.lock_date diff --git a/account_permanent_lock_move/wizard/permanent_lock_date_wizard.xml b/account_permanent_lock_move/wizard/permanent_lock_date_wizard.xml index f789e3171..0ffbe0046 100644 --- a/account_permanent_lock_move/wizard/permanent_lock_date_wizard.xml +++ b/account_permanent_lock_move/wizard/permanent_lock_date_wizard.xml @@ -5,7 +5,7 @@ form
-