Add a form at the end of account.account.update_chart_account wizard for
issue933
This commit is contained in:
+16
-5
@@ -1936,6 +1936,14 @@ class UpdateChartAccountInit(ModelView):
|
||||
UpdateChartAccountInit()
|
||||
|
||||
|
||||
class UpdateChartAccountStart(ModelView):
|
||||
'Update Chart Account from Template Start'
|
||||
_name = 'account.account.update_chart_account.start'
|
||||
_description = __doc__
|
||||
|
||||
UpdateChartAccountStart()
|
||||
|
||||
|
||||
class UpdateChartAccount(Wizard):
|
||||
'Update Chart Account from Template'
|
||||
_name = 'account.account.update_chart_account'
|
||||
@@ -1946,15 +1954,18 @@ class UpdateChartAccount(Wizard):
|
||||
'object': 'account.account.update_chart_account.init',
|
||||
'state': [
|
||||
('end', 'Cancel', 'tryton-cancel'),
|
||||
('update_account', 'Ok', 'tryton-ok', True),
|
||||
('start', 'Ok', 'tryton-ok', True),
|
||||
],
|
||||
},
|
||||
},
|
||||
'update_account': {
|
||||
'start': {
|
||||
'actions': ['_action_update_account'],
|
||||
'result': {
|
||||
'type': 'action',
|
||||
'action': '_action_update_account',
|
||||
'state': 'end',
|
||||
'type': 'form',
|
||||
'object': 'account.account.update_chart_account.start',
|
||||
'state': [
|
||||
('end', 'Ok', 'tryton-ok', True),
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
+12
@@ -486,6 +486,18 @@ this repository contains the full copyright notices and license terms. -->
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="account_update_chart_account_start_view_form">
|
||||
<field name="model">account.account.update_chart_account.start</field>
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<![CDATA[
|
||||
<form string="Update Chart of Account">
|
||||
<label string="Update Chart of Account Succeed!" id="succeed"/>
|
||||
</form>
|
||||
]]>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.action.wizard" id="wizard_update_chart_account">
|
||||
<field name="name">Update Chart of Account from Template</field>
|
||||
<field name="wiz_name">account.account.update_chart_account</field>
|
||||
|
||||
Reference in New Issue
Block a user