From 70a8e601fb661398bd7f6b826b4851bd915249c4 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Wed, 13 Sep 2023 11:41:52 +0700 Subject: Non active odoobot create purchase order (testing) --- indoteknik_custom/models/__init__.py | 1 + indoteknik_custom/models/mrp_production.py | 2 +- indoteknik_custom/models/stock_scheduler_compute.py | 11 +++++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 indoteknik_custom/models/stock_scheduler_compute.py (limited to 'indoteknik_custom/models') diff --git a/indoteknik_custom/models/__init__.py b/indoteknik_custom/models/__init__.py index ee5a3a87..77779d22 100755 --- a/indoteknik_custom/models/__init__.py +++ b/indoteknik_custom/models/__init__.py @@ -89,3 +89,4 @@ from . import solr from . import cost_centre from . import account_account from . import account_move_line +from . import stock_scheduler_compute diff --git a/indoteknik_custom/models/mrp_production.py b/indoteknik_custom/models/mrp_production.py index ce60e01b..54d90256 100644 --- a/indoteknik_custom/models/mrp_production.py +++ b/indoteknik_custom/models/mrp_production.py @@ -2,7 +2,7 @@ from odoo import fields, models, api, _ from odoo.exceptions import AccessError, UserError, ValidationError -class Users(models.Model): +class MrpProduction(models.Model): _inherit = 'mrp.production' desc = fields.Text(string='Description') diff --git a/indoteknik_custom/models/stock_scheduler_compute.py b/indoteknik_custom/models/stock_scheduler_compute.py new file mode 100644 index 00000000..9de22137 --- /dev/null +++ b/indoteknik_custom/models/stock_scheduler_compute.py @@ -0,0 +1,11 @@ +from odoo import api, models +from odoo.exceptions import UserError + +class CustomStockSchedulerCompute(models.TransientModel): + _inherit = 'stock.scheduler.compute' + + def _procure_calculation_orderpoint(self): + return False + + def procure_calculation(self): + return False -- cgit v1.2.3