Skip to content

Commit

Permalink
Merge PR #2515 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Jan 17, 2025
2 parents f5f5875 + f054473 commit bf0b07c
Show file tree
Hide file tree
Showing 21 changed files with 1,288 additions and 0 deletions.
111 changes: 111 additions & 0 deletions purchase_order_line_deep_sort/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
=============================
Purchase Order Line Deep Sort
=============================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:9c8d25d710698655f670f551993892089341bed5615fe4cc0927f1962624b0fd
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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/licence-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/17.0/purchase_order_line_deep_sort
: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-17-0/purchase-workflow-17-0-purchase_order_line_deep_sort
: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=17.0
:alt: Try me on Runboat

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

This module was written to extend the functionality of purchase order
and allow you to manage sort of lines.

You can set the default sort order for the current company or you can
set sort order for a particular purchase order.

**Table of contents**

.. contents::
:local:

Configuration
=============

- Sort criteria items can be defined with a dot notation. This means
that you can define an order as follows: **product_id.default_code**.
But the field defined must exist in database. If you define, e.g., a
calculated field, sort criteria won't work.

Usage
=====

1. Go to **Purchase > Settings > Default Sort Criteria** and select one.
2. You must select sort direction too.
3. Create a new purchase and add several lines.
4. On saving purchase order you must see how the purchase lines are
ordered with your selected sort order.

Known issues / Roadmap
======================

- Add support for ordering purchase lines by partner.

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_order_line_deep_sort%0Aversion:%2017.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
-------

* Tecnativa

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

- `Tecnativa <https://www.tecnativa.com:>`__:

- Vicent Cubells <[email protected]>
- Pedro M. Baeza
- Stefan Ungureanu

- `Prothai <https://www.prothaitechnology.com:>`__:

- Prapassorn Sornkaew <[email protected]> (migrate
to v14)

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.

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions purchase_order_line_deep_sort/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
15 changes: 15 additions & 0 deletions purchase_order_line_deep_sort/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2018 Tecnativa - Vicent Cubells <[email protected]>
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3

{
"name": "Purchase Order Line Deep Sort",
"version": "17.0.1.0.0",
"author": "Tecnativa, Odoo Community Association (OCA)",
"license": "AGPL-3",
"category": "Purchase Management",
"website": "https://github.com/OCA/purchase-workflow",
"summary": "Purchase Order Line Sort",
"depends": ["purchase"],
"data": ["views/res_config_settings_views.xml", "views/purchase_order_views.xml"],
"installable": True,
}
153 changes: 153 additions & 0 deletions purchase_order_line_deep_sort/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_order_line_deep_sort
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-11-26 09:12+0000\n"
"PO-Revision-Date: 2023-10-28 19:59+0000\n"
"Last-Translator: Ivorra78 <[email protected]>\n"
"Language-Team: \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_order_line_deep_sort
#: model:ir.model.fields.selection,name:purchase_order_line_deep_sort.selection__purchase_order__line_direction__asc
#: model:ir.model.fields.selection,name:purchase_order_line_deep_sort.selection__res_company__default_po_line_direction__asc
msgid "Ascending"
msgstr "Ascendente"

#. module: purchase_order_line_deep_sort
#: model:ir.model.fields.selection,name:purchase_order_line_deep_sort.selection__purchase_order__line_order__date_planned
#: model:ir.model.fields.selection,name:purchase_order_line_deep_sort.selection__res_company__default_po_line_order__date_planned
msgid "By date planned"
msgstr "Por fecha planificada"

#. module: purchase_order_line_deep_sort
#: model:ir.model.fields.selection,name:purchase_order_line_deep_sort.selection__purchase_order__line_order__name
#: model:ir.model.fields.selection,name:purchase_order_line_deep_sort.selection__res_company__default_po_line_order__name
msgid "By name"
msgstr "Por nombre"

#. module: purchase_order_line_deep_sort
#: model:ir.model.fields.selection,name:purchase_order_line_deep_sort.selection__purchase_order__line_order__product_id_name
#: model:ir.model.fields.selection,name:purchase_order_line_deep_sort.selection__res_company__default_po_line_order__product_id_name
msgid "By product name"
msgstr "Por nombre de producto"

#. module: purchase_order_line_deep_sort
#: model:ir.model.fields.selection,name:purchase_order_line_deep_sort.selection__purchase_order__line_order__product_id_default_code
#: model:ir.model.fields.selection,name:purchase_order_line_deep_sort.selection__res_company__default_po_line_order__product_id_default_code
msgid "By product reference"
msgstr "Por referencia del producto"

#. module: purchase_order_line_deep_sort
#: model:ir.model.fields.selection,name:purchase_order_line_deep_sort.selection__purchase_order__line_order__product_qty
#: model:ir.model.fields.selection,name:purchase_order_line_deep_sort.selection__res_company__default_po_line_order__product_qty
msgid "By quantity"
msgstr "Por cantidad"

#. module: purchase_order_line_deep_sort
#: model:ir.model.fields.selection,name:purchase_order_line_deep_sort.selection__purchase_order__line_order__price_unit
#: model:ir.model.fields.selection,name:purchase_order_line_deep_sort.selection__res_company__default_po_line_order__price_unit
msgid "By unit price"
msgstr "Por precio unitario"

#. module: purchase_order_line_deep_sort
#: model:ir.model,name:purchase_order_line_deep_sort.model_res_company
msgid "Companies"
msgstr "Compañías"

#. module: purchase_order_line_deep_sort
#: model_terms:ir.ui.view,arch_db:purchase_order_line_deep_sort.res_config_settings_view_form
msgid "Default Sort Criteria"
msgstr "Criterio de ordenación por defecto"

#. module: purchase_order_line_deep_sort
#: model_terms:ir.ui.view,arch_db:purchase_order_line_deep_sort.res_config_settings_view_form
msgid "Default sort criteria for purchase order lines"
msgstr "Criterio de ordenación por defecto de las líneas del pedido de compra"

#. module: purchase_order_line_deep_sort
#: model:ir.model.fields.selection,name:purchase_order_line_deep_sort.selection__purchase_order__line_direction__desc
#: model:ir.model.fields.selection,name:purchase_order_line_deep_sort.selection__res_company__default_po_line_direction__desc
msgid "Descending"
msgstr "Descendente"

#. module: purchase_order_line_deep_sort
#: model_terms:ir.ui.view,arch_db:purchase_order_line_deep_sort.res_config_settings_view_form
msgid "Direction"
msgstr "Dirección"

#. module: purchase_order_line_deep_sort
#: model:ir.model.fields,field_description:purchase_order_line_deep_sort.field_res_company__default_po_line_order
#: model:ir.model.fields,field_description:purchase_order_line_deep_sort.field_res_config_settings__po_line_order_default
#: model_terms:ir.ui.view,arch_db:purchase_order_line_deep_sort.res_config_settings_view_form
msgid "Line Order"
msgstr "Línea de pedido"

#. module: purchase_order_line_deep_sort
#: model_terms:ir.ui.view,arch_db:purchase_order_line_deep_sort.purchase_order_form
msgid "Other Info"
msgstr "Otra información"

#. module: purchase_order_line_deep_sort
#: model:ir.model,name:purchase_order_line_deep_sort.model_res_config_settings
msgid "Procurement purchase grouping settings"
msgstr "Configuración de la agrupación de adquisición de compras"

#. module: purchase_order_line_deep_sort
#: model:ir.model,name:purchase_order_line_deep_sort.model_purchase_order
msgid "Purchase Order"
msgstr "Pedido de compra"

#. module: purchase_order_line_deep_sort
#: model:ir.model,name:purchase_order_line_deep_sort.model_purchase_order_line
msgid "Purchase Order Line"
msgstr "Línea de Orden de Compra"

#. module: purchase_order_line_deep_sort
#: model_terms:ir.ui.view,arch_db:purchase_order_line_deep_sort.res_config_settings_view_form
msgid "Select a default sort criteria for purchase order lines."
msgstr ""
"Selecciona un criterio de ordenación por defecto de las línieas del pedido "
"de compra."

#. module: purchase_order_line_deep_sort
#: model:ir.model.fields,help:purchase_order_line_deep_sort.field_res_company__default_po_line_order
#: model:ir.model.fields,help:purchase_order_line_deep_sort.field_res_config_settings__po_line_order_default
msgid "Select a sorting criteria for purchase order lines."
msgstr ""
"Selecciona un criterio de ordenación de las línieas del pedido de compra."

#. module: purchase_order_line_deep_sort
#: model:ir.model.fields,help:purchase_order_line_deep_sort.field_res_company__default_po_line_direction
#: model:ir.model.fields,help:purchase_order_line_deep_sort.field_res_config_settings__po_line_direction_default
msgid "Select a sorting direction for purchase order lines."
msgstr ""
"Selecciona una dirección de ordenación de las línieas del pedido de compra."

#. module: purchase_order_line_deep_sort
#: model:ir.model.fields,field_description:purchase_order_line_deep_sort.field_purchase_order__line_direction
#: model:ir.model.fields,field_description:purchase_order_line_deep_sort.field_res_company__default_po_line_direction
#: model:ir.model.fields,field_description:purchase_order_line_deep_sort.field_res_config_settings__po_line_direction_default
msgid "Sort Direction"
msgstr "Dirección de ordenación"

#. module: purchase_order_line_deep_sort
#: model:ir.model.fields,field_description:purchase_order_line_deep_sort.field_purchase_order__line_order
msgid "Sort Lines By"
msgstr "Ordenar las líneas por"

#~ msgid "By price"
#~ msgstr "Por precio"

#, fuzzy
#~ msgid "Config Settings"
#~ msgstr "res.config.settings"
Loading

0 comments on commit bf0b07c

Please sign in to comment.