Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG][WIP] account_payment_multi_deduction #772

Open
wants to merge 38 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
aa8201a
[12.0][ADD] account_payment_multi_deduction
kittiu May 5, 2019
515ac98
[UPD] Update account_payment_multi_deduction.pot
oca-travis Jan 22, 2020
3ba2299
[UPD] README.rst
OCA-git-bot Jan 22, 2020
7c83c35
[IMP] : black, isort
kittiu Jan 27, 2020
4fc628a
[13.0][MIG] account_payment_multi_deduction
kittiu Jan 27, 2020
d0ed61b
[UPD] Update account_payment_multi_deduction.pot
oca-travis Mar 11, 2020
12741c1
[UPD] README.rst
OCA-git-bot Mar 11, 2020
a564764
pre-commit update
OCA-git-bot Mar 14, 2020
b49d94f
[FIX] account_payment_multi_deduction: Add groups_id in view
victoralmau Sep 22, 2020
36135f9
[13.0][IMP] account_payment_multi_deduction, add hook when create ded…
kittiu Oct 3, 2020
42d87ff
account_payment_multi_deduction 13.0.1.0.2
OCA-git-bot Oct 3, 2020
d8741dd
[13.0][IMP] account_payment_multi_deduction, ability to multi deduct …
kittiu Oct 3, 2020
b611f45
[UPD] Update account_payment_multi_deduction.pot
oca-travis Oct 12, 2020
a2b8cfc
account_payment_multi_deduction 13.0.1.1.0
OCA-git-bot Oct 12, 2020
9846dea
[FIX] account_payment_multi_deduction: Proper development_status
pedrobaeza Nov 6, 2020
7821284
[FIX] register payment with multi invoice - Expected singleton
Saran440 Oct 14, 2020
49b5621
[IMP] account_payment_multi_deduction : black, isort, prettier
Saran440 Nov 21, 2020
eb83faf
[14.0][MIG] account_payment_multi_deduction
Saran440 Nov 21, 2020
060a04a
[UPD] Update account_payment_multi_deduction.pot
oca-travis Jul 19, 2021
77cd2ee
[UPD] README.rst
OCA-git-bot Jul 19, 2021
5c20c1f
[FIX] account_payment_multi_deduction: bump version
gurneyalex Sep 1, 2021
9e512f3
[FIX] not overwrite context on register payment multi
Saran440 Oct 26, 2021
e0e8a5f
account_payment_multi_deduction 14.0.1.0.2
OCA-git-bot Nov 7, 2021
030e0e9
[FIX] account_payment_multi_deduct: edit register payment view
ps-tubtim Dec 8, 2021
050cb2d
account_payment_multi_deduction 14.0.1.1.0
OCA-git-bot Mar 18, 2022
536693d
[IMP] update dotfiles [ci skip]
OCA-git-bot Mar 30, 2022
dbef61d
[15.0][MIG] account_payment_multi_deduction
Saran440 Nov 25, 2022
78fabeb
[ENH] add analytic on payment register wizard
Saran440 Mar 4, 2022
8c0c23f
[FIX] account_payment_multi_deduction - allow edit move multi write-off
Saran440 Mar 14, 2023
96015d8
[UPD] Update account_payment_multi_deduction.pot
May 1, 2023
4deceda
[UPD] README.rst
OCA-git-bot May 1, 2023
c644ced
[FIX] account_payment_multi_deduction: can't edit payment draft
Saran440 Sep 28, 2023
e9844b1
[MIG] account_payment_multi_deduction: Migration to 16.0
TITUS6304658 Jun 15, 2023
8059827
[UPD] Update account_payment_multi_deduction.pot
Dec 1, 2023
630c0c4
Added translation using Weblate (Italian)
mymage Feb 21, 2024
172f480
Translated using Weblate (Italian)
mymage Nov 6, 2024
e2b5604
[IMP] account_payment_multi_deduction: pre-commit auto fixes
Saran440 Nov 22, 2024
0cedc88
[MIG] account_payment_multi_deduction: Migration to 18.0
Saran440 Nov 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
124 changes: 124 additions & 0 deletions account_payment_multi_deduction/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
========================================
Payment Register with Multiple Deduction
========================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:1bca9470543545949e88fa8c4196b434fccd4340f7d8f2c30f54d224bf0f27f0
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
:target: https://odoo-community.org/page/development-status
:alt: Alpha
.. |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--payment-lightgray.png?logo=github
:target: https://github.com/OCA/account-payment/tree/18.0/account_payment_multi_deduction
:alt: OCA/account-payment
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/account-payment-18-0/account-payment-18-0-account_payment_multi_deduction
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/account-payment&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module extend invoice(s)'s register payment feature, from "Mark
invoice as fully paid" with a single writeoff amount, to "Mark invoice
as fully paid (multi deduct)" which allow multiple deduction amounts.

**Note:** We use the word "Deduction", as the diff amount can be
anything not only to writeoff.

.. IMPORTANT::
This is an alpha version, the data model and design can change at any time without warning.
Only for development or testing purpose, do not use in production.
`More details on development status <https://odoo-community.org/page/development-status>`_

**Table of contents**

.. contents::
:local:

Usage
=====

- Select 1 invoice, either on form view or tree view
- Click to Register Payment, a payment wizard will open
- Reduce the amount to pay and payment difference amount will appear
- Choose "Mark invoice as fully paid (multi deduct)", and a new
deduction table will appear
- Add deduction amount, make sure total deduction amount is equal to the
payment difference
- Click validate to finish the payment

Note: this feature only works for 1 invoice payment

Changelog
=========

13.0.1.0.0 (2020-01-27)
-----------------------

- Migration to version 13
- Following how Odoo 13 works with deduction, the multiple deduction
feature only works for one invoice at a time.

12.0.1.0.0 (2019-05-05)
-----------------------

- Start of the history

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-payment/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/account-payment/issues/new?body=module:%20account_payment_multi_deduction%0Aversion:%2018.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
-------

* Ecosoft

Contributors
------------

- Kitti Upariphutthiphong. <[email protected]> (http://ecosoft.co.th)
- Saran Lim. <[email protected]>

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.

.. |maintainer-kittiu| image:: https://github.com/kittiu.png?size=40px
:target: https://github.com/kittiu
:alt: kittiu

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-kittiu|

This module is part of the `OCA/account-payment <https://github.com/OCA/account-payment/tree/18.0/account_payment_multi_deduction>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions account_payment_multi_deduction/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)
from . import models
from . import wizard
19 changes: 19 additions & 0 deletions account_payment_multi_deduction/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright 2019 Ecosoft Co., Ltd (http://ecosoft.co.th/)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)

{
"name": "Payment Register with Multiple Deduction",
"version": "18.0.1.0.0",
"author": "Ecosoft, Odoo Community Association (OCA)",
"license": "AGPL-3",
"website": "https://github.com/OCA/account-payment",
"category": "Accounting",
"depends": ["account"],
"data": [
"security/ir.model.access.csv",
"wizard/account_payment_register_views.xml",
],
"installable": True,
"development_status": "Alpha",
"maintainers": ["kittiu"],
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_payment_multi_deduction
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.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_payment_multi_deduction
#: model:ir.model.fields,field_description:account_payment_multi_deduction.field_account_payment_deduction__account_id
msgid "Account"
msgstr ""

#. module: account_payment_multi_deduction
#: model:ir.model.fields,field_description:account_payment_multi_deduction.field_account_payment_deduction__analytic_distribution
#: model:ir.model.fields,field_description:account_payment_multi_deduction.field_account_payment_register__analytic_distribution
msgid "Analytic"
msgstr ""

#. module: account_payment_multi_deduction
#: model:ir.model.fields,field_description:account_payment_multi_deduction.field_account_payment_deduction__analytic_distribution_search
#: model:ir.model.fields,field_description:account_payment_multi_deduction.field_account_payment_register__analytic_distribution_search
msgid "Analytic Distribution Search"
msgstr ""

#. module: account_payment_multi_deduction
#: model:ir.model.fields,field_description:account_payment_multi_deduction.field_account_payment_deduction__analytic_precision
#: model:ir.model.fields,field_description:account_payment_multi_deduction.field_account_payment_register__analytic_precision
msgid "Analytic Precision"
msgstr ""

#. module: account_payment_multi_deduction
#: model:ir.model.fields,field_description:account_payment_multi_deduction.field_account_payment_deduction__create_uid
msgid "Created by"
msgstr ""

#. module: account_payment_multi_deduction
#: model:ir.model.fields,field_description:account_payment_multi_deduction.field_account_payment_deduction__create_date
msgid "Created on"
msgstr ""

#. module: account_payment_multi_deduction
#: model:ir.model.fields,field_description:account_payment_multi_deduction.field_account_payment_deduction__currency_id
msgid "Currency"
msgstr ""

#. module: account_payment_multi_deduction
#: model:ir.model.fields,field_description:account_payment_multi_deduction.field_account_payment_register__deduct_analytic_distribution
msgid "Deduct Analytic Distribution"
msgstr ""

#. module: account_payment_multi_deduction
#: model:ir.model.fields,field_description:account_payment_multi_deduction.field_account_payment_deduction__amount
msgid "Deduction Amount"
msgstr ""

#. module: account_payment_multi_deduction
#: model:ir.model.fields,field_description:account_payment_multi_deduction.field_account_payment_register__deduction_ids
msgid "Deductions"
msgstr ""

#. module: account_payment_multi_deduction
#: model:ir.model.fields,field_description:account_payment_multi_deduction.field_account_payment_deduction__display_name
msgid "Display Name"
msgstr ""

#. module: account_payment_multi_deduction
#: model:ir.model.fields,field_description:account_payment_multi_deduction.field_account_payment_deduction__id
msgid "ID"
msgstr ""

#. module: account_payment_multi_deduction
#: model:ir.model.fields,field_description:account_payment_multi_deduction.field_account_payment__is_multi_deduction
msgid "Is Multi Deduction"
msgstr ""

#. module: account_payment_multi_deduction
#. odoo-python
#: code:addons/account_payment_multi_deduction/wizard/account_payment_deduction.py:0
#, python-format
msgid "Keep open"
msgstr ""

#. module: account_payment_multi_deduction
#: model:ir.model.fields,help:account_payment_multi_deduction.field_account_payment_deduction__is_open
msgid "Keep this line open"
msgstr ""

#. module: account_payment_multi_deduction
#: model:ir.model.fields,field_description:account_payment_multi_deduction.field_account_payment_deduction__name
msgid "Label"
msgstr ""

#. module: account_payment_multi_deduction
#: model:ir.model.fields,field_description:account_payment_multi_deduction.field_account_payment_deduction____last_update
msgid "Last Modified on"
msgstr ""

#. module: account_payment_multi_deduction
#: model:ir.model.fields,field_description:account_payment_multi_deduction.field_account_payment_deduction__write_uid
msgid "Last Updated by"
msgstr ""

#. module: account_payment_multi_deduction
#: model:ir.model.fields,field_description:account_payment_multi_deduction.field_account_payment_deduction__write_date
msgid "Last Updated on"
msgstr ""

#. module: account_payment_multi_deduction
#: model:ir.model.fields.selection,name:account_payment_multi_deduction.selection__account_payment_register__payment_difference_handling__reconcile_multi_deduct
msgid "Mark invoice as fully paid (multi deduct)"
msgstr ""

#. module: account_payment_multi_deduction
#: model:ir.model.fields,field_description:account_payment_multi_deduction.field_account_payment_deduction__is_open
msgid "Open"
msgstr ""

#. module: account_payment_multi_deduction
#: model:ir.model.fields,field_description:account_payment_multi_deduction.field_account_payment_deduction__payment_id
msgid "Payment"
msgstr ""

#. module: account_payment_multi_deduction
#: model:ir.model,name:account_payment_multi_deduction.model_account_payment_deduction
msgid "Payment Deduction"
msgstr ""

#. module: account_payment_multi_deduction
#: model:ir.model.fields,field_description:account_payment_multi_deduction.field_account_payment_register__payment_difference_handling
msgid "Payment Difference Handling"
msgstr ""

#. module: account_payment_multi_deduction
#: model:ir.model,name:account_payment_multi_deduction.model_account_payment
msgid "Payments"
msgstr ""

#. module: account_payment_multi_deduction
#: model:ir.model,name:account_payment_multi_deduction.model_account_payment_register
msgid "Register Payment"
msgstr ""

#. module: account_payment_multi_deduction
#: model:ir.model.fields,field_description:account_payment_multi_deduction.field_account_payment_register__deduct_residual
msgid "Remainings"
msgstr ""

#. module: account_payment_multi_deduction
#: model:ir.model.fields,help:account_payment_multi_deduction.field_account_payment_register__deduction_ids
msgid "Sum of deduction amount(s) must equal to the payment difference"
msgstr ""

#. module: account_payment_multi_deduction
#: model:ir.model.fields,help:account_payment_multi_deduction.field_account_payment_deduction__currency_id
msgid "The payment's currency."
msgstr ""

#. module: account_payment_multi_deduction
#. odoo-python
#: code:addons/account_payment_multi_deduction/wizard/account_payment_register.py:0
#, python-format
msgid "The total deduction should be %s"
msgstr ""

#. module: account_payment_multi_deduction
#: model_terms:ir.ui.view,arch_db:account_payment_multi_deduction.view_account_payment_register_form
msgid "Total Deduction"
msgstr ""
Loading
Loading