Transaction Log field

This commit is contained in:
resteve 2014-12-12 19:13:07 +01:00
parent 645e352c37
commit 90ee5e5b41
2 changed files with 5 additions and 1 deletions

View file

@ -82,6 +82,7 @@ class AccountPaymentGatewayTransaction(Workflow, ModelSQL, ModelView):
('done', 'Done'),
('cancel', 'Canceled'),
], 'State', readonly=True)
log = fields.Text("Log", depends=['state'], states=READONLY_IF_NOT_DRAFT)
@classmethod
def __setup__(cls):

View file

@ -17,7 +17,7 @@ this repository contains the full copyright notices and license terms. -->
<label name="currency"/>
<field name="currency"/>
</page>
<page string="Other Information" id="other_info" col="6">
<page string="Other Information" id="other_info">
<label name="company"/>
<field name="company"/>
<label name="gateway"/>
@ -27,6 +27,9 @@ this repository contains the full copyright notices and license terms. -->
<label name="authorisation_code"/>
<field name="authorisation_code"/>
</page>
<page string="Logs" id="log">
<field name="log"/>
</page>
</notebook>
<group col="10" colspan="4" id="buttons">
<field name="state"/>