Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][MIG+REF] purchase_quick: migration to 14.0 #1213

Merged
merged 25 commits into from
Oct 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
0641421
MIG 12.0
Feb 14, 2019
45c5b6a
[UPD] Update purchase_quick.pot
oca-travis Sep 6, 2019
ded244e
[UPD] README.rst
OCA-git-bot Sep 6, 2019
1998abe
[ADD] icon.png
OCA-git-bot Sep 6, 2019
35a9fef
[FIX] purchase_quick search view primary
Apr 17, 2020
ed7b882
[FIX] readme
Apr 17, 2020
d1f2310
[UPD] Update purchase_quick.pot
oca-travis Apr 19, 2020
04f44ad
purchase_quick 12.0.1.0.2
OCA-git-bot Apr 19, 2020
c6ac841
Update translation files
oca-transbot Apr 19, 2020
b51b2b7
Translated using Weblate (French)
SandieFavre Aug 28, 2020
2bcb153
Translated using Weblate (French)
quentinDupont Sep 23, 2020
e72bcdf
[FIX] purchase_quick : do not raise an error, if the key is not in th…
legalsylvain Nov 4, 2020
75904f5
purchase_quick 12.0.1.0.3
OCA-git-bot Nov 10, 2020
2e429aa
[IMP] purchase_quick: black, isort
phuctranfxvn Feb 26, 2020
94d1759
[MIG] purchase_quick: Migration to 13.0
phuctranfxvn Feb 26, 2020
676a7d6
[IMP] purchase_quick: black, isort, prettier
Dec 17, 2020
9f6d186
[MIG] purchase_quick: Migration to 14.0
Dec 17, 2020
93488b7
[REF] purchase_quick: refactor
kevinkhao Jun 22, 2021
82e68c5
[FIX] purchase_quick: add incompatibility with purchase_order_type
kevinkhao Jul 6, 2021
4ce288e
[UPD] Update Copier
kevinkhao Jul 28, 2021
d8cfc09
[FIX] While in the quick purchase interface, use sale.order.line perm…
kevinkhao Jul 28, 2021
815d3ea
[UPD] update copier
kevinkhao Jul 28, 2021
7652843
[FIX] fix view
sebastienbeau Sep 27, 2021
139d61a
[FIX] fix price unit computation
sebastienbeau Sep 29, 2021
c7f1fc8
[IMP] add seller price on product list
sebastienbeau Sep 29, 2021
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
8 changes: 5 additions & 3 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# Do NOT update manually; changes here will be overwritten by Copier
_commit: v1.1.4
_commit: v1.1.6
_src_path: gh:oca/oca-addons-repo-template
dependency_installation_mode: PIP
generate_requirements_txt: true
include_wkhtmltopdf: false
odoo_version: 14.0
rebel_module_groups: []
repo_description: "TODO: add repo description."
rebel_module_groups:
- purchase_order_type
- purchase_quick
repo_description: 'TODO: add repo description.'
repo_name: purchase-workflow
repo_slug: purchase-workflow
travis_apt_packages: []
Expand Down
3 changes: 2 additions & 1 deletion .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
env:
browser: true
es6: true

# See https://github.com/OCA/odoo-community.org/issues/37#issuecomment-470686449
parserOptions:
Expand All @@ -14,7 +15,7 @@ globals:
moment: readonly
odoo: readonly
openerp: readonly
Promise: readonly
owl: readonly

# Styling is handled by Prettier, so we only need to enable AST rules;
# see https://github.com/OCA/maintainer-quality-tools/pull/618#issuecomment-558576890
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exclude: |
# Files and folders generated by bots, to avoid loops
^setup/|/static/description/index\.html$|
# We don't want to mess with tool-generated files
.svg$|/tests/([^/]+/)?cassettes/|
.svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|
# Maybe reactivate this when all README files include prettier ignore tags?
^README\.md$|
# Library files can have extraneous formatting (even minimized)
Expand Down
20 changes: 18 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,28 @@ stages:

jobs:
include:
# Test separately: purchase_order_type
- stage: test
env:
- TESTS=1 ODOO_REPO="odoo/odoo" MAKEPOT="1"
- TESTS=1 ODOO_REPO="odoo/odoo" MAKEPOT=1 INCLUDE="purchase_order_type"
- stage: test
env:
- TESTS=1 ODOO_REPO="OCA/OCB"
- TESTS=1 ODOO_REPO="OCA/OCB" INCLUDE="purchase_order_type"
# Test separately: purchase_quick
- stage: test
env:
- TESTS=1 ODOO_REPO="odoo/odoo" MAKEPOT=1 INCLUDE="purchase_quick"
- stage: test
env:
- TESTS=1 ODOO_REPO="OCA/OCB" INCLUDE="purchase_quick"
# Test all other addons together
- stage: test
env:
- TESTS=1 ODOO_REPO="odoo/odoo" MAKEPOT=1
EXCLUDE="purchase_order_type,purchase_quick"
- stage: test
env:
- TESTS=1 ODOO_REPO="OCA/OCB" EXCLUDE="purchase_order_type,purchase_quick"
env:
global:
- VERSION="14.0" TESTS="0" LINT_CHECK="0" MAKEPOT="0"
Expand Down
114 changes: 114 additions & 0 deletions purchase_quick/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
====================
Quick Purchase order
====================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/12.0/purchase_quick
: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-12-0/purchase-workflow-12-0-purchase_quick
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/142/12.0
:alt: Try me on Runbot

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

This module allows to add easily products into the purchase order (mass line add/update).

**Table of contents**

.. contents::
:local:

Usage
=====


Inside a purchase order, you can click on "Add products", to open a product tree view, then update "qty to purchase" field.

.. image:: https://raw.githubusercontent.com/OCA/purchase-workflow/12.0/purchase_quick/static/description/01_purchase_order_create.png
:width: 800 px
:alt: Purchase order create

|

.. image:: https://raw.githubusercontent.com/OCA/purchase-workflow/12.0/purchase_quick/static/description/02_purchase_order_add_product.png
:width: 800 px
:alt: Purchase order Add product

|

The update of "qty to purchase" will add new purchase line or update the existing line. If qty to purchase is 0 it purchase line will deleted if it exists.

|

.. image:: https://raw.githubusercontent.com/OCA/purchase-workflow/12.0/purchase_quick/static/description/03_purchase_order_updated.png
:width: 800 px
:alt: Purchase order updated

|

.. image:: https://raw.githubusercontent.com/OCA/purchase-workflow/12.0/purchase_quick/static/description/04_purchase_order_update_product_qty.png
:width: 800 px
:alt: Purchase order update product qty.

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

Purchase module doesn't depend on stock now. This module depends on stock,
if you need to use it without the stock module you can make a PR to
split the module (mainly displaying qty_available of a product)

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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/purchase-workflow/issues/new?body=module:%20purchase_quick%0Aversion:%2012.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
~~~~~~~

* Akretion

Contributors
~~~~~~~~~~~~

* Sébastien BEAU <sebastien.beau@akretion.com>
* Mourad EL HADJ MIMOUNE <mourad.elhadj.mimoune@akretion.com>
* Pierrick Brun <pierrick.brun@akretion.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.

This module is part of the `OCA/purchase-workflow <https://github.com/OCA/purchase-workflow/tree/12.0/purchase_quick>`_ 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_quick/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
16 changes: 16 additions & 0 deletions purchase_quick/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# © 2014 Today Akretion
# @author Sébastien BEAU <sebastien.beau@akretion.com>
# @author Pierrick Brun <pierrick.brun@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Quick Purchase order",
"version": "14.0.1.0.0",
"author": "Akretion, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/purchase-workflow",
"license": "AGPL-3",
"category": "Purchase",
"depends": ["base_product_mass_addition", "purchase"],
"data": ["views/purchase_view.xml", "views/product_view.xml"],
"installable": True,
}
99 changes: 99 additions & 0 deletions purchase_quick/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * quick_purchase
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-01 09:09+0000\n"
"PO-Revision-Date: 2017-06-01 09:09+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_quick
#: model_terms:ir.ui.view,arch_db:purchase_quick.view_purchase_form
msgid "Add"
msgstr ""

#. module: purchase_quick
#: model_terms:ir.ui.view,arch_db:purchase_quick.product_search_form_view
#, fuzzy
msgid "Filter products supplied by the supplier of the current parent object"
msgstr ""
"Afficher uniquement les articles du fournisseur de la commande d'achat "
"encours"

#. module: purchase_quick
#: model_terms:ir.ui.view,arch_db:purchase_quick.product_search_form_view
msgid "For current supplier"
msgstr "Ce Fournisseur"

#. module: purchase_quick
#: model_terms:ir.ui.view,arch_db:purchase_quick.product_tree_view4purchase
msgid "Open"
msgstr ""

#. module: purchase_quick
#: model:ir.model.fields,field_description:purchase_quick.field_product_product__po_line_ids
msgid "Po Line"
msgstr ""

#. module: purchase_quick
#: model:ir.model,name:purchase_quick.model_product_product
msgid "Product"
msgstr "Article"

#. module: purchase_quick
#: code:addons/purchase_quick/models/purchase_order.py:25
#, fuzzy, python-format
msgid "Product Variants"
msgstr "Articles"

#. module: purchase_quick
#: model_terms:ir.ui.view,arch_db:purchase_quick.product_tree_view4purchase
#, fuzzy
msgid "Products for purchase"
msgstr "Qté à acheter"

#. module: purchase_quick
#: model:ir.model,name:purchase_quick.model_purchase_order
msgid "Purchase Order"
msgstr "Bon de commande"

#. module: purchase_quick
#: model:ir.model.fields,help:purchase_quick.field_product_product__po_line_ids
msgid "Technical: used to compute quantities to purchase."
msgstr "Technique: utilisé pour calculer les quantités à acheter."

#. module: purchase_quick
#: model:ir.model.fields,field_description:purchase_quick.field_product_product__variant_specific_seller_ids
msgid "Variant Specific Seller"
msgstr ""

#~ msgid "Add product"
#~ msgstr "Ajouter des articles"

#~ msgid "Filter the product that are in current purchase"
#~ msgstr "Afficher uniquement les articles de la commande d'achat encours"

#~ msgid "In current purchase"
#~ msgstr "Commande encours"

#~ msgid "Po line ids"
#~ msgstr "Ligne d'achats"

#~ msgid "Purchase Products"
#~ msgstr "Articles à acheter"

#~ msgid ""
#~ "Set this quantity to create a new purchase line for this product or "
#~ "update the existing one."
#~ msgstr ""
#~ "Renseigner cette valeur pour créer une nouvelle ligne d'achat ou mettre à "
#~ "jour la ligne dans la commande en cours"
71 changes: 71 additions & 0 deletions purchase_quick/i18n/purchase_quick.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_quick
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \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: purchase_quick
#: model_terms:ir.ui.view,arch_db:purchase_quick.view_purchase_form
msgid "Add"
msgstr ""

#. module: purchase_quick
#: model_terms:ir.ui.view,arch_db:purchase_quick.product_search_form_view
msgid "Filter products supplied by the supplier of the current parent object"
msgstr ""

#. module: purchase_quick
#: model_terms:ir.ui.view,arch_db:purchase_quick.product_search_form_view
msgid "For current supplier"
msgstr ""

#. module: purchase_quick
#: model_terms:ir.ui.view,arch_db:purchase_quick.product_tree_view4purchase
msgid "Open"
msgstr ""

#. module: purchase_quick
#: model:ir.model.fields,field_description:purchase_quick.field_product_product__po_line_ids
msgid "Po Line"
msgstr ""

#. module: purchase_quick
#: model:ir.model,name:purchase_quick.model_product_product
msgid "Product"
msgstr ""

#. module: purchase_quick
#: code:addons/purchase_quick/models/purchase_order.py:25
#, python-format
msgid "Product Variants"
msgstr ""

#. module: purchase_quick
#: model_terms:ir.ui.view,arch_db:purchase_quick.product_tree_view4purchase
msgid "Products for purchase"
msgstr ""

#. module: purchase_quick
#: model:ir.model,name:purchase_quick.model_purchase_order
msgid "Purchase Order"
msgstr ""

#. module: purchase_quick
#: model:ir.model.fields,help:purchase_quick.field_product_product__po_line_ids
msgid "Technical: used to compute quantities to purchase."
msgstr ""

#. module: purchase_quick
#: model:ir.model.fields,field_description:purchase_quick.field_product_product__variant_specific_seller_ids
msgid "Variant Specific Seller"
msgstr ""

2 changes: 2 additions & 0 deletions purchase_quick/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import purchase_order
from . import product_product
Loading