diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2023-09-13 11:41:52 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2023-09-13 11:41:52 +0700 |
| commit | 70a8e601fb661398bd7f6b826b4851bd915249c4 (patch) | |
| tree | 5625ff753057d244790e4afd88118f9546450b75 /indoteknik_custom/models | |
| parent | 9715888978cb93586f62ddb7ea153d0504bd290d (diff) | |
Non active odoobot create purchase order (testing)
Diffstat (limited to 'indoteknik_custom/models')
| -rwxr-xr-x | indoteknik_custom/models/__init__.py | 1 | ||||
| -rw-r--r-- | indoteknik_custom/models/mrp_production.py | 2 | ||||
| -rw-r--r-- | indoteknik_custom/models/stock_scheduler_compute.py | 11 |
3 files changed, 13 insertions, 1 deletions
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 |
