Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Accounting Periods
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XCG
Odoo modules
Accounting Periods
Commits
0db1618b15a4
Commit
0db1618b15a4
authored
6 years ago
by
Houzefa Abbasbhay
Browse files
Options
Downloads
Patches
Plain Diff
Tweak views & menu commands
parent
d99bb5932d9c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
views/account_fiscalyear.xml
+22
-8
22 additions, 8 deletions
views/account_fiscalyear.xml
views/account_period.xml
+2
-2
2 additions, 2 deletions
views/account_period.xml
with
24 additions
and
10 deletions
views/account_fiscalyear.xml
+
22
−
8
View file @
0db1618b
...
...
@@ -20,7 +20,7 @@
<field
name=
"arch"
type=
"xml"
>
<tree>
<field
name=
"name"
/>
<field
name=
"name"
/>
<field
name=
"code"
/>
<field
name=
"period_ids"
/>
</tree>
...
...
@@ -34,7 +34,8 @@
<field
name=
"arch"
type=
"xml"
>
<form>
<header>
</header>
<!-- Utility fields. -->
<field
name=
"id"
invisible=
"1"
/>
<sheet>
...
...
@@ -39,3 +40,8 @@
<sheet>
<group
col=
"4"
>
<field
name=
"name"
/>
<field
name=
"code"
/>
</group>
<group>
...
...
@@ -41,5 +47,12 @@
<group>
<field
name=
"name"
/>
<field
name=
"code"
/>
<field
name=
"period_ids"
/>
<field
name=
"period_ids"
>
<tree
editable=
"bottom"
>
<field
name=
"name"
/>
<field
name=
"code"
/>
<field
name=
"date_start"
/>
<field
name=
"date_stop"
/>
<field
name=
"date_cutoff"
/>
<field
name=
"state"
/>
</tree>
</field>
</group>
...
...
@@ -45,4 +58,5 @@
</group>
</sheet>
</form>
...
...
@@ -52,10 +66,10 @@
<!-- Add a menu command to manage accounting fiscalyear. -->
<record
id=
"account_fiscalyear_action"
model=
"ir.actions.act_window"
>
<field
name=
"name"
>
Accounting f
iscal years
</field>
<field
name=
"name"
>
F
iscal years
</field>
<field
name=
"res_model"
>
account.fiscalyear
</field>
<field
name=
"view_mode"
>
tree,form
</field>
<field
name=
"view_type"
>
form
</field>
</record>
<menuitem
id=
"account_fiscalyear_menu_command"
parent=
"account.account_account_menu"
...
...
@@ -56,9 +70,9 @@
<field
name=
"res_model"
>
account.fiscalyear
</field>
<field
name=
"view_mode"
>
tree,form
</field>
<field
name=
"view_type"
>
form
</field>
</record>
<menuitem
id=
"account_fiscalyear_menu_command"
parent=
"account.account_account_menu"
name=
"Accounting fiscal years"
action=
"account_fiscalyear_action"
/>
action=
"account_fiscalyear_action"
/>
</odoo>
This diff is collapsed.
Click to expand it.
views/account_period.xml
+
2
−
2
View file @
0db1618b
...
...
@@ -59,10 +59,10 @@
<!-- Add a menu command to manage accounting period. -->
<record
id=
"account_period_action"
model=
"ir.actions.act_window"
>
<field
name=
"name"
>
Accounting p
eriods
</field>
<field
name=
"name"
>
P
eriods
</field>
<field
name=
"res_model"
>
account.period
</field>
<field
name=
"view_mode"
>
tree,form
</field>
<field
name=
"view_type"
>
form
</field>
</record>
<menuitem
id=
"account_period_menu_command"
parent=
"account.account_account_menu"
...
...
@@ -63,9 +63,9 @@
<field
name=
"res_model"
>
account.period
</field>
<field
name=
"view_mode"
>
tree,form
</field>
<field
name=
"view_type"
>
form
</field>
</record>
<menuitem
id=
"account_period_menu_command"
parent=
"account.account_account_menu"
name=
"Accounting periods"
action=
"account_period_action"
/>
action=
"account_period_action"
/>
</odoo>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment