summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xindoteknik_custom/__manifest__.py1
-rwxr-xr-xindoteknik_custom/models/__init__.py1
-rw-r--r--indoteknik_custom/models/uom_uom.py6
-rw-r--r--indoteknik_custom/views/uom_uom.xml14
4 files changed, 22 insertions, 0 deletions
diff --git a/indoteknik_custom/__manifest__.py b/indoteknik_custom/__manifest__.py
index 7a179ce3..cf4d4ce3 100755
--- a/indoteknik_custom/__manifest__.py
+++ b/indoteknik_custom/__manifest__.py
@@ -191,6 +191,7 @@
'views/sj_tele.xml',
'views/close_tempo_mail_template.xml',
'views/domain_apo.xml',
+ 'views/uom_uom.xml',
],
'demo': [],
'css': [],
diff --git a/indoteknik_custom/models/__init__.py b/indoteknik_custom/models/__init__.py
index 165dae4e..6e1ef2e0 100755
--- a/indoteknik_custom/models/__init__.py
+++ b/indoteknik_custom/models/__init__.py
@@ -163,3 +163,4 @@ from . import letter_receivable
from . import sj_tele
from . import partial_delivery
from . import domain_apo
+from . import uom_uom \ No newline at end of file
diff --git a/indoteknik_custom/models/uom_uom.py b/indoteknik_custom/models/uom_uom.py
new file mode 100644
index 00000000..32e53d73
--- /dev/null
+++ b/indoteknik_custom/models/uom_uom.py
@@ -0,0 +1,6 @@
+from odoo import fields, models, api, _
+
+class Uom(models.Model):
+ _inherit = 'uom.uom'
+
+ coretax_id = fields.Char(string='Coretax ID')
diff --git a/indoteknik_custom/views/uom_uom.xml b/indoteknik_custom/views/uom_uom.xml
new file mode 100644
index 00000000..a7fb55e5
--- /dev/null
+++ b/indoteknik_custom/views/uom_uom.xml
@@ -0,0 +1,14 @@
+<odoo>
+ <data>
+ <record id="uom_form_view_inherit" model="ir.ui.view">
+ <field name="name">Uom</field>
+ <field name="model">uom.uom</field>
+ <field name="inherit_id" ref="uom.product_uom_form_view"/>
+ <field name="arch" type="xml">
+ <field name="rounding" position="after">
+ <field name="coretax_id"/>
+ </field>
+ </field>
+ </record>
+ </data>
+</odoo> \ No newline at end of file