{"id":21171596,"url":"https://github.com/0k/web_m2x_options","last_synced_at":"2025-07-09T19:33:03.916Z","repository":{"id":17800762,"uuid":"20684819","full_name":"0k/web_m2x_options","owner":"0k","description":"Manage many2one and many2many_tags widget options in Odoo","archived":false,"fork":false,"pushed_at":"2014-06-25T19:57:51.000Z","size":299,"stargazers_count":17,"open_issues_count":3,"forks_count":22,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-03-26T14:24:40.306Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0k.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-10T12:47:20.000Z","updated_at":"2024-03-26T14:24:40.307Z","dependencies_parsed_at":"2022-09-02T13:01:08.523Z","dependency_job_id":null,"html_url":"https://github.com/0k/web_m2x_options","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0k%2Fweb_m2x_options","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0k%2Fweb_m2x_options/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0k%2Fweb_m2x_options/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0k%2Fweb_m2x_options/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0k","download_url":"https://codeload.github.com/0k/web_m2x_options/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225587756,"owners_count":17492633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T16:08:29.570Z","updated_at":"2024-11-20T16:08:30.099Z","avatar_url":"https://github.com/0k.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"==================================\nAdd new options for many2one field\n==================================\n\n\nDescription\n-----------\n\nThis modules modifies \"many2one\" and \"many2manytags\" form fields so as to add some new display\ncontrol options.\n\n**New: support many2manytags widget !**\n\n**New: support global option management with ir.config_parameter !**\n\nOptions provided includes possibility to remove \"Create...\" and/or \"Create and\nEdit...\" entries from many2one drop down. You can also change default number of\nproposition appearing in the drop-down. Or prevent the dialog box poping in\ncase of validation error.\n\nIf not specified, the module will avoid proposing any of the create options\nif the current user have no permission rights to create the related object.\n\n\nRequirements\n------------\n\nWas tested on openerp trunk, saas-5 branch. New way to import js file. (thanks to tfossoul)\n\n\nNew option\n----------\n\n``create`` *boolean* (Default: depends if user have create rights)\n\n  Whether to display the \"Create...\" entry in dropdown panel.\n\n``create_edit`` *boolean* (Default: depends if user have create rights)\n\n  Whether to display \"Create and Edit...\" entry in dropdown panel\n\n``m2o_dialog`` *boolean* (Default: depends if user have create rights)\n\n  Whether to display the many2one dialog in case of validation error.\n\n``limit`` *int* (Default: openerp default value is ``7``)\n\n  Number of displayed record in drop-down panel\n\nir.config_parameter options\n---------------------------\n\nNow you can disable \"Create...\" and \"Create and Edit...\" entry for all fields in the odoo instance.\nIf you disable one option, you can enable it for particular field by setting \"create: True\" option directly on the field definition.\n\n``web_m2x_options.create`` *boolean* (Default: depends if user have create rights)\n\n  Whether to display the \"Create...\" entry in dropdown panel for all fields in the odoo instance.\n\n``web_m2x_options.create_edit`` *boolean* (Default: depends if user have create rights)\n\n  Whether to display \"Create and Edit...\" entry in dropdown panel for all fields in the odoo instance.\n\n``web_m2x_options.limit`` *int* (Default: openerp default value is ``7``)\n\n  Number of displayed record in drop-down panel for all fields in the odoo instance\n\nTo add these parameters go to Configuration -\u003e Technical -\u003e Parameters -\u003e System Parameters and add new parameters like:\n\n- web_m2x_options.create: False\n- web_m2x_options.create_edit: False\n- web_m2x_options.limit: 10\n\n\nExample\n-------\n\nYour XML form view definition could contain::\n\n    ...\n    \u003cfield name=\"partner_id\" options=\"{'limit': 10, 'create': false, 'create_edit': false}\"/\u003e\n    ...\n\nNote\n----\n\nDouble check that you have no inherited view that remote ``options`` you set on a field ! \nIf nothing work, add a debugger in the first ligne of ``get_search_result method`` and enable debug mode in OpenERP. When you write something in a many2one field, javascript debugger should pause. If not verify your installation.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0k%2Fweb_m2x_options","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0k%2Fweb_m2x_options","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0k%2Fweb_m2x_options/lists"}