Browse Source

Fixes account_bank_statement_import_txt_xlsx adjusting

wizard after https://github.com/OCA/server-ux/pull/165
has been merged.
12.0
Jordi Ballester Alomar 4 years ago
parent
commit
748f30be6a
  1. 2
      account_bank_statement_import_txt_xlsx/wizards/account_bank_statement_import_sheet_mapping_wizard.py
  2. 8
      account_bank_statement_import_txt_xlsx/wizards/account_bank_statement_import_sheet_mapping_wizard.xml

2
account_bank_statement_import_txt_xlsx/wizards/account_bank_statement_import_sheet_mapping_wizard.py

@ -187,5 +187,5 @@ class AccountBankStatementImportSheetMappingWizard(models.TransientModel):
'res_id': mapping.id,
'view_mode': 'form',
'view_id': False,
'target': 'new',
'target': 'current',
}

8
account_bank_statement_import_txt_xlsx/wizards/account_bank_statement_import_sheet_mapping_wizard.xml

@ -121,12 +121,8 @@
</group>
</group>
</xpath>
<xpath expr="//div[@name='final_buttons']/button" position="attributes">
<attribute name="class">btn-default</attribute>
<attribute name="string">Cancel</attribute>
</xpath>
<xpath expr="//div[@name='final_buttons']/button" position="before">
<button name="import_mapping" string="Import" type="object" class="btn-primary" />
<xpath expr="//div[@name='states_buttons']/button" position="before">
<button name="import_mapping" string="Import" type="object" class="btn-primary" attrs="{'invisible': [('state', '!=', 'final')]}"/>
</xpath>
</field>
</record>

Loading…
Cancel
Save