diff --git a/account_companyweb/models/res_config.py b/account_companyweb/models/res_config.py index 274d2f51..543b389a 100644 --- a/account_companyweb/models/res_config.py +++ b/account_companyweb/models/res_config.py @@ -10,5 +10,5 @@ class AccountCompanywebConfigSettings(models.TransientModel): _name = 'account.companyweb.config.settings' _inherit = 'res.config.settings' - companyweb_login = fields.Char('Login', 16) - companyweb_pswd = fields.Char('Password', 16) + companyweb_login = fields.Char('Login', size=16) + companyweb_pswd = fields.Char('Password', size=16) diff --git a/account_companyweb/wizard/account_companyweb_report_wizard.py b/account_companyweb/wizard/account_companyweb_report_wizard.py index fde1e453..147f9841 100644 --- a/account_companyweb/wizard/account_companyweb_report_wizard.py +++ b/account_companyweb/wizard/account_companyweb_report_wizard.py @@ -10,7 +10,7 @@ import xlwt from openerp import fields, models, _ -from openerp.exceptions import Warning +from openerp.exceptions import Warning as UserError try: from openerp.addons.account_financial_report_webkit.report.open_invoices \ @@ -195,7 +195,7 @@ def create_openSalesDocs(self, cr, uid, ids, context=None): cr, uid, [('date_start', '<=', date_until), ('date_stop', '>=', date_until)]) if (len(fy_model.browse(cr, uid, fy_ids)) == 0): - raise Warning(_('No fiscal year %s found') % this.year) + raise UserError(_('No fiscal year %s found') % this.year) else: fy = fy_model.browse(cr, uid, fy_ids)[0] diff --git a/account_companyweb/wizard/account_companyweb_report_wizard_view.xml b/account_companyweb/wizard/account_companyweb_report_wizard_view.xml index cc00d41c..ff5a49e2 100644 --- a/account_companyweb/wizard/account_companyweb_report_wizard_view.xml +++ b/account_companyweb/wizard/account_companyweb_report_wizard_view.xml @@ -1,23 +1,23 @@ - - - account.companyweb.report.form - account.companyweb.report.wizard - form - -
- - - - - - - - - - - + + + account.companyweb.report.form + account.companyweb.report.wizard + form + + + + + + + + + + + + +
- -
-
+ +
+
- - Companyweb Report - account.companyweb.report.wizard - form - form - new - + + Companyweb Report + account.companyweb.report.wizard + form + form + new + - - Companyweb Report - - - + + Companyweb Report + + + -
+
-