-
-
Notifications
You must be signed in to change notification settings - Fork 799
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[REF] project_consumable: improve consumable detection
In the previous implementation project_id field was reused on account move line but a lot of the odoo code source assume that an account move line with a project_id is a timesheet, making very hard to distinguish Materials and Timesheet. Adding a consumable_project_id it avoid to breaks existing code make module much more easier to maintains
- Loading branch information
Showing
25 changed files
with
412 additions
and
614 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,8 @@ Project consumable | |
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module provides a 'closed' flag on project task stages. | ||
This module allow to collect materials/consumable linked to a project | ||
adding account analytic lines. | ||
|
||
**Table of contents** | ||
|
||
|
@@ -65,7 +66,6 @@ quantities and Unit of Mesure provided by users, analytic amount will be | |
computed based on product cost. | ||
|
||
- Material & Consumable Menu | ||
- On task tab | ||
- Project tab | ||
|
||
Review consumable amount | ||
|
@@ -98,7 +98,7 @@ Authors | |
Contributors | ||
------------ | ||
|
||
- Pierre Verkest <[email protected]> | ||
- Pierre Verkest <[email protected]> | ||
|
||
Maintainers | ||
----------- | ||
|
@@ -113,6 +113,14 @@ 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-petrus-v| image:: https://github.com/petrus-v.png?size=40px | ||
:target: https://github.com/petrus-v | ||
:alt: petrus-v | ||
|
||
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__: | ||
|
||
|maintainer-petrus-v| | ||
|
||
This module is part of the `OCA/project <https://github.com/OCA/project/tree/17.0/project_consumable>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Copyright 2021-2025 - Pierre Verkest | ||
# @author Pierre Verkest <[email protected]> | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
from . import models | ||
from . import report | ||
from .hooks import set_project_ok_for_consumable_products |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# Copyright 2021 - Pierre Verkest | ||
# Copyright 2021-2025 - Pierre Verkest | ||
# @author Pierre Verkest <[email protected]> | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
{ | ||
"name": "Project consumable", | ||
|
@@ -8,6 +9,7 @@ | |
"category": "Project Management", | ||
"version": "17.0.1.0.0", | ||
"license": "AGPL-3", | ||
"maintainers": ["petrus-v"], | ||
"depends": [ | ||
"account", | ||
"hr_timesheet", | ||
|
@@ -17,6 +19,7 @@ | |
"views/analytic_account_line_report.xml", | ||
"views/product.xml", | ||
"views/project_views.xml", | ||
"security/project_consumable_security.xml", | ||
], | ||
"demo": [ | ||
"demo/product-product.xml", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.