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] project_stock: Migration to 17.0 #1306

Open
wants to merge 75 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
75 commits
Select commit Hold shift + click to select a range
df4642d
[ADD] project_stock: New addon
victoralmau Feb 22, 2022
ccf16d7
[FIX] project_stock: Avoid permissions error if the user does not hav…
victoralmau Apr 11, 2022
7f8c21e
[IMP] project_stock: Confirm the new stock movements in the "Check av…
victoralmau Apr 20, 2022
e20acbc
[FIX] project_stock: Update locations on stock moves + disallow updat…
victoralmau May 23, 2022
5dc51b0
[IMP] project_stock: Update help fields.
victoralmau May 31, 2022
85e4ba8
[FIX] project_stock: Change the visibility group of the configuration…
victoralmau May 4, 2022
11896a2
[IMP] project_stock: Show buttons when they are really needed.
victoralmau Jun 27, 2022
541e732
[FIX] project_stock: Auto-create procurement.group in task to use it …
victoralmau Jun 24, 2022
0a73c66
[OU-FIX] project_stock: Prevent unhashable type: 'dict' error.
victoralmau Jun 27, 2022
1e1d72c
[IMP] project_stock: black, isort, prettier
victoralmau Jul 25, 2022
4b9df3d
[MIG] project_stock: Migration to 14.0
victoralmau Jul 25, 2022
a68e0ee
Added translation using Weblate (Croatian)
badbole Aug 23, 2022
d795aeb
Translated using Weblate (Croatian)
badbole Aug 23, 2022
d71d6fe
[FIX] project_stock: Avoid task deletion error.
victoralmau Aug 30, 2022
ae5f82c
[IMP] project_stock: Add analytic date
victoralmau Sep 15, 2022
25d9c32
Added translation using Weblate (Italian)
primes2h Oct 19, 2022
9fc32ab
Translated using Weblate (Italian)
primes2h Oct 19, 2022
80242a5
[FIX] project_stock: Change cancel process (set as quantity_done = 0)
victoralmau Sep 23, 2022
8ce620e
[FIX] project_stock: Apply validation correctly when changing locatio…
victoralmau Sep 26, 2022
d310289
[FIX] project_stock: Delete migrations folder (forgotten in v14 migra…
victoralmau Nov 4, 2022
464e3e6
[MIG] project_stock: Migration to 15.0
victoralmau Nov 4, 2022
cf49662
[UPD] Update project_stock.pot
Nov 9, 2022
6b09727
[UPD] README.rst
OCA-git-bot Nov 9, 2022
e61cab2
[IMP] project_stock: Improve tests
victoralmau Nov 9, 2022
e64f435
[FIX] project_stock: Set the warehouse_id field correctly.
victoralmau Dec 9, 2022
0fa4a3d
project_stock 15.0.1.0.1
OCA-git-bot Dec 9, 2022
c624e61
[IMP] project_stock: Avoid defining the project in the analytic items…
victoralmau Dec 9, 2022
ce0aa8b
project_stock 15.0.1.0.2
OCA-git-bot Dec 12, 2022
f479b70
[16.0][MIG] project_stock: Migration to 16.0
RabbitJon-S73 Jan 4, 2023
57fde57
[UPD] Update project_stock.pot
Feb 6, 2023
28ab64d
[UPD] README.rst
OCA-git-bot Feb 6, 2023
ef03a98
Translated using Weblate (Croatian)
badbole Feb 15, 2023
2c26da0
Translated using Weblate (Italian)
francesco-ooops Feb 16, 2023
f717976
Translated using Weblate (Italian)
mymage Apr 10, 2023
37ce60d
Translated using Weblate (Italian)
mymage Apr 11, 2023
4ce6298
Translated using Weblate (Italian)
mymage Apr 12, 2023
cedf461
[UPD] Update project_stock.pot
May 10, 2023
51903ab
Update translation files
weblate May 10, 2023
7d1e67d
Translated using Weblate (Italian)
mymage May 15, 2023
f83a959
Translated using Weblate (Italian)
mymage May 22, 2023
47ce95c
Added translation using Weblate (French)
Jun 22, 2023
48752b1
Translated using Weblate (Italian)
francesco-ooops Jul 12, 2023
f2f3aee
[FIX] project_stock: Filter valid stock moves (avoiding those done an…
victoralmau Jul 26, 2023
51fb2ff
project_stock 16.0.1.0.1
OCA-git-bot Jul 28, 2023
4883928
Added translation using Weblate (Portuguese (Brazil))
adrianojprado Jul 31, 2023
6801aa9
Translated using Weblate (Portuguese (Brazil))
adrianojprado Jul 31, 2023
c0f2f54
Translated using Weblate (Portuguese (Brazil))
adrianojprado Aug 11, 2023
a37e155
[FIX] project_stock: Avoid creating multiple analytical items in the …
victoralmau Jul 28, 2023
92aec5e
project_stock 16.0.1.0.2
OCA-git-bot Aug 14, 2023
60c6a53
[UPD] README.rst
OCA-git-bot Sep 3, 2023
35dcd51
Translated using Weblate (Spanish)
Ivorra78 Aug 23, 2023
669e522
Translated using Weblate (Croatian)
uvid-vlado Sep 6, 2023
628133c
[IMP] project_stock: Change the string of the stock_analytic_distribu…
victoralmau Sep 22, 2023
54db4b2
[OU-ADD] project_stock: Add migration script to install project_stock…
victoralmau Sep 25, 2023
3871165
[UPD] Update project_stock.pot
Sep 25, 2023
9f6f3c7
Update translation files
weblate Oct 9, 2023
a95816b
Translated using Weblate (Italian)
mymage Oct 13, 2023
a475143
Translated using Weblate (Portuguese (Brazil))
adrianojprado Oct 28, 2023
15ffdd4
Translated using Weblate (Portuguese (Brazil))
adrianojprado Oct 28, 2023
6f96406
Translated using Weblate (Italian)
mymage Nov 2, 2023
cc91817
[MIG] project_stock_product_set: Migration to 16.0
victoralmau Nov 22, 2023
b6b3c18
Translated using Weblate (Italian)
mymage Dec 18, 2023
f5c6ded
[IMP] project_stock: Add Forecasted Report button to stock moves from…
victoralmau Jun 7, 2024
ef38393
[UPD] Update project_stock.pot
Jun 10, 2024
4a90d50
[BOT] post-merge updates
OCA-git-bot Jun 10, 2024
c64fb91
Update translation files
weblate Jun 10, 2024
870cdc8
[FIX] project_stock: Avoid AccessError in the form view of tasks for …
victoralmau Jun 11, 2024
f5cea5e
[BOT] post-merge updates
OCA-git-bot Jun 11, 2024
263fc53
Translated using Weblate (Portuguese (Brazil))
Jun 11, 2024
35f56af
Translated using Weblate (Italian)
mymage Jun 14, 2024
64d9e59
[IMP] project_stock: pre-commit auto fixes
joaoc-exo Jun 26, 2024
243d729
[MIG] project_stock: Migration to 17.0
joaoc-exo Jun 26, 2024
95720be
[FIX] fix tests
joaoc-exo Jul 11, 2024
f74f841
[ADD] _run_scheduler trigger
joaoc-exo Jul 11, 2024
e2a01f1
[FIX] pre-commit
joaoc-exo Jul 11, 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
146 changes: 146 additions & 0 deletions project_stock/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
=============
Project Stock
=============

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

.. |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%2Fproject-lightgray.png?logo=github
:target: https://github.com/OCA/project/tree/17.0/project_stock
:alt: OCA/project
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/project-17-0/project-17-0-project_stock
: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/project&target_branch=17.0
:alt: Try me on Runboat

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

This module allows to consume products directly from a project task.

**Table of contents**

.. contents::
:local:

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

To configure this module, you need to:

1. Go to *Inventory -> Configuration -> Settings* and check "Storage
Locations" option.

2. Go to *Inventory -> Configuration -> Operation types*.

3. Create a new operation type with the following options:

- \`Operation type\`: Task material
- \`Code\`: TM
- \`Type of operation\`: Delivery
- \`Default Source Location\`: WH/Stock
- \`Default Destination Location\`: WH/Stock/Shelf 1

4. Go to *Project -> Configuration -> Projects*.

5. Create a new project with the following options:

- \`Name\`: Task material
- \`Operation type\`: Task material

6. Go to *Project -> Configuration -> Task Stages* and edit some
records.

- \`In progress\`: Check Use Stock Moves option and add the created
project.
- \`Done\`: Check Use Stock Moves option + Done Stock Moves and add
the created project.

Usage
=====

1. Go to *Projects -> Task material (project)* and create a task and
edit it.

2. *Stock Info* is displayed in the *Extra info* tab with the same
project information, but it can be modified.

3. Add some product to *Stock Info* tab and set some initial demand (1
for example).

4. Click on the button *Confirm material* to confirm all moves.

5. Change the stage to Done.

6. *Stock Info* tab is readonly and some buttons show in header:

- \`Check availability materials\`: Product availability will be
checked.
- \`Transfer Materials\`: Stock moves are confirmed and moved from
one location to another.
- \`Unreserve\`: Remove the reservation stock of the products.
- \`Cancel Materials\`: Set the moves of the products as cancelled.
- \`Scrap\`: Allows the defined products to be scrapped.

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

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

- Víctor Martínez
- Pedro M. Baeza

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

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

|maintainer-victoralmau|

This module is part of the `OCA/project <https://github.com/OCA/project/tree/17.0/project_stock>`_ 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 project_stock/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
23 changes: 23 additions & 0 deletions project_stock/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2022 Tecnativa - Víctor Martínez
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Project Stock",
"version": "17.0.1.0.0",
"category": "Project Management",
"website": "https://github.com/OCA/project",
"author": "Tecnativa, Odoo Community Association (OCA)",
"license": "AGPL-3",
"depends": ["project", "stock"],
"installable": True,
"data": [
"views/project_project_view.xml",
"views/project_task_type_view.xml",
"views/stock_move_view.xml",
"views/project_task_view.xml",
],
"demo": [
"demo/stock_picking_type_data.xml",
"demo/project_data.xml",
],
"maintainers": ["victoralmau"],
}
25 changes: 25 additions & 0 deletions project_stock/demo/project_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="project_project_tm_test" model="project.project">
<field name="name">Task material</field>
<field name="picking_type_id" ref="project_stock.stock_picking_type_tm_test" />
<field name="location_id" ref="stock.stock_location_stock" />
<field name="location_dest_id" ref="stock.stock_location_components" />
<field name="stock_analytic_date">1990-01-01</field>
</record>
<record id="project.project_stage_1" model="project.task.type">
<field name="use_stock_moves" eval="True" />
<field
name="project_ids"
eval="[(4, ref('project_stock.project_project_tm_test'))]"
/>
</record>
<record id="project.project_stage_2" model="project.task.type">
<field name="use_stock_moves" eval="True" />
<field name="done_stock_moves" eval="True" />
<field
name="project_ids"
eval="[(4, ref('project_stock.project_project_tm_test'))]"
/>
</record>
</odoo>
11 changes: 11 additions & 0 deletions project_stock/demo/stock_picking_type_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<record id="stock_picking_type_tm_test" model="stock.picking.type">
<field name="name">Task material</field>
<field name="sequence_code">TM</field>
<field name="code">outgoing</field>
<field name="warehouse_id" ref="stock.warehouse0" />
<field name="default_location_src_id" ref="stock.stock_location_stock" />
<field name="default_location_dest_id" ref="stock.stock_location_components" />
</record>
</odoo>
Loading
Loading