Fixes account_bank_statement_import_paypal adjusting

wizard after https://github.com/OCA/server-ux/pull/165
has been merged.
This commit is contained in:
Jordi Ballester Alomar
2020-06-10 05:57:09 +02:00
parent 748f30be6a
commit a9da89324b
2 changed files with 3 additions and 7 deletions

View File

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

View File

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