From 4abd68fdb12535da2b069b57319e775e8836e978 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Thu, 27 Dec 2018 17:15:37 +0000 Subject: [PATCH 001/118] [ADD] agreement_project --- agreement_project/README.rst | 21 + agreement_project/__init__.py | 4 + agreement_project/__manifest__.py | 27 ++ agreement_project/models/__init__.py | 7 + agreement_project/models/agreement.py | 21 + agreement_project/models/project.py | 21 + agreement_project/readme/CONTRIBUTORS.rst | 1 + agreement_project/readme/CREDITS.rst | 3 + agreement_project/readme/DESCRIPTION.rst | 5 + agreement_project/readme/ROADMAP.rst | 2 + agreement_project/readme/USAGE.rst | 7 + agreement_project/static/description/icon.png | Bin 0 -> 6755 bytes .../static/description/index.html | 458 ++++++++++++++++++ agreement_project/views/agreement_view.xml | 41 ++ agreement_project/views/project_view.xml | 41 ++ 15 files changed, 659 insertions(+) create mode 100644 agreement_project/README.rst create mode 100644 agreement_project/__init__.py create mode 100644 agreement_project/__manifest__.py create mode 100644 agreement_project/models/__init__.py create mode 100644 agreement_project/models/agreement.py create mode 100644 agreement_project/models/project.py create mode 100644 agreement_project/readme/CONTRIBUTORS.rst create mode 100644 agreement_project/readme/CREDITS.rst create mode 100644 agreement_project/readme/DESCRIPTION.rst create mode 100644 agreement_project/readme/ROADMAP.rst create mode 100644 agreement_project/readme/USAGE.rst create mode 100644 agreement_project/static/description/icon.png create mode 100644 agreement_project/static/description/index.html create mode 100644 agreement_project/views/agreement_view.xml create mode 100644 agreement_project/views/project_view.xml diff --git a/agreement_project/README.rst b/agreement_project/README.rst new file mode 100644 index 000000000..21cd7854d --- /dev/null +++ b/agreement_project/README.rst @@ -0,0 +1,21 @@ +**This file is going to be generated by oca-gen-addon-readme.** + +*Manual changes will be overwritten.* + +Please provide content in the ``readme`` directory: + +* **DESCRIPTION.rst** (required) +* INSTALL.rst (optional) +* CONFIGURE.rst (optional) +* **USAGE.rst** (optional, highly recommended) +* DEVELOP.rst (optional) +* ROADMAP.rst (optional) +* HISTORY.rst (optional, recommended) +* **CONTRIBUTORS.rst** (optional, highly recommended) +* CREDITS.rst (optional) + +Content of this README will also be drawn from the addon manifest, +from keys such as name, authors, maintainers, development_status, +and license. + +A good, one sentence summary in the manifest is also highly recommended. diff --git a/agreement_project/__init__.py b/agreement_project/__init__.py new file mode 100644 index 000000000..631bd4893 --- /dev/null +++ b/agreement_project/__init__.py @@ -0,0 +1,4 @@ +# Copyright (C) 2018 - TODAY, Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import models diff --git a/agreement_project/__manifest__.py b/agreement_project/__manifest__.py new file mode 100644 index 000000000..80abf6080 --- /dev/null +++ b/agreement_project/__manifest__.py @@ -0,0 +1,27 @@ +# Copyright (C) 2018 - TODAY, Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + 'name': 'Agreement - Project', + 'summary': 'Link projects to an agreement', + 'version': '11.0.0.0.1', + 'category': 'Contract', + 'author': 'Open Source Integrators, ' + 'Odoo Community Association (OCA)', + 'website': 'https://github.com/OCA/contract', + 'depends': [ + 'agreement', + 'project', + ], + 'data': [ + 'views/agreement_view.xml', + 'views/project_view.xml', + ], + 'installable': True, + 'license': 'AGPL-3', + 'development_status': 'Beta', + 'maintainers': [ + 'smangukiya', + 'max3903', + ], +} diff --git a/agreement_project/models/__init__.py b/agreement_project/models/__init__.py new file mode 100644 index 000000000..6cc319497 --- /dev/null +++ b/agreement_project/models/__init__.py @@ -0,0 +1,7 @@ +# Copyright (C) 2018 - TODAY, Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import ( + project, + agreement, +) diff --git a/agreement_project/models/agreement.py b/agreement_project/models/agreement.py new file mode 100644 index 000000000..d88991fec --- /dev/null +++ b/agreement_project/models/agreement.py @@ -0,0 +1,21 @@ +# Copyright (C) 2018 - TODAY, Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import api, fields, models + + +class Agreement(models.Model): + _inherit = "agreement" + + task_count = fields.Integer('# Tasks', + compute='_compute_task_count') + + @api.multi + def _compute_task_count(self): + data = self.env['project.task'].read_group( + [('agreement_id', 'in', self.ids)], + ['agreement_id'], ['agreement_id']) + count_data = dict((item['agreement_id'][0], + item['agreement_id_count']) for item in data) + for agreement in self: + agreement.task_count = count_data.get(agreement.id, 0) diff --git a/agreement_project/models/project.py b/agreement_project/models/project.py new file mode 100644 index 000000000..d17369578 --- /dev/null +++ b/agreement_project/models/project.py @@ -0,0 +1,21 @@ +# Copyright (C) 2018 - TODAY, Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class ProjectProject(models.Model): + _inherit = "project.project" + + agreement_id = fields.Many2one('agreement', 'Agreement') + + +class ProjectTask(models.Model): + _inherit = "project.task" + + agreement_id = fields.Many2one('agreement', + related="project_id.agreement_id", + string='Agreement', + store=True) + serviceprofile_id = fields.Many2one('agreement.serviceprofile', + 'Service Profile') diff --git a/agreement_project/readme/CONTRIBUTORS.rst b/agreement_project/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..a76235f8a --- /dev/null +++ b/agreement_project/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Sandip Mangukiya diff --git a/agreement_project/readme/CREDITS.rst b/agreement_project/readme/CREDITS.rst new file mode 100644 index 000000000..0eff0acf4 --- /dev/null +++ b/agreement_project/readme/CREDITS.rst @@ -0,0 +1,3 @@ +The development of this module has been financially supported by: + +* Open Source Integrators diff --git a/agreement_project/readme/DESCRIPTION.rst b/agreement_project/readme/DESCRIPTION.rst new file mode 100644 index 000000000..2891ec213 --- /dev/null +++ b/agreement_project/readme/DESCRIPTION.rst @@ -0,0 +1,5 @@ +Odoo Agreement App does not provide an easy way to access project tasks related to an agreement. +Some organizations needs to have a quick access to project tasks to track the performance of an agreement. + +This module allows you to link a project task to an agreement and +adds a smart button on the agreement to look at the list of related project tasks. diff --git a/agreement_project/readme/ROADMAP.rst b/agreement_project/readme/ROADMAP.rst new file mode 100644 index 000000000..7e6402cf9 --- /dev/null +++ b/agreement_project/readme/ROADMAP.rst @@ -0,0 +1,2 @@ +The roadmap of the Agreement application is documented on +`Github `_. diff --git a/agreement_project/readme/USAGE.rst b/agreement_project/readme/USAGE.rst new file mode 100644 index 000000000..44d6b1239 --- /dev/null +++ b/agreement_project/readme/USAGE.rst @@ -0,0 +1,7 @@ +To use this module, you need to: + +* Go to Project > Configuration > Projects +* Select or create a project and set the agreement +* Go to Agreement > Agreements +* Open the previous agreement +* Click on the smart button "Tasks" to see the list of related project tasks diff --git a/agreement_project/static/description/icon.png b/agreement_project/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..23ce93135053c48a74469807879f2805b12382ad GIT binary patch literal 6755 zcmV-p8l2^cP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vG&=l}pD=mCOb1snhX8Td&=K~#8N-CKFQ zBvp0(s=Io9`)n{X!YCjrLL4@uLLx?^7>Nlg;0OWKpNe}Tf-$lvB8s2}{h8qK3&9P6 zA)<*}0!9po;{xiS0)rw5Gt55ky?(Ek>Z-1M-??>PSHF1!0kiLh2wasDW7Mv0M0u zAiRJ^rHqA4zG5Ljk*y(xm+2{|26%Krt8`xQhXRsC)@DI(@bcpppYg!>v;++1pP(b zB62H-0kN3ksaS zR}aWD)l0;!XGCohU_SQS-CoR|NhIdH`PiGAGavhN=hn!rHy`_k8N??N6qOqcfEdVw zYK|$D#GZf7Gu%fHdYr?({Mo+@_XY!NOCXPXgWMR+(PN&k`H&?-_G#d?mP(6sE#^fQ20q0-8j1dCw}k zkNIsfAY={-+|HERRq|lXT!gdv#KlNdZY2*$l4K6eI%=noM#Knb7R#__Ub83iBR9sa zFLdiVCFRHD>9SKnDWkpcn%?@EO&5gVpby@rj9@?sHi^Q-qQSKUjyWwxW|ca#UuB0u zRG>iA2Tk&I&2eY0T1Cbf)pL%s{Ilq|(Hd)o!Q4DO^FtI$#ekTn?LZ?-MFvJyxORb_ z>t+t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Xz`XqCgI% z?*h&3C7j79+p?bR~!Gtq|H&EY!0ST(6H8_VwOLkeSnlgioS-oQA}qt+B;g@JzL@;O!O!#kbt5Cu@>3 zS<+fqT3;rZR!J31OzTb&Zea)6D2~r0BDg2lL)Q8e{9r+D5n0lMoig^MPqjNE^@p$~ zA*EpQsO-|sm$$h-H_Mt#5ek~-3H)dAM(BPGo=xN;4yg!flKaQ@u9aDx3+q{^aUN|P z(adDlAp^=S6kt`xZoZ+OJ^D6V+pS@*p;B*!1Qrt*G`%M}58wz5vH-@4Tto(AicN#)*iZ~mu;Cdk z)Xj^Q)v@V!mIvEw^UyT!=aR5T`%b|WCdK#B+?GNKxxj+x`wdk$;^Nm1$4qMH8M-N^ zl0gBIt{&SlPM&0JodR0G5#~Ha{~TDLQlFVosJi|Qj(aSywHJT^&zJ||$;!Qu+1uQK z@iH8ZotBskyO+;?2zG`Ek5i zvg+&nlgn#KZ+$6E?+eZC%}qsz9U5e4ooq9$s&r_58NvK`17FFZmdPtYgbn#DvgT#> z=cX7@Ln)9&hOY2*`>1yDC3zL)J=%Qst5nT^)&7 + + + + + +Agreement - MRP + + + +
+

Agreement - MRP

+ + +

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

+

Odoo Agreement App does not provide an easy way to access manufacturing orders +related to an agreement. Some organizations needs to have a quick access to the +production orders to track the performance of an agreement.

+

This module allows you to link a manufacturing order to an agreement and +adds a smart button on the agreement to look at the list of related MOs.

+

Table of contents

+ +
+

Installation

+

To install Field Service and have the mapping features, +you need to install agreement and mrp

+

Please refer to the installation instructions available at: +https://github.com/OCA/contract/agreement_mrp

+
+
+

Usage

+

To use this module, you need to:

+
    +
  • Go to Manufacturing > Manufacturing Orders
  • +
  • Select or create a manufacturing order and set the agreement
  • +
  • Go to Agreement > Agreements
  • +
  • Open the previous agreement and click on the smart button “Manufacturing Orders” to see the list of related MO
  • +
+
+
+

Known issues / Roadmap

+

The roadmap of the Field Service application is documented on +Github.

+
+
+

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

+
    +
  • Open Source Integrators
  • +
+
+ +
+

Other credits

+

The development of this module has been financially supported by:

+ +
+
+

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.

+

Current maintainers:

+

smangukiya max3903

+

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/agreement_project/views/agreement_view.xml b/agreement_project/views/agreement_view.xml new file mode 100644 index 000000000..d34509504 --- /dev/null +++ b/agreement_project/views/agreement_view.xml @@ -0,0 +1,41 @@ + + + + + Tasks + ir.actions.act_window + project.task + form + tree,form + [('agreement_id', '=', active_id)] + +

+ Create Tasks +

+
+
+ + + agreement.form.task + agreement + + + + + + + + +
diff --git a/agreement_project/views/project_view.xml b/agreement_project/views/project_view.xml new file mode 100644 index 000000000..d99da19e1 --- /dev/null +++ b/agreement_project/views/project_view.xml @@ -0,0 +1,41 @@ + + + + + project.project.form.agreement + project.project + + + + + + + + + + project.task.form.agreement + project.task + + + + + + + + + + + + project.task.select.agreement + project.task + + + + + + + + + From b7143abce5cc763852e47fae2c819568b01c94f3 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Thu, 27 Dec 2018 18:40:58 +0000 Subject: [PATCH 002/118] [UPD] README.rst --- agreement_project/README.rst | 123 +++++++++++++++--- .../static/description/index.html | 72 +++++----- 2 files changed, 139 insertions(+), 56 deletions(-) diff --git a/agreement_project/README.rst b/agreement_project/README.rst index 21cd7854d..bdee9ca67 100644 --- a/agreement_project/README.rst +++ b/agreement_project/README.rst @@ -1,21 +1,112 @@ -**This file is going to be generated by oca-gen-addon-readme.** +=================== +Agreement - Project +=================== -*Manual changes will be overwritten.* +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -Please provide content in the ``readme`` directory: +.. |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/agreement_project + :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-agreement_project + :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 -* **DESCRIPTION.rst** (required) -* INSTALL.rst (optional) -* CONFIGURE.rst (optional) -* **USAGE.rst** (optional, highly recommended) -* DEVELOP.rst (optional) -* ROADMAP.rst (optional) -* HISTORY.rst (optional, recommended) -* **CONTRIBUTORS.rst** (optional, highly recommended) -* CREDITS.rst (optional) +|badge1| |badge2| |badge3| |badge4| |badge5| -Content of this README will also be drawn from the addon manifest, -from keys such as name, authors, maintainers, development_status, -and license. +Odoo Agreement App does not provide an easy way to access project tasks related to an agreement. +Some organizations needs to have a quick access to project tasks to track the performance of an agreement. -A good, one sentence summary in the manifest is also highly recommended. +This module allows you to link a project task to an agreement and +adds a smart button on the agreement to look at the list of related project tasks. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +To use this module, you need to: + +* Go to Project > Configuration > Projects +* Select or create a project and set the agreement +* Go to Agreement > Agreements +* Open the previous agreement +* Click on the smart button "Tasks" to see the list of related project tasks + +Known issues / Roadmap +====================== + +The roadmap of the Agreement application is documented on +`Github `_. + +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 +~~~~~~~ + +* Open Source Integrators + +Contributors +~~~~~~~~~~~~ + +* Sandip Mangukiya + +Other credits +~~~~~~~~~~~~~ + +The development of this module has been financially supported by: + +* Open Source Integrators + +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. + +.. |maintainer-smangukiya| image:: https://github.com/smangukiya.png?size=40px + :target: https://github.com/smangukiya + :alt: smangukiya +.. |maintainer-max3903| image:: https://github.com/max3903.png?size=40px + :target: https://github.com/max3903 + :alt: max3903 + +Current `maintainers `__: + +|maintainer-smangukiya| |maintainer-max3903| + +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/agreement_project/static/description/index.html b/agreement_project/static/description/index.html index a798df628..cd68e0873 100644 --- a/agreement_project/static/description/index.html +++ b/agreement_project/static/description/index.html @@ -4,7 +4,7 @@ -Agreement - MRP +Agreement - Project -
-

Agreement - MRP

+
+

Agreement - Project

-

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

-

Odoo Agreement App does not provide an easy way to access manufacturing orders -related to an agreement. Some organizations needs to have a quick access to the -production orders to track the performance of an agreement.

-

This module allows you to link a manufacturing order to an agreement and -adds a smart button on the agreement to look at the list of related MOs.

+

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

+

Odoo Agreement App does not provide an easy way to access project tasks related to an agreement. +Some organizations needs to have a quick access to project tasks to track the performance of an agreement.

+

This module allows you to link a project task to an agreement and +adds a smart button on the agreement to look at the list of related project tasks.

Table of contents

-
-

Installation

-

To install Field Service and have the mapping features, -you need to install agreement and mrp

-

Please refer to the installation instructions available at: -https://github.com/OCA/contract/agreement_mrp

-
-

Usage

+

Usage

To use this module, you need to:

    -
  • Go to Manufacturing > Manufacturing Orders
  • -
  • Select or create a manufacturing order and set the agreement
  • +
  • Go to Project > Configuration > Projects
  • +
  • Select or create a project and set the agreement
  • Go to Agreement > Agreements
  • -
  • Open the previous agreement and click on the smart button “Manufacturing Orders” to see the list of related MO
  • +
  • Open the previous agreement
  • +
  • Click on the smart button “Tasks” to see the list of related project tasks
-

Known issues / Roadmap

-

The roadmap of the Field Service application is documented on -Github.

+

Known issues / Roadmap

+

The roadmap of the Agreement application is documented on +Github.

-

Bug Tracker

+

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.

+feedback.

Do not contact contributors directly about support or help with technical issues.

-

Credits

+

Credits

-

Authors

+

Authors

  • Open Source Integrators
-

Other credits

+

Other credits

The development of this module has been financially supported by:

-

Maintainers

+

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose @@ -449,7 +441,7 @@ mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainers:

smangukiya max3903

-

This module is part of the OCA/contract project on GitHub.

+

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.

From 9ec3533a18b9adc5031f49fda379d1704a45d295 Mon Sep 17 00:00:00 2001 From: oca-travis Date: Thu, 27 Dec 2018 19:10:36 +0000 Subject: [PATCH 003/118] [UPD] Update agreement_project.pot --- agreement_project/i18n/agreement_project.pot | 62 ++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 agreement_project/i18n/agreement_project.pot diff --git a/agreement_project/i18n/agreement_project.pot b/agreement_project/i18n/agreement_project.pot new file mode 100644 index 000000000..4f7331a12 --- /dev/null +++ b/agreement_project/i18n/agreement_project.pot @@ -0,0 +1,62 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * agreement_project +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.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: agreement_project +#: model:ir.model.fields,field_description:agreement_project.field_agreement_task_count +msgid "# Tasks" +msgstr "" + +#. module: agreement_project +#: model:ir.ui.view,arch_db:agreement_project.partner_agreement_form_view_task +msgid "Tasks" +msgstr "" + +#. module: agreement_project +#: model:ir.model.fields,field_description:agreement_project.field_project_project_agreement_id +#: model:ir.model.fields,field_description:agreement_project.field_project_task_agreement_id +msgid "Agreement" +msgstr "" + +#. module: agreement_project +#: model:ir.actions.act_window,help:agreement_project.action_project_task_agreement_specific +msgid "Create Tasks" +msgstr "" + +#. module: agreement_project +#: model:ir.model,name:agreement_project.model_project_project +msgid "Project" +msgstr "" + +#. module: agreement_project +#: model:ir.model.fields,field_description:agreement_project.field_project_task_serviceprofile_id +#: model:ir.ui.view,arch_db:agreement_project.view_task_search_form_agreement +msgid "Service Profile" +msgstr "" + +#. module: agreement_project +#: model:ir.model,name:agreement_project.model_project_task +msgid "Task" +msgstr "" + +#. module: agreement_project +#: model:ir.actions.act_window,name:agreement_project.action_project_task_agreement_specific +msgid "Tasks" +msgstr "" + +#. module: agreement_project +#: model:ir.model,name:agreement_project.model_agreement +msgid "agreement" +msgstr "" + From 004b392c49eec85ed8fe4a799f3d63900d1c889b Mon Sep 17 00:00:00 2001 From: Maxime Chambreuil Date: Thu, 3 Jan 2019 14:33:20 -0600 Subject: [PATCH 004/118] [IMP] Show stat even if 0. Filter agreement with partner --- agreement_project/views/agreement_view.xml | 1 - agreement_project/views/project_view.xml | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/agreement_project/views/agreement_view.xml b/agreement_project/views/agreement_view.xml index d34509504..bb93bceab 100644 --- a/agreement_project/views/agreement_view.xml +++ b/agreement_project/views/agreement_view.xml @@ -24,7 +24,6 @@
@@ -417,12 +417,14 @@ If you spotted it first, help us smashing it by providing a detailed and welcome

Authors

  • Open Source Integrators
  • +
  • Yves Goldberg (Ygol Internetwork)
@@ -440,8 +442,8 @@ If you spotted it first, help us smashing it by providing a detailed and welcome mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainers:

-

smangukiya max3903

-

This module is part of the OCA/contract project on GitHub.

+

smangukiya ygol max3903

+

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.

From b064a2430f948f5f547df22d58fd0ae1266ac363 Mon Sep 17 00:00:00 2001 From: oca-travis Date: Mon, 15 Apr 2019 14:49:13 +0000 Subject: [PATCH 013/118] [UPD] Update agreement_project.pot --- agreement_project/i18n/agreement_project.pot | 24 ++++++-------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/agreement_project/i18n/agreement_project.pot b/agreement_project/i18n/agreement_project.pot index 4f7331a12..73204d390 100644 --- a/agreement_project/i18n/agreement_project.pot +++ b/agreement_project/i18n/agreement_project.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 11.0\n" +"Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: <>\n" "Language-Team: \n" @@ -14,23 +14,24 @@ msgstr "" "Plural-Forms: \n" #. module: agreement_project -#: model:ir.model.fields,field_description:agreement_project.field_agreement_task_count +#: model:ir.model.fields,field_description:agreement_project.field_agreement__task_count msgid "# Tasks" msgstr "" #. module: agreement_project -#: model:ir.ui.view,arch_db:agreement_project.partner_agreement_form_view_task +#: model_terms:ir.ui.view,arch_db:agreement_project.partner_agreement_form_view_task msgid "Tasks" msgstr "" #. module: agreement_project -#: model:ir.model.fields,field_description:agreement_project.field_project_project_agreement_id -#: model:ir.model.fields,field_description:agreement_project.field_project_task_agreement_id +#: model:ir.model,name:agreement_project.model_agreement +#: model:ir.model.fields,field_description:agreement_project.field_project_project__agreement_id +#: model:ir.model.fields,field_description:agreement_project.field_project_task__agreement_id msgid "Agreement" msgstr "" #. module: agreement_project -#: model:ir.actions.act_window,help:agreement_project.action_project_task_agreement_specific +#: model_terms:ir.actions.act_window,help:agreement_project.action_project_task_agreement_specific msgid "Create Tasks" msgstr "" @@ -39,12 +40,6 @@ msgstr "" msgid "Project" msgstr "" -#. module: agreement_project -#: model:ir.model.fields,field_description:agreement_project.field_project_task_serviceprofile_id -#: model:ir.ui.view,arch_db:agreement_project.view_task_search_form_agreement -msgid "Service Profile" -msgstr "" - #. module: agreement_project #: model:ir.model,name:agreement_project.model_project_task msgid "Task" @@ -55,8 +50,3 @@ msgstr "" msgid "Tasks" msgstr "" -#. module: agreement_project -#: model:ir.model,name:agreement_project.model_agreement -msgid "agreement" -msgstr "" - From 50f3e7094651a754f4c3aca349fc062bc65556bb Mon Sep 17 00:00:00 2001 From: Nikul Chaudhary Date: Thu, 18 Apr 2019 04:24:38 +0000 Subject: [PATCH 014/118] [FIX] Fixed code --- agreement_project/models/agreement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agreement_project/models/agreement.py b/agreement_project/models/agreement.py index 9c6311b38..a07d2fb0d 100644 --- a/agreement_project/models/agreement.py +++ b/agreement_project/models/agreement.py @@ -14,5 +14,5 @@ class Agreement(models.Model): def _compute_task_count(self): for ag in self: count = self.env['project.task'].search_count( - [('agreement_id', 'in', self.ids)]) + [('agreement_id', '=', ag.id)]) ag.task_count = count From 1688e619a5aa70de73dec8edc73cc207cb3ada01 Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Mon, 20 May 2019 20:34:36 +0000 Subject: [PATCH 015/118] Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: contract-12.0/contract-12.0-agreement_project Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-agreement_project/ --- agreement_project/i18n/de.po | 28 ++++++++++++---------------- agreement_project/i18n/fr.po | 28 ++++++++++++---------------- 2 files changed, 24 insertions(+), 32 deletions(-) diff --git a/agreement_project/i18n/de.po b/agreement_project/i18n/de.po index ea468c432..f321612f6 100644 --- a/agreement_project/i18n/de.po +++ b/agreement_project/i18n/de.po @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * agreement_project +# * agreement_project # msgid "" msgstr "" @@ -17,23 +17,24 @@ msgstr "" "X-Generator: Weblate 3.3\n" #. module: agreement_project -#: model:ir.model.fields,field_description:agreement_project.field_agreement_task_count +#: model:ir.model.fields,field_description:agreement_project.field_agreement__task_count msgid "# Tasks" msgstr "# Aufgaben" #. module: agreement_project -#: model:ir.ui.view,arch_db:agreement_project.partner_agreement_form_view_task +#: model_terms:ir.ui.view,arch_db:agreement_project.partner_agreement_form_view_task msgid "Tasks" msgstr "Aufgaben" #. module: agreement_project -#: model:ir.model.fields,field_description:agreement_project.field_project_project_agreement_id -#: model:ir.model.fields,field_description:agreement_project.field_project_task_agreement_id +#: model:ir.model,name:agreement_project.model_agreement +#: model:ir.model.fields,field_description:agreement_project.field_project_project__agreement_id +#: model:ir.model.fields,field_description:agreement_project.field_project_task__agreement_id msgid "Agreement" msgstr "Vereinbarung" #. module: agreement_project -#: model:ir.actions.act_window,help:agreement_project.action_project_task_agreement_specific +#: model_terms:ir.actions.act_window,help:agreement_project.action_project_task_agreement_specific msgid "Create Tasks" msgstr "Aufgaben anlegen" @@ -42,12 +43,6 @@ msgstr "Aufgaben anlegen" msgid "Project" msgstr "Projekt" -#. module: agreement_project -#: model:ir.model.fields,field_description:agreement_project.field_project_task_serviceprofile_id -#: model:ir.ui.view,arch_db:agreement_project.view_task_search_form_agreement -msgid "Service Profile" -msgstr "Dienstleistungsprofil" - #. module: agreement_project #: model:ir.model,name:agreement_project.model_project_task msgid "Task" @@ -58,7 +53,8 @@ msgstr "Aufgabe" msgid "Tasks" msgstr "Aufgaben" -#. module: agreement_project -#: model:ir.model,name:agreement_project.model_agreement -msgid "agreement" -msgstr "Vereinbarung" +#~ msgid "Service Profile" +#~ msgstr "Dienstleistungsprofil" + +#~ msgid "agreement" +#~ msgstr "Vereinbarung" diff --git a/agreement_project/i18n/fr.po b/agreement_project/i18n/fr.po index 104578533..327eaa569 100644 --- a/agreement_project/i18n/fr.po +++ b/agreement_project/i18n/fr.po @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * agreement_project +# * agreement_project # msgid "" msgstr "" @@ -17,23 +17,24 @@ msgstr "" "X-Generator: Weblate 3.5.1\n" #. module: agreement_project -#: model:ir.model.fields,field_description:agreement_project.field_agreement_task_count +#: model:ir.model.fields,field_description:agreement_project.field_agreement__task_count msgid "# Tasks" msgstr "# Tâches" #. module: agreement_project -#: model:ir.ui.view,arch_db:agreement_project.partner_agreement_form_view_task +#: model_terms:ir.ui.view,arch_db:agreement_project.partner_agreement_form_view_task msgid "Tasks" msgstr "Tâches" #. module: agreement_project -#: model:ir.model.fields,field_description:agreement_project.field_project_project_agreement_id -#: model:ir.model.fields,field_description:agreement_project.field_project_task_agreement_id +#: model:ir.model,name:agreement_project.model_agreement +#: model:ir.model.fields,field_description:agreement_project.field_project_project__agreement_id +#: model:ir.model.fields,field_description:agreement_project.field_project_task__agreement_id msgid "Agreement" msgstr "Accord" #. module: agreement_project -#: model:ir.actions.act_window,help:agreement_project.action_project_task_agreement_specific +#: model_terms:ir.actions.act_window,help:agreement_project.action_project_task_agreement_specific msgid "Create Tasks" msgstr "Créer des tâches" @@ -42,12 +43,6 @@ msgstr "Créer des tâches" msgid "Project" msgstr "Projet" -#. module: agreement_project -#: model:ir.model.fields,field_description:agreement_project.field_project_task_serviceprofile_id -#: model:ir.ui.view,arch_db:agreement_project.view_task_search_form_agreement -msgid "Service Profile" -msgstr "Profil de service" - #. module: agreement_project #: model:ir.model,name:agreement_project.model_project_task msgid "Task" @@ -58,7 +53,8 @@ msgstr "Tâche" msgid "Tasks" msgstr "Tâches" -#. module: agreement_project -#: model:ir.model,name:agreement_project.model_agreement -msgid "agreement" -msgstr "accord" +#~ msgid "Service Profile" +#~ msgstr "Profil de service" + +#~ msgid "agreement" +#~ msgstr "accord" From 8d18817192fbbe413be156f6dd9ab6b3be690c3c Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Mon, 29 Jul 2019 02:48:03 +0000 Subject: [PATCH 016/118] [UPD] README.rst --- agreement_project/static/description/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agreement_project/static/description/index.html b/agreement_project/static/description/index.html index 00a1f3ce5..9de52782e 100644 --- a/agreement_project/static/description/index.html +++ b/agreement_project/static/description/index.html @@ -3,7 +3,7 @@ - + Agreement - Project + + +
+

Contract Mandate

+ + +

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

+

This module allows to set a mandate mode on contract for creating the invoices +with this mandate.

+

Table of contents

+ +
+

Usage

+
    +
  1. Go to Sales > Sales > Contracts.
  2. +
  3. Create one.
  4. +
  5. Select a partner to which invoice.
  6. +
  7. Select a mandate.
  8. +
  9. Click on Generate recurring invoices automatically checkbox.
  10. +
  11. Add a product to invoice.
  12. +
  13. If you create an invoice, new invoice will have the selected mandate.
  14. +
+
+
+

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_mandate/tests/__init__.py b/contract_mandate/tests/__init__.py index bcc808b91..a410989ce 100644 --- a/contract_mandate/tests/__init__.py +++ b/contract_mandate/tests/__init__.py @@ -1,3 +1 @@ -# -*- coding: utf-8 -*- - from . import test_contract_mandate diff --git a/contract_mandate/tests/test_contract_mandate.py b/contract_mandate/tests/test_contract_mandate.py index 09b6db119..a4bb9f9a6 100644 --- a/contract_mandate/tests/test_contract_mandate.py +++ b/contract_mandate/tests/test_contract_mandate.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright 2017 Carlos Dauden - Tecnativa # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). @@ -43,12 +42,11 @@ class TestContractMandate(common.SavepointCase): 'sale_ok': True, 'taxes_id': [(6, 0, [])], }) - cls.contract = cls.env['account.analytic.account'].create({ + cls.contract = cls.env['contract.contract'].create({ 'name': 'Test contract', 'partner_id': cls.partner.id, - 'recurring_invoices': True, 'recurring_interval': 1, - 'recurring_invoice_line_ids': [(0, 0, { + 'contract_line_ids': [(0, 0, { 'quantity': 2.0, 'price_unit': 200.0, 'name': 'Test contract line', diff --git a/contract_mandate/views/contract_view.xml b/contract_mandate/views/contract_view.xml index 8a3349f41..3cc9758ce 100644 --- a/contract_mandate/views/contract_view.xml +++ b/contract_mandate/views/contract_view.xml @@ -1,14 +1,16 @@ - - account.analytic.account - + + + contract.contract form view (in contract_mandate) + contract.contract + + domain="[('partner_id', '=', commercial_partner_id), ('state', '=', 'valid')]" + attrs="{'invisible': [('mandate_required', '=', False)]}"/> From af9ad7e7bd596a4a3b33f0d48fa5ad98fbf3a0eb Mon Sep 17 00:00:00 2001 From: sbejaoui Date: Mon, 30 Sep 2019 14:51:46 +0200 Subject: [PATCH 034/118] [FIX] - Fix unit tests --- contract_mandate/models/contract.py | 5 +-- .../tests/test_contract_mandate.py | 40 ++++++++----------- 2 files changed, 19 insertions(+), 26 deletions(-) diff --git a/contract_mandate/models/contract.py b/contract_mandate/models/contract.py index e04b097ab..65c07023e 100644 --- a/contract_mandate/models/contract.py +++ b/contract_mandate/models/contract.py @@ -32,9 +32,8 @@ class ContractContract(models.Model): self.mandate_id = False @api.multi - def _prepare_invoice(self, date_invoice, journal=None): - invoice_vals = super(ContractContract, self)._prepare_invoice( - date_invoice, journal) + def _prepare_invoice(self, date_ref=False): + invoice_vals = super(ContractContract, self)._prepare_invoice(date_ref) if self.mandate_id: invoice_vals['mandate_id'] = self.mandate_id.id elif self.payment_mode_id.payment_method_id.mandate_required: diff --git a/contract_mandate/tests/test_contract_mandate.py b/contract_mandate/tests/test_contract_mandate.py index a4bb9f9a6..b11dd9b99 100644 --- a/contract_mandate/tests/test_contract_mandate.py +++ b/contract_mandate/tests/test_contract_mandate.py @@ -2,9 +2,10 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). from odoo.tests import common +from odoo.addons.contract.tests.test_contract import TestContractBase -class TestContractMandate(common.SavepointCase): +class TestContractMandate(TestContractBase): @classmethod def setUpClass(cls): super(TestContractMandate, cls).setUpClass() @@ -42,37 +43,30 @@ class TestContractMandate(common.SavepointCase): 'sale_ok': True, 'taxes_id': [(6, 0, [])], }) - cls.contract = cls.env['contract.contract'].create({ - 'name': 'Test contract', - 'partner_id': cls.partner.id, - 'recurring_interval': 1, - 'contract_line_ids': [(0, 0, { - 'quantity': 2.0, - 'price_unit': 200.0, - 'name': 'Test contract line', - 'product_id': cls.product.id, - 'uom_id': cls.product.uom_id.id, - })], - 'payment_mode_id': cls.payment_mode.id, - 'mandate_id': cls.mandate.id, - }) + cls.contract_with_mandate = cls.contract2.copy( + { + 'partner_id': cls.partner.id, + 'payment_mode_id': cls.payment_mode.id, + 'mandate_id': cls.mandate.id, + } + ) def test_contract_mandate(self): - new_invoice = self.contract.recurring_create_invoice() + new_invoice = self.contract_with_mandate.recurring_create_invoice() self.assertEqual(new_invoice.mandate_id, self.mandate) def test_contract_not_mandate(self): - self.contract.mandate_id = False - self.mandate2 = self.mandate.copy({ - 'unique_mandate_reference': 'BM0000XX2', - }) + self.contract_with_mandate.mandate_id = False + self.mandate2 = self.mandate.copy( + {'unique_mandate_reference': 'BM0000XX2'} + ) self.mandate2.validate() self.mandate.state = 'expired' - new_invoice = self.contract.recurring_create_invoice() + new_invoice = self.contract_with_mandate.recurring_create_invoice() self.assertEqual(new_invoice.mandate_id, self.mandate2) def test_contract_mandate_default(self): self.payment_mode.mandate_required = False - self.contract.mandate_id = False - new_invoice = self.contract.recurring_create_invoice() + self.contract_with_mandate.mandate_id = False + new_invoice = self.contract_with_mandate.recurring_create_invoice() self.assertFalse(new_invoice.mandate_id) From d9710d5a4012d32b13ad086d196bc99df7c06684 Mon Sep 17 00:00:00 2001 From: Thomas Binsfeld Date: Tue, 1 Oct 2019 09:31:50 +0200 Subject: [PATCH 035/118] [REF] Contract Mandate: remove unused objects in unit tests --- contract_mandate/tests/test_contract_mandate.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/contract_mandate/tests/test_contract_mandate.py b/contract_mandate/tests/test_contract_mandate.py index b11dd9b99..1c4e4f7c2 100644 --- a/contract_mandate/tests/test_contract_mandate.py +++ b/contract_mandate/tests/test_contract_mandate.py @@ -1,7 +1,6 @@ # Copyright 2017 Carlos Dauden - Tecnativa # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from odoo.tests import common from odoo.addons.contract.tests.test_contract import TestContractBase @@ -34,15 +33,6 @@ class TestContractMandate(TestContractBase): 'partner_bank_id': cls.partner_bank.id, 'signature_date': '2017-01-01', }) - cls.uom = cls.env.ref('product.product_uom_hour') - cls.product = cls.env['product.product'].create({ - 'name': 'Custom Service', - 'type': 'service', - 'uom_id': cls.uom.id, - 'uom_po_id': cls.uom.id, - 'sale_ok': True, - 'taxes_id': [(6, 0, [])], - }) cls.contract_with_mandate = cls.contract2.copy( { 'partner_id': cls.partner.id, From f5711ebbbea27c63fb803888e99370600a55f15d Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Tue, 1 Oct 2019 09:33:27 +0000 Subject: [PATCH 036/118] [UPD] README.rst --- contract_mandate/README.rst | 1 + contract_mandate/static/description/index.html | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/contract_mandate/README.rst b/contract_mandate/README.rst index d87960d84..738d0c8d6 100644 --- a/contract_mandate/README.rst +++ b/contract_mandate/README.rst @@ -66,6 +66,7 @@ Contributors ~~~~~~~~~~~~ * Carlos Dauden +* Thomas Binsfeld Maintainers ~~~~~~~~~~~ diff --git a/contract_mandate/static/description/index.html b/contract_mandate/static/description/index.html index 79a427121..62f1c5e46 100644 --- a/contract_mandate/static/description/index.html +++ b/contract_mandate/static/description/index.html @@ -3,7 +3,7 @@ - + Contract Mandate + + +
+

Agreement - Stock

+ + +

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

+

Odoo Agreement App does not provide an easy way to access stock transfers related to an agreement. +Some organizations needs to have a quick access to stock transfers to track the performance of an agreement.

+

This module allows you to link a transfer to an agreement and +adds a smart button on the agreement to look at the list of related transfers.

+

Table of contents

+ +
+

Usage

+

To use this module, you need to:

+
    +
  • Go to Inventory > Transfers
  • +
  • Select or create a transfer and set the agreement
  • +
  • Select or create a lot/serial number and set the agreement
  • +
  • Go to Agreement > Agreements
  • +
  • Open the previous agreement
  • +
  • Click on the smart button “Transfers” to see the list of related transfers
  • +
  • Click on the smart button “Stock Moves” to see the list of related stock moves
  • +
  • Click on the smart button “Lot/SN #” to see the list of related lot/serial numbers
  • +
+
+
+

Known issues / Roadmap

+

The roadmap of the Agreement application is documented on +Github.

+
+
+

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

+
    +
  • Open Source Integrators
  • +
+
+ +
+

Other credits

+

The development of this module has been financially supported by:

+ +
+
+

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.

+

Current maintainers:

+

smangukiya max3903

+

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/agreement_stock/views/agreement_view.xml b/agreement_stock/views/agreement_view.xml new file mode 100644 index 000000000..359876b51 --- /dev/null +++ b/agreement_stock/views/agreement_view.xml @@ -0,0 +1,93 @@ + + + + + Pickings + ir.actions.act_window + stock.picking + form + tree,form + [('agreement_id', '=', active_id)] + +

+ Create Pickings +

+
+
+ + Moves + ir.actions.act_window + stock.move + form + tree,form + [('agreement_id', '=', active_id)] + +

+ Create Moves +

+
+
+ + Lots/Serials + ir.actions.act_window + stock.production.lot + form + tree,form + [('agreement_id', '=', active_id)] + +

+ Create Lot/Serial +

+
+
+ + + agreement.form.stock + agreement + + + + + + + + + + +
diff --git a/agreement_stock/views/stock_view.xml b/agreement_stock/views/stock_view.xml new file mode 100644 index 000000000..3f1707bff --- /dev/null +++ b/agreement_stock/views/stock_view.xml @@ -0,0 +1,54 @@ + + + + + stock.picking.form.agreement + stock.picking + + + + + + + + + + stock.move.form.agreement + stock.move + + + + + + + + + + stock.production.lot.form.agreement + stock.production.lot + + + + + + + + + + + + + + stock.production.lot.select.agreement + stock.production.lot + + + + + + + + + From f3bf3337309e86642b09d136210b7de9d46fc5d7 Mon Sep 17 00:00:00 2001 From: Sandip Mangukiya Date: Thu, 27 Dec 2018 00:53:27 -0800 Subject: [PATCH 063/118] [ADD] agreement_repair --- agreement_stock/readme/USAGE.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agreement_stock/readme/USAGE.rst b/agreement_stock/readme/USAGE.rst index 697f9a5d9..52c8869d9 100644 --- a/agreement_stock/readme/USAGE.rst +++ b/agreement_stock/readme/USAGE.rst @@ -7,4 +7,4 @@ To use this module, you need to: * Open the previous agreement * Click on the smart button "Transfers" to see the list of related transfers * Click on the smart button "Stock Moves" to see the list of related stock moves -* Click on the smart button "Lot/SN #" to see the list of related lot/serial numbers \ No newline at end of file +* Click on the smart button "Lot/SN #" to see the list of related lot/serial numbers From a9e007ae356f0ca9f9b7bfa3fba095ec52a4dfb8 Mon Sep 17 00:00:00 2001 From: Maxime Chambreuil Date: Thu, 3 Jan 2019 14:33:44 -0600 Subject: [PATCH 064/118] [IMP] Show stat even if 0. Filter agreement with partner Added translation using Weblate (German) Translated using Weblate (German) Currently translated at 100.0% (18 of 18 strings) Translation: contract-11.0/contract-11.0-agreement_stock Translate-URL: https://translation.odoo-community.org/projects/contract-11-0/contract-11-0-agreement_stock/de/ --- agreement_stock/i18n/de.po | 110 +++++++++++++++++++++++ agreement_stock/views/agreement_view.xml | 3 - agreement_stock/views/stock_view.xml | 3 +- 3 files changed, 112 insertions(+), 4 deletions(-) create mode 100644 agreement_stock/i18n/de.po diff --git a/agreement_stock/i18n/de.po b/agreement_stock/i18n/de.po new file mode 100644 index 000000000..703c94fe6 --- /dev/null +++ b/agreement_stock/i18n/de.po @@ -0,0 +1,110 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * agreement_stock +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2019-01-11 17:41+0000\n" +"Last-Translator: Maria Sparenberg \n" +"Language-Team: none\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" +"X-Generator: Weblate 3.3\n" + +#. module: agreement_stock +#: model:ir.model.fields,field_description:agreement_stock.field_agreement_lot_count +msgid "# Lots/Serials" +msgstr "# Chargen / Seriennummern" + +#. module: agreement_stock +#: model:ir.model.fields,field_description:agreement_stock.field_agreement_move_count +msgid "# Moves" +msgstr "# Lagerbewegungen" + +#. module: agreement_stock +#: model:ir.model.fields,field_description:agreement_stock.field_agreement_picking_count +msgid "# Pickings" +msgstr "# Lieferscheine" + +#. module: agreement_stock +#: model:ir.ui.view,arch_db:agreement_stock.partner_agreement_form_view_stock +msgid "Lots/Serials" +msgstr "Chargen / Seriennummern" + +#. module: agreement_stock +#: model:ir.ui.view,arch_db:agreement_stock.partner_agreement_form_view_stock +msgid "Moves" +msgstr "Lagerbewegungen" + +#. module: agreement_stock +#: model:ir.ui.view,arch_db:agreement_stock.partner_agreement_form_view_stock +msgid "Pickings" +msgstr "Lieferscheine" + +#. module: agreement_stock +#: model:ir.model.fields,field_description:agreement_stock.field_stock_move_agreement_id +#: model:ir.model.fields,field_description:agreement_stock.field_stock_picking_agreement_id +#: model:ir.model.fields,field_description:agreement_stock.field_stock_production_lot_agreement_id +msgid "Agreement" +msgstr "Vereinbarung" + +#. module: agreement_stock +#: model:ir.actions.act_window,help:agreement_stock.action_stock_production_lot_agreement_specific +msgid "Create Lot/Serial" +msgstr "Chargen / Seriennummern anlegen" + +#. module: agreement_stock +#: model:ir.actions.act_window,help:agreement_stock.action_stock_move_agreement_specific +msgid "Create Moves" +msgstr "Lagerbewegungen anlegen" + +#. module: agreement_stock +#: model:ir.actions.act_window,help:agreement_stock.action_stock_picking_agreement_specific +msgid "Create Pickings" +msgstr "Lieferscheine anlegen" + +#. module: agreement_stock +#: model:ir.model,name:agreement_stock.model_stock_production_lot +msgid "Lot/Serial" +msgstr "Charge / Seriennummer" + +#. module: agreement_stock +#: model:ir.actions.act_window,name:agreement_stock.action_stock_production_lot_agreement_specific +msgid "Lots/Serials" +msgstr "Chargen / Seriennummern" + +#. module: agreement_stock +#: model:ir.actions.act_window,name:agreement_stock.action_stock_move_agreement_specific +msgid "Moves" +msgstr "Lagerbewegungen" + +#. module: agreement_stock +#: model:ir.actions.act_window,name:agreement_stock.action_stock_picking_agreement_specific +msgid "Pickings" +msgstr "Lieferscheine" + +#. module: agreement_stock +#: model:ir.model.fields,field_description:agreement_stock.field_stock_production_lot_serviceprofile_id +#: model:ir.ui.view,arch_db:agreement_stock.search_product_lot_filter_agreement +msgid "Service Profile" +msgstr "Dienstleistungsprofil" + +#. module: agreement_stock +#: model:ir.model,name:agreement_stock.model_stock_move +msgid "Stock Move" +msgstr "Lagerbewegung" + +#. module: agreement_stock +#: model:ir.model,name:agreement_stock.model_stock_picking +msgid "Transfer" +msgstr "Liefern" + +#. module: agreement_stock +#: model:ir.model,name:agreement_stock.model_agreement +msgid "agreement" +msgstr "Vereinbarung" diff --git a/agreement_stock/views/agreement_view.xml b/agreement_stock/views/agreement_view.xml index 359876b51..14a1680b6 100644 --- a/agreement_stock/views/agreement_view.xml +++ b/agreement_stock/views/agreement_view.xml @@ -52,7 +52,6 @@ + +
+
+ +
diff --git a/agreement_repair/views/repair_view.xml b/agreement_repair/views/repair_view.xml new file mode 100644 index 000000000..0a052d918 --- /dev/null +++ b/agreement_repair/views/repair_view.xml @@ -0,0 +1,30 @@ + + + + + mrp.repair.form.agreement + mrp.repair + + + + + + + + + + + + mrp.repair.select.agreement + mrp.repair + + + + + + + + + From e5bad4f9dc589825b430353edf1ae8f887bf2d9f Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Thu, 27 Dec 2018 17:15:37 +0000 Subject: [PATCH 103/118] [UPD] README.rst --- agreement_repair/README.rst | 123 +++++++++++++++--- agreement_repair/i18n/agreement_repair.pot | 56 ++++++++ .../static/description/index.html | 72 +++++----- 3 files changed, 195 insertions(+), 56 deletions(-) create mode 100644 agreement_repair/i18n/agreement_repair.pot diff --git a/agreement_repair/README.rst b/agreement_repair/README.rst index 21cd7854d..6eb68d623 100644 --- a/agreement_repair/README.rst +++ b/agreement_repair/README.rst @@ -1,21 +1,112 @@ -**This file is going to be generated by oca-gen-addon-readme.** +================== +Agreement - Repair +================== -*Manual changes will be overwritten.* +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -Please provide content in the ``readme`` directory: +.. |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/agreement_repair + :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-agreement_repair + :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 -* **DESCRIPTION.rst** (required) -* INSTALL.rst (optional) -* CONFIGURE.rst (optional) -* **USAGE.rst** (optional, highly recommended) -* DEVELOP.rst (optional) -* ROADMAP.rst (optional) -* HISTORY.rst (optional, recommended) -* **CONTRIBUTORS.rst** (optional, highly recommended) -* CREDITS.rst (optional) +|badge1| |badge2| |badge3| |badge4| |badge5| -Content of this README will also be drawn from the addon manifest, -from keys such as name, authors, maintainers, development_status, -and license. +Odoo Agreement App does not provide an easy way to access repair orders related to an agreement. +Some organizations needs to have a quick access to repair orders to track the performance of an agreement. -A good, one sentence summary in the manifest is also highly recommended. +This module allows you to link a repair order to an agreement and +adds a smart button on the agreement to look at the list of related repair orders. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +To use this module, you need to: + +* Go to Repair > Repair Orders +* Select or create a repair order and set the agreement +* Go to Agreement > Agreements +* Open the previous agreement +* Click on the smart button "Repairs" to see the list of related repair orders + +Known issues / Roadmap +====================== + +The roadmap of the Agreement application is documented on +`Github `_. + +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 +~~~~~~~ + +* Open Source Integrators + +Contributors +~~~~~~~~~~~~ + +* Sandip Mangukiya + +Other credits +~~~~~~~~~~~~~ + +The development of this module has been financially supported by: + +* Open Source Integrators + +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. + +.. |maintainer-smangukiya| image:: https://github.com/smangukiya.png?size=40px + :target: https://github.com/smangukiya + :alt: smangukiya +.. |maintainer-max3903| image:: https://github.com/max3903.png?size=40px + :target: https://github.com/max3903 + :alt: max3903 + +Current `maintainers `__: + +|maintainer-smangukiya| |maintainer-max3903| + +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/agreement_repair/i18n/agreement_repair.pot b/agreement_repair/i18n/agreement_repair.pot new file mode 100644 index 000000000..ccfd04c0d --- /dev/null +++ b/agreement_repair/i18n/agreement_repair.pot @@ -0,0 +1,56 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * agreement_repair +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.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: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_agreement_repair_count +msgid "# Repair Orders" +msgstr "" + +#. module: agreement_repair +#: model:ir.ui.view,arch_db:agreement_repair.partner_agreement_form_view_repair +msgid "Repair Orders" +msgstr "" + +#. module: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_mrp_repair_agreement_id +msgid "Agreement" +msgstr "" + +#. module: agreement_repair +#: model:ir.actions.act_window,help:agreement_repair.action_mrp_repair_agreement_specific +msgid "Create Repair Orders" +msgstr "" + +#. module: agreement_repair +#: model:ir.model,name:agreement_repair.model_mrp_repair +msgid "Repair Order" +msgstr "" + +#. module: agreement_repair +#: model:ir.actions.act_window,name:agreement_repair.action_mrp_repair_agreement_specific +msgid "Repair Orders" +msgstr "" + +#. module: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_mrp_repair_serviceprofile_id +#: model:ir.ui.view,arch_db:agreement_repair.view_repair_order_form_filter_agreement +msgid "Service Profile" +msgstr "" + +#. module: agreement_repair +#: model:ir.model,name:agreement_repair.model_agreement +msgid "agreement" +msgstr "" + diff --git a/agreement_repair/static/description/index.html b/agreement_repair/static/description/index.html index a798df628..c4a06b39f 100644 --- a/agreement_repair/static/description/index.html +++ b/agreement_repair/static/description/index.html @@ -4,7 +4,7 @@ -Agreement - MRP +Agreement - Repair -
-

Agreement - MRP

+
+

Agreement - Repair

-

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

-

Odoo Agreement App does not provide an easy way to access manufacturing orders -related to an agreement. Some organizations needs to have a quick access to the -production orders to track the performance of an agreement.

-

This module allows you to link a manufacturing order to an agreement and -adds a smart button on the agreement to look at the list of related MOs.

+

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

+

Odoo Agreement App does not provide an easy way to access repair orders related to an agreement. +Some organizations needs to have a quick access to repair orders to track the performance of an agreement.

+

This module allows you to link a repair order to an agreement and +adds a smart button on the agreement to look at the list of related repair orders.

Table of contents

-
-

Installation

-

To install Field Service and have the mapping features, -you need to install agreement and mrp

-

Please refer to the installation instructions available at: -https://github.com/OCA/contract/agreement_mrp

-
-

Usage

+

Usage

To use this module, you need to:

    -
  • Go to Manufacturing > Manufacturing Orders
  • -
  • Select or create a manufacturing order and set the agreement
  • +
  • Go to Repair > Repair Orders
  • +
  • Select or create a repair order and set the agreement
  • Go to Agreement > Agreements
  • -
  • Open the previous agreement and click on the smart button “Manufacturing Orders” to see the list of related MO
  • +
  • Open the previous agreement
  • +
  • Click on the smart button “Repairs” to see the list of related repair orders
-

Known issues / Roadmap

-

The roadmap of the Field Service application is documented on -Github.

+

Known issues / Roadmap

+

The roadmap of the Agreement application is documented on +Github.

-

Bug Tracker

+

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.

+feedback.

Do not contact contributors directly about support or help with technical issues.

-

Credits

+

Credits

-

Authors

+

Authors

  • Open Source Integrators
-

Other credits

+

Other credits

The development of this module has been financially supported by:

-

Maintainers

+

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose @@ -449,7 +441,7 @@ mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainers:

smangukiya max3903

-

This module is part of the OCA/contract project on GitHub.

+

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.

From 2c62805b2431f8177b757a649d040c39a0294214 Mon Sep 17 00:00:00 2001 From: Maxime Chambreuil Date: Thu, 3 Jan 2019 14:33:27 -0600 Subject: [PATCH 104/118] [IMP] Show stat even if 0. Filter agreement with partner --- agreement_repair/views/agreement_view.xml | 1 - agreement_repair/views/repair_view.xml | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/agreement_repair/views/agreement_view.xml b/agreement_repair/views/agreement_view.xml index 6f318241a..0c6c55629 100644 --- a/agreement_repair/views/agreement_view.xml +++ b/agreement_repair/views/agreement_view.xml @@ -24,7 +24,6 @@