[16.0] contract: Show discount lines for users with the group 'Discount on lines'

This commit is contained in:
fkantelberg
2024-02-09 13:59:46 +01:00
committed by Christopher Rogos
parent f5edbe9fe5
commit 8c396c4c39
7 changed files with 17 additions and 8 deletions

View File

@@ -7,7 +7,7 @@ Recurring - Contracts Management
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:2c69a3c771b2b26e58f9929f82771f29784e3863288d24e9676e6f8896304ebc
!! source digest: sha256:6acdfddf18d7472f33a0023c56017cad5683f2942c3b7fe09c8a8ff3bd7dc039
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png

View File

@@ -11,7 +11,7 @@
{
"name": "Recurring - Contracts Management",
"version": "16.0.2.1.0",
"version": "16.0.2.2.0",
"category": "Contract Management",
"license": "AGPL-3",
"author": "Tecnativa, ACSONE SA/NV, Odoo Community Association (OCA)",

View File

@@ -366,7 +366,7 @@ ul.auto-toc {
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:2c69a3c771b2b26e58f9929f82771f29784e3863288d24e9676e6f8896304ebc
!! source digest: sha256:6acdfddf18d7472f33a0023c56017cad5683f2942c3b7fe09c8a8ff3bd7dc039
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/contract/tree/16.0/contract"><img alt="OCA/contract" src="https://img.shields.io/badge/github-OCA%2Fcontract-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/contract-16-0/contract-16-0-contract"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/contract&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>This module enables contracts management with recurring

View File

@@ -63,7 +63,7 @@
<field
colspan="2"
name="discount"
groups="base.group_no_one"
groups="product.group_discount_per_so_line"
nolabel="1"
/>
</group>

View File

@@ -232,7 +232,10 @@
attrs="{'readonly': [('automatic_price', '=', True)]}"
/>
<field name="specific_price" invisible="1" />
<field name="discount" groups="base.group_no_one" />
<field
name="discount"
groups="product.group_discount_per_so_line"
/>
<field name="price_subtotal" />
<field name="recurring_interval" invisible="1" />
<field name="recurring_rule_type" invisible="1" />
@@ -332,7 +335,10 @@
attrs="{'readonly': [('automatic_price', '=', True)]}"
/>
<field name="specific_price" invisible="1" />
<field name="discount" groups="base.group_no_one" />
<field
name="discount"
groups="product.group_discount_per_so_line"
/>
<field name="price_subtotal" />
<field name="recurring_interval" invisible="1" />
<field name="recurring_rule_type" invisible="1" />

View File

@@ -111,7 +111,7 @@
attrs="{'readonly': [('automatic_price', '=', True)]}"
/>
<field name="specific_price" invisible="1" />
<field name="discount" groups="base.group_no_one" />
<field name="discount" groups="product.group_discount_per_so_line" />
<field name="price_subtotal" />
<field name="recurring_interval" invisible="1" />
<field name="recurring_rule_type" invisible="1" />

View File

@@ -55,7 +55,10 @@
attrs="{'readonly': [('automatic_price', '=', True)]}"
/>
<field name="specific_price" invisible="1" />
<field name="discount" groups="base.group_no_one" />
<field
name="discount"
groups="product.group_discount_per_so_line"
/>
<field name="price_subtotal" />
<field name="recurring_rule_type" invisible="1" />
<field name="recurring_interval" invisible="1" />