Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
odoo-dev
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit cfd9157d
authored
Dec 06, 2021
by
aa.gusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
penambahan menu account group dan type
1 parent
1a421002
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
141 additions
and
0 deletions
idg_account/__manifest__.py
idg_account/views/account_account_type_views.xml
idg_account/views/account_group_views.xml
idg_account/views/menus.xml
idg_account/__manifest__.py
View file @
cfd9157
...
@@ -22,6 +22,8 @@ Indonesia Goverment Accounting
...
@@ -22,6 +22,8 @@ Indonesia Goverment Accounting
'data/account.account.csv'
,
'data/account.account.csv'
,
'views/account.xml'
,
'views/account.xml'
,
'views/account_account_views.xml'
,
'views/account_account_views.xml'
,
'views/account_account_type_views.xml'
,
'views/account_group_views.xml'
,
'views/menus.xml'
,
'views/menus.xml'
,
],
],
'demo'
:
[
'demo'
:
[
...
...
idg_account/views/account_account_type_views.xml
0 → 100644
View file @
cfd9157
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record
id=
"view_account_type_search"
model=
"ir.ui.view"
>
<field
name=
"name"
>
account.account.type.search
</field>
<field
name=
"model"
>
account.account.type
</field>
<field
name=
"arch"
type=
"xml"
>
<search
string=
"Account Type"
>
<field
name=
"name"
filter_domain=
"['|', ('name','ilike',self), ('type','ilike',self)]"
string=
"Account Type"
/>
</search>
</field>
</record>
<record
id=
"view_account_type_tree"
model=
"ir.ui.view"
>
<field
name=
"name"
>
account.account.type.tree
</field>
<field
name=
"model"
>
account.account.type
</field>
<field
name=
"arch"
type=
"xml"
>
<tree
string=
"Account Type"
>
<field
name=
"name"
/>
<field
name=
"type"
/>
</tree>
</field>
</record>
<record
id=
"view_account_type_form"
model=
"ir.ui.view"
>
<field
name=
"name"
>
account.account.type.form
</field>
<field
name=
"model"
>
account.account.type
</field>
<field
name=
"arch"
type=
"xml"
>
<form
string=
"Account Type"
>
<group>
<group>
<field
name=
"name"
/>
<field
name=
"type"
/>
</group>
<group>
<field
name=
"include_initial_balance"
/>
</group>
</group>
<separator
string=
"Description"
/>
<field
name=
"note"
/>
</form>
</field>
</record>
<record
id=
"action_account_type_form"
model=
"ir.actions.act_window"
>
<field
name=
"name"
>
Account Types
</field>
<field
name=
"res_model"
>
account.account.type
</field>
<field
name=
"view_mode"
>
tree,form
</field>
<field
name=
"search_view_id"
ref=
"view_account_type_search"
/>
<field
name=
"help"
type=
"html"
>
<p
class=
"o_view_nocontent_smiling_face"
>
Define a new account type
</p><p>
An account type is used to determine how an account is used in
each journal. The deferral method of an account type determines
the process for the annual closing. Reports such as the Balance
Sheet and the Profit and Loss report use the category
(profit/loss or balance sheet).
</p>
</field>
</record>
</data>
</odoo>
idg_account/views/account_group_views.xml
0 → 100644
View file @
cfd9157
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record
id=
"view_account_group_form"
model=
"ir.ui.view"
>
<field
name=
"name"
>
account.group.form
</field>
<field
name=
"model"
>
account.group
</field>
<field
name=
"arch"
type=
"xml"
>
<form
string=
"Account Group"
>
<sheet>
<group>
<field
name=
"name"
/>
<field
name=
"parent_id"
/>
<label
for=
"code_prefix_start"
string=
"Code Prefix"
/>
<div>
From
<field
name=
"code_prefix_start"
class=
"oe_inline"
/>
to
<field
name=
"code_prefix_end"
class=
"oe_inline"
/>
</div>
<!-- <field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>-->
</group>
</sheet>
</form>
</field>
</record>
<record
id=
"view_account_group_search"
model=
"ir.ui.view"
>
<field
name=
"name"
>
account.group.search
</field>
<field
name=
"model"
>
account.group
</field>
<field
name=
"arch"
type=
"xml"
>
<search
string=
"Account groups"
>
<field
name=
"name"
filter_domain=
"['|', ('code_prefix_start', '=like', str(self) + '%'), ('name', 'ilike', self)]"
string=
"Account group"
/>
</search>
</field>
</record>
<record
id=
"view_account_group_tree"
model=
"ir.ui.view"
>
<field
name=
"name"
>
account.group.tree
</field>
<field
name=
"model"
>
account.group
</field>
<field
name=
"arch"
type=
"xml"
>
<tree
string=
"Account Group"
>
<field
name=
"code_prefix_start"
/>
<field
name=
"code_prefix_end"
/>
<field
name=
"name"
/>
<!-- <field name="company_id" groups="base.group_multi_company"/>-->
</tree>
</field>
</record>
</data>
</odoo>
idg_account/views/menus.xml
View file @
cfd9157
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<odoo>
<data>
<record
id=
"action_account_group_form"
model=
"ir.actions.act_window"
>
<field
name=
"name"
>
Account Group
</field>
<field
name=
"res_model"
>
account.group
</field>
<field
name=
"view_mode"
>
tree,form
</field>
<field
name=
"search_view_id"
ref=
"view_account_group_search"
/>
<field
name=
"help"
type=
"html"
>
<p
class=
"o_view_nocontent_smiling_face"
>
Define a new account group
</p>
</field>
</record>
</data>
<!-- Top menu item -->
<!-- Top menu item -->
<menuitem
id=
"idgaccnt_menu_root"
<menuitem
id=
"idgaccnt_menu_root"
name=
"IDG Account"
name=
"IDG Account"
...
@@ -17,5 +30,15 @@
...
@@ -17,5 +30,15 @@
parent=
"config_idgaccnt_menu"
parent=
"config_idgaccnt_menu"
action=
"action_idgaccnt_coa"
action=
"action_idgaccnt_coa"
sequence=
"2"
/>
sequence=
"2"
/>
<menuitem
id=
"type_idgaccnt_menu"
name=
"Acccount Type"
parent=
"config_idgaccnt_menu"
action=
"action_account_type_form"
sequence=
"2"
/>
<menuitem
id=
"group_idgaccnt_menu"
name=
"Acccount Group"
parent=
"config_idgaccnt_menu"
action=
"action_account_group_form"
sequence=
"2"
/>
</odoo>
</odoo>
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment