diff --git a/contract_sale/README.rst b/contract_sale/README.rst new file mode 100644 index 000000000..b11ecb17a --- /dev/null +++ b/contract_sale/README.rst @@ -0,0 +1,92 @@ +================== +Contract from Sale +================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png + :target: https://odoo-community.org/page/development-status + :alt: Production/Stable +.. |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/13.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-13-0/contract-13-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/13.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 +===== + +#. Log with an user having sale but not account permissions. +#. Go to Sales > Sales > Contracts. +#. Create a new record or edit another one. + +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 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 + * Víctor Martínez + +* Levent Karakaş +* Bejaoui Souheil +* Dhara Solanki + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +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. + +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/__init__.py b/contract_sale/__init__.py new file mode 100644 index 000000000..b409d3191 --- /dev/null +++ b/contract_sale/__init__.py @@ -0,0 +1 @@ +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html diff --git a/contract_sale/__manifest__.py b/contract_sale/__manifest__.py new file mode 100644 index 000000000..e60069f84 --- /dev/null +++ b/contract_sale/__manifest__.py @@ -0,0 +1,24 @@ +# Copyright 2017 Tecnativa - Luis M. Ontalba +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html + +{ + "name": "Contract from Sale", + "version": "14.0.1.0.0", + "category": "Sales", + "author": "Tecnativa, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/contract", + "depends": ["sale", "contract"], + "development_status": "Production/Stable", + "data": [ + "security/ir.model.access.csv", + "security/contract_security.xml", + "views/abstract_contract_line.xml", + "views/contract.xml", + "views/contract_line.xml", + "views/contract_template.xml", + "views/res_partner_view.xml", + ], + "license": "AGPL-3", + "installable": True, + "auto_install": True, +} diff --git a/contract_sale/i18n/contract_sale.pot b/contract_sale/i18n/contract_sale.pot new file mode 100644 index 000000000..46c345f80 --- /dev/null +++ b/contract_sale/i18n/contract_sale.pot @@ -0,0 +1,19 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_sale +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 13.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: contract_sale +#: model:ir.ui.menu,name:contract_sale.menu_contract_sale +msgid "Contracts" +msgstr "" diff --git a/contract_sale/i18n/de.po b/contract_sale/i18n/de.po new file mode 100644 index 000000000..64be3f993 --- /dev/null +++ b/contract_sale/i18n/de.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_sale +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-30 01:41+0000\n" +"PO-Revision-Date: 2017-11-30 01:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: contract_sale +#: model:ir.ui.menu,name:contract_sale.menu_contract_sale +msgid "Contracts" +msgstr "Verträge" diff --git a/contract_sale/i18n/es.po b/contract_sale/i18n/es.po new file mode 100644 index 000000000..c8c60ca94 --- /dev/null +++ b/contract_sale/i18n/es.po @@ -0,0 +1,22 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_sale +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-10-12 10:50+0000\n" +"PO-Revision-Date: 2017-10-12 10:50+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: contract_sale +#: model:ir.ui.menu,name:contract_sale.menu_contract_sale +msgid "Contracts" +msgstr "Contratos" diff --git a/contract_sale/i18n/es_CL.po b/contract_sale/i18n/es_CL.po new file mode 100644 index 000000000..6a862bfa4 --- /dev/null +++ b/contract_sale/i18n/es_CL.po @@ -0,0 +1,22 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_sale +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2020-05-07 20:19+0000\n" +"Last-Translator: Maxime Chambreuil \n" +"Language-Team: none\n" +"Language: es_CL\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 3.10\n" + +#. module: contract_sale +#: model:ir.ui.menu,name:contract_sale.menu_contract_sale +msgid "Contracts" +msgstr "Contratos" diff --git a/contract_sale/i18n/fr.po b/contract_sale/i18n/fr.po new file mode 100644 index 000000000..b468f19ae --- /dev/null +++ b/contract_sale/i18n/fr.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_sale +# +# Translators: +# leemannd , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-30 01:41+0000\n" +"PO-Revision-Date: 2017-11-30 01:41+0000\n" +"Last-Translator: leemannd , 2017\n" +"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: contract_sale +#: model:ir.ui.menu,name:contract_sale.menu_contract_sale +msgid "Contracts" +msgstr "Contrats" diff --git a/contract_sale/i18n/gl.po b/contract_sale/i18n/gl.po new file mode 100644 index 000000000..139fe4856 --- /dev/null +++ b/contract_sale/i18n/gl.po @@ -0,0 +1,23 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_sale +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-05-29 10:00+0000\n" +"PO-Revision-Date: 2019-02-04 18:50+0000\n" +"Last-Translator: Marta Vázquez Rodríguez \n" +"Language-Team: none\n" +"Language: gl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 3.4\n" + +#. module: contract_sale +#: model:ir.ui.menu,name:contract_sale.menu_contract_sale +msgid "Contracts" +msgstr "Contratos" diff --git a/contract_sale/i18n/hi_IN.po b/contract_sale/i18n/hi_IN.po new file mode 100644 index 000000000..3c9f94393 --- /dev/null +++ b/contract_sale/i18n/hi_IN.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_sale +# +# Translators: +# Ashish Deshmukh , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-30 01:41+0000\n" +"PO-Revision-Date: 2017-11-30 01:41+0000\n" +"Last-Translator: Ashish Deshmukh , 2017\n" +"Language-Team: Hindi (India) (https://www.transifex.com/oca/teams/23907/" +"hi_IN/)\n" +"Language: hi_IN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: contract_sale +#: model:ir.ui.menu,name:contract_sale.menu_contract_sale +msgid "Contracts" +msgstr "अनुबंध" diff --git a/contract_sale/i18n/hr.po b/contract_sale/i18n/hr.po new file mode 100644 index 000000000..3e62c4f79 --- /dev/null +++ b/contract_sale/i18n/hr.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_sale +# +# Translators: +# Bole , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-30 01:41+0000\n" +"PO-Revision-Date: 2017-11-30 01:41+0000\n" +"Last-Translator: Bole , 2017\n" +"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" +"Language: hr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: contract_sale +#: model:ir.ui.menu,name:contract_sale.menu_contract_sale +msgid "Contracts" +msgstr "Ugovori" diff --git a/contract_sale/i18n/hr_HR.po b/contract_sale/i18n/hr_HR.po new file mode 100644 index 000000000..89b2bddb6 --- /dev/null +++ b/contract_sale/i18n/hr_HR.po @@ -0,0 +1,26 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_sale +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-30 01:41+0000\n" +"PO-Revision-Date: 2017-11-30 01:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/" +"hr_HR/)\n" +"Language: hr_HR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: contract_sale +#: model:ir.ui.menu,name:contract_sale.menu_contract_sale +msgid "Contracts" +msgstr "Ugovori" diff --git a/contract_sale/i18n/it.po b/contract_sale/i18n/it.po new file mode 100644 index 000000000..17f68c3d5 --- /dev/null +++ b/contract_sale/i18n/it.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_sale +# +# Translators: +# Lorenzo Battistini , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-30 01:41+0000\n" +"PO-Revision-Date: 2017-11-30 01:41+0000\n" +"Last-Translator: Lorenzo Battistini , 2017\n" +"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: contract_sale +#: model:ir.ui.menu,name:contract_sale.menu_contract_sale +msgid "Contracts" +msgstr "Contratti" diff --git a/contract_sale/i18n/nl.po b/contract_sale/i18n/nl.po new file mode 100644 index 000000000..7a0e4ed55 --- /dev/null +++ b/contract_sale/i18n/nl.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_sale +# +# Translators: +# Erwin van der Ploeg , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-30 01:41+0000\n" +"PO-Revision-Date: 2017-11-30 01:41+0000\n" +"Last-Translator: Erwin van der Ploeg , 2017\n" +"Language-Team: Dutch (https://www.transifex.com/oca/teams/23907/nl/)\n" +"Language: nl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: contract_sale +#: model:ir.ui.menu,name:contract_sale.menu_contract_sale +msgid "Contracts" +msgstr "Contracten" diff --git a/contract_sale/i18n/nl_NL.po b/contract_sale/i18n/nl_NL.po new file mode 100644 index 000000000..db5aede48 --- /dev/null +++ b/contract_sale/i18n/nl_NL.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_sale +# +# Translators: +# Peter Hageman , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-30 01:41+0000\n" +"PO-Revision-Date: 2017-11-30 01:41+0000\n" +"Last-Translator: Peter Hageman , 2017\n" +"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/" +"teams/23907/nl_NL/)\n" +"Language: nl_NL\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: contract_sale +#: model:ir.ui.menu,name:contract_sale.menu_contract_sale +msgid "Contracts" +msgstr "Contracten" diff --git a/contract_sale/i18n/pt.po b/contract_sale/i18n/pt.po new file mode 100644 index 000000000..be60d87bc --- /dev/null +++ b/contract_sale/i18n/pt.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_sale +# +# Translators: +# Pedro Castro Silva , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-30 01:41+0000\n" +"PO-Revision-Date: 2017-11-30 01:41+0000\n" +"Last-Translator: Pedro Castro Silva , " +"2017\n" +"Language-Team: Portuguese (https://www.transifex.com/oca/teams/23907/pt/)\n" +"Language: pt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: contract_sale +#: model:ir.ui.menu,name:contract_sale.menu_contract_sale +msgid "Contracts" +msgstr "Contratos" diff --git a/contract_sale/i18n/pt_BR.po b/contract_sale/i18n/pt_BR.po new file mode 100644 index 000000000..1ed828aa7 --- /dev/null +++ b/contract_sale/i18n/pt_BR.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_sale +# +# Translators: +# Albert Vonpupp , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-30 01:41+0000\n" +"PO-Revision-Date: 2017-11-30 01:41+0000\n" +"Last-Translator: Albert Vonpupp , 2017\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/" +"teams/23907/pt_BR/)\n" +"Language: pt_BR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: contract_sale +#: model:ir.ui.menu,name:contract_sale.menu_contract_sale +msgid "Contracts" +msgstr "Contratos" diff --git a/contract_sale/i18n/ro.po b/contract_sale/i18n/ro.po new file mode 100644 index 000000000..b4e2c771a --- /dev/null +++ b/contract_sale/i18n/ro.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_sale +# +# Translators: +# Dorin Hongu , 2018 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-06 03:17+0000\n" +"PO-Revision-Date: 2018-01-06 03:17+0000\n" +"Last-Translator: Dorin Hongu , 2018\n" +"Language-Team: Romanian (https://www.transifex.com/oca/teams/23907/ro/)\n" +"Language: ro\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?" +"2:1));\n" + +#. module: contract_sale +#: model:ir.ui.menu,name:contract_sale.menu_contract_sale +msgid "Contracts" +msgstr "Contracte" diff --git a/contract_sale/i18n/ru.po b/contract_sale/i18n/ru.po new file mode 100644 index 000000000..936516485 --- /dev/null +++ b/contract_sale/i18n/ru.po @@ -0,0 +1,26 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_sale +# +# Translators: +# Мед Ведь , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-30 01:41+0000\n" +"PO-Revision-Date: 2017-11-30 01:41+0000\n" +"Last-Translator: Мед Ведь , 2017\n" +"Language-Team: Russian (https://www.transifex.com/oca/teams/23907/ru/)\n" +"Language: ru\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n" +"%100>=11 && n%100<=14)? 2 : 3);\n" + +#. module: contract_sale +#: model:ir.ui.menu,name:contract_sale.menu_contract_sale +msgid "Contracts" +msgstr "Договоры" diff --git a/contract_sale/i18n/tr.po b/contract_sale/i18n/tr.po new file mode 100644 index 000000000..097f31abd --- /dev/null +++ b/contract_sale/i18n/tr.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_sale +# +# Translators: +# Ediz Duman , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-30 01:41+0000\n" +"PO-Revision-Date: 2017-11-30 01:41+0000\n" +"Last-Translator: Ediz Duman , 2017\n" +"Language-Team: Turkish (https://www.transifex.com/oca/teams/23907/tr/)\n" +"Language: tr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: contract_sale +#: model:ir.ui.menu,name:contract_sale.menu_contract_sale +msgid "Contracts" +msgstr "Sözleşmeler" diff --git a/contract_sale/i18n/tr_TR.po b/contract_sale/i18n/tr_TR.po new file mode 100644 index 000000000..314ba2013 --- /dev/null +++ b/contract_sale/i18n/tr_TR.po @@ -0,0 +1,25 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_sale +# +# Translators: +# Ediz Duman , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-11-30 01:41+0000\n" +"PO-Revision-Date: 2017-11-30 01:41+0000\n" +"Last-Translator: Ediz Duman , 2017\n" +"Language-Team: Turkish (Turkey) (https://www.transifex.com/oca/teams/23907/" +"tr_TR/)\n" +"Language: tr_TR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: contract_sale +#: model:ir.ui.menu,name:contract_sale.menu_contract_sale +msgid "Contracts" +msgstr "Sözleşmeler" diff --git a/contract_sale/i18n/zh_CN.po b/contract_sale/i18n/zh_CN.po new file mode 100644 index 000000000..e3f23cf25 --- /dev/null +++ b/contract_sale/i18n/zh_CN.po @@ -0,0 +1,22 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contract_sale +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2019-09-05 19:23+0000\n" +"Last-Translator: 黎伟杰 <674416404@qq.com>\n" +"Language-Team: none\n" +"Language: zh_CN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Weblate 3.8\n" + +#. module: contract_sale +#: model:ir.ui.menu,name:contract_sale.menu_contract_sale +msgid "Contracts" +msgstr "合同" diff --git a/contract_sale/readme/CONTRIBUTORS.rst b/contract_sale/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..3338f68ba --- /dev/null +++ b/contract_sale/readme/CONTRIBUTORS.rst @@ -0,0 +1,9 @@ +* `Tecnativa `_: + + * Luis M. Ontalba + * Pedro M. Baeza + * Víctor Martínez + +* Levent Karakaş +* Bejaoui Souheil +* Dhara Solanki diff --git a/contract_sale/readme/DESCRIPTION.rst b/contract_sale/readme/DESCRIPTION.rst new file mode 100644 index 000000000..38e29f972 --- /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 000000000..d800c71d7 --- /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/security/contract_security.xml b/contract_sale/security/contract_security.xml new file mode 100644 index 000000000..1b8b7aac5 --- /dev/null +++ b/contract_sale/security/contract_security.xml @@ -0,0 +1,22 @@ + + + + See Own Contracts + + ['|', ('user_id','=',user.id), ('user_id','=',False)] + + + + See All Contracts + + [(1,'=',1)] + + + diff --git a/contract_sale/security/ir.model.access.csv b/contract_sale/security/ir.model.access.csv new file mode 100644 index 000000000..7f58bb031 --- /dev/null +++ b/contract_sale/security/ir.model.access.csv @@ -0,0 +1,12 @@ +"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" +"contract_template_salesman","Recurring Salesman","contract.model_contract_template","sales_team.group_sale_salesman",1,1,1,0 +"contract_template_sale_manager","Recurring Sale Manager","contract.model_contract_template","sales_team.group_sale_manager",1,1,1,1 +"contract_line_saleman","Recurring Invoice Line Saleman","contract.model_contract_line","sales_team.group_sale_salesman",1,1,1,0 +"contract_line_manager","Recurring Invoice Line Manager","contract.model_contract_line","sales_team.group_sale_manager",1,1,1,1 +"contract_template_line_salesman","Recurring Contract Line Salesman","contract.model_contract_template_line","sales_team.group_sale_salesman",1,1,1,0 +"contract_template_line_manager","Recurring Contract Line Manager","contract.model_contract_template_line","sales_team.group_sale_manager",1,1,1,1 +"account_analytic_line_contract_salesman","Recurring Analytic Line Salesman","analytic.model_account_analytic_line","sales_team.group_sale_salesman",1,1,1,0 +"contract_contract_salesman","Recurring Analytic Account Salesman","contract.model_contract_contract","sales_team.group_sale_salesman",1,1,1,0 +"account_analytic_tag_contract_salesman","Recurring Account Analytic Tag Salesman","analytic.model_account_analytic_tag","sales_team.group_sale_salesman",1,1,1,0 +"account_move_contract_salesman","Recurring Account Invoice Salesman","account.model_account_move","sales_team.group_sale_salesman",1,0,0,0 +"account_journal_contract_salesman","Recurring Account Journal Salesman","account.model_account_journal","sales_team.group_sale_salesman",1,0,0,0 diff --git a/contract_sale/static/description/icon.png b/contract_sale/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/contract_sale/static/description/icon.png differ diff --git a/contract_sale/static/description/index.html b/contract_sale/static/description/index.html new file mode 100644 index 000000000..414c5fe8f --- /dev/null +++ b/contract_sale/static/description/index.html @@ -0,0 +1,438 @@ + + + + + + +Contract from Sale + + + +
+

Contract from Sale

+ + +

Production/Stable License: AGPL-3 OCA/contract Translate me on Weblate Try me on Runbot

+

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

+ +
+

Usage

+
    +
  1. Log with an user having sale but not account permissions.
  2. +
  3. Go to Sales > Sales > Contracts.
  4. +
  5. Create a new record or edit another one.
  6. +
+
+
+

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 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

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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.

+

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/views/abstract_contract_line.xml b/contract_sale/views/abstract_contract_line.xml new file mode 100644 index 000000000..5ef893cac --- /dev/null +++ b/contract_sale/views/abstract_contract_line.xml @@ -0,0 +1,19 @@ + + + + + contract.abstract.contract.line form view (in contract_sale) + contract.abstract.contract.line + + + + product.group_discount_per_so_line + + + + diff --git a/contract_sale/views/contract.xml b/contract_sale/views/contract.xml new file mode 100644 index 000000000..c5275dacd --- /dev/null +++ b/contract_sale/views/contract.xml @@ -0,0 +1,28 @@ + + + + + contract.contract.form.contract.sale + contract.contract + + + + + + + + diff --git a/contract_sale/views/contract_line.xml b/contract_sale/views/contract_line.xml new file mode 100644 index 000000000..d79210859 --- /dev/null +++ b/contract_sale/views/contract_line.xml @@ -0,0 +1,14 @@ + + + + + contract.template.line tree view (in contract_sale) + contract.line + + + + product.group_discount_per_so_line + + + + diff --git a/contract_sale/views/contract_template.xml b/contract_sale/views/contract_template.xml new file mode 100644 index 000000000..9e16ff4cf --- /dev/null +++ b/contract_sale/views/contract_template.xml @@ -0,0 +1,14 @@ + + + + + contract.template form view (in contract_sale) + contract.template + + + + product.group_discount_per_so_line + + + + diff --git a/contract_sale/views/res_partner_view.xml b/contract_sale/views/res_partner_view.xml new file mode 100644 index 000000000..4491b6f3d --- /dev/null +++ b/contract_sale/views/res_partner_view.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/setup/contract_sale/odoo/addons/contract_sale b/setup/contract_sale/odoo/addons/contract_sale new file mode 120000 index 000000000..317dddc04 --- /dev/null +++ b/setup/contract_sale/odoo/addons/contract_sale @@ -0,0 +1 @@ +../../../../contract_sale \ No newline at end of file diff --git a/setup/contract_sale/setup.py b/setup/contract_sale/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/contract_sale/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)