Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 120 additions & 0 deletions purchase_no_rfq/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

=========================================
Purchase Order - No Request For Quotation
=========================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:5d1c74bb7d1c6c722be25a8f8dd8b46b1a57a95f97265fd2453346353a254d80
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/license-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%2Fpurchase--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/purchase-workflow/tree/19.0/purchase_no_rfq
:alt: OCA/purchase-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/purchase-workflow-19-0/purchase-workflow-19-0-purchase_no_rfq
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/purchase-workflow&target_branch=19.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module extends the odoo purchase module, to remove 'Request for
Quotation' state, simplifying the workflow for the end users.

Once installed :

- The menu item 'Purchase > Purchase > Requests for Quotation' is
hidden. A single menu item 'Purchase Order' is available
- The states names of the purchase order is altered. 'RFQ' is replaced
by 'Draft' and 'RFQ sent' by 'Sent'.
- The colors in the tree view is correctly set to ``decoration-info``
for 'draft' and 'sent' orders.

|image1|

- In the form view, all the RFQ names are removed or replaced by
'Purchase Order'. The module makes also the 'Print' button allways
available and not only on 'draft' and 'sent' status.
- The option 'Print > Request For quotation' is also disabled.

|image2|

.. |image1| image:: https://raw.githubusercontent.com/OCA/purchase-workflow/19.0/purchase_no_rfq/static/description/purchase_order_tree.png
.. |image2| image:: https://raw.githubusercontent.com/OCA/purchase-workflow/19.0/purchase_no_rfq/static/description/purchase_order_form.png

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/purchase-workflow/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/purchase-workflow/issues/new?body=module:%20purchase_no_rfq%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
-------

* GRAP

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

- Sylvain LE GAL <https://twitter.com/legalsylvain>

- `Binhex <https://binhex.cloud/>`__:

- Deriman Alonso

- `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`__

- Bhavesh Heliconia

- Alejandro Parrales <alejandro17parrales@gmail.com>

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-legalsylvain| image:: https://github.com/legalsylvain.png?size=40px
:target: https://github.com/legalsylvain
:alt: legalsylvain

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-legalsylvain|

This module is part of the `OCA/purchase-workflow <https://github.com/OCA/purchase-workflow/tree/19.0/purchase_no_rfq>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions purchase_no_rfq/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from .hooks import uninstall_hook
23 changes: 23 additions & 0 deletions purchase_no_rfq/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright (C) 2021-Today GRAP (http://www.grap.coop)
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Purchase Order - No Request For Quotation",
"version": "19.0.1.0.0",
"author": "GRAP,Odoo Community Association (OCA)",
"maintainers": ["legalsylvain"],
"license": "AGPL-3",
"category": "Purchase Management",
"depends": [
"purchase",
],
"website": "https://github.com/OCA/purchase-workflow",
"data": [
"reports/ir_actions_report.xml",
"reports/purchase_order_template.xml",
"views/view_purchase_order.xml",
],
"uninstall_hook": "uninstall_hook",
"installable": True,
}
15 changes: 15 additions & 0 deletions purchase_no_rfq/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright (C) 2021-Today GRAP (http://www.grap.coop)
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).


def uninstall_hook(env):
# Unhide menu item for request for quotation and restore sequence
env.ref("purchase.menu_purchase_rfq").write(
{
"group_ids": [(5,)],
"sequence": 0,
}
)
# ReCreate ir.actions.report
env.ref("purchase.report_purchase_quotation").create_action()
61 changes: 61 additions & 0 deletions purchase_no_rfq/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_no_rfq
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-12-29 17:34+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: none\n"
"Language: es\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 4.17\n"

#. module: purchase_no_rfq
#: model_terms:ir.ui.view,arch_db:purchase_no_rfq.purchase_order_form
msgid ""
"<span class=\"o_form_label\" invisible=\"state not in "
"('draft','sent')\">Purchase Order </span>"
msgstr ""

#. module: purchase_no_rfq
#: model:ir.model.fields.selection,name:purchase_no_rfq.selection__purchase_order__state__draft
msgid "Draft"
msgstr "Borrador"

#. module: purchase_no_rfq
#: model_terms:ir.ui.view,arch_db:purchase_no_rfq.purchase_order_form
msgid "Print"
msgstr "Imprimir"

#. module: purchase_no_rfq
#: model:ir.model,name:purchase_no_rfq.model_purchase_order
msgid "Purchase Order"
msgstr "Orden de Compra"

#. module: purchase_no_rfq
#: model_terms:ir.ui.view,arch_db:purchase_no_rfq.report_purchaseorder_document
msgid "Purchase Order #"
msgstr "Orden de Compra #"

#. module: purchase_no_rfq
#: model:ir.model.fields.selection,name:purchase_no_rfq.selection__purchase_order__state__sent
msgid "Sent"
msgstr "Enviado"

#. module: purchase_no_rfq
#: model:ir.model.fields,field_description:purchase_no_rfq.field_purchase_order__state
msgid "Status"
msgstr "Situación"

#~ msgid ""
#~ "<span class=\"o_form_label\" attrs=\"{'invisible': [('state','not in',"
#~ "('draft','sent'))]}\">Purchase Order </span>"
#~ msgstr ""
#~ "<span class=\"o_form_label\" attrs=\"{'invisible': [('state','not in',"
#~ "('draft','sent'))]}\">Orden de compra </span>"
61 changes: 61 additions & 0 deletions purchase_no_rfq/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_no_rfq
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-04-19 14:34+0000\n"
"PO-Revision-Date: 2023-04-19 14:34+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: purchase_no_rfq
#: model_terms:ir.ui.view,arch_db:purchase_no_rfq.purchase_order_form
msgid ""
"<span class=\"o_form_label\" invisible=\"state not in "
"('draft','sent')\">Purchase Order </span>"
msgstr ""

#. module: purchase_no_rfq
#: model:ir.model.fields.selection,name:purchase_no_rfq.selection__purchase_order__state__draft
msgid "Draft"
msgstr "Brouillon"

#. module: purchase_no_rfq
#: model_terms:ir.ui.view,arch_db:purchase_no_rfq.purchase_order_form
msgid "Print"
msgstr "Imprimer"

#. module: purchase_no_rfq
#: model:ir.model,name:purchase_no_rfq.model_purchase_order
msgid "Purchase Order"
msgstr "Commande fournisseur"

#. module: purchase_no_rfq
#: model_terms:ir.ui.view,arch_db:purchase_no_rfq.report_purchaseorder_document
msgid "Purchase Order #"
msgstr "Bon de Commande #"

#. module: purchase_no_rfq
#: model:ir.model.fields.selection,name:purchase_no_rfq.selection__purchase_order__state__sent
msgid "Sent"
msgstr "Envoyé"

#. module: purchase_no_rfq
#: model:ir.model.fields,field_description:purchase_no_rfq.field_purchase_order__state
msgid "Status"
msgstr "État"

#~ msgid ""
#~ "<span class=\"o_form_label\" attrs=\"{'invisible': [('state','not in',"
#~ "('draft','sent'))]}\">Purchase Order </span>"
#~ msgstr ""
#~ "<span class=\"o_form_label\" attrs=\"{'invisible': [('state','not in',"
#~ "('draft','sent'))]}\">Bon de Commande </span>"
63 changes: 63 additions & 0 deletions purchase_no_rfq/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_no_rfq
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-08-12 08:58+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\n"
"Language: it\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 5.6.2\n"

#. module: purchase_no_rfq
#: model_terms:ir.ui.view,arch_db:purchase_no_rfq.purchase_order_form
msgid ""
"<span class=\"o_form_label\" invisible=\"state not in "
"('draft','sent')\">Purchase Order </span>"
msgstr ""
"<span class=\"o_form_label\" invisible=\"state not in "
"('draft','sent')\">Ordine di acquisto </span>"

#. module: purchase_no_rfq
#: model:ir.model.fields.selection,name:purchase_no_rfq.selection__purchase_order__state__draft
msgid "Draft"
msgstr "Bozza"

#. module: purchase_no_rfq
#: model_terms:ir.ui.view,arch_db:purchase_no_rfq.purchase_order_form
msgid "Print"
msgstr "Stampa"

#. module: purchase_no_rfq
#: model:ir.model,name:purchase_no_rfq.model_purchase_order
msgid "Purchase Order"
msgstr "Ordine di acquisto"

#. module: purchase_no_rfq
#: model_terms:ir.ui.view,arch_db:purchase_no_rfq.report_purchaseorder_document
msgid "Purchase Order #"
msgstr "N° ordine di acquisto"

#. module: purchase_no_rfq
#: model:ir.model.fields.selection,name:purchase_no_rfq.selection__purchase_order__state__sent
msgid "Sent"
msgstr "Inviato"

#. module: purchase_no_rfq
#: model:ir.model.fields,field_description:purchase_no_rfq.field_purchase_order__state
msgid "Status"
msgstr "Stato"

#~ msgid ""
#~ "<span class=\"o_form_label\" attrs=\"{'invisible': [('state','not in',"
#~ "('draft','sent'))]}\">Purchase Order </span>"
#~ msgstr ""
#~ "<span class=\"o_form_label\" attrs=\"{'invisible': [('state','not in',"
#~ "('draft','sent'))]}\">Ordine di acquisto </span>"
Loading