add cenhomes addons
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from . import models
|
||||
@@ -0,0 +1,28 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
{
|
||||
'name': "bank test",
|
||||
|
||||
'summary': """
|
||||
Module Cen Academy for students""",
|
||||
|
||||
'description': """
|
||||
|
||||
""",
|
||||
|
||||
'author': "Cenhomes",
|
||||
'website': "https://www.cenhomes.vn",
|
||||
|
||||
# Categories can be used to filter modules in modules listing
|
||||
# Check https://github.com/odoo/odoo/blob/16.0/odoo/addons/base/data/ir_module_category_data.xml
|
||||
# for the full list
|
||||
'category': 'Uncategorized',
|
||||
'version': '0.1',
|
||||
|
||||
# any module necessary for this one to work correctly
|
||||
'depends': ['base', 'mail'],
|
||||
|
||||
# always loaded
|
||||
'data': [
|
||||
'views/sms_custom.xml',
|
||||
],
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from . import models
|
||||
@@ -0,0 +1,19 @@
|
||||
from odoo import models, fields
|
||||
|
||||
|
||||
class CustomBank(models.Model):
|
||||
_name = "res.bank"
|
||||
_inherit = ["res.bank", "mail.thread", "mail.activity.mixin"]
|
||||
|
||||
name = fields.Char(required=True, tracking=True)
|
||||
street = fields.Char(tracking=True)
|
||||
street2 = fields.Char(tracking=True)
|
||||
zip = fields.Char(tracking=True)
|
||||
city = fields.Char(tracking=True)
|
||||
state = fields.Many2one('res.country.state', 'Fed. State', domain="[('country_id', '=?', country)]",
|
||||
tracking=True)
|
||||
country = fields.Many2one('res.country', tracking=True)
|
||||
email = fields.Char(tracking=True)
|
||||
phone = fields.Char(tracking=True)
|
||||
active = fields.Boolean(default=True, tracking=True)
|
||||
bic = fields.Char('Bank Identifier Code', index=True, help="Sometimes called BIC or Swift.", tracking=True)
|
||||
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="custom_view_res_bank_form" model="ir.ui.view">
|
||||
<field name="name">res.bank.views.inherit.view_res_bank_form</field>
|
||||
<field name="model">res.bank</field>
|
||||
<field name="inherit_id" ref="base.view_res_bank_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//sheet" position="after">
|
||||
<div class="oe_chatter">
|
||||
<field name="message_follower_ids"/>
|
||||
<!-- <field name="activity_ids"/>-->
|
||||
<field name="message_ids"/>
|
||||
</div>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user