From e8e6a91431c46eca2b08226164a37127f0e5f79c Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Wed, 7 Sep 2011 22:55:18 +0200 Subject: [IMP] document: (usability) improved wording of virtual folder wizard screen bzr revid: odo@openerp.com-20110907205518-we9s9ws5dphrcs7b --- addons/document/wizard/document_configuration.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'addons/document/wizard/document_configuration.py') diff --git a/addons/document/wizard/document_configuration.py b/addons/document/wizard/document_configuration.py index 40dc2b3afd8..3485e7412c7 100644 --- a/addons/document/wizard/document_configuration.py +++ b/addons/document/wizard/document_configuration.py @@ -28,9 +28,9 @@ class document_configuration(osv.osv_memory): _inherit = 'res.config' _columns = { - 'sale_order' : fields.boolean('Sale Order', help="Auto directory configuration for Sale Orders and Quotation with report."), - 'product' : fields.boolean('Product', help="Auto directory configuration for Products."), - 'project': fields.boolean('Project', help="Auto directory configuration for Projects."), + 'sale_order' : fields.boolean('Sale Orders', help="Create virtual folders for Sale Orders and Quotations. One virtual folder will appear for each, in which the latest printed PDF document can be downloaded at any time, and where you can manage (view, add, delete) other attachments."), + 'product' : fields.boolean('Products', help="Create virtual folders for Products. One virtual folder will appear for each product, where you can manage (view, add, delete) the files attached to the product"), + 'project': fields.boolean('Projects', help="Create virtual folders for Projects. One virtual folder will appear for each project, where you can manage (view, add, delete) the files attached to the project"), } @@ -81,7 +81,7 @@ class document_configuration(osv.osv_memory): }) content_pool.create(cr, uid, { - 'name': "Print Qutation", + 'name': "Print Quotation", 'suffix': "_print", 'report_id': order_report_id, 'extension': '.pdf', -- cgit v1.2.3 From 8cf0d19c513b83179504daa1c8c249c38e8f426f Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Sat, 1 Oct 2011 21:21:15 +0200 Subject: [IMP] useability config wizards bzr revid: fp@tinyerp.com-20111001192115-mgkx8mbmx34ps5xo --- addons/document/wizard/document_configuration.py | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'addons/document/wizard/document_configuration.py') diff --git a/addons/document/wizard/document_configuration.py b/addons/document/wizard/document_configuration.py index 3485e7412c7..97eda4e2d62 100644 --- a/addons/document/wizard/document_configuration.py +++ b/addons/document/wizard/document_configuration.py @@ -22,26 +22,16 @@ from osv import osv, fields class document_configuration(osv.osv_memory): - _name='document.configuration' - _description = 'Auto Directory Configuration' + _description = 'Directory Configuration' _inherit = 'res.config' - _columns = { - 'sale_order' : fields.boolean('Sale Orders', help="Create virtual folders for Sale Orders and Quotations. One virtual folder will appear for each, in which the latest printed PDF document can be downloaded at any time, and where you can manage (view, add, delete) other attachments."), - 'product' : fields.boolean('Products', help="Create virtual folders for Products. One virtual folder will appear for each product, where you can manage (view, add, delete) the files attached to the product"), - 'project': fields.boolean('Projects', help="Create virtual folders for Projects. One virtual folder will appear for each project, where you can manage (view, add, delete) the files attached to the project"), - } - - def execute(self, cr, uid, ids, context=None): - conf_id = ids and ids[0] or False - conf = self.browse(cr, uid, conf_id, context=context) dir_pool = self.pool.get('document.directory') data_pool = self.pool.get('ir.model.data') model_pool = self.pool.get('ir.model') content_pool = self.pool.get('document.directory.content') - if conf.sale_order and self.pool.get('sale.order'): + if self.pool.get('sale.order'): # Sale order dir_data_id = data_pool._get_id(cr, uid, 'document', 'dir_sale_order_all') if dir_data_id: @@ -90,7 +80,7 @@ class document_configuration(osv.osv_memory): }) - if conf.product and self.pool.get('product.product'): + if self.pool.get('product.product'): # Product dir_data_id = data_pool._get_id(cr, uid, 'document', 'dir_product') if dir_data_id: @@ -104,7 +94,7 @@ class document_configuration(osv.osv_memory): 'ressource_type_id': mid[0], }) - if conf.project and self.pool.get('account.analytic.account'): + if self.pool.get('account.analytic.account'): # Project dir_data_id = data_pool._get_id(cr, uid, 'document', 'dir_project') if dir_data_id: -- cgit v1.2.3