diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2024-05-28 09:34:20 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2024-05-28 09:34:20 +0700 |
| commit | 3df675a6ec324cce7a0235ccfa265e4f11cf2387 (patch) | |
| tree | 3bac23048167c166c91a4b0aa1e3c522ee60c062 | |
| parent | 1a27786cac100e8e99839b0a308fc107783ab507 (diff) | |
initial commit
| -rw-r--r-- | fixco_custom/__init__.py | 1 | ||||
| -rw-r--r-- | fixco_custom/__manifest__.py | 21 | ||||
| -rw-r--r-- | fixco_custom/models/__init__.py | 1 | ||||
| -rw-r--r-- | fixco_custom/models/res_partner.py | 7 | ||||
| -rw-r--r-- | fixco_custom/security/ir.model.access.csv | 1 | ||||
| -rw-r--r-- | fixco_custom/views/res_partner.xml | 15 |
6 files changed, 46 insertions, 0 deletions
diff --git a/fixco_custom/__init__.py b/fixco_custom/__init__.py new file mode 100644 index 0000000..9a7e03e --- /dev/null +++ b/fixco_custom/__init__.py @@ -0,0 +1 @@ +from . import models
\ No newline at end of file diff --git a/fixco_custom/__manifest__.py b/fixco_custom/__manifest__.py new file mode 100644 index 0000000..b775bb1 --- /dev/null +++ b/fixco_custom/__manifest__.py @@ -0,0 +1,21 @@ +{ + 'name': 'Custom Fixco', + 'version': '1.0', + 'category': '', + 'sequence': 1, + 'summary': 'Custom Fixco', + 'description': '', + 'author': 'Stephan Christianus', + 'website': '', + 'images': ['assets/favicon.ico'], + 'data': [ + 'security/ir.model.access.csv', + 'views/res_partner.xml' + ], + 'demo': [], + 'css': [], + 'installable': True, + 'application': True, + 'auto_install': False, + 'license': '', +} diff --git a/fixco_custom/models/__init__.py b/fixco_custom/models/__init__.py new file mode 100644 index 0000000..4c58886 --- /dev/null +++ b/fixco_custom/models/__init__.py @@ -0,0 +1 @@ +from . import res_partner
\ No newline at end of file diff --git a/fixco_custom/models/res_partner.py b/fixco_custom/models/res_partner.py new file mode 100644 index 0000000..112e7f0 --- /dev/null +++ b/fixco_custom/models/res_partner.py @@ -0,0 +1,7 @@ +from odoo import models, fields, api + + +class Partner(models.Model): + _inherit = 'res.partner' + + test_new_fields = fields.Char(string='Test New Fields')
\ No newline at end of file diff --git a/fixco_custom/security/ir.model.access.csv b/fixco_custom/security/ir.model.access.csv new file mode 100644 index 0000000..97dd8b9 --- /dev/null +++ b/fixco_custom/security/ir.model.access.csv @@ -0,0 +1 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink diff --git a/fixco_custom/views/res_partner.xml b/fixco_custom/views/res_partner.xml new file mode 100644 index 0000000..f862e64 --- /dev/null +++ b/fixco_custom/views/res_partner.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<odoo> + <data> + <record id="partner_form_view_inherit" model="ir.ui.view"> + <field name="name">Partner</field> + <field name="model">res.partner</field> + <field name="inherit_id" ref="base.view_partner_form"/> + <field name="arch" type="xml"> + <field name="website" position="after"> + <field name="test_new_fields"/> + </field> + </field> + </record> + </data> +</odoo>
\ No newline at end of file |
