diff options
Diffstat (limited to 'addons/account/views/account_journal_views.xml')
| -rw-r--r-- | addons/account/views/account_journal_views.xml | 251 |
1 files changed, 251 insertions, 0 deletions
diff --git a/addons/account/views/account_journal_views.xml b/addons/account/views/account_journal_views.xml new file mode 100644 index 00000000..abdf5380 --- /dev/null +++ b/addons/account/views/account_journal_views.xml @@ -0,0 +1,251 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + <data> + + <record id="view_account_journal_tree" model="ir.ui.view"> + <field name="name">account.journal.tree</field> + <field name="model">account.journal</field> + <field name="priority">1</field> + <field name="arch" type="xml"> + <tree string="Account Journal"> + <field name='sequence' widget='handle'/> + <field name="name"/> + <field name="type"/> + <field name="journal_group_ids" widget="many2many_tags" readonly="1"/> + <field name="company_id" groups="base.group_multi_company"/> + </tree> + </field> + </record> + + <record id="view_account_journal_form" model="ir.ui.view"> + <field name="name">account.journal.form</field> + <field name="model">account.journal</field> + <field name="priority">1</field> + <field name="arch" type="xml"> + <form string="Account Journal"> + <sheet> + <widget name="web_ribbon" title="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/> + <div class="oe_title"> + <label for="name" class="oe_edit_only"/> + <h1><field name="name" class="oe_inline"/></h1> + </div> + <group> + <group> + <field name="active" invisible="1"/> + <field name="type"/> + </group> + <group> + <field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/> + <field name="country_code" invisible="1"/> + </group> + </group> + <notebook> + <page name="bank_account" string="Journal Entries"> + <group> + <group string="Accounting information"> + <field name="default_account_type" invisible="1"/> + <!-- Bank --> + <field name="default_account_id" string="Bank Account" + attrs="{'required': [('id', '!=', False), ('type', '=', 'bank')], 'invisible': [('type', '!=', 'bank')]}" + groups="account.group_account_readonly"/> + <!-- Cash --> + <field name="default_account_id" string="Cash Account" + attrs="{'required': [('id', '!=', False), ('type', '=', 'cash')], 'invisible': [('type', '!=', 'cash')]}" + groups="account.group_account_readonly"/> + + <field name="suspense_account_id" + attrs="{'required': [('type', 'in', ('bank', 'cash'))], 'invisible': [('type', 'not in', ('bank', 'cash'))]}" + groups="account.group_account_readonly"/> + <field name="profit_account_id" attrs="{'invisible': [('type', '!=', 'cash')]}"/> + <field name="loss_account_id" attrs="{'invisible': [('type', '!=', 'cash')]}"/> + <!-- Sales --> + <field name="default_account_id" string="Default Income Account" + attrs="{'required': [('type', '=', 'sale')], 'invisible': [('type', '!=', 'sale')]}" + groups="account.group_account_readonly"/> + <!-- Purchase --> + <field name="default_account_id" string="Default Expense Account" + attrs="{'required': [('type', '=', 'purchase')], 'invisible': [('type', '!=', 'purchase')]}" + groups="account.group_account_readonly"/> + <field name="refund_sequence" attrs="{'invisible': [('type', 'not in', ['sale', 'purchase'])]}"/> + <field name="code"/> + <field name="currency_id" options="{'no_create': True}" groups="base.group_multi_currency"/> + </group> + <group string="Bank Account Number" attrs="{'invisible': [('type', '!=', 'bank')]}"> + <field name="company_partner_id" invisible="1"/> + <field name="bank_account_id" string="Account Number" context="{'default_partner_id': company_partner_id, 'form_view_ref': 'account.view_company_partner_bank_form'}"/> + <field name="bank_id" attrs="{'invisible': [('bank_account_id', '=', False)]}"/> + <field name="bank_statements_source" widget="radio" attrs="{'required': [('type', '=', 'bank')]}" groups="account.group_account_readonly"/> + </group> + </group> + </page> + <page name="journal_entries" string="Payments Configuration" attrs="{'invisible': [('type', 'in', ['sale', 'purchase', 'general'])]}"> + <group> + <group string="Incoming Payments"> + <field name="payment_debit_account_id" + attrs="{'required': [('id', '!=', False), ('type', 'in', ('bank', 'cash'))], 'invisible': [('type', 'not in', ('bank', 'cash'))]}" + groups="account.group_account_readonly"/> + <field name="inbound_payment_method_ids" string="Methods" widget="many2many_checkboxes" attrs="{'invisible': [('type', 'not in', ['bank', 'cash'])]}"/> + </group> + <group string="Outgoing Payments"> + <field name="id" invisible="1"/> + <field name="payment_credit_account_id" + attrs="{'required': [('id', '!=', False), ('type', 'in', ('bank', 'cash'))], 'invisible': [('type', 'not in', ('bank', 'cash'))]}" + groups="account.group_account_readonly"/> + <field name="outbound_payment_method_ids" string="Methods" widget="many2many_checkboxes" attrs="{'invisible': [('type', 'not in', ['bank', 'cash'])]}"/> + </group> + <group name="outgoing_payment" /> + </group> + </page> + <page name="advanced_settings" string="Advanced Settings"> + <group> + <group string="Control-Access" groups="account.group_account_manager"> + <div class="text-muted" colspan="2">Keep empty for no control</div> + <field name="type_control_ids" widget="many2many_tags" options="{'no_create': True}"/> + <field name="account_control_ids" widget="many2many_tags"/> + <field name="restrict_mode_hash_table" groups="account.group_account_readonly" attrs="{'invisible': [('type', 'in', ['bank', 'cash'])]}"/> + </group> + <!-- email alias --> + <group class="oe_read_only" name="group_alias_ro" string="Create Invoices upon Emails" attrs="{'invisible': ['|', ('type', 'not in', ('sale' ,'purchase')), ('alias_domain', '=', False)]}"> + <field name="alias_id"/> + </group> + <group name="group_alias_no_domain" string="Create Invoices upon Emails" attrs="{'invisible': ['|', ('type', 'not in', ('sale' ,'purchase')), ('alias_domain', '!=', False)]}"> + <div class="content-group"> + <a type='action' name='%(action_open_settings)d' class="btn btn-link" role="button"><i class="fa fa-fw o_button_icon fa-arrow-right"/> Configure Email Servers</a> + </div> + </group> + <group class="oe_edit_only" name="group_alias_edit" string="Create Invoices upon Emails" attrs="{'invisible': ['|', ('type', 'not in', ('sale' ,'purchase')), ('alias_domain', '=', False)]}"> + <label string="Email Alias" for="alias_name"/> + <div class="oe_inline" name="edit_alias" style="display: inline;" > + <field name="alias_name" class="oe_inline"/>@<field name="alias_domain" class="oe_inline" readonly="1"/> + </div> + </group> + <!-- email alias end --> + <group string="Payment Communications" attrs="{'invisible': [('type', '!=', 'sale')]}"> + <field name="invoice_reference_type"/> + <field name="invoice_reference_model" attrs="{'invisible': [('invoice_reference_type', '=', 'none')]}"/> + </group> + <group string="Follow Customer Payments" attrs="{'invisible': [('type', '!=', 'sale')]}"> + <field name="sale_activity_type_id"/> + <field name="sale_activity_user_id" attrs="{'invisible': [('sale_activity_type_id', '=', False)]}"/> + <field name="sale_activity_note" placeholder="e.g. Give a phone call, check with others , ..." attrs="{'invisible': [('sale_activity_type_id', '=', False)]}"/> + </group> + </group> + </page> + </notebook> + </sheet> + <div class="oe_chatter"> + <field name="message_follower_ids"/> + <field name="activity_ids"/> + <field name="message_ids"/> + </div> + </form> + </field> + </record> + + <record id="account_journal_view_kanban" model="ir.ui.view"> + <field name="name">account.journal.kanban</field> + <field name="model">account.journal</field> + <field name="priority">1</field> + <field name="arch" type="xml"> + <kanban class="o_kanban_mobile"> + <templates> + <t t-name="kanban-box"> + <div t-attf-class="oe_kanban_content oe_kanban_global_click"> + <div class="row"> + <div class="col-6"> + <strong><field name="name"/></strong> + </div> + <div class="col-6"> + <span class="float-right"><field name="type"/></span> + </div> + </div> + </div> + </t> + </templates> + </kanban> + </field> + </record> + + <record id="view_account_journal_search" model="ir.ui.view"> + <field name="name">account.journal.search</field> + <field name="model">account.journal</field> + <field name="priority">1</field> + <field name="arch" type="xml"> + <search string="Search Account Journal"> + <field name="name" string="Journal" filter_domain="['|', ('name', 'ilike', self), ('code', 'ilike', self)]"/> + <filter name="dashboard" string="Favorites" domain="[('show_on_dashboard', '=', True)]"/> + <separator/> + <filter name="sales" string="Sales" domain="[('type', '=', 'sale')]"/> + <filter name="purchases" string="Purchases" domain="[('type', '=', 'purchase')]"/> + <filter name="liquidity" string="Liquidity" domain="['|', ('type', '=', 'cash'), ('type', '=', 'bank')]"/> + <filter name="miscellaneous" string="Miscellaneous" domain="[('type', 'not in', ['sale', 'purchase', 'cash', 'bank'])]"/> + <separator/> + <filter name="inactive" string="Archived" domain="[('active', '=', False)]"/> + </search> + </field> + </record> + + <record id="action_account_journal_form" model="ir.actions.act_window"> + <field name="name">Journals</field> + <field name="res_model">account.journal</field> + <field name="view_mode">tree,kanban,form</field> + <field name="view_ids" eval="[(5, 0, 0), + (0, 0, {'view_mode': 'tree', 'view_id': ref('view_account_journal_tree')}), + (0, 0, {'view_mode': 'kanban', 'view_id': ref('account_journal_view_kanban')}), + (0, 0, {'view_mode': 'form', 'view_id': ref('view_account_journal_form')})]"/> + <field name="help" type="html"> + <p class="o_view_nocontent_smiling_face"> + Add a journal + </p><p> + A journal is used to record transactions of all accounting data + related to the day-to-day business. + </p> + </field> + </record> + + <record id="view_account_journal_group_tree" model="ir.ui.view"> + <field name="name">account.journal.group.tree</field> + <field name="model">account.journal.group</field> + <field name="priority">1</field> + <field name="arch" type="xml"> + <tree editable="bottom"> + <field name="sequence" widget="handle"/> + <field name="name"/> + <field name="excluded_journal_ids" widget="many2many_tags" options="{'no_create': True}"/> + <field name="company_id" groups="base.group_multi_company"/> + </tree> + </field> + </record> + + <record id="view_account_journal_group_form" model="ir.ui.view"> + <field name="name">account.journal.group.form</field> + <field name="model">account.journal.group</field> + <field name="priority">1</field> + <field name="arch" type="xml"> + <form string="Journal Groups"> + <sheet> + <group> + <field name="name" placeholder="e.g. GAAP, IFRS, ..."/> + <field name="excluded_journal_ids" widget="many2many_tags" options="{'no_create': True}"/> + <field name="sequence" groups="base.group_no_one"/> + <field name="company_id" groups="base.group_multi_company"/> + </group> + </sheet> + </form> + </field> + </record> + + <record id="action_account_journal_group_list" model="ir.actions.act_window"> + <field name="name">Journal Groups</field> + <field name="res_model">account.journal.group</field> + <field name="help" type="html"> + <p class="o_view_nocontent_smiling_face"> + Add a journal group + </p><p> + Journal group are used in reporting to display relevant data together. + </p> + </field> + </record> + + </data> +</odoo> |
