diff --git a/contract_sale/README.rst b/contract_sale/README.rst index 03aa6c0a..bcc9df6c 100644 --- a/contract_sale/README.rst +++ b/contract_sale/README.rst @@ -1,17 +1,41 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html - :alt: License: AGPL-3 - ================== Contract from Sale ================== +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fcontract-lightgray.png?logo=github + :target: https://github.com/OCA/contract/tree/11.0/contract_sale + :alt: OCA/contract +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/contract-11-0/contract-11-0-contract_sale + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/110/11.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + This module allows access to contracts for sale employees without account permissions. Employees in sale security group "User: Only Own Documents", can only access contracts created by themselves. +**Table of contents** + +.. contents:: + :local: + Usage ===== @@ -19,37 +43,47 @@ Usage #. Go to Sales > Sales > Contracts. #. Create a new record or edit another one. -.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas - :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/110/10.0 - Bug Tracker =========== -Bugs are tracked on `GitHub Issues -`_. In case of trouble, please -check there if your issue has already been reported. If you spotted it first, -help us smash it by providing detailed and welcomed feedback. +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. Credits ======= +Authors +~~~~~~~ + +* Tecnativa + Contributors ------------- +~~~~~~~~~~~~ + +* `Tecnativa `_: + + * Luis M. Ontalba + * Pedro M. Baeza -* Luis M. Ontalba +* Levent Karakaş -Maintainer ----------- +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. .. image:: https://odoo-community.org/logo.png :alt: Odoo Community Association :target: https://odoo-community.org -This module is maintained by the OCA. - OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -To contribute to this module, please visit https://odoo-community.org. +This module is part of the `OCA/contract `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/contract_sale/__manifest__.py b/contract_sale/__manifest__.py index 707940ab..5dccb9a2 100644 --- a/contract_sale/__manifest__.py +++ b/contract_sale/__manifest__.py @@ -9,7 +9,7 @@ 'Odoo Community Association (OCA)', 'website': 'https://github.com/OCA/contract', 'depends': [ - 'sale_management', + 'sale', 'contract', ], 'data': [ diff --git a/contract_sale/readme/CONTRIBUTORS.rst b/contract_sale/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000..53e518a6 --- /dev/null +++ b/contract_sale/readme/CONTRIBUTORS.rst @@ -0,0 +1,6 @@ +* `Tecnativa `_: + + * Luis M. Ontalba + * Pedro M. Baeza + +* Levent Karakaş diff --git a/contract_sale/readme/DESCRIPTION.rst b/contract_sale/readme/DESCRIPTION.rst new file mode 100644 index 00000000..38e29f97 --- /dev/null +++ b/contract_sale/readme/DESCRIPTION.rst @@ -0,0 +1,5 @@ +This module allows access to contracts for sale employees without account +permissions. + +Employees in sale security group "User: Only Own Documents", can only access +contracts created by themselves. diff --git a/contract_sale/readme/USAGE.rst b/contract_sale/readme/USAGE.rst new file mode 100644 index 00000000..d800c71d --- /dev/null +++ b/contract_sale/readme/USAGE.rst @@ -0,0 +1,3 @@ +#. Log with an user having sale but not account permissions. +#. Go to Sales > Sales > Contracts. +#. Create a new record or edit another one. diff --git a/contract_sale/views/account_analytic_account_view.xml b/contract_sale/views/account_analytic_account_view.xml index bc7a6baa..04c2d13c 100644 --- a/contract_sale/views/account_analytic_account_view.xml +++ b/contract_sale/views/account_analytic_account_view.xml @@ -4,7 +4,7 @@