Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Jorels Community
Edi
Commits
43c5fee7
Commit
43c5fee7
authored
Aug 16, 2020
by
Jorge Sanabria
Browse files
Added OCA dependencies
parent
3a904559
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
1707 additions
and
0 deletions
+1707
-0
account_debitnote/README.rst
account_debitnote/README.rst
+96
-0
account_debitnote/__init__.py
account_debitnote/__init__.py
+5
-0
account_debitnote/__manifest__.py
account_debitnote/__manifest__.py
+21
-0
account_debitnote/i18n/account_debitnote.pot
account_debitnote/i18n/account_debitnote.pot
+227
-0
account_debitnote/i18n/de.po
account_debitnote/i18n/de.po
+233
-0
account_debitnote/models/__init__.py
account_debitnote/models/__init__.py
+7
-0
account_debitnote/models/account.py
account_debitnote/models/account.py
+120
-0
account_debitnote/models/account_invoice.py
account_debitnote/models/account_invoice.py
+128
-0
account_debitnote/models/account_move.py
account_debitnote/models/account_move.py
+13
-0
account_debitnote/models/ir_sequence.py
account_debitnote/models/ir_sequence.py
+23
-0
account_debitnote/readme/CONFIGURE.rst
account_debitnote/readme/CONFIGURE.rst
+5
-0
account_debitnote/readme/CONTRIBUTORS.rst
account_debitnote/readme/CONTRIBUTORS.rst
+1
-0
account_debitnote/readme/DESCRIPTION.rst
account_debitnote/readme/DESCRIPTION.rst
+2
-0
account_debitnote/readme/USAGE.rst
account_debitnote/readme/USAGE.rst
+9
-0
account_debitnote/static/description/icon.png
account_debitnote/static/description/icon.png
+0
-0
account_debitnote/static/description/index.html
account_debitnote/static/description/index.html
+452
-0
account_debitnote/tests/__init__.py
account_debitnote/tests/__init__.py
+4
-0
account_debitnote/tests/test_account_debitnote.py
account_debitnote/tests/test_account_debitnote.py
+111
-0
account_debitnote/views/account_invoice_view.xml
account_debitnote/views/account_invoice_view.xml
+81
-0
account_debitnote/views/account_view.xml
account_debitnote/views/account_view.xml
+38
-0
account_debitnote/wizard/__init__.py
account_debitnote/wizard/__init__.py
+4
-0
account_debitnote/wizard/account_invoice_debitnote.py
account_debitnote/wizard/account_invoice_debitnote.py
+72
-0
account_debitnote/wizard/account_invoice_debitnote_view.xml
account_debitnote/wizard/account_invoice_debitnote_view.xml
+55
-0
No files found.
account_debitnote/README.rst
0 → 100644
View file @
43c5fee7
===========
Debit Notes
===========
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--invoicing-lightgray.png?logo=github
:target: https://github.com/OCA/account-invoicing/tree/12.0/account_debitnote
:alt: OCA/account-invoicing
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/account-invoicing-12-0/account-invoicing-12-0-account_debitnote
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/95/12.0
:alt: Try me on Runbot
|badge1| |badge2| |badge3| |badge4| |badge5|
In some situations, user need to add some service charge or some fees on top of what already invoiced.
This module add new feature to "Add Debit Note" from customer invoice / vendor bill
**Table of contents**
.. contents::
:local:
Configuration
=============
To configure this module, you need to:
- Make sure user has access to "Show Full Accounting Features".
- Invoicing -> Configuration -> Journals -> Customer Invoices/Vendor Bills
-> check Dedicated Debit Note Sequence.
Usage
=====
To use this module, you need to:
- Go to Invoicing -> Customers -> Invoices.
- Create a new invoice and validate.
- Click on Add Debit Note and fill in reasons. You can also specify an account date.
- Click Add Debit Note, You will have a new one Invoice(Debit Note).
- Validate Debit note.
You can also do the same with Vendor Bill.
Bug Tracker
===========
Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-invoicing/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/account-invoicing/issues/new?body=module:%20account_debitnote%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Do not contact contributors directly about support or help with technical issues.
Credits
=======
Authors
~~~~~~~
* Eocosft
Contributors
~~~~~~~~~~~~
* Rattapong Chokmasermkul <rattapongc@ecosoft.co.th>
Maintainers
~~~~~~~~~~~
This module is maintained by the OCA.
.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.
This module is part of the `OCA/account-invoicing <https://github.com/OCA/account-invoicing/tree/12.0/account_debitnote>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
account_debitnote/__init__.py
0 → 100644
View file @
43c5fee7
# Copyright 2019 Ecosoft Co., Ltd (http://ecosoft.co.th/)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
from
.
import
models
from
.
import
wizard
account_debitnote/__manifest__.py
0 → 100644
View file @
43c5fee7
# Copyright 2019 Ecosoft Co., Ltd (http://ecosoft.co.th/)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
{
'name'
:
'Debit Notes'
,
'summary'
:
"""
Create debit note from invoice and vendor bill"""
,
'version'
:
'12.0.1.0.0'
,
'website'
:
'https://github.com/OCA/account-invoicing'
,
'author'
:
'Eocosft,Odoo Community Association (OCA)'
,
'license'
:
'AGPL-3'
,
'depends'
:
[
'account'
,
],
'data'
:
[
'wizard/account_invoice_debitnote_view.xml'
,
'views/account_invoice_view.xml'
,
'views/account_view.xml'
,
],
'installable'
:
True
,
}
account_debitnote/i18n/account_debitnote.pot
0 → 100644
View file @
43c5fee7
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_debitnote
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: account_debitnote
#: code:addons/account_debitnote/models/account.py:94
#, python-format
msgid "%s Sequence"
msgstr ""
#. module: account_debitnote
#: code:addons/account_debitnote/models/account.py:92
#, python-format
msgid ": Debitnote"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,field_description:account_debitnote.field_account_invoice_debitnote__date
msgid "Accounting Date"
msgstr ""
#. module: account_debitnote
#: model_terms:ir.ui.view,arch_db:account_debitnote.invoice_form
#: model_terms:ir.ui.view,arch_db:account_debitnote.view_account_invoice_debitnote
msgid "Add Debit Note"
msgstr ""
#. module: account_debitnote
#: model_terms:ir.ui.view,arch_db:account_debitnote.invoice_supplier_form
msgid "Ask for a Debit Note"
msgstr ""
#. module: account_debitnote
#: code:addons/account_debitnote/models/account_invoice.py:73
#, python-format
msgid "Can not create Debit Note"
msgstr ""
#. module: account_debitnote
#: model_terms:ir.ui.view,arch_db:account_debitnote.view_account_invoice_debitnote
msgid "Cancel"
msgstr ""
#. module: account_debitnote
#: code:addons/account_debitnote/wizard/account_invoice_debitnote.py:51
#, python-format
msgid "Cannot create debit note for\n"
" draft/cancel invoice."
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,help:account_debitnote.field_account_bank_statement_import_journal_creation__debitnote_sequence
#: model:ir.model.fields,help:account_debitnote.field_account_journal__debitnote_sequence
msgid "Check this box if you don't want to share the same sequence\n"
" for invoices and debit notes made from this journal"
msgstr ""
#. module: account_debitnote
#: selection:account.invoice.debitnote,filter_debit:0
msgid "Create a draft debit note"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,field_description:account_debitnote.field_account_invoice_debitnote__create_uid
msgid "Created by"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,field_description:account_debitnote.field_account_invoice_debitnote__create_date
msgid "Created on"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,field_description:account_debitnote.field_account_invoice_debitnote__filter_debit
msgid "Debit Method"
msgstr ""
#. module: account_debitnote
#: model:ir.actions.act_window,name:account_debitnote.action_account_invoice_debitnote
#: model:ir.model,name:account_debitnote.model_account_invoice_debitnote
#: model:ir.model.fields,field_description:account_debitnote.field_account_invoice__debit_invoice_id
#: model_terms:ir.ui.view,arch_db:account_debitnote.view_account_invoice_debitnote
msgid "Debit Note"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,field_description:account_debitnote.field_account_invoice_debitnote__date_invoice
msgid "Debit Note Date"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,field_description:account_debitnote.field_account_bank_statement_import_journal_creation__debitnote_sequence_id
#: model:ir.model.fields,field_description:account_debitnote.field_account_journal__debitnote_sequence_id
msgid "Debit Note Entry Sequence"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,field_description:account_debitnote.field_account_invoice__debit_invoice_ids
#: model_terms:ir.ui.view,arch_db:account_debitnote.view_account_invoice_filter
msgid "Debit Notes"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,field_description:account_debitnote.field_account_bank_statement_import_journal_creation__debitnote_sequence_number_next
#: model:ir.model.fields,field_description:account_debitnote.field_account_journal__debitnote_sequence_number_next
msgid "Debit Notes: Next Number"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,field_description:account_debitnote.field_account_bank_statement_import_journal_creation__debitnote_sequence
#: model:ir.model.fields,field_description:account_debitnote.field_account_journal__debitnote_sequence
msgid "Dedicated Debit Note Sequence"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,field_description:account_debitnote.field_account_invoice_debitnote__display_name
msgid "Display Name"
msgstr ""
#. module: account_debitnote
#: model_terms:ir.ui.view,arch_db:account_debitnote.view_account_invoice_filter
msgid "Filter debit note from My Invoice"
msgstr ""
#. module: account_debitnote
#: model_terms:ir.ui.view,arch_db:account_debitnote.view_account_invoice_filter
msgid "Filter invoice from My Invoice"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,field_description:account_debitnote.field_account_invoice_debitnote__id
msgid "ID"
msgstr ""
#. module: account_debitnote
#: model:ir.model,name:account_debitnote.model_account_invoice
msgid "Invoice"
msgstr ""
#. module: account_debitnote
#: model_terms:ir.ui.view,arch_db:account_debitnote.view_account_invoice_filter
msgid "Invoices"
msgstr ""
#. module: account_debitnote
#: model:ir.model,name:account_debitnote.model_account_journal
msgid "Journal"
msgstr ""
#. module: account_debitnote
#: model:ir.model,name:account_debitnote.model_account_move
msgid "Journal Entries"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,field_description:account_debitnote.field_account_invoice_debitnote____last_update
msgid "Last Modified on"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,field_description:account_debitnote.field_account_invoice_debitnote__write_uid
msgid "Last Updated by"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,field_description:account_debitnote.field_account_invoice_debitnote__write_date
msgid "Last Updated on"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,help:account_debitnote.field_account_invoice__debit_invoice_ids
msgid "List all debit notes being created by this invoice"
msgstr ""
#. module: account_debitnote
#: code:addons/account_debitnote/models/ir_sequence.py:21
#, python-format
msgid "Please define a sequence for the debit notes"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,field_description:account_debitnote.field_account_invoice_debitnote__description
msgid "Reason"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,help:account_debitnote.field_account_invoice__debit_invoice_id
msgid "Reference to the origin invoice that create this debit note"
msgstr ""
#. module: account_debitnote
#: model:ir.model,name:account_debitnote.model_ir_sequence
msgid "Sequence"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,help:account_debitnote.field_account_bank_statement_import_journal_creation__debitnote_sequence_number_next
#: model:ir.model.fields,help:account_debitnote.field_account_journal__debitnote_sequence_number_next
msgid "The next sequence number will be used for the next debit note."
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,help:account_debitnote.field_account_bank_statement_import_journal_creation__debitnote_sequence_id
#: model:ir.model.fields,help:account_debitnote.field_account_journal__debitnote_sequence_id
msgid "This field contains the information related to the numbering of\n"
" the debit note entries of this journal."
msgstr ""
#. module: account_debitnote
#: model_terms:ir.ui.view,arch_db:account_debitnote.view_account_invoice_debitnote
msgid "You will be able to edit and validate this\n"
" debit note directly or keep it draft,\n"
" waiting for the document to be issued by\n"
" your supplier/customer."
msgstr ""
account_debitnote/i18n/de.po
0 → 100644
View file @
43c5fee7
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_debitnote
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-06-12 13:19+0000\n"
"Last-Translator: Maria Sparenberg <maria.sparenberg@gmx.net>\n"
"Language-Team: none\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.10\n"
#. module: account_debitnote
#: code:addons/account_debitnote/models/account.py:94
#, python-format
msgid "%s Sequence"
msgstr ""
#. module: account_debitnote
#: code:addons/account_debitnote/models/account.py:92
#, python-format
msgid ": Debitnote"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,field_description:account_debitnote.field_account_invoice_debitnote__date
msgid "Accounting Date"
msgstr ""
#. module: account_debitnote
#: model_terms:ir.ui.view,arch_db:account_debitnote.invoice_form
#: model_terms:ir.ui.view,arch_db:account_debitnote.view_account_invoice_debitnote
msgid "Add Debit Note"
msgstr ""
#. module: account_debitnote
#: model_terms:ir.ui.view,arch_db:account_debitnote.invoice_supplier_form
msgid "Ask for a Debit Note"
msgstr ""
#. module: account_debitnote
#: code:addons/account_debitnote/models/account_invoice.py:73
#, python-format
msgid "Can not create Debit Note"
msgstr ""
#. module: account_debitnote
#: model_terms:ir.ui.view,arch_db:account_debitnote.view_account_invoice_debitnote
msgid "Cancel"
msgstr ""
#. module: account_debitnote
#: code:addons/account_debitnote/wizard/account_invoice_debitnote.py:51
#, python-format
msgid ""
"Cannot create debit note for\n"
" draft/cancel invoice."
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,help:account_debitnote.field_account_bank_statement_import_journal_creation__debitnote_sequence
#: model:ir.model.fields,help:account_debitnote.field_account_journal__debitnote_sequence
msgid ""
"Check this box if you don't want to share the same sequence\n"
" for invoices and debit notes made from this journal"
msgstr ""
#. module: account_debitnote
#: selection:account.invoice.debitnote,filter_debit:0
msgid "Create a draft debit note"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,field_description:account_debitnote.field_account_invoice_debitnote__create_uid
msgid "Created by"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,field_description:account_debitnote.field_account_invoice_debitnote__create_date
msgid "Created on"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,field_description:account_debitnote.field_account_invoice_debitnote__filter_debit
msgid "Debit Method"
msgstr ""
#. module: account_debitnote
#: model:ir.actions.act_window,name:account_debitnote.action_account_invoice_debitnote
#: model:ir.model,name:account_debitnote.model_account_invoice_debitnote
#: model:ir.model.fields,field_description:account_debitnote.field_account_invoice__debit_invoice_id
#: model_terms:ir.ui.view,arch_db:account_debitnote.view_account_invoice_debitnote
msgid "Debit Note"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,field_description:account_debitnote.field_account_invoice_debitnote__date_invoice
msgid "Debit Note Date"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,field_description:account_debitnote.field_account_bank_statement_import_journal_creation__debitnote_sequence_id
#: model:ir.model.fields,field_description:account_debitnote.field_account_journal__debitnote_sequence_id
msgid "Debit Note Entry Sequence"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,field_description:account_debitnote.field_account_invoice__debit_invoice_ids
#: model_terms:ir.ui.view,arch_db:account_debitnote.view_account_invoice_filter
msgid "Debit Notes"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,field_description:account_debitnote.field_account_bank_statement_import_journal_creation__debitnote_sequence_number_next
#: model:ir.model.fields,field_description:account_debitnote.field_account_journal__debitnote_sequence_number_next
msgid "Debit Notes: Next Number"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,field_description:account_debitnote.field_account_bank_statement_import_journal_creation__debitnote_sequence
#: model:ir.model.fields,field_description:account_debitnote.field_account_journal__debitnote_sequence
msgid "Dedicated Debit Note Sequence"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,field_description:account_debitnote.field_account_invoice_debitnote__display_name
msgid "Display Name"
msgstr ""
#. module: account_debitnote
#: model_terms:ir.ui.view,arch_db:account_debitnote.view_account_invoice_filter
msgid "Filter debit note from My Invoice"
msgstr ""
#. module: account_debitnote
#: model_terms:ir.ui.view,arch_db:account_debitnote.view_account_invoice_filter
msgid "Filter invoice from My Invoice"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,field_description:account_debitnote.field_account_invoice_debitnote__id
msgid "ID"
msgstr ""
#. module: account_debitnote
#: model:ir.model,name:account_debitnote.model_account_invoice
msgid "Invoice"
msgstr "Rechnung"
#. module: account_debitnote
#: model_terms:ir.ui.view,arch_db:account_debitnote.view_account_invoice_filter
msgid "Invoices"
msgstr ""
#. module: account_debitnote
#: model:ir.model,name:account_debitnote.model_account_journal
msgid "Journal"
msgstr ""
#. module: account_debitnote
#: model:ir.model,name:account_debitnote.model_account_move
msgid "Journal Entries"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,field_description:account_debitnote.field_account_invoice_debitnote____last_update
msgid "Last Modified on"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,field_description:account_debitnote.field_account_invoice_debitnote__write_uid
msgid "Last Updated by"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,field_description:account_debitnote.field_account_invoice_debitnote__write_date
msgid "Last Updated on"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,help:account_debitnote.field_account_invoice__debit_invoice_ids
msgid "List all debit notes being created by this invoice"
msgstr ""
#. module: account_debitnote
#: code:addons/account_debitnote/models/ir_sequence.py:21
#, python-format
msgid "Please define a sequence for the debit notes"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,field_description:account_debitnote.field_account_invoice_debitnote__description
msgid "Reason"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,help:account_debitnote.field_account_invoice__debit_invoice_id
msgid "Reference to the origin invoice that create this debit note"
msgstr ""
#. module: account_debitnote
#: model:ir.model,name:account_debitnote.model_ir_sequence
msgid "Sequence"
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,help:account_debitnote.field_account_bank_statement_import_journal_creation__debitnote_sequence_number_next
#: model:ir.model.fields,help:account_debitnote.field_account_journal__debitnote_sequence_number_next
msgid "The next sequence number will be used for the next debit note."
msgstr ""
#. module: account_debitnote
#: model:ir.model.fields,help:account_debitnote.field_account_bank_statement_import_journal_creation__debitnote_sequence_id
#: model:ir.model.fields,help:account_debitnote.field_account_journal__debitnote_sequence_id
msgid ""
"This field contains the information related to the numbering of\n"
" the debit note entries of this journal."
msgstr ""
#. module: account_debitnote
#: model_terms:ir.ui.view,arch_db:account_debitnote.view_account_invoice_debitnote
msgid ""
"You will be able to edit and validate this\n"
" debit note directly or keep it draft,\n"
" waiting for the document to be issued by\n"
" your supplier/customer."
msgstr ""
account_debitnote/models/__init__.py
0 → 100644
View file @
43c5fee7
# Copyright 2019 Ecosoft Co., Ltd (http://ecosoft.co.th/)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
from
.
import
account_invoice
from
.
import
account
from
.
import
ir_sequence
from
.
import
account_move
account_debitnote/models/account.py
0 → 100644
View file @
43c5fee7
# Copyright 2019 Ecosoft Co., Ltd (http://ecosoft.co.th/)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
from
odoo
import
models
,
fields
,
api
,
_
class
AccountJournal
(
models
.
Model
):
_inherit
=
"account.journal"
debitnote_sequence_id
=
fields
.
Many2one
(
comodel_name
=
'ir.sequence'
,
string
=
'Debit Note Entry Sequence'
,
help
=
"""This field contains the information related to the numbering of
the debit note entries of this journal."""
,
copy
=
False
)
debitnote_sequence_number_next
=
fields
.
Integer
(
string
=
'Debit Notes: Next Number'
,
help
=
'The next sequence number will be used for the next debit note.'
,
compute
=
'_compute_debitnote_seq_number_next'
,
inverse
=
'_inverse_debitnote_seq_number_next'
,
)
debitnote_sequence
=
fields
.
Boolean
(
string
=
'Dedicated Debit Note Sequence'
,