-
-
Notifications
You must be signed in to change notification settings - Fork 802
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
143 additions
and
1,354 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
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,12 +1,5 @@ | ||
# Copyright 2021 - Pierre Verkest | ||
# Copyright 2021-2025 - Pierre Verkest | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
from . import models | ||
|
||
|
||
from odoo import api, fields, SUPERUSER_ID | ||
|
||
|
||
def set_project_ok_for_consumable_products(cr, _): | ||
env = api.Environment(cr, SUPERUSER_ID, {}) | ||
|
||
env["product.product"].search([("type", "=", "consu")]).write({"project_ok": True}) | ||
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
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
def set_project_ok_for_consumable_products(env): | ||
env["product.template"].search([("type", "=", "consu")]).write({"project_ok": True}) |
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
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
406 changes: 0 additions & 406 deletions
406
project_consumable/models/project_profitability_report.py
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.