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
a4bc01910783
Commit
a4bc01910783
authored
3 years ago
by
Houzefa Abbasbhay
Browse files
Options
Downloads
Patches
Plain Diff
Hide default ``date`` field
obsoleted by accounting date this module adds.
parent
f5f5ca9e6ade
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!13
Topic/13.0/hide date
Pipeline
#30949
passed
3 years ago
Stage: build
Stage: test
Stage: doc
Stage: deploy
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
NEWS.rst
+5
-0
5 additions, 0 deletions
NEWS.rst
README.rst
+4
-1
4 additions, 1 deletion
README.rst
__manifest__.py
+1
-1
1 addition, 1 deletion
__manifest__.py
models/account_move.py
+1
-0
1 addition, 0 deletions
models/account_move.py
views/account_move.xml
+30
-0
30 additions, 0 deletions
views/account_move.xml
with
41 additions
and
2 deletions
NEWS.rst
+
5
−
0
View file @
a4bc0191
...
...
@@ -2,6 +2,11 @@
Changelog
=========
13.0.1.2.0
----------
Hide default ``date`` field, obsoleted by accounting date this module adds.
13.0.1.1.2
----------
...
...
This diff is collapsed.
Click to expand it.
README.rst
+
4
−
1
View file @
a4bc0191
...
...
@@ -16,6 +16,9 @@
Periods are filled based on an accounting date this module adds which users
may however set in advance.
This module also adds a transaction date in accounting documents.
Dates reworked in accounting documents / invoices:
* Add accounting date used to select the right period.
* Add transaction date.
* Hide default ``date`` field, obsoleted by accounting date above.
Inspired from what used to be available in previous Odoo versions.
This diff is collapsed.
Click to expand it.
__manifest__.py
+
1
−
1
View file @
a4bc0191
...
...
@@ -22,7 +22,7 @@
"
name
"
:
"
Accounting Periods
"
,
"
license
"
:
"
AGPL-3
"
,
"
summary
"
:
"
Add period accounting concept
"
,
"
version
"
:
"
13.0.1.
1.2
"
,
"
version
"
:
"
13.0.1.
2.0
"
,
"
category
"
:
"
Accounting/Accounting
"
,
"
author
"
:
"
XCG Consulting
"
,
"
website
"
:
"
https://odoo.consulting/
"
,
...
...
This diff is collapsed.
Click to expand it.
models/account_move.py
+
1
−
0
View file @
a4bc0191
...
...
@@ -23,6 +23,7 @@
class
AccountMove
(
models
.
Model
):
"""
Add a period & dates onto accounting documents.
See module README for details.
"""
_inherit
=
"
account.move
"
...
...
This diff is collapsed.
Click to expand it.
views/account_move.xml
+
30
−
0
View file @
a4bc0191
...
...
@@ -3,6 +3,30 @@
<!-- Add a period & dates onto accounting documents. -->
<!-- Inherit from the acc doc list view defined in "account". -->
<record
id=
"account_period_account_move_list"
model=
"ir.ui.view"
>
<field
name=
"name"
>
account_period_account_move_list
</field>
<field
name=
"model"
>
account.move
</field>
<field
name=
"inherit_id"
ref=
"account.view_move_tree"
/>
<field
name=
"arch"
type=
"xml"
>
<!-- Add fields. -->
<xpath
expr=
"//field[@name='date']"
position=
"before"
>
<field
name=
"period_id"
/>
</xpath>
<xpath
expr=
"//field[@name='date']"
position=
"after"
>
<field
name=
"accounting_date"
/>
<field
name=
"transaction_date"
/>
</xpath>
<!-- Hide default date field, obsoleted by accounting date this module adds. -->
<xpath
expr=
"//field[@name='date']"
position=
"attributes"
>
<attribute
name=
"invisible"
>
1
</attribute>
</xpath>
</field>
</record>
<!-- Inherit from the acc doc form view defined in "account". -->
<record
id=
"account_period_account_move_form"
model=
"ir.ui.view"
>
<field
name=
"name"
>
account_period_account_move_form
</field>
...
...
@@ -19,6 +43,12 @@
<field
name=
"transaction_date"
invisible=
"context.get('default_type', 'entry') != 'entry'"
/>
</xpath>
<!-- Hide default date field, obsoleted by accounting date this module adds. -->
<xpath
expr=
"//field[@name='date']"
position=
"attributes"
>
<attribute
name=
"invisible"
>
1
</attribute>
</xpath>
<!-- invoicing_date is only for invoice menus (but not accounting entries). -->
<xpath
expr=
"//label[@for='invoice_date']/.."
position=
"attributes"
>
<attribute
name=
"invisible"
>
context.get('default_type', 'entry') == 'entry'
</attribute>
...
...
This diff is collapsed.
Click to expand it.
Houzefa Abbasbhay
@houzefa.abba
mentioned in commit
13244f2dc1c2
·
3 years ago
mentioned in commit
13244f2dc1c2
mentioned in commit 13244f2dc1c2b44581eaf76391da534ed6ec73d4
Toggle commit list
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