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

[17.0][MIG] sale_elaboration: Migration to 17.0 #3274

Open
wants to merge 76 commits into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
d94176d
[11.0][ADD] sale_elaboration: New module
sergio-teruel Oct 15, 2018
a89bc6d
[11.0][ADD] sale_elaboration: Display elaboration code in picking
sergio-teruel Oct 22, 2018
8f1c5ba
[11.0][ADD] sale_elaboration: Display salesman in line views
sergio-teruel Oct 29, 2018
f512b40
[11.0][FIX] sale_elaboration: Get first elaboration product
sergio-teruel Feb 1, 2019
c57e615
[11.0][IMP] sale_elaboration: Add to invoice line the sale order refe…
sergio-teruel Feb 19, 2019
8fee4a6
[IMP] sale_elaboration: Some improvements
pedrobaeza Feb 28, 2019
5e97360
[11.0][ADD] sale_elaboration: Add is_elaboration in product template
sergio-teruel Mar 26, 2019
e6365e5
[IMP] sale_elaboration: Ensure test correctness + hide is_elaboration…
pedrobaeza Mar 27, 2019
be14669
[11.0][FIX] sale_elaboration should't be auto installed
jjscarafia Apr 11, 2019
3c1edbd
Added translation using Weblate (German)
marylla Jul 15, 2019
2f95634
[IMP] sale_elaboration: Reset "is_elaboration" in order line when use…
sergio-teruel Jul 19, 2019
0f5d8db
[IMP] sale_elaboration: Set is_elaboration in product tests
carlosdauden Jul 22, 2019
3d2cbaf
[FIX] sale_elaboration: Apply force_save for field is_elaboration in …
sergio-teruel Oct 4, 2019
58f5b7e
[MIG] sale_elaboration: Migration to v12.0
sergio-teruel Nov 27, 2019
116c933
[IMP] sale_elaboration: black, isort
sergio-teruel Jan 22, 2020
26c2af0
[MIG] sale_elaboration: Migration to v13.0
sergio-teruel Jan 24, 2020
882b308
[IMP] sale_elaboration: Add menu entry to sale elaboration report at …
CarlosRoca13 Apr 27, 2022
e9041f3
[MIG] sale_elaboration: Migration to 14.0
CarlosRoca13 Sep 28, 2022
b5ba335
[MIG] sale_elaboration: Migration to v15
CarlosRoca13 Oct 24, 2022
abf629f
[IMP] sale_elaboration: Improve elaboration tree view
sergio-teruel Oct 21, 2022
12d4969
[FIX] sale_elaboration: Fix delivery slip report. Add config setting …
sergio-teruel Oct 23, 2022
b5d9cdb
[IMP] sale_elaboration: Add pre-init hooks to quickly install
sergio-teruel Dec 22, 2022
5f74f99
[IMP] sale_elaboration: Allow to select multiple elaborations
Feb 2, 2023
643c3df
[IMP] sale_elaboration: Improve form view and kanban view on sale ord…
sergio-teruel Mar 6, 2023
98dfb30
[IMP] sale_elaboration: Allow to determine a stock.location.route for…
sergio-teruel Mar 6, 2023
342a553
[IMP] sale_elaboration: Improve kanban views
sergio-teruel Mar 9, 2023
7fc1d0f
[IMP] sale_elaboration: Add elaboration mixin and add feature in pick…
sergio-teruel Mar 21, 2023
5cf10e7
[IMP] sale_elaboration: Add elaboration profiles
sergio-teruel Apr 2, 2023
b471e7e
[IMP] sale_elaboration: Allow multi edit in elaborations
sergio-teruel Apr 17, 2023
b10b33b
[IMP] sale_elaboration: Compute sale elaboration price in sale order …
sergio-teruel Apr 24, 2023
55e1e38
[FIX] sale_elaboration: Merge moves with distinct elaboration
sergio-teruel May 30, 2023
2834441
[MIG] sale_elaboration: Migration to 16.0
Jun 1, 2023
1bafed6
[UPD] Update sale_elaboration.pot
Jun 5, 2023
fd28eb2
[UPD] README.rst
OCA-git-bot Jun 5, 2023
b574e1e
Update translation files
weblate Jun 5, 2023
288e39d
Translated using Weblate (Spanish)
Ivorra78 Jul 25, 2023
22f9706
[UPD] README.rst
OCA-git-bot Sep 3, 2023
94bdfce
Added translation using Weblate (Italian)
mymage Dec 1, 2023
ffdd9aa
[IMP] sale_elaboration: optional subtree fields
yajo Dec 13, 2023
cc43ec6
[BOT] post-merge updates
OCA-git-bot Dec 13, 2023
7ab005b
Translated using Weblate (Italian)
mymage Dec 20, 2023
71cc375
[FIX] sale_elaboration: Do not print Elaboration on incoming pickings
Shide Mar 11, 2024
769c364
[BOT] post-merge updates
OCA-git-bot Mar 11, 2024
be5a0d1
[FIX] sale_elaboration: propagate note-only lines to stock moves
yajo Mar 20, 2024
d2c1201
[BOT] post-merge updates
OCA-git-bot Mar 25, 2024
82fe7e6
[IMP] sale_elaboration: remove elaboration column from delivery slip
yajo Apr 11, 2024
85ccb32
[IMP] sale_elaboration: display elaboration notes in picking operatio…
yajo Apr 11, 2024
217a32c
[UPD] Update sale_elaboration.pot
Apr 12, 2024
94f5935
[BOT] post-merge updates
OCA-git-bot Apr 12, 2024
970e41b
Update translation files
weblate Apr 12, 2024
14f465c
[UPD] Update sale_elaboration.pot
Apr 12, 2024
6bfe6d3
[BOT] post-merge updates
OCA-git-bot Apr 12, 2024
5a3c598
Update translation files
weblate Apr 12, 2024
a790338
Translated using Weblate (Italian)
mymage Apr 15, 2024
adb0fa0
[IMP] sale_elaboration: Add elaborations and elaboration note in move…
EmilioPascual Apr 18, 2024
d1db18a
[IMP] sale_elaboration: Add icon fa-comment to reports
EmilioPascual Apr 18, 2024
cfbeb25
[UPD] Update sale_elaboration.pot
Apr 18, 2024
0906c84
[BOT] post-merge updates
OCA-git-bot Apr 18, 2024
755c248
Update translation files
weblate Apr 18, 2024
01896c7
Translated using Weblate (Spanish)
Gelojr Apr 23, 2024
d13c10e
[FIX] sale_elaboration: use parent.state in domain
yajo May 14, 2024
3536150
[BOT] post-merge updates
OCA-git-bot May 15, 2024
3362cb5
[FIX] sale_elaboration: compatible with delivery (don't compute notes)
yajo Jun 3, 2024
d199bf7
[BOT] post-merge updates
OCA-git-bot Jun 4, 2024
8c6ac86
Translated using Weblate (Italian)
mymage Jun 4, 2024
d6337eb
[FIX] sale_elaboration: Fix report call
Shide Jun 5, 2024
8a94bf6
[BOT] post-merge updates
OCA-git-bot Jun 5, 2024
267bb8c
[IMP] sale_elaboration: Add delivery date to the elaborations report
pilarvargas-tecnativa Jun 13, 2024
788a747
[IMP] sale_elaboration: Add field to filter elaborated lines
CarlosRoca13 Nov 29, 2023
16edcb5
[BOT] post-merge updates
OCA-git-bot Jun 14, 2024
3a0f206
[UPD] Update sale_elaboration.pot
Jun 14, 2024
c670c4a
[BOT] post-merge updates
OCA-git-bot Jun 14, 2024
dee58c6
Update translation files
weblate Jun 14, 2024
18b1e5e
Translated using Weblate (Italian)
mymage Jun 14, 2024
d60116e
[IMP] sale_elaboration: pre-commit auto fixes
peluko00 Aug 19, 2024
52fec70
[MIG] sale_elaboration: Migration to 17.0
peluko00 Aug 19, 2024
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
133 changes: 133 additions & 0 deletions sale_elaboration/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
================
Sale Elaboration
================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
:target: https://odoo-community.org/page/development-status
:alt: Production/Stable
.. |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%2Fsale--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/sale-workflow/tree/17.0/sale_elaboration
:alt: OCA/sale-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/sale-workflow-17-0/sale-workflow-17-0-sale_elaboration
: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/sale-workflow&target_branch=17.0
:alt: Try me on Runboat

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

This module extends the functionality of sales orders to allow to set an
elaboration on lines that will add an extra order line with an
elaboration product linked to it when the delivery order is validated.

An **elaboration** is a process that needs to be done over the product,
usually on picking/handling phase. It doesn't modify too much the
product for needing an specific product, but it adds a surcharge on the
final price.

**Table of contents**

.. contents::
:local:

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

To configure this module you need to:

1. Go to *Sale > Configuration > Products > Sale Elaboration*.
2. Create a new record.
3. Set a product linked to the elaboration.
4. Also you can select a route to procure this elaboration.

Usage
=====

1. Go to *Sale > Quotations*.
2. Create a sales order.
3. Add a new line.
4. Select an elaboration in the line.
5. Confirm the sales order.
6. Go to the picking created by this sales order and validate it.
7. Go back to the sales order. A new line is created with the product
linked to the elaboration.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/sale-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/sale-workflow/issues/new?body=module:%20sale_elaboration%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>`__:

- Sergio Teruel
- Pedro M. Baeza
- Carlos Roca
- Ernesto Tejeda

- Eduardo de Miguel (`Moduon <https://www.moduon.team/>`__)
- Jairo Llopis (`Moduon <https://www.moduon.team/>`__)
- `APSL-Nagarro <https://apsl.tech>`__:

- Antoni Marroig <amarroig@apsl.net>

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-CarlosRoca13| image:: https://github.com/CarlosRoca13.png?size=40px
:target: https://github.com/CarlosRoca13
:alt: CarlosRoca13
.. |maintainer-rafaelbn| image:: https://github.com/rafaelbn.png?size=40px
:target: https://github.com/rafaelbn
:alt: rafaelbn
.. |maintainer-sergio-teruel| image:: https://github.com/sergio-teruel.png?size=40px
:target: https://github.com/sergio-teruel
:alt: sergio-teruel
.. |maintainer-yajo| image:: https://github.com/yajo.png?size=40px
:target: https://github.com/yajo
:alt: yajo

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

|maintainer-CarlosRoca13| |maintainer-rafaelbn| |maintainer-sergio-teruel| |maintainer-yajo|

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

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions sale_elaboration/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from . import models
from .hooks import pre_init_hook
33 changes: 33 additions & 0 deletions sale_elaboration/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Copyright 2018 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Sale Elaboration",
"summary": "Set an elaboration for any sale line",
"version": "17.0.1.0.0",
"development_status": "Production/Stable",
"category": "Sale",
"website": "https://github.com/OCA/sale-workflow",
"author": "Tecnativa, Odoo Community Association (OCA)",
"license": "AGPL-3",
"application": False,
"installable": True,
"depends": ["sale_stock"],
"data": [
"security/ir.model.access.csv",
"security/security.xml",
"views/product_views.xml",
"views/res_config_settings_views.xml",
"views/sale_elaboration_profile_views.xml",
"views/sale_elaboration_views.xml",
"views/sale_order_views.xml",
"views/sale_elaboration_report_views.xml",
"views/stock_move_line_views.xml",
"views/stock_picking_views.xml",
"views/stock_move_views.xml",
"reports/report_base.xml",
"reports/report_deliveryslip.xml",
"reports/report_picking_operations.xml",
],
"pre_init_hook": "pre_init_hook",
"maintainers": ["CarlosRoca13", "rafaelbn", "sergio-teruel", "yajo"],
}
17 changes: 17 additions & 0 deletions sale_elaboration/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2022 Tecnativa - Sergio Teruel
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).


def pre_init_hook(env):
rousseldenis marked this conversation as resolved.
Show resolved Hide resolved
"""Create computed columns if not exists when the module is instelled"""
env.cr.execute(
"""
ALTER TABLE sale_order_line
ADD COLUMN IF NOT EXISTS is_elaboration BOOLEAN;
"""
)
env.cr.execute(
"""
ALTER TABLE sale_order_line ADD COLUMN IF NOT EXISTS elaboration_note VARCHAR;
"""
)
Loading
Loading