Skip to content

Commit

Permalink
[3337][ADD] purchase_deposit (#45)
Browse files Browse the repository at this point in the history
* [3337][ADD] purchase_deposit
* [3337][UPD] purchase_deposit: updates with recent code in OCA repo & add translations
  • Loading branch information
yostashiro authored Dec 7, 2023
1 parent c5ff4bb commit 69a702c
Show file tree
Hide file tree
Showing 29 changed files with 2,550 additions and 0 deletions.
93 changes: 93 additions & 0 deletions purchase_deposit/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
================
Purchase Deposit
================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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%2Fpurchase--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/purchase-workflow/tree/16.0/purchase_deposit
:alt: OCA/purchase-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/purchase-workflow-16-0/purchase-workflow-16-0-purchase_deposit
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/142/16.0
:alt: Try me on Runbot

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

This module allow purchase order to register deposit similar to that in sales order

**Table of contents**

.. contents::
:local:

Usage
=====

When purchase order is confirmed, a new button "Register Deposit" will appear.
Normally, deposit will be used to create the 1st bill (as deposit).

#. On confirmed purchase order, click Register Deposit button, wizard will open
#. 2 type of deposit bill can be create 1) Down Payment (percentage) 2) Deposit Payment (fixed amount)
#. Fill in the value and click Create bill or just create deposit.

As deposit is created, when user click button "Create Bill" again in purchase order,
the Vendor Bill will be created with deposit amount deducted.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/purchase-workflow/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/purchase-workflow/issues/new?body=module:%20purchase_deposit%0Aversion:%2016.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
~~~~~~~

* Elico Corp
* Ecosoft

Contributors
~~~~~~~~~~~~

* Dominique K. <dominique.k@elico-corp.com.sg>
* Kitti Upariphutthiphong <kittiu@ecosoft.co.th>
* Rattapong Chokmasermkul <rattapongc@ecosoft.co.th>
* Joan Mateu <joan.mateu@forgeflow.com>
* `Quartile <https://www.quartile.co>`__:

* Aung Ko Ko Lin

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/purchase-workflow <https://github.com/OCA/purchase-workflow/tree/16.0/purchase_deposit>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
6 changes: 6 additions & 0 deletions purchase_deposit/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright 2019 Elico Corp, Dominique K. <dominique.k@elico-corp.com.sg>
# Copyright 2019 Ecosoft Co., Ltd., Kitti U. <kittiu@ecosoft.co.th>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from . import models
from . import wizard
22 changes: 22 additions & 0 deletions purchase_deposit/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2019 Elico Corp, Dominique K. <dominique.k@elico-corp.com.sg>
# Copyright 2019 Ecosoft Co., Ltd., Kitti U. <kittiu@ecosoft.co.th>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

{
"name": "Purchase Deposit",
"version": "16.0.1.0.0",
"summary": "Option to create deposit from purchase order",
"author": "Elico Corp, Ecosoft, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/purchase-workflow",
"category": "Purchase Management",
"license": "AGPL-3",
"depends": ["purchase"],
"data": [
"security/ir.model.access.csv",
"wizard/purchase_make_invoice_advance_views.xml",
"views/res_config_settings_views.xml",
"views/purchase_view.xml",
],
"installable": True,
"auto_install": False,
}
251 changes: 251 additions & 0 deletions purchase_deposit/i18n/arp.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,251 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_deposit
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: arp\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"

#. module: purchase_deposit
#: model_terms:ir.ui.view,arch_db:purchase_deposit.view_purchase_advance_payment_inv
msgid ""
"<span attrs=\"{'invisible': [('advance_payment_method', '!=', "
"'percentage')]}\" class=\"oe_inline\">%</span>"
msgstr ""

#. module: purchase_deposit
#: model:ir.model.fields,help:purchase_deposit.field_purchase_advance_payment_inv__deposit_account_id
msgid "Account used for deposits"
msgstr ""

#. module: purchase_deposit
#: code:addons/purchase_deposit/wizard/purchase_make_invoice_advance.py:0
#, python-format
msgid "Advance: %s"
msgstr ""

#. module: purchase_deposit
#: model_terms:ir.ui.view,arch_db:purchase_deposit.view_purchase_advance_payment_inv
msgid "Cancel"
msgstr ""

#. module: purchase_deposit
#: model_terms:ir.ui.view,arch_db:purchase_deposit.view_purchase_advance_payment_inv
msgid "Create and View bills"
msgstr ""

#. module: purchase_deposit
#: model_terms:ir.ui.view,arch_db:purchase_deposit.view_purchase_advance_payment_inv
msgid "Create deposit"
msgstr ""

#. module: purchase_deposit
#: model:ir.model.fields,field_description:purchase_deposit.field_purchase_advance_payment_inv__create_uid
msgid "Created by"
msgstr ""

#. module: purchase_deposit
#: model:ir.model.fields,field_description:purchase_deposit.field_purchase_advance_payment_inv__create_date
msgid "Created on"
msgstr ""

#. module: purchase_deposit
#: model:ir.model.fields,help:purchase_deposit.field_res_config_settings__default_purchase_deposit_product_id
msgid "Default product used for payment advances."
msgstr ""

#. module: purchase_deposit
#: code:addons/purchase_deposit/wizard/purchase_make_invoice_advance.py:0
#, python-format
msgid "Deposit Payment"
msgstr ""

#. module: purchase_deposit
#: model:ir.model.fields,field_description:purchase_deposit.field_purchase_advance_payment_inv__amount
msgid "Deposit Payment Amount"
msgstr ""

#. module: purchase_deposit
#: model:ir.model.fields,field_description:purchase_deposit.field_purchase_advance_payment_inv__purchase_deposit_product_id
msgid "Deposit Payment Product"
msgstr ""

#. module: purchase_deposit
#: model_terms:ir.ui.view,arch_db:purchase_deposit.res_config_settings_view_form_purchase
msgid "Deposit Payments"
msgstr ""

#. module: purchase_deposit
#: model:ir.model.fields.selection,name:purchase_deposit.selection__purchase_advance_payment_inv__advance_payment_method__fixed
msgid "Deposit payment (fixed amount)"
msgstr ""

#. module: purchase_deposit
#: model:ir.model.fields,help:purchase_deposit.field_purchase_order_line__is_deposit
msgid ""
"Deposit payments are made when creating bills from a purhcase order. They "
"are not copied when duplicating a purchase order."
msgstr ""

#. module: purchase_deposit
#: model:ir.model.fields,field_description:purchase_deposit.field_purchase_advance_payment_inv__display_name
msgid "Display Name"
msgstr ""

#. module: purchase_deposit
#: model:ir.model.fields.selection,name:purchase_deposit.selection__purchase_advance_payment_inv__advance_payment_method__percentage
msgid "Down payment (percentage)"
msgstr ""

#. module: purchase_deposit
#: model:ir.model.fields,field_description:purchase_deposit.field_purchase_advance_payment_inv__deposit_account_id
msgid "Expense Account"
msgstr ""

#. module: purchase_deposit
#: model:ir.model.fields,field_description:purchase_deposit.field_purchase_advance_payment_inv__id
msgid "ID"
msgstr ""

#. module: purchase_deposit
#: model:ir.actions.act_window,name:purchase_deposit.action_view_purchase_advance_payment_inv
msgid "Invoice Order"
msgstr ""

#. module: purchase_deposit
#: model_terms:ir.ui.view,arch_db:purchase_deposit.view_purchase_advance_payment_inv
msgid "Invoice Purchases Order"
msgstr ""

#. module: purchase_deposit
#: model_terms:ir.ui.view,arch_db:purchase_deposit.view_purchase_advance_payment_inv
msgid ""
"Invoices will be created in draft so that you can review them before "
"validation."
msgstr ""

#. module: purchase_deposit
#: model:ir.model.fields,field_description:purchase_deposit.field_purchase_order_line__is_deposit
msgid "Is a deposit payment"
msgstr ""

#. module: purchase_deposit
#: model:ir.model.fields,field_description:purchase_deposit.field_purchase_advance_payment_inv____last_update
msgid "Last Modified on"
msgstr ""

#. module: purchase_deposit
#: model:ir.model.fields,field_description:purchase_deposit.field_purchase_advance_payment_inv__write_uid
msgid "Last Updated by"
msgstr ""

#. module: purchase_deposit
#: model:ir.model.fields,field_description:purchase_deposit.field_purchase_advance_payment_inv__write_date
msgid "Last Updated on"
msgstr ""

#. module: purchase_deposit
#: model:ir.model,name:purchase_deposit.model_res_config_settings
msgid "Procurement purchase grouping settings"
msgstr ""

#. module: purchase_deposit
#: model_terms:ir.ui.view,arch_db:purchase_deposit.res_config_settings_view_form_purchase
msgid "Product used for deposit payments"
msgstr ""

#. module: purchase_deposit
#: model:ir.model,name:purchase_deposit.model_purchase_advance_payment_inv
msgid "Purchase Advance Payment Invoice"
msgstr ""

#. module: purchase_deposit
#: model:ir.model.fields,field_description:purchase_deposit.field_res_config_settings__default_purchase_deposit_product_id
msgid "Purchase Deposit Product"
msgstr ""

#. module: purchase_deposit
#: model:ir.model,name:purchase_deposit.model_purchase_order
msgid "Purchase Order"
msgstr ""

#. module: purchase_deposit
#: model:ir.model,name:purchase_deposit.model_purchase_order_line
msgid "Purchase Order Line"
msgstr ""

#. module: purchase_deposit
#: model_terms:ir.ui.view,arch_db:purchase_deposit.view_purchase_order_form_inherit
msgid "Register Deposit"
msgstr ""

#. module: purchase_deposit
#: model:ir.model.fields,help:purchase_deposit.field_purchase_advance_payment_inv__deposit_taxes_id
msgid "Taxes used for deposits"
msgstr ""

#. module: purchase_deposit
#: model:ir.model.fields,help:purchase_deposit.field_purchase_advance_payment_inv__amount
msgid "The amount to be invoiced in advance, taxes excluded."
msgstr ""

#. module: purchase_deposit
#: code:addons/purchase_deposit/wizard/purchase_make_invoice_advance.py:0
#, python-format
msgid "The percentage of the deposit must be not over 100"
msgstr ""

#. module: purchase_deposit
#: code:addons/purchase_deposit/wizard/purchase_make_invoice_advance.py:0
#, python-format
msgid ""
"The product used to invoice a down payment should be of type \"Service\". "
"Please use another product or update this product."
msgstr ""

#. module: purchase_deposit
#: code:addons/purchase_deposit/wizard/purchase_make_invoice_advance.py:0
#, python-format
msgid ""
"The product used to invoice a down payment should have an invoice policy set"
" to \"Ordered quantities\". Please update your deposit product to be able to"
" create a deposit invoice."
msgstr ""

#. module: purchase_deposit
#: code:addons/purchase_deposit/wizard/purchase_make_invoice_advance.py:0
#, python-format
msgid "The value of the deposit must be positive."
msgstr ""

#. module: purchase_deposit
#: code:addons/purchase_deposit/wizard/purchase_make_invoice_advance.py:0
#, python-format
msgid ""
"There is no purchase account defined for this product: %s.\n"
"You may have to install a chart of account from Accounting app, settings menu."
msgstr ""

#. module: purchase_deposit
#: code:addons/purchase_deposit/wizard/purchase_make_invoice_advance.py:0
#, python-format
msgid "This action is allowed only in Purchase Order sate"
msgstr ""

#. module: purchase_deposit
#: model:ir.model.fields,field_description:purchase_deposit.field_purchase_advance_payment_inv__deposit_taxes_id
msgid "Vendor Taxes"
msgstr ""

#. module: purchase_deposit
#: model:ir.model.fields,field_description:purchase_deposit.field_purchase_advance_payment_inv__advance_payment_method
msgid "What do you want to invoice?"
msgstr ""
Loading

0 comments on commit 69a702c

Please sign in to comment.