[FIX] account_credit_control: Missing read access on model credit.control.policy for group_account_user

This commit is contained in:
Raf Ven
2018-12-26 10:40:20 +01:00
committed by mreficent
parent fea2442d38
commit edaf377fdd
5 changed files with 9 additions and 8 deletions

View File

@@ -68,6 +68,7 @@ Contributors
* Akim Juillerat (Camptocamp) <akim.juillerat@camptocamp.com>
* Vicent Cubells (Tecnativa) <vicent.cubells@tecnativa.com>
* Kinner Vachhani (Access Bookings Ltd) <kin.vachhani@gmail.com>
* Raf Ven <raf.ven@dynapps.be>
Maintainer
----------

View File

@@ -3,7 +3,7 @@
# Copyright 2018 Access Bookings Ltd (https://accessbookings.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{'name': 'Account Credit Control',
'version': '11.0.1.0.1',
'version': '11.0.1.0.2',
'author': "Camptocamp,"
"Odoo Community Association (OCA),"
"Okia,"

View File

@@ -10,7 +10,8 @@ logger = logging.getLogger(__name__)
class CreditControlLine(models.Model):
""" A credit control line describes an amount due by a customer for a due date.
"""A credit control line describes an amount due by a customer
for a due date.
A line is created once the due date of the payment is exceeded.
It is created in "draft" and some actions are available (send by email,

View File

@@ -140,8 +140,7 @@ class CreditControlRun(models.Model):
else:
report += _(
"Policy \"<b>%s</b>\" has not generated any "
"Credit Control Lines.<br/>" % policy.name
)
"Credit Control Lines.<br/>") % policy.name
vals = {'state': 'done',
'report': report,

View File

@@ -4,13 +4,14 @@
<field name="name">res.config.settings.view.form.inherit.credit.control</field>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="account.res_config_settings_view_form"/>
<field name="groups_id"
eval="[(4, ref('account_credit_control.group_account_credit_control_manager'))]"/>
<field name="arch" type="xml">
<xpath expr="//div[@id='invoicing_settings']" position="after">
<h2>Credit Control</h2>
<div class="row mt16 o_settings_container">
<div class="row col-md-6 o_setting_box" id="credit_control_policy"
title="This allows credit control team to chase overdue payments with different means"
groups="account.group_account_user">
title="This allows credit control team to chase overdue payments with different means">
<div class="o_setting_left_pane"/>
<div class="o_setting_right_pane">
<label string="Default Policy"/>
@@ -23,8 +24,7 @@
</div>
</div>
</div>
<div class="row col-md-6 o_setting_box" id="credit_control_tolerance"
groups="account.group_account_user">
<div class="row col-md-6 o_setting_box" id="credit_control_tolerance">
<div class="o_setting_left_pane"/>
<div class="o_setting_right_pane">
<label string="Default Credit Tolerance"/>