-
-
Notifications
You must be signed in to change notification settings - Fork 402
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
296 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
========================= | ||
Accounting Payment Access | ||
========================= | ||
|
||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! 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%2Fbank--payment-lightgray.png?logo=github | ||
:target: https://github.com/OCA/bank-payment/tree/11.0/account_voucher_killer | ||
:alt: OCA/bank-payment | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/bank-payment-11-0/bank-payment-11-0-account_voucher_killer | ||
:alt: Translate me on Weblate | ||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png | ||
:target: https://runbot.odoo-community.org/runbot/97/11.0 | ||
:alt: Try me on Runbot | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This add-on disables the "Register Payment" button on | ||
customer invoices and the "Pay" button on supplier invoices. | ||
|
||
It also disables the payments-related menus entries such as | ||
"Customer Payments", "Supplier Payments" | ||
|
||
More precisely, this module adds a group "Payments for Invoices" | ||
and only users in that group see these buttons and menus. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Installation | ||
============ | ||
|
||
This module depends on : | ||
|
||
* account | ||
|
||
This modules are parts of the OCA/bank-payment suite. | ||
|
||
Configuration | ||
============= | ||
|
||
Use new group Payment for Invoices to allow make payments. | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/bank-payment/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/bank-payment/issues/new?body=module:%20account_voucher_killer%0Aversion:%2011.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 | ||
~~~~~~~ | ||
|
||
* Camptocamp | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* Nicolas Bessi (camptocamp) | ||
* Stéphane Bidoul <stephane.bidoul@acsone.eu> | ||
* Anthony Muschang <anthony.muschang@acsone.eu> | ||
* Yannick Vaucher | ||
* Cristian Salamea <cs@prisehub.com> | ||
* Andrea Stirpe <a.stirpe@onestein.nl> | ||
|
||
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/bank-payment <https://github.com/OCA/bank-payment/tree/11.0/account_voucher_killer>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright 2013 Camptocamp SA (http://www.camptocamp.com) | ||
# @author Nicolas Bessi | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
{'name': 'Accounting Payment Access', | ||
'summary': 'Prevent the usage of payments from invoices', | ||
'version': '11.0.1.0.0', | ||
'category': 'other', | ||
'author': 'Camptocamp,Odoo Community Association (OCA)', | ||
'website': 'https://github.com/OCA/bank-payment', | ||
'license': 'AGPL-3', | ||
'depends': ['account'], | ||
'data': [ | ||
'security/invoice_data.xml', | ||
'view/invoice_view.xml' | ||
], | ||
'installable': True, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_voucher_killer | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 10.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_voucher_killer | ||
#: model:res.groups,name:account_voucher_killer.invoice_payment_user | ||
msgid "Payments for Invoices" | ||
msgstr "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_voucher_killer | ||
# | ||
# Translators: | ||
# FIRST AUTHOR <EMAIL@ADDRESS>, 2014 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: bank-payment (8.0)\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2016-04-08 00:46+0000\n" | ||
"PO-Revision-Date: 2016-04-06 00:16+0000\n" | ||
"Last-Translator: OCA Transbot <transbot@odoo-community.org>\n" | ||
"Language-Team: Spanish (http://www.transifex.com/oca/OCA-bank-payment-8-0/" | ||
"language/es/)\n" | ||
"Language: es\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: account_voucher_killer | ||
#: model:res.groups,name:account_voucher_killer.invoice_payment_user | ||
msgid "Payments for Invoices" | ||
msgstr "" | ||
|
||
#~ msgid "Use voucher in Invoices" | ||
#~ msgstr "Usar resguardos en facturas" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_voucher_killer | ||
# | ||
# Translators: | ||
# danimaribeiro <danimaribeiro@gmail.com>, 2016 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: bank-payment (8.0)\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2016-04-08 00:46+0000\n" | ||
"PO-Revision-Date: 2016-04-06 01:03+0000\n" | ||
"Last-Translator: danimaribeiro <danimaribeiro@gmail.com>\n" | ||
"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-bank-" | ||
"payment-8-0/language/pt_BR/)\n" | ||
"Language: pt_BR\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: account_voucher_killer | ||
#: model:res.groups,name:account_voucher_killer.invoice_payment_user | ||
msgid "Payments for Invoices" | ||
msgstr "" | ||
|
||
#~ msgid "Use voucher in Invoices" | ||
#~ msgstr "Usar recibos nas faturas" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * account_voucher_killer | ||
# | ||
# Translators: | ||
# Matjaž Mozetič <m.mozetic@matmoz.si>, 2016 | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: bank-payment (8.0)\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2016-04-08 00:46+0000\n" | ||
"PO-Revision-Date: 2016-04-06 04:53+0000\n" | ||
"Last-Translator: Matjaž Mozetič <m.mozetic@matmoz.si>\n" | ||
"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-bank-payment-8-0/" | ||
"language/sl/)\n" | ||
"Language: sl\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n" | ||
"%100==4 ? 2 : 3);\n" | ||
|
||
#. module: account_voucher_killer | ||
#: model:res.groups,name:account_voucher_killer.invoice_payment_user | ||
msgid "Payments for Invoices" | ||
msgstr "" | ||
|
||
#~ msgid "Use voucher in Invoices" | ||
#~ msgstr "Uporaba vavčerja pri računih" | ||
|
||
#~ msgid "account_voucher_killer.invoice_voucher_user" | ||
#~ msgstr "account_voucher_killer.invoice_voucher_user" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Use new group "Payment for Invoices" to allow make payments. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
* Nicolas Bessi (camptocamp) | ||
* Stéphane Bidoul <stephane.bidoul@acsone.eu> | ||
* Anthony Muschang <anthony.muschang@acsone.eu> | ||
* Yannick Vaucher | ||
* Cristian Salamea <cs@prisehub.com> | ||
* Andrea Stirpe <a.stirpe@onestein.nl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
This add-on disables the "Register Payment" button on | ||
customer invoices and vendor bills. | ||
|
||
It also disables the payments-related menus entries such as | ||
"Customer Payments", "Supplier Payments" | ||
|
||
More precisely, this module adds a group "Payments for Invoices" | ||
and only users in that group see these buttons and menus. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
This module depends on : | ||
|
||
* account | ||
|
||
This modules are parts of the OCA/bank-payment suite. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
<record id="invoice_payment_user" model="res.groups"> | ||
<field name="name">Payments for Invoices</field> | ||
</record> | ||
</odoo> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
|
||
<record id="invoice_payment_group_customer_invoice" model="ir.ui.view"> | ||
<field name="name">Hide payment in invoice</field> | ||
<field name="model">account.invoice</field> | ||
<field name="inherit_id" ref="account.invoice_form" /> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//button[@name='%(account.action_account_invoice_payment)d']" | ||
position="attributes"> | ||
<attribute name="groups">account_voucher_killer.invoice_payment_user</attribute> | ||
</xpath> | ||
<xpath expr="//button[@name='%(account.action_account_invoice_payment)d']" | ||
position="attributes"> | ||
<attribute name="groups">account_voucher_killer.invoice_payment_user</attribute> | ||
</xpath> | ||
</field> | ||
</record> | ||
|
||
<record id="invoice_payment_group_supplier_invoice" model="ir.ui.view"> | ||
<field name="name">Hide Payment in supplier invoice</field> | ||
<field name="model">account.invoice</field> | ||
<field name="inherit_id" ref="account.invoice_supplier_form" /> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//button[@name='%(account.action_account_invoice_payment)d']" | ||
position="attributes"> | ||
<attribute name="groups">account_voucher_killer.invoice_payment_user</attribute> | ||
</xpath> | ||
</field> | ||
</record> | ||
|
||
<record id="account.menu_action_account_payments_receivable" model="ir.ui.menu"> | ||
<field name="groups_id" eval="[(6,0,[ref('account_voucher_killer.invoice_payment_user')])]"/> | ||
</record> | ||
|
||
<record id="account.menu_action_account_payments_payable" model="ir.ui.menu"> | ||
<field name="groups_id" eval="[(6,0,[ref('account_voucher_killer.invoice_payment_user')])]"/> | ||
</record> | ||
|
||
<record id="account.action_account_payment_from_invoices" model="ir.actions.act_window"> | ||
<field name="groups_id" eval="[(6,0,[ref('account_voucher_killer.invoice_payment_user')])]"/> | ||
</record> | ||
|
||
</odoo> |