Update view
This commit is contained in:
parent
139815bbdf
commit
f316a6060b
|
@ -74,11 +74,11 @@ class ValidationAsk(ModelSQL, ModelView):
|
||||||
def get_history(self, name):
|
def get_history(self, name):
|
||||||
# return 'Historial'
|
# return 'Historial'
|
||||||
list_ids = [self.id,]
|
list_ids = [self.id,]
|
||||||
show_list_as_str = 'Fecha | Pregunta | Usuario' + '\n'
|
show_list_as_str = 'Fecha | Pregunta | Usuario' + '\n'
|
||||||
OpportunityHistory = Pool().get('crm.opportunity.validation')
|
OpportunityHistory = Pool().get('crm.opportunity.validation')
|
||||||
HistoryByAsk = OpportunityHistory.history_revisions(list_ids)
|
HistoryByAsk = OpportunityHistory.personalized_history_revisions(list_ids)
|
||||||
for record in HistoryByAsk:
|
for record in HistoryByAsk:
|
||||||
# print(record,'rec')
|
print(record,'rec')
|
||||||
show_list_as_str += str(record) + '\n'
|
show_list_as_str += str(record) + '\n'
|
||||||
return str(show_list_as_str)
|
return str(show_list_as_str)
|
||||||
# return str(HistoryByAsk)
|
# return str(HistoryByAsk)
|
||||||
|
|
|
@ -10,6 +10,5 @@ this repository contains the full copyright notices and license terms. -->
|
||||||
<field name="comment" />
|
<field name="comment" />
|
||||||
<field name="validated_by" />
|
<field name="validated_by" />
|
||||||
<field name="date_validation" />
|
<field name="date_validation" />
|
||||||
<!-- <field name="__table_history__" /> -->
|
|
||||||
|
|
||||||
</tree>
|
</tree>
|
||||||
|
|
Loading…
Reference in New Issue