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 | |
| parent | 9715888978cb93586f62ddb7ea153d0504bd290d (diff) | |
Non active odoobot create purchase order (testing)
| -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 | ||||
| -rwxr-xr-x | indoteknik_custom/security/ir.model.access.csv | 1 |
4 files changed, 14 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 diff --git a/indoteknik_custom/security/ir.model.access.csv b/indoteknik_custom/security/ir.model.access.csv index 0e4fda51..5e77f25d 100755 --- a/indoteknik_custom/security/ir.model.access.csv +++ b/indoteknik_custom/security/ir.model.access.csv @@ -73,3 +73,4 @@ access_product_attribute_value,access.product.attribute.value,model_product_attr access_mrp_production,access.mrp.production,model_mrp_production,,1,1,1,1 access_apache_solr_queue,access.apache.solr.queue,model_apache_solr_queue,,1,1,1,1 access_cost_centre,access.cost.centre,model_cost_centre,,1,1,1,1 +access_stock_scheduler_compute,access.stock.scheduler.compute,model_stock_scheduler_compute,,1,1,1,1 |
