diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2023-08-25 13:10:37 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2023-08-25 13:10:37 +0700 |
| commit | 794e00fc836fd00c9e2241b0c356c88d67b443b0 (patch) | |
| tree | 7f61487eb730f906e032a71c243a66d5aafd9f53 | |
| parent | 44d1abe6f98b3b2e49e3dbca2be3682e01a0f6cf (diff) | |
add field description to mrp production
| -rwxr-xr-x | indoteknik_custom/__manifest__.py | 1 | ||||
| -rwxr-xr-x | indoteknik_custom/models/__init__.py | 1 | ||||
| -rw-r--r-- | indoteknik_custom/models/mrp_production.py | 10 | ||||
| -rwxr-xr-x | indoteknik_custom/security/ir.model.access.csv | 1 | ||||
| -rw-r--r-- | indoteknik_custom/views/mrp_production.xml | 24 |
5 files changed, 37 insertions, 0 deletions
diff --git a/indoteknik_custom/__manifest__.py b/indoteknik_custom/__manifest__.py index 7c38382c..6d07fd05 100755 --- a/indoteknik_custom/__manifest__.py +++ b/indoteknik_custom/__manifest__.py @@ -91,6 +91,7 @@ 'views/product_attribute_value.xml', 'views/mail_template_po.xml', 'views/price_group.xml', + 'views/mrp_production.xml', 'report/report.xml', 'report/report_banner_banner.xml', 'report/report_banner_banner2.xml', diff --git a/indoteknik_custom/models/__init__.py b/indoteknik_custom/models/__init__.py index 3a5079f6..b1b22e29 100755 --- a/indoteknik_custom/models/__init__.py +++ b/indoteknik_custom/models/__init__.py @@ -84,3 +84,4 @@ from . import price_group from . import po_sync_price from . import base_import_import from . import product_attribute +from . import mrp_production diff --git a/indoteknik_custom/models/mrp_production.py b/indoteknik_custom/models/mrp_production.py new file mode 100644 index 00000000..ce60e01b --- /dev/null +++ b/indoteknik_custom/models/mrp_production.py @@ -0,0 +1,10 @@ +from odoo import fields, models, api, _ +from odoo.exceptions import AccessError, UserError, ValidationError + + +class Users(models.Model): + _inherit = 'mrp.production' + + desc = fields.Text(string='Description') + +
\ No newline at end of file diff --git a/indoteknik_custom/security/ir.model.access.csv b/indoteknik_custom/security/ir.model.access.csv index c5dbdb19..42744f35 100755 --- a/indoteknik_custom/security/ir.model.access.csv +++ b/indoteknik_custom/security/ir.model.access.csv @@ -69,3 +69,4 @@ access_airway_bill_manifest,access.airway.bill.manifest,model_airway_bill_manife access_price_group,access.price.group,model_price_group,,1,1,1,1 access_po_sync_price,access.po.sync.price,model_po_sync_price,,1,1,1,1 access_product_attribute_value,access.product.attribute.value,model_product_attribute_value,,1,1,1,1 +access_mrp_production,access.mrp.production,model_mrp_production,,1,1,1,1 diff --git a/indoteknik_custom/views/mrp_production.xml b/indoteknik_custom/views/mrp_production.xml new file mode 100644 index 00000000..f81d65e8 --- /dev/null +++ b/indoteknik_custom/views/mrp_production.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<odoo> + <record id="production_mrp_form_view_inherited" model="ir.ui.view"> + <field name="name">mrp.production.view.inherited</field> + <field name="model">mrp.production</field> + <field name="inherit_id" ref="mrp.mrp_production_form_view" /> + <field name="arch" type="xml"> + <field name="bom_id" position="after"> + <field name="desc"/> + </field> + </field> + </record> + + <record id="production_mrp_tree_view_inherited" model="ir.ui.view"> + <field name="name">mrp.production.view.inherited</field> + <field name="model">mrp.production</field> + <field name="inherit_id" ref="mrp.mrp_production_tree_view" /> + <field name="arch" type="xml"> + <field name="product_id" position="after"> + <field name="desc"/> + </field> + </field> + </record> +</odoo> |
