You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
2.4 KiB

  1. .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
  2. :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
  3. :alt: License: AGPL-3
  4. ========================
  5. Web duplicate visibility
  6. ========================
  7. This module allows to manage the visibility of duplicate button from the form
  8. view declaration.
  9. Usage
  10. =====
  11. While the default behavior of odoo is to display the duplicate button when user
  12. is allowed to create a new object. You are now able to remove duplicate button
  13. explicitly even if you are able to create new object::
  14. <record id="view_form_id" model="ir.ui.view">
  15. <field name="name">view name</field>
  16. <field name="model">my.model</field>
  17. <field name="priority" eval="10"/>
  18. <field name="arch" type="xml">
  19. <form string="..." duplicate="0">
  20. ...
  21. </form>
  22. </field>
  23. </record>
  24. or by extending an existing view::
  25. <field name="arch" type="xml">
  26. <xpath expr="//form" position="attributes">
  27. <attribute name="duplicate">0</attribute>
  28. </xpath>
  29. </field>
  30. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
  31. :alt: Try me on Runbot
  32. :target: https://runbot.odoo-community.org/runbot/repo/github-com-oca-web-162
  33. Bug Tracker
  34. ===========
  35. Bugs are tracked on `GitHub Issues
  36. <https://github.com/OCA/web/issues>`_. In case of trouble, please
  37. check there if your issue has already been reported. If you spotted it first,
  38. help us smashing it by providing a detailed and welcomed `feedback
  39. <https://github.com/OCA/web/issues/new?body=module:%20web_duplicate_visibility%0
  40. Aversion:%209.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20
  41. behavior**%0A%0A**Expected%20behavior**>`_.
  42. Credits
  43. =======
  44. Images
  45. ------
  46. * Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/
  47. blob/master/template/module/static/description/icon.svg>`_.
  48. Contributors
  49. ------------
  50. * Pierre Verkest <pverkest@anybox.fr>
  51. * Christophe Combelles <ccomb@anybox.fr>
  52. * Simon André <sandre@anybox.fr>
  53. Maintainer
  54. ----------
  55. .. image:: https://odoo-community.org/logo.png
  56. :alt: Odoo Community Association
  57. :target: https://odoo-community.org
  58. This module is maintained by the OCA.
  59. OCA, or the Odoo Community Association, is a nonprofit organization whose
  60. mission is to support the collaborative development of Odoo features and
  61. promote its widespread use.
  62. To contribute to this module, please visit https://odoo-community.org.