Skip to content

Commit

Permalink
Merge 6583b94 into c5886fd
Browse files Browse the repository at this point in the history
  • Loading branch information
yvaucher committed Nov 13, 2014
2 parents c5886fd + 6583b94 commit f3e12f4
Show file tree
Hide file tree
Showing 10 changed files with 696 additions and 2 deletions.
1 change: 1 addition & 0 deletions logistic_requisition/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"mail",
"logistic_order",
"logistic_consignee",
"ngo_purchase",
"transport_information",
"purchase_requisition_transport_document",
"purchase_requisition_delivery_address",
Expand Down
4 changes: 2 additions & 2 deletions logistic_requisition/view/purchase_order.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<record model="ir.ui.view" id="purchase_order_form">
<field name="name">purchase_order_form</field>
<field name="model">purchase.order</field>
<field name="inherit_id" ref="purchase.purchase_order_form"/>
<field name="inherit_id" ref="ngo_purchase.purchase_order_form"/>
<field name="arch" type="xml">

<field name="location_id" position="after">
<field name="minimum_planned_date" position="after">
<field name="transport_mode_id"/>
<field name="transport_vehicle_id"/>
</field>
Expand Down
13 changes: 13 additions & 0 deletions ngo_purchase/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
NGO - Purchase
==============

This is a glue module to define a specific view of Purchase Order
for NGO verticalization. The new view is meant to give consistency with
Logistics Order and Logistics Requests views.


Contributors
------------

* Yannick Vaucher <yannick.vaucher@camptocamp.com>

2 changes: 2 additions & 0 deletions ngo_purchase/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# -*- coding: utf-8 -*-
from . import model
45 changes: 45 additions & 0 deletions ngo_purchase/__openerp__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# -*- 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 <http://www.gnu.org/licenses/>.
#
#
{"name": "NGO - Purchase Order",
"summary": "Base Purchase Order view for NGO",
"version": "1.0",
"author": "Camptocamp",
"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': True,
'auto_install': False,
}
254 changes: 254 additions & 0 deletions ngo_purchase/i18n/ngo_purchase.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,254 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * ngo_purchase
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-11-11 13:29+0000\n"
"PO-Revision-Date: 2014-11-11 13:29+0000\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: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_order_form
msgid "(update)"
msgstr ""

#. module: ngo_purchase
#: help:purchase.order,req_bid_tendering_mode:0
msgid "- Restricted : you select yourself the bidders and generate a RFQ for each of those. \n"
"- Open : anybody can bid (you have to advertise the call for bids) and you directly encode the bids you received. You are still able to generate RFQ if you want to contact usual bidders."
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_order_form
msgid "Accounting and Currency"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_order_form
msgid "Approve Order"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_rfq_bid_workflow_view_purchase_order_form
msgid "Bid Encoded"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_order_form
msgid "Bid Information"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_order_form
msgid "Bid Received"
msgstr ""

#. module: ngo_purchase
#: field:purchase.order,req_bid_tendering_mode:0
msgid "Call for Bids Mode"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_order_form
msgid "Cancel"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_order_form
msgid "Confirm Order"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_rfq_bid_workflow_view_purchase_order_form
msgid "Convert to PO"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_order_form
msgid "Delivery Remarks"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_order_form
msgid "Manually Corrected"
msgstr ""

#. module: ngo_purchase
#: selection:purchase.order,req_bid_tendering_mode:0
msgid "Open"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_order_form
msgid "Print RFQ"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_order_form
msgid "Products"
msgstr ""

#. module: ngo_purchase
#: model:ir.model,name:ngo_purchase.model_purchase_order
#: view:purchase.order:ngo_purchase.purchase_order_form
msgid "Purchase Order"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_order_form
msgid "Purchase Order Lines"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_order_form
msgid "Re-Print RFQ"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_order_form
msgid "Re-Send RFQ by Email"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_rfq_bid_workflow_view_purchase_order_form
msgid "Reason for Cancellation:"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_order_form
msgid "Receive Invoice"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_order_form
msgid "Receive Products"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_rfq_bid_workflow_view_purchase_order_form
msgid "Reset to Draft RFQ"
msgstr ""

#. module: ngo_purchase
#: selection:purchase.order,req_bid_tendering_mode:0
msgid "Restricted"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_rfq_bid_workflow_view_purchase_order_form
msgid "Send Draft PO by Email"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_order_form
msgid "Send PO by Email"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_order_form
msgid "Send RFQ by Email"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_order_form
msgid "Set to Draft"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_order_form
msgid "Terms and conditions..."
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_order_form
msgid "Transport Documents"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_order_form
msgid "Transportation and Delivery"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_order_form
msgid "Validation"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_rfq_bid_workflow_view_purchase_order_form
msgid "cancel,draftpo"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_rfq_bid_workflow_view_purchase_order_form
msgid "draft,confirmed,sent,bid,draftbid,draftpo"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_rfq_bid_workflow_view_purchase_order_form
msgid "draft,sent,bid,draftpo,approved,done"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_rfq_bid_workflow_view_purchase_order_form
msgid "draftpo"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_rfq_bid_workflow_view_purchase_order_form
msgid "object"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_rfq_bid_workflow_view_purchase_order_form
msgid "onchange_picking_type_id(picking_type_id)"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.add_onchange_on_purchase_order_form
msgid "onchange_price(price_unit, parent.framework_agreement_id, product_qty, parent.pricelist_id, product_id)"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_rfq_bid_workflow_view_purchase_order_form
msgid "sent,draftbid"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_order_form
msgid "validated on"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.add_onchange_on_purchase_order_form
msgid "{'agreement_id': framework_agreement_id}"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.add_onchange_on_purchase_order_form
msgid "{'agreement_id': parent.framework_agreement_id}"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.view_purchase_order_form
msgid "{'invisible': ['|', ('requisition_id','!=',False)]}"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.add_onchange_on_purchase_order_form
msgid "{'order_line_ids': order_line}"
msgstr ""

#. module: ngo_purchase
#: view:purchase.order:ngo_purchase.purchase_rfq_bid_workflow_view_purchase_order_form
msgid "{'order_type': parent.type}"
msgstr ""

2 changes: 2 additions & 0 deletions ngo_purchase/model/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# -*- coding: utf-8 -*-
from . import purchase_order
40 changes: 40 additions & 0 deletions ngo_purchase/model/purchase_order.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# -*- 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 <http://www.gnu.org/licenses/>.
#
#
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)
Empty file added ngo_purchase/purchase_order.py
Empty file.
Loading

0 comments on commit f3e12f4

Please sign in to comment.