Browse Source

Merge PR #265 into 12.0

Signed-off-by alexey-pelykh
12.0
OCA-git-bot 5 years ago
parent
commit
c29beffee6
  1. 44
      account_bank_statement_import_paypal/views/account_bank_statement_import_paypal_mapping.xml
  2. 19
      account_bank_statement_import_paypal/wizards/account_bank_statement_import_paypal_mapping_wizard.xml

44
account_bank_statement_import_paypal/views/account_bank_statement_import_paypal_mapping.xml

@ -30,37 +30,37 @@
<group> <group>
<field name="float_thousands_sep"/> <field name="float_thousands_sep"/>
<field name="float_decimal_sep"/> <field name="float_decimal_sep"/>
</group>
<group>
<field name="date_format"/> <field name="date_format"/>
<field name="time_format"/> <field name="time_format"/>
</group> </group>
<group string="Columns">
<field name="date_column"/>
<field name="time_column"/>
<field name="tz_column"/>
<field name="name_column"/>
<field name="currency_column"/>
<field name="gross_column"/>
<field name="fee_column"/>
<field name="balance_column"/>
<field name="transaction_id_column"/>
<field name="description_column"/>
<field name="type_column"/>
<field name="from_email_address_column"/>
<field name="to_email_address_column"/>
<field name="invoice_id_column"/>
<field name="subject_column"/>
<field name="note_column"/>
<field name="bank_name_column"/>
<field name="bank_account_column"/>
</group>
</group>
<group string="Columns">
<field name="date_column"/>
<field name="time_column"/>
<field name="tz_column"/>
<field name="name_column"/>
<field name="currency_column"/>
<field name="gross_column"/>
<field name="fee_column"/>
<field name="balance_column"/>
<field name="transaction_id_column"/>
<field name="description_column"/>
<field name="type_column"/>
<field name="from_email_address_column"/>
<field name="to_email_address_column"/>
<field name="invoice_id_column"/>
<field name="subject_column"/>
<field name="note_column"/>
<field name="bank_name_column"/>
<field name="bank_account_column"/>
</group> </group>
</sheet> </sheet>
</form> </form>
</field> </field>
</record> </record>
<!-- TODO: action that launches wizard that could import file header and assume columns by number and index of colums -->
<record id="action_statement_import_paypal_report_mappings" model="ir.actions.act_window"> <record id="action_statement_import_paypal_report_mappings" model="ir.actions.act_window">
<field name="name">PayPal Report Mappings</field> <field name="name">PayPal Report Mappings</field>
<field name="res_model">account.bank.statement.import.paypal.mapping</field> <field name="res_model">account.bank.statement.import.paypal.mapping</field>

19
account_bank_statement_import_paypal/wizards/account_bank_statement_import_paypal_mapping_wizard.xml

@ -22,13 +22,14 @@
</field> </field>
</record> </record>
<record id="action_account_bank_statement_import_paypal_mapping_wizard" model="ir.actions.act_window">
<field name="name">Import Mapping</field>
<field name="res_model">account.bank.statement.import.paypal.mapping.wizard</field>
<field name="src_model">account.bank.statement.import.paypal.mapping</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
<act_window
id="action_account_bank_statement_import_paypal_mapping_wizard"
name="Import Mapping"
res_model="account.bank.statement.import.paypal.mapping.wizard"
src_model="account.bank.statement.import.paypal.mapping"
view_mode="form"
target="new"
key2="client_action_multi"
/>
</odoo>
</odoo>
Loading…
Cancel
Save