You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
2.5 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="statement_import_map_tax_tree" model="ir.ui.view">
  4. <field name="model">account.bank.statement.import.paypal.map</field>
  5. <field name="arch" type="xml">
  6. <tree string="Paypal Map">
  7. <field name="name"/>
  8. </tree>
  9. </field>
  10. </record>
  11. <record id="statement_import_map_tax_form" model="ir.ui.view">
  12. <field name="model">account.bank.statement.import.paypal.map</field>
  13. <field name="arch" type="xml">
  14. <form string="Paypal Map">
  15. <group>
  16. <field name="name"/>
  17. <field name="float_thousands_sep"/>
  18. <field name="float_decimal_sep"/>
  19. </group>
  20. <separator string="Mapping Lines"/>
  21. <field name="map_line_ids"/>
  22. </form>
  23. </field>
  24. </record>
  25. <record id="statement_import_map_tax_line_tree" model="ir.ui.view">
  26. <field name="model">account.bank.statement.import.paypal.map.line</field>
  27. <field name="arch" type="xml">
  28. <tree string="Paypal mapping lines" editable="bottom">
  29. <field name="sequence"/>
  30. <field name="name"/>
  31. <field name="field_to_assign"/>
  32. <field name="date_format" attrs="{'readonly':[('field_to_assign','!=','date')], 'required':[('field_to_assign','=','date')]}"/>
  33. </tree>
  34. </field>
  35. </record>
  36. <record id="statement_import_map_tax_line_form" model="ir.ui.view">
  37. <field name="model">account.bank.statement.import.paypal.map.line</field>
  38. <field name="arch" type="xml">
  39. <form string="Paypal mapping line">
  40. <group>
  41. <group>
  42. <field name="name"/>
  43. <field name="sequence"/>
  44. <field name="field_to_assign"/>
  45. </group>
  46. </group>
  47. </form>
  48. </field>
  49. </record>
  50. <record model="ir.actions.act_window" id="action_statement_import_paypal_mappging">
  51. <field name="name">Paypal Mapping</field>
  52. <field name="res_model">account.bank.statement.import.paypal.map</field>
  53. <field name="view_type">form</field>
  54. <field name="view_mode">tree,form</field>
  55. </record>
  56. <menuitem id="menu_statement_import_paypal_mapping"
  57. parent="account.account_account_menu"
  58. action="action_statement_import_paypal_mappging"
  59. name="Paypal Mapping"/>
  60. </odoo>