diff --git a/ngo_purchase/LICENSE/LICENSE b/ngo_purchase/LICENSE/LICENSE new file mode 100644 index 00000000..db611cbe --- /dev/null +++ b/ngo_purchase/LICENSE/LICENSE @@ -0,0 +1,19 @@ + -*- coding: utf-8 -*- + + + Author: Yannick Vaucher + Copyright 2014 Camptocamp SA + Copyright 2017 Serpent Consulting Services Pvt. Ltd. + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as + published by the Free Software Foundation, either version 3 of the + License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . diff --git a/ngo_purchase/README.rst b/ngo_purchase/README.rst index b28a7f43..b807de49 100644 --- a/ngo_purchase/README.rst +++ b/ngo_purchase/README.rst @@ -12,4 +12,5 @@ Contributors ------------ * Yannick Vaucher +* Serpent Consulting Services Pvt. Ltd. diff --git a/ngo_purchase/__init__.py b/ngo_purchase/__init__.py index f3fc39f7..956aa1b7 100644 --- a/ngo_purchase/__init__.py +++ b/ngo_purchase/__init__.py @@ -1,2 +1,4 @@ # -*- coding: utf-8 -*- -from . import model +# See LICENSE file for full copyright and licensing details. + +from . import models diff --git a/ngo_purchase/__manifest__.py b/ngo_purchase/__manifest__.py index 07b2d327..5fce3484 100644 --- a/ngo_purchase/__manifest__.py +++ b/ngo_purchase/__manifest__.py @@ -1,45 +1,29 @@ # -*- coding: utf-8 -*- -# -# -# Author: Yannick Vaucher -# Copyright 2014 Camptocamp SA -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -# -{"name": "NGO - Purchase Order", - "summary": "Base Purchase Order view for NGO", - "version": "8.0.1.2.0", - "author": "Camptocamp,Odoo Community Association (OCA)", - "license": "AGPL-3", - "category": "Purchase Management", - 'complexity': "normal", - "images": [], - "website": "http://www.camptocamp.com", - "depends": ["framework_agreement", - "framework_agreement_requisition", - "purchase_origin_address", - "purchase_delivery_address", - "purchase_requisition", - "purchase_requisition_bid_selection", - "purchase_rfq_bid_workflow", - "purchase_transport_document", - ], - "demo": [], - "data": ["view/purchase_order.xml", - ], - "test": [], - 'installable': False, - 'auto_install': False, - } +# See LICENSE file for full copyright and licensing details. + +{ + 'name': 'NGO - Purchase Order', + 'summary': 'Base Purchase Order view for NGO', + 'version': '10.0.1.0.0', + 'author': 'Camptocamp,Odoo Community Association (OCA), \ + Serpent Consulting Services Pvt. Ltd.', + 'category': 'Purchase Management', + 'complexity': 'normal', + 'website': 'http://www.camptocamp.com', + 'license': 'LGPL-3', + 'depends': [ + 'framework_agreement', + 'framework_agreement_requisition', + 'purchase_origin_address', + 'purchase_delivery_address', + 'purchase_requisition', + 'purchase_requisition_bid_selection', + 'purchase_rfq_bid_workflow', + 'purchase_transport_document', + ], + 'data': [ + 'views/purchase_order.xml', + ], + 'installable': True, + 'auto_install': False, +} diff --git a/ngo_purchase/model/__init__.py b/ngo_purchase/model/__init__.py deleted file mode 100644 index 449e22b0..00000000 --- a/ngo_purchase/model/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -# -*- coding: utf-8 -*- -from . import purchase_order diff --git a/ngo_purchase/model/purchase_order.py b/ngo_purchase/model/purchase_order.py deleted file mode 100644 index 2897ed16..00000000 --- a/ngo_purchase/model/purchase_order.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -# -# -# Author: Yannick Vaucher -# Copyright 2014 Camptocamp SA -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -# -from openerp import models, fields - - -class PurchaseOrder(models.Model): - _inherit = 'purchase.order' - - req_bid_tendering_mode = fields.Selection( - related='requisition_id.bid_tendering_mode', - selection=[('open', 'Open'), - ('restricted', 'Restricted')], - string='Call for Bids Mode', - readonly=True, - help="Call for Bids mode of the requisition from which this RFQ was " - "generated\n- Restricted: Only the Tender's creator can select " - "bidders and generate a RFQ for each of those.\n" - "- Open : anybody can bid.") - req_date_end = fields.Datetime( - related='requisition_id.date_end', - string="Bid Submission Deadline", - readonly=True) diff --git a/ngo_purchase/models/__init__.py b/ngo_purchase/models/__init__.py new file mode 100644 index 00000000..e70a4e7a --- /dev/null +++ b/ngo_purchase/models/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +# See LICENSE file for full copyright and licensing details. + +from . import purchase_order diff --git a/ngo_purchase/models/purchase_order.py b/ngo_purchase/models/purchase_order.py new file mode 100644 index 00000000..e2149df0 --- /dev/null +++ b/ngo_purchase/models/purchase_order.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +# See LICENSE file for full copyright and licensing details. + +from odoo import fields, models + + +class PurchaseOrder(models.Model): + _inherit = 'purchase.order' + + req_bid_tendering_mode = fields.Selection( + related='requisition_id.bid_tendering_mode', + selection=[('open', 'Open'), + ('restricted', 'Restricted')], + string='Call for Bids Mode', + readonly=True, + help="Call for Bids mode of the requisition from which this RFQ was " + "generated\n- Restricted: Only the Tender's creator can select " + "bidders and generate a RFQ for each of those.\n" + "- Open : anybody can bid.") + req_date_end = fields.Datetime( + related='requisition_id.date_end', + string="Bid Submission Deadline", + readonly=True) diff --git a/ngo_purchase/purchase_order.py b/ngo_purchase/purchase_order.py deleted file mode 100644 index e69de29b..00000000 diff --git a/ngo_purchase/static/description/index.html b/ngo_purchase/static/description/index.html new file mode 100644 index 00000000..5638c4e5 --- /dev/null +++ b/ngo_purchase/static/description/index.html @@ -0,0 +1,51 @@ + +
+
+

Vertical NGO

+

Requests for Quotations

+
+

+ This is the main page where request for quotation, it includes purchase + agreement, portfolio, pricelist, terms and conditions, currency, + and products,purchase order and quotation request are similar to each other. +

+
+
+
+ +
+
+
+
+ +
+
+

Purchase Order

+
+
+ +
+
+
+

+ Create purchase orders to which you can add brief records or generic charges and fees +

+
+
+
+ +
+
+

Purchase Agreement

+
+

+ This is the page where you can used to transfer the ownership of a business from a seller to a buyer.This page shows the agreement status too. +

+
+
+
+ +
+
+
+
diff --git a/ngo_purchase/static/description/ngo1.png b/ngo_purchase/static/description/ngo1.png new file mode 100644 index 00000000..c23434a5 Binary files /dev/null and b/ngo_purchase/static/description/ngo1.png differ diff --git a/ngo_purchase/static/description/ngo2.png b/ngo_purchase/static/description/ngo2.png new file mode 100644 index 00000000..7702c614 Binary files /dev/null and b/ngo_purchase/static/description/ngo2.png differ diff --git a/ngo_purchase/static/description/ngo3.png b/ngo_purchase/static/description/ngo3.png new file mode 100644 index 00000000..ebad5dd8 Binary files /dev/null and b/ngo_purchase/static/description/ngo3.png differ diff --git a/ngo_purchase/view/purchase_order.xml b/ngo_purchase/view/purchase_order.xml deleted file mode 100644 index 7c4e8aa0..00000000 --- a/ngo_purchase/view/purchase_order.xml +++ /dev/null @@ -1,418 +0,0 @@ - - - - - - ngo.purchase.order.form - purchase.order - - -
-
-
- - -
- - -
- -
-

- - -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
-
-
- -
- - -
- - - - - - purchase.order.list.select - purchase.order - - - - - - - - - - - - add onchange on purchase form - purchase.order - - - - - - - - - 1 - - - - {'portfolio_id': portfolio_id} - - - - {'agreement_id': framework_agreement_id, 'incoterm_id': parent.incoterm_id, 'currency_id': parent.currency_id, 'portfolio_id': parent.portfolio_id} - - - - - - - - - {'agreement_id': framework_agreement_id, 'incoterm_id': parent.incoterm_id, 'currency_id': parent.currency_id, 'portfolio_id': parent.portfolio_id} - - - - - - - - - - - - - ngo.purchase.order.line.form - purchase.order.line - - -
- - - - - - - - - -
-
-
- - - - purchase.order.form.inherit - purchase.order - - - - -

-

-
- - - draft,sent,bid,draftpo,approved,done - - - - cancel,draftpo - Reset to Draft RFQ - - - - - - - - + +
+
+

+ + +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+ +
+ + +
+ + + + + purchase.order.list.select + purchase.order + + + + + + + + + + + + add onchange on purchase form + purchase.order + + + + + {'portfolio_id': portfolio_id} + + + + {'agreement_id': + framework_agreement_id,'incoterm_id': parent.incoterm_id, + 'currency_id': parent.currency_id, 'portfolio_id': + parent.portfolio_id} + + + + + + + + + + {'agreement_id': framework_agreement_id, + 'incoterm_id': parent.incoterm_id, 'currency_id': + parent.currency_id, 'portfolio_id': parent.portfolio_id} + + + + + + + + + + + + ngo.purchase.order.line.form + purchase.order.line + + +
+ + + + + + +
+
+
+ + + + purchase.order.form.inherit + purchase.order + + + + +

+

+
+ + + draft,sent,bid,draftpo,approved,done + + + + + cancel,draftpo + Reset to Draft RFQ + + + + + + + +
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - - - - - - - - - - - - -