-
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
375 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
NGO - Purchase Requisition | ||
========================== | ||
|
||
This is a glue module to define a specific view of Purchase Requisition | ||
for NGO verticalization. The new view intent to give consistency with | ||
Logistics Order and Logistics Requests views. | ||
|
||
|
||
Contributors | ||
------------ | ||
|
||
* Yannick Vaucher <yannick.vaucher@camptocamp.com> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# -*- coding: utf-8 -*- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# -*- 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 Requisition", | ||
"summary": "Base Purchase Requisition view for NGO", | ||
"version": "1.0", | ||
"author": "Camptocamp", | ||
"license": "AGPL-3", | ||
"category": "Purchase Management", | ||
'complexity': "normal", | ||
"images": [], | ||
"website": "http://www.camptocamp.com", | ||
"depends": ["purchase_requisition", | ||
"purchase_requisition_bid_selection", | ||
"purchase_requisition_delivery_address", | ||
"purchase_requisition_auto_rfq", | ||
"purchase_requisition_transport_document", | ||
], | ||
"demo": [], | ||
"data": ["view/purchase_requisition.xml", | ||
], | ||
"test": [], | ||
'installable': True, | ||
'auto_install': False, | ||
} |
142 changes: 142 additions & 0 deletions
142
ngo_purchase_requisition/i18n/ngo_purchase_requisition.pot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * ngo_purchase_requisition | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 8.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2014-11-11 14:01+0000\n" | ||
"PO-Revision-Date: 2014-11-11 14:01+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_requisition | ||
#: view:purchase.requisition:ngo_purchase_requisition.view_purchase_requisition_form | ||
msgid "Accounting and Currency" | ||
msgstr "" | ||
|
||
#. module: ngo_purchase_requisition | ||
#: view:purchase.requisition:ngo_purchase_requisition.view_purchase_requisition_form | ||
msgid "Call for Bids" | ||
msgstr "" | ||
|
||
#. module: ngo_purchase_requisition | ||
#: view:purchase.requisition:ngo_purchase_requisition.view_purchase_requisition_form | ||
msgid "Cancel Call" | ||
msgstr "" | ||
|
||
#. module: ngo_purchase_requisition | ||
#: view:purchase.requisition:ngo_purchase_requisition.view_purchase_requisition_form | ||
msgid "Choose product lines" | ||
msgstr "" | ||
|
||
#. module: ngo_purchase_requisition | ||
#: view:purchase.requisition:ngo_purchase_requisition.view_purchase_requisition_form | ||
msgid "Close Call for Bids" | ||
msgstr "" | ||
|
||
#. module: ngo_purchase_requisition | ||
#: view:purchase.requisition:ngo_purchase_requisition.view_purchase_requisition_form | ||
msgid "Confirm Call" | ||
msgstr "" | ||
|
||
#. module: ngo_purchase_requisition | ||
#: view:purchase.requisition:ngo_purchase_requisition.view_purchase_requisition_form | ||
msgid "Framework agreement selected" | ||
msgstr "" | ||
|
||
#. module: ngo_purchase_requisition | ||
#: view:purchase.requisition:ngo_purchase_requisition.view_purchase_requisition_form | ||
msgid "Generate PO" | ||
msgstr "" | ||
|
||
#. module: ngo_purchase_requisition | ||
#: view:purchase.requisition:ngo_purchase_requisition.view_purchase_requisition_form | ||
msgid "Order Date" | ||
msgstr "" | ||
|
||
#. module: ngo_purchase_requisition | ||
#: view:purchase.requisition:ngo_purchase_requisition.view_purchase_requisition_form | ||
msgid "Products" | ||
msgstr "" | ||
|
||
#. module: ngo_purchase_requisition | ||
#: view:purchase.requisition:ngo_purchase_requisition.view_purchase_requisition_form | ||
msgid "Purchase Order" | ||
msgstr "" | ||
|
||
#. module: ngo_purchase_requisition | ||
#: view:purchase.requisition:ngo_purchase_requisition.view_purchase_requisition_form | ||
msgid "Re-Open Bids Selection" | ||
msgstr "" | ||
|
||
#. module: ngo_purchase_requisition | ||
#: view:purchase.requisition:ngo_purchase_requisition.view_purchase_requisition_form | ||
msgid "Reference" | ||
msgstr "" | ||
|
||
#. module: ngo_purchase_requisition | ||
#: view:purchase.requisition:ngo_purchase_requisition.view_purchase_requisition_form | ||
msgid "Request a Quotation" | ||
msgstr "" | ||
|
||
#. module: ngo_purchase_requisition | ||
#: view:purchase.requisition:ngo_purchase_requisition.view_purchase_requisition_form | ||
msgid "Requests for Quotation / Bids" | ||
msgstr "" | ||
|
||
#. module: ngo_purchase_requisition | ||
#: view:purchase.requisition:ngo_purchase_requisition.view_purchase_requisition_form | ||
msgid "Reset to Draft" | ||
msgstr "" | ||
|
||
#. module: ngo_purchase_requisition | ||
#: view:purchase.requisition:ngo_purchase_requisition.view_purchase_requisition_form | ||
msgid "Send RFQ by Email" | ||
msgstr "" | ||
|
||
#. module: ngo_purchase_requisition | ||
#: view:purchase.requisition:ngo_purchase_requisition.view_purchase_requisition_form | ||
msgid "Terms and Conditions" | ||
msgstr "" | ||
|
||
#. module: ngo_purchase_requisition | ||
#: view:purchase.requisition:ngo_purchase_requisition.view_purchase_requisition_form | ||
msgid "Transport Documents" | ||
msgstr "" | ||
|
||
#. module: ngo_purchase_requisition | ||
#: view:purchase.requisition:ngo_purchase_requisition.view_purchase_requisition_form | ||
msgid "Transportation and delivery" | ||
msgstr "" | ||
|
||
#. module: ngo_purchase_requisition | ||
#: view:purchase.requisition:ngo_purchase_requisition.view_purchase_requisition_form | ||
msgid "View Generated PO" | ||
msgstr "" | ||
|
||
#. module: ngo_purchase_requisition | ||
#: view:purchase.requisition:ngo_purchase_requisition.view_purchase_requisition_form | ||
msgid "View Products Lines" | ||
msgstr "" | ||
|
||
#. module: ngo_purchase_requisition | ||
#: view:purchase.requisition:ngo_purchase_requisition.view_purchase_requisition_form | ||
msgid "View RFQs/Bids" | ||
msgstr "" | ||
|
||
#. module: ngo_purchase_requisition | ||
#: view:purchase.requisition:ngo_purchase_requisition.view_purchase_requisition_form | ||
msgid "e.g. OP0025" | ||
msgstr "" | ||
|
||
#. module: ngo_purchase_requisition | ||
#: view:purchase.requisition:ngo_purchase_requisition.view_purchase_requisition_form | ||
msgid "e.g. PO0025" | ||
msgstr "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,174 @@ | ||
<?xml version="1.0"?> | ||
<openerp> | ||
<data> | ||
<record model="ir.ui.view" id="view_purchase_requisition_form"> | ||
<field name="name">ngo.purchase.requisition.form</field> | ||
<field name="model">purchase.requisition</field> | ||
<field name="priority" eval="10"/> | ||
<field name="arch" type="xml"> | ||
<form string="Call for Bids"> | ||
<header> | ||
<button name="sent_suppliers" states="draft" string="Confirm Call" class="oe_highlight"/> | ||
<button name="open_bid" states="in_progress" string="Close Call for Bids" class="oe_highlight"/> | ||
<!-- added by purchase_requisition_bid_selection --> | ||
<button name="reopen_bid" states="closed" string="Re-Open Bids Selection"/> | ||
<button name="tender_reset" states="cancel" string="Reset to Draft" type="object" /> | ||
<button name="open_product_line" states="open" string="Choose product lines" type="object" class="oe_highlight" groups="purchase.group_advance_bidding" /> | ||
<!-- extended by purchase_requisition_bid_selection --> | ||
<button name="generate_po" states="closed" string="Generate PO" type="object" class="oe_highlight"/> | ||
<button name="cancel_requisition" states="draft,in_progress" string="Cancel Call"/> | ||
<!-- extended by purchase_requisition_bid_selection --> | ||
<field name="state" widget="statusbar" statusbar_visible="draft,in_progress,open,closed,done" statusbar_colors='{"in_progress":"blue"}'/> | ||
</header> | ||
<sheet> | ||
<div class="oe_right oe_button_box" style="margin-top: 10px"> | ||
<!-- extended by purchase_requisition_bid_selection adds state 'closed' --> | ||
<button name="open_product_line" type="object" string="View Products Lines" | ||
attrs="{'invisible': ['|', ('state', 'not in', ('open','closed','done')), ('exclusive', '=', 'exclusive')]}" groups="purchase.group_advance_bidding"/> | ||
<!-- added by purchase_requisition_bid_selection --> | ||
<button name="open_po" type="object" string="View Generated PO" states="open,closed,done"/> | ||
</div> | ||
<div class="pull-left"> | ||
<label for="name" class="oe_edit_only oe_inline"/> | ||
<h1> | ||
<field name="name" class="oe_inline" attrs="{'readonly': [('state','not in',('draft'))]}"/> | ||
</h1> | ||
</div> | ||
<div class="pull-left"> | ||
<label for="origin" class="oe_edit_only oe_inline"/> | ||
<h1> | ||
<label string="," attrs="{'invisible':[('origin','=',False)]}"/> | ||
<field name="origin" class="oe_inline" placeholder="e.g. PO0025"/> | ||
</h1> | ||
</div> | ||
<!-- hidden by purchase_requisition_bid_selection --> | ||
<field name="exclusive" invisible="1"/> | ||
<group> | ||
<group> | ||
<field name="user_id" context="{'default_groups_ref': ['base.group_user', 'base.group_partner_manager', 'purchase_requisition.group_purchase_requisition_user', 'purchase.group_purchase_user', 'account.group_account_invoice']}" attrs="{'readonly': [('state','not in',('draft'))]}"/> | ||
<field name="bid_tendering_mode" attrs="{'readonly': [('state','not in',('draft'))]}" /> <!-- purchase_requisition_bid_selection --> | ||
<field name="bid_receipt_mode" attrs="{'readonly': [('state','not in',('draft'))]}"/> | ||
</group> | ||
<group> | ||
<field name="ordering_date" attrs="{'readonly': [('state','not in',('draft'))]}"/> | ||
<field name="schedule_date" attrs="{'readonly': [('state','not in',('draft'))]}"/> | ||
<field name="req_validity" attrs="{'readonly': [('state','not in',('draft'))]}"/> | ||
<field name="date_end" attrs="{'readonly': [('state','not in',('draft'))]}"/> | ||
</group> | ||
<group> | ||
<field name="multiple_rfq_per_supplier" attrs="{'readonly': [('state','not in',('draft'))]}"/> | ||
</group> | ||
</group> | ||
<notebook> | ||
<page string="Products"> | ||
<field name="line_ids" attrs="{'readonly': [('state','not in',('draft'))]}"> | ||
<tree string="Products"> | ||
<field name="product_id" on_change="onchange_product_id(product_id,product_uom_id,parent.account_analytic_id,account_analytic_id,parent.schedule_date,schedule_date)"/> | ||
<field name="product_qty"/> | ||
<field name="product_uom_id" groups="product.group_uom"/> | ||
<field name="schedule_date"/> | ||
<field name="account_analytic_id" groups="purchase.group_analytic_accounting"/> | ||
|
||
</tree> | ||
<form string="Products"> | ||
<group> | ||
<group> | ||
<field name="product_id" /> | ||
<field name="account_analytic_id" groups="purchase.group_analytic_accounting"/> | ||
</group> | ||
<group> | ||
<label for="product_qty"/> | ||
<div> | ||
<field name="product_qty" class="oe_inline"/> | ||
<field name="product_uom_id" class="oe_inline"/> | ||
</div> | ||
<field name="schedule_date"/> | ||
<field name="company_id" groups="base.group_multi_company" widget="selection"/> | ||
<!-- added by purchase_requisition_bid_selection --> | ||
<field name="remark"/> | ||
</group> | ||
</group> | ||
</form> | ||
</field> | ||
<div class="oe_right oe_button_box" style="margin-top: 10px"> | ||
<!-- extended by purchase_requisition_bid_selection change invisible attrs --> | ||
<button name="%(purchase_requisition.action_purchase_requisition_partner)d" type="action" | ||
string="Request a Quotation" icon="gtk-execute" | ||
attrs="{'invisible': ['|','|',('bid_tendering_mode','=','open'),('line_ids','=',[]),('state','!=','in_progress')]}"/> | ||
<!-- added by purchase_requisition_bid_selection --> | ||
<button name="%(purchase_requisition_bid_selection.action_purchase_requisition_partner_draftbid)d" type="action" | ||
string="Encode a Bid" icon="gtk-execute" | ||
attrs="{'invisible': ['|','|',('bid_tendering_mode','=','restricted'),('line_ids','=',[]),('state','!=','in_progress')]}"/> | ||
<!-- extended by purchase_requisition_bid_selection change invisible attrs --> | ||
<button name="open_rfq" type="object" string="View RFQs/Bids" attrs="{'invisible': ['|',('purchase_ids','=',[]), ('state', 'in', ('draft'))]}"/> | ||
</div> | ||
|
||
<!-- renamed by purchase_requisition_bid_selection --> | ||
<separator string="Requests for Quotation / Bids"/> | ||
<field name="purchase_ids"> | ||
<tree string="Purchase Order"> | ||
<field name="name" string="Reference"/> | ||
<field name="date_order" string="Order Date"/> | ||
<field name="partner_id"/> | ||
<field name="company_id" groups="base.group_multi_company" widget="selection"/> | ||
<field name="location_id" groups="stock.group_locations"/> | ||
<field name="minimum_planned_date" invisible="1"/> | ||
<field name="origin"/> | ||
<field name="state"/> | ||
<!-- purchase_requisition_bid_selection removed button purchase_cancel --> | ||
<!-- purchase_requisition_bid_selection removed button purchase_confirm --> | ||
<!-- purchase_requisition_bid_selection removed button purchase_approve --> | ||
<!-- purchase_requisition_bid_selection change button icon --> | ||
<button name="wkf_send_rfq" states="draft" string="Send RFQ by Email" type="object" context="{'send_rfq':True}" icon="gtk-apply"/> | ||
</tree> | ||
</field> | ||
</page> | ||
<page string="Transportation and delivery"> | ||
<group> | ||
<group> | ||
<field name="dest_address_id" attrs="{'readonly': [('state','not in',('draft'))]}"/> | ||
<field name="picking_type_id" widget="selection" groups="stock.group_locations" attrs="{'readonly': [('state','not in',('draft'))]}"/> | ||
</group> | ||
<group> | ||
<field name="req_incoterm_id" attrs="{'readonly': [('state','not in',('draft'))]}"/> | ||
<field name="req_incoterm_address" attrs="{'readonly': [('state','not in',('draft'))]}"/> | ||
</group> | ||
</group> | ||
<group string="Transport Documents"> | ||
<field name="transport_document_ids" nolabel="1" colspan="4"/> | ||
</group> | ||
<group string="Deliver Remarks"> | ||
<field name="delivery_remark" | ||
colspan="4" | ||
nolabel="1" | ||
class="oe_inline"/> | ||
</group> | ||
</page> | ||
<page string="Accounting and Currency"> | ||
<group> | ||
<group> | ||
<!-- added by purchase_requisition_bid_selecton --> | ||
<field name="pricelist_id" attrs="{'readonly': [('state','not in',('draft'))]}"/> | ||
<field name="company_id" groups="base.group_multi_company" widget="selection" attrs="{'readonly': [('state','not in',('draft'))]}"/> | ||
</group> | ||
<group> | ||
<field name="req_payment_term_id"/> | ||
<field name="account_analytic_id" invisible="1"/> | ||
</group> | ||
</group> | ||
</page> | ||
<page string="Terms and Conditions"> | ||
<field name="description" attrs="{'readonly': [('state','not in',('draft'))]}" placeholder="Terms and Conditions..."/> | ||
</page> | ||
</notebook> | ||
</sheet> | ||
<div class="oe_chatter"> | ||
<field name="message_follower_ids" widget="mail_followers"/> | ||
<field name="message_ids" widget="mail_thread"/> | ||
</div> | ||
</form> | ||
</field> | ||
</record> | ||
|
||
</data> | ||
</openerp> |