Skip to content
Extraits de code Groupes Projets
Valider e0d2fae5 rédigé par Benjamin - Le Filament's avatar Benjamin - Le Filament
Parcourir les fichiers

[add] partner member number on view contribution

parent 27d6e72f
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -45,6 +45,10 @@ class ScopAccountInvoice(models.Model):
related='partner_id.ur_id',
store=True
)
partner_member_number = fields.Char(
string='N° Adhérent',
related='partner_id.member_number',
)
contribution_id = fields.Many2one(
comodel_name='scop.contribution',
string='Ligne de cotisation')
......
......@@ -24,6 +24,9 @@
<xpath expr="//field[@name='partner_id']" position="attributes">
<attribute name="string">Adhérent</attribute>
</xpath>
<xpath expr="//field[@name='partner_id']" position="after">
<field name="partner_member_number" readonly="1"/>
</xpath>
<xpath expr="//field[@name='date_invoice']" position="attributes">
<attribute name="string">Date de cotisation</attribute>
</xpath>
......@@ -59,7 +62,9 @@
<field name="mode">primary</field>
<field name="inherit_id" ref="account.invoice_tree_with_onboarding"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='partner_id']" position="before">
<field name="partner_member_number" readonly="1"/>
</xpath>
<xpath expr="//field[@name='partner_id']" position="attributes">
<attribute name="string">Adhérent</attribute>
</xpath>
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter