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.

81 lines
2.3 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. Credits
  40. =======
  41. Images
  42. ------
  43. * Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/
  44. blob/master/template/module/static/description/icon.svg>`_.
  45. Contributors
  46. ------------
  47. * Pierre Verkest <pverkest@anybox.fr>
  48. * Christophe Combelles <ccomb@anybox.fr>
  49. * Simon André <sandre@anybox.fr>
  50. * Jairo Llopis <jairo.llopis@tecnativa.com>
  51. Maintainer
  52. ----------
  53. .. image:: https://odoo-community.org/logo.png
  54. :alt: Odoo Community Association
  55. :target: https://odoo-community.org
  56. This module is maintained by the OCA.
  57. OCA, or the Odoo Community Association, is a nonprofit organization whose
  58. mission is to support the collaborative development of Odoo features and
  59. promote its widespread use.
  60. To contribute to this module, please visit https://odoo-community.org.