Browse Source

[IMP] description on report instance is now a related to the description done on the report

pull/189/head
Sébastien BEAU 9 years ago
committed by Stéphane Bidoul
parent
commit
1720d75dcb
  1. 4
      mis_builder/models/mis_builder.py
  2. 3
      mis_builder/views/mis_builder.xml

4
mis_builder/models/mis_builder.py

@ -1025,8 +1025,8 @@ class MisReportInstance(models.Model):
name = fields.Char(required=True,
string='Name', translate=True)
description = fields.Char(required=False,
string='Description', translate=True)
description = fields.Char(related='report_id.description',
readonly=True)
date = fields.Date(string='Base date',
help='Report base date '
'(leave empty to use current date)')

3
mis_builder/views/mis_builder.xml

@ -313,9 +313,6 @@
<attribute name="readonly">1</attribute>
</field>
<label for="name" position="replace"/>
<field name="description" position="attributes">
<attribute name="invisible">1</attribute>
</field>
<field name="report_id" position="attributes">
<attribute name="invisible">1</attribute>
</field>

Loading…
Cancel
Save