[FIX]GOLEM Activity Registration : activity price

Users should not be able to edit activity price form registrations.
This commit is contained in:
Fabien BOURGEOIS 2018-08-01 13:39:07 +02:00
parent 893bfcd79b
commit ce55580bf7
3 changed files with 5 additions and 4 deletions

View File

@ -18,7 +18,7 @@
{
'name': 'GOLEM Activity Member Registrations',
'summary': 'GOLEM Activities Member Registrations management',
'version': '10.0.1.3.3',
'version': '10.0.1.3.4',
'category': 'GOLEM',
'author': 'Fabien Bourgeois, Michel Dessenne',
'license': 'AGPL-3',

View File

@ -38,8 +38,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<tree editable="top">
<field name="member_id"
domain="[('season_ids', '=', season_id)]" />
<field name="activity_id" readonly="1" />
<field name="season_id" readonly="1" />
<field name="activity_id" invisible="1" />
<field name="season_id" invisible="1" />
</tree>
</field>
</group>

View File

@ -37,7 +37,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
domain="[('is_default', '=', True)]" />
<field name="season_id" readonly="1" />
<field name="member_id" readonly="1" invisible="1" />
<field name="activity_price" string="Base price" sum="Total" />
<field name="activity_price" string="Base price" sum="Total"
readonly="1" />
</tree>
</field>
<field name="activity_registration_all_ids" readonly="1">