From 3c7cc05c3485bd811ed2f5cfdcdd3e1aec7dcea0 Mon Sep 17 00:00:00 2001 From: Sandip Mangukiya Date: Wed, 26 Dec 2018 23:58:52 -0800 Subject: [PATCH] [ADD] agreement_stock --- agreement/models/res_config_settings.py | 2 + agreement/views/res_config_settings.xml | 13 + agreement_mrp/readme/INSTALL.rst | 5 - agreement_mrp/readme/ROADMAP.rst | 4 +- agreement_mrp/views/agreement_view.xml | 17 +- agreement_mrp/views/mrp_view.xml | 8 +- agreement_stock/README.rst | 21 + agreement_stock/__init__.py | 4 + agreement_stock/__manifest__.py | 27 ++ agreement_stock/models/__init__.py | 7 + agreement_stock/models/agreement.py | 43 ++ agreement_stock/models/stock.py | 27 ++ agreement_stock/readme/CONTRIBUTORS.rst | 1 + agreement_stock/readme/CREDITS.rst | 3 + agreement_stock/readme/DESCRIPTION.rst | 5 + agreement_stock/readme/ROADMAP.rst | 2 + agreement_stock/readme/USAGE.rst | 10 + agreement_stock/static/description/icon.png | Bin 0 -> 6755 bytes agreement_stock/static/description/index.html | 458 ++++++++++++++++++ agreement_stock/views/agreement_view.xml | 93 ++++ agreement_stock/views/stock_view.xml | 54 +++ 21 files changed, 789 insertions(+), 15 deletions(-) delete mode 100644 agreement_mrp/readme/INSTALL.rst create mode 100644 agreement_stock/README.rst create mode 100644 agreement_stock/__init__.py create mode 100644 agreement_stock/__manifest__.py create mode 100644 agreement_stock/models/__init__.py create mode 100644 agreement_stock/models/agreement.py create mode 100644 agreement_stock/models/stock.py create mode 100644 agreement_stock/readme/CONTRIBUTORS.rst create mode 100644 agreement_stock/readme/CREDITS.rst create mode 100644 agreement_stock/readme/DESCRIPTION.rst create mode 100644 agreement_stock/readme/ROADMAP.rst create mode 100644 agreement_stock/readme/USAGE.rst create mode 100644 agreement_stock/static/description/icon.png create mode 100644 agreement_stock/static/description/index.html create mode 100644 agreement_stock/views/agreement_view.xml create mode 100644 agreement_stock/views/stock_view.xml diff --git a/agreement/models/res_config_settings.py b/agreement/models/res_config_settings.py index b1ff8e04..c84dca13 100644 --- a/agreement/models/res_config_settings.py +++ b/agreement/models/res_config_settings.py @@ -11,3 +11,5 @@ class ResConfigSettings(models.TransientModel): string='Manage maintenance agreements and contracts') module_agreement_mrp = fields.Boolean( string='Link your manufacturing orders to an agreement.') + module_agreement_stock = fields.Boolean( + string='Link your pickings to an agreement.') diff --git a/agreement/views/res_config_settings.xml b/agreement/views/res_config_settings.xml index 335a891c..67209cde 100644 --- a/agreement/views/res_config_settings.xml +++ b/agreement/views/res_config_settings.xml @@ -59,6 +59,19 @@ +
+
+
+ +
+
+
+
+
diff --git a/agreement_mrp/readme/INSTALL.rst b/agreement_mrp/readme/INSTALL.rst deleted file mode 100644 index c85327b9..00000000 --- a/agreement_mrp/readme/INSTALL.rst +++ /dev/null @@ -1,5 +0,0 @@ -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 diff --git a/agreement_mrp/readme/ROADMAP.rst b/agreement_mrp/readme/ROADMAP.rst index 339c72be..7e6402cf 100644 --- a/agreement_mrp/readme/ROADMAP.rst +++ b/agreement_mrp/readme/ROADMAP.rst @@ -1,2 +1,2 @@ -The roadmap of the Field Service application is documented on -`Github `_. +The roadmap of the Agreement application is documented on +`Github `_. diff --git a/agreement_mrp/views/agreement_view.xml b/agreement_mrp/views/agreement_view.xml index f357ee6d..659b140f 100644 --- a/agreement_mrp/views/agreement_view.xml +++ b/agreement_mrp/views/agreement_view.xml @@ -1,7 +1,8 @@ - + Manufacture Orders ir.actions.act_window mrp.production @@ -9,8 +10,8 @@ tree,form [('agreement_id', '=', active_id)] -

- Create MOs +

+ Create MOs

@@ -21,9 +22,15 @@ - diff --git a/agreement_mrp/views/mrp_view.xml b/agreement_mrp/views/mrp_view.xml index 5c2f3e78..6e15544f 100644 --- a/agreement_mrp/views/mrp_view.xml +++ b/agreement_mrp/views/mrp_view.xml @@ -8,11 +8,12 @@ - +
- + mrp.production.select.agreement @@ -20,7 +21,8 @@ - + diff --git a/agreement_stock/README.rst b/agreement_stock/README.rst new file mode 100644 index 00000000..21cd7854 --- /dev/null +++ b/agreement_stock/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_stock/__init__.py b/agreement_stock/__init__.py new file mode 100644 index 00000000..631bd489 --- /dev/null +++ b/agreement_stock/__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_stock/__manifest__.py b/agreement_stock/__manifest__.py new file mode 100644 index 00000000..cd691d71 --- /dev/null +++ b/agreement_stock/__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 - Stock', + 'summary': 'Link picking 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', + 'stock', + ], + 'data': [ + 'views/agreement_view.xml', + 'views/stock_view.xml', + ], + 'installable': True, + 'license': 'AGPL-3', + 'development_status': 'Beta', + 'maintainers': [ + 'smangukiya', + 'max3903', + ], +} diff --git a/agreement_stock/models/__init__.py b/agreement_stock/models/__init__.py new file mode 100644 index 00000000..03159e36 --- /dev/null +++ b/agreement_stock/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 ( + stock, + agreement, +) diff --git a/agreement_stock/models/agreement.py b/agreement_stock/models/agreement.py new file mode 100644 index 00000000..677762d6 --- /dev/null +++ b/agreement_stock/models/agreement.py @@ -0,0 +1,43 @@ +# 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" + + picking_count = fields.Integer('# Pickings', + compute='_compute_picking_count') + move_count = fields.Integer('# Moves', compute='_compute_move_count') + lot_count = fields.Integer('# Lots/Serials', compute='_compute_lot_count') + + @api.multi + def _compute_picking_count(self): + data = self.env['stock.picking'].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.picking_count = count_data.get(agreement.id, 0) + + @api.multi + def _compute_move_count(self): + data = self.env['stock.move'].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.move_count = count_data.get(agreement.id, 0) + + @api.multi + def _compute_lot_count(self): + data = self.env['stock.production.lot'].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.lot_count = count_data.get(agreement.id, 0) diff --git a/agreement_stock/models/stock.py b/agreement_stock/models/stock.py new file mode 100644 index 00000000..f0c7122f --- /dev/null +++ b/agreement_stock/models/stock.py @@ -0,0 +1,27 @@ +# 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 StockPicking(models.Model): + _inherit = "stock.picking" + + agreement_id = fields.Many2one('agreement', 'Agreement') + + +class StockMove(models.Model): + _inherit = "stock.move" + + agreement_id = fields.Many2one('agreement', + related='picking_id.agreement_id', + string='Agreement', + store=True) + + +class StockProductionLot(models.Model): + _inherit = "stock.production.lot" + + agreement_id = fields.Many2one('agreement', 'Agreement') + serviceprofile_id = fields.Many2one('agreement.serviceprofile', + 'Service Profile') diff --git a/agreement_stock/readme/CONTRIBUTORS.rst b/agreement_stock/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000..a76235f8 --- /dev/null +++ b/agreement_stock/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Sandip Mangukiya diff --git a/agreement_stock/readme/CREDITS.rst b/agreement_stock/readme/CREDITS.rst new file mode 100644 index 00000000..0eff0acf --- /dev/null +++ b/agreement_stock/readme/CREDITS.rst @@ -0,0 +1,3 @@ +The development of this module has been financially supported by: + +* Open Source Integrators diff --git a/agreement_stock/readme/DESCRIPTION.rst b/agreement_stock/readme/DESCRIPTION.rst new file mode 100644 index 00000000..53cc62cf --- /dev/null +++ b/agreement_stock/readme/DESCRIPTION.rst @@ -0,0 +1,5 @@ +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. diff --git a/agreement_stock/readme/ROADMAP.rst b/agreement_stock/readme/ROADMAP.rst new file mode 100644 index 00000000..7e6402cf --- /dev/null +++ b/agreement_stock/readme/ROADMAP.rst @@ -0,0 +1,2 @@ +The roadmap of the Agreement application is documented on +`Github `_. diff --git a/agreement_stock/readme/USAGE.rst b/agreement_stock/readme/USAGE.rst new file mode 100644 index 00000000..697f9a5d --- /dev/null +++ b/agreement_stock/readme/USAGE.rst @@ -0,0 +1,10 @@ +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 \ No newline at end of file diff --git a/agreement_stock/static/description/icon.png b/agreement_stock/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+tZ9t!Y8RHmF5#}bqqAx+Q;hf(QH(*?Vjj4BulV;sJs&UBLV$q{GRIwmk5wUTaI zPKj<^&w^?pE1F~K3_{l~y0WhELE1URYE6NS;p8;#;^$jB*xl)2=}?K=p}@_W(I;w+ zfU*gTRDkHrhv0w@`Rni?$knwyx?Sx)Em}l5YM@yh!_LMGKJX_)IODm?c{&tPQ6zQr zD6zX}$Tg)BJEH7Kp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+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_stock/views/agreement_view.xml b/agreement_stock/views/agreement_view.xml new file mode 100644 index 00000000..359876b5 --- /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 00000000..3f1707bf --- /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 + + + + + + + + +