diff --git a/account_credit_control_usability/__init__.py b/account_credit_control_usability/__init__.py new file mode 100644 index 0000000..072b1e3 --- /dev/null +++ b/account_credit_control_usability/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import account_credit_control diff --git a/account_credit_control_usability/__openerp__.py b/account_credit_control_usability/__openerp__.py new file mode 100644 index 0000000..6b1d23d --- /dev/null +++ b/account_credit_control_usability/__openerp__.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Account Credit Control Usability module for Odoo +# Copyright (C) 2016 Akretion (http://www.akretion.com) +# @author Alexis de Lattre +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## + + +{ + 'name': 'Account Credit Control Usability', + 'version': '0.1', + 'category': 'Accounting & Finance', + 'license': 'AGPL-3', + 'summary': 'Small usability enhancements in account_credit_control module', + 'description': """ +Account Credit Control Usability +================================ + +The usability enhancements include: + +* add phone call in the list of channels +* hide some fields + +This module has been written by Alexis de Lattre from Akretion . + """, + 'author': 'Akretion', + 'website': 'http://www.akretion.com', + 'depends': ['account_credit_control'], + 'data': ['account_credit_control_view.xml'], + 'installable': True, +} diff --git a/account_credit_control_usability/account_credit_control.py b/account_credit_control_usability/account_credit_control.py new file mode 100644 index 0000000..27fc9a0 --- /dev/null +++ b/account_credit_control_usability/account_credit_control.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Account Credit Control Usability module for Odoo +# Copyright (C) 2016 Akretion (http://www.akretion.com) +# @author Alexis de Lattre +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## + +from openerp import models, fields + + +class CreditControlPolicyLevel(models.Model): + _inherit = "credit.control.policy.level" + _rec_name = 'internal_name' + + channel = fields.Selection(selection_add=[('phone', 'Phone call')]) + name = fields.Char( + string='Subject', + help="Will be displayed in the subject of the emails and in " + "the letters") + internal_name = fields.Char(string='Internal Name', required=True) + + +class CreditControlLine(models.Model): + _inherit = "credit.control.line" + + channel = fields.Selection(selection_add=[('phone', 'Phone call')]) diff --git a/account_credit_control_usability/account_credit_control_view.xml b/account_credit_control_usability/account_credit_control_view.xml new file mode 100644 index 0000000..2bf4a5f --- /dev/null +++ b/account_credit_control_usability/account_credit_control_view.xml @@ -0,0 +1,60 @@ + + + + + + credit_control_usability.credit_control_line_tree + credit.control.line + + + + 1 + + + 1 + + + + + + credit_control_usability.credit.control.policy.form + credit.control.policy + + + + + + + + + + + + + + + + + credit_control_usability.credit.control.policy.level.form + credit.control.policy.level + + + + + + + + + + credit_control_usability.credit.control.policy.level.tree + credit.control.policy.level + + + + + + + + + + diff --git a/account_credit_control_usability/account_view.xml b/account_credit_control_usability/account_view.xml new file mode 100644 index 0000000..a7815d2 --- /dev/null +++ b/account_credit_control_usability/account_view.xml @@ -0,0 +1,150 @@ + + + + + + + + + account_usability.supplier.invoice.form + account.invoice + + + + selection + + + + + + account_usability.invoice.form + account.invoice + + + + selection + + + + + + account_usability.invoice_tree + account.invoice + + + + + + + + + + account_usability.invoice.search + account.invoice + + + + + + + + + + + 200 + + + + + 200 + + + + account_usability.account_move_line_search + account.move.line + + + + + + + + + + account_usability.account_move_line_form + account.move.line + + + + + + + + + + + account_usability.account_move_line_tree + account.move.line + + + + + + + + + + account_usability.account_account.tree + account.account + + + + + + + + + + + account_usability.account_type_tree + account.account.type + + + + + + + + + + usability.res.partner.journal.items.button + res.partner + + + + + + + Receivable Account + + + + + +