How to Make Configuration Wizard for Application Settings

How to Make Configuration Wizard for Application Settings

It provides support for setting default values, assigning groups to employee users, and installing modules. To make such a ‘settings’ wizard, define a model like: class my_config_wizard(osv.osv_memory): _name = ‘my.settings’ _inherit = ‘res.config.settings’ _columns = { ‘default_foo’: fields.type(…, default_model=’my.model’), ‘group_bar’: fields.boolean(…, group=’base.group_user’,  implied_group=’my.group’), ‘module_baz’: fields.boolean(…), ‘other_field’: fields.type(…), } The method “execute“ provides some support based on a naming convention: For a field like ‘default_XXX’, “execute“ sets the (global) default value of the field ‘XXX’ in the model named by “default_model“ to the field’s value. E:g- “default_sale_tax_id” in account.config.settings allows you to set default taxes for sale. For a selection field like ‘group_XXX’ composed of 2 integers values (‘0’ and ‘1’), “execute“ adds/removes ‘implied_group’ to/from the implied groups of ‘group’, depending on the field’s value. E.g-”group_product_variant” in purchase.config.the setting allows you to define some variant of the same products if Checked. For a boolean field like ‘module_XXX’, “execute“ triggers the immediate installation of the module named ‘XXX’ if the field has value “True“. E.g-”module_crm_voip” in sale.config.setting if checked then it leads to installation of VOIP module. For a selection field like ‘module_XXX’ composed of 2 integers values (‘0’ and                                            ‘1’),“execute“ triggers the immediate installation of the module named ‘XXX’ if the field has the integer value “1“. *   For the other fields, the method “execute“ invokes all methods with a name that starts with ‘set_’; such methods can be defined to implement the effect of those fields. In View file add ‘oe_form_configuration’ class to the <form> tag. Contact Us for Customized ERP Solutions

Read More

How to Show the Attachments in ERP According to Users Need?

How to Show the Attachments in ERP According to Users Need?

If User Want To show attachments in form view, Above Screen will make you more clear. Suppose, you have Two attachments & want to show in another One2many field. Then you should have One notebook page as Attached Document and attachment_ids as one2many. In that one2many, attachments will be shown by that attachment button. Field in project.task class should be as follow: ‘attachment_ids’: fields.one2many(‘ir.attachment’, ‘res_id’, […]

Read More

ERP Software Best Source of ROI for Businesses

ERP Software Best Source of ROI for Businesses

Imagine living in a spot where you have each one of the shops you require energize your necessities, however there’s no sensible path starting with one store then onto the next. None have any idea what the others are doing or how they fit in with each unique as they relate to you. Or maybe, there’s one long noteworthy road (we’ll call that your ‘association’) […]

Read More

Enterprise Resource Planning- Improves the Execution Process

Enterprise Resource Planning- Improves the Execution Process

Enterprise resource planning or ERP is a mix of software modules to improve the execution of resources in an association. It is a key approach to accomplish business benefit in worldwide business sector field. Today, ERP is one of the usually utilized software bundles by little and medium measured organizations. Execution of ERP helps business proprietors in accomplishing a complete control over the foundation of organization […]

Read More Leave comment