Skip to content
Snippets Groups Projects
res_partner.xml 1.98 KiB
Newer Older
  • Learn to ignore specific revisions
  • <?xml version="1.0" encoding="utf-8" ?>
    
    <odoo>
        <!--  Copyright 2020 Le Filament
              License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).  -->
        <data>
    
            <record id="scop_contact_view_form" model="ir.ui.view">
                <field name="name">res.partner.scop.view.form</field>
                <field name="model">res.partner</field>
    
                <field name="inherit_id" ref="cgscop_partner.scop_contact_view_form" />
    
                <field name="arch" type="xml">
    
                    <xpath expr="//page[@name='scop_membership']" position="after">
    
                        <page
                            name='scop_contribution'
                            string="Cotisations"
    
                            attrs="{'invisible': ['|', ('is_cooperative', '!=', True), ('project_status', '!=', '4_suivi')]}"
    
                            <notebook>
                                <page name="contribution" string="Appels de Cotisations">
                                    <field name="contribution_report_ids" mode="tree,form">
    
                                        <tree
                                            create="false"
                                            edit="false"
                                            delete="false"
                                            default_order="year desc"
                                        >
                                            <field name="year" />
                                            <field name="type_contribution_id" />
                                            <field name='partner_id' />
                                            <field name='amount_called' />
                                            <field name='amount_paid' />
                                            <field name='amount_due' />
    
                                        </tree>
                                    </field>
                                </page>
                            </notebook>
                        </page>