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

[update] invoice tree view + add pre-commit

parent 62040d71
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -208,7 +208,7 @@ class ScopContributionReport(models.Model):
"credit": p.credit,
"class": "",
}
if not p.move_id.move_type in ("out_invoice", "out_refund")
if p.move_id.move_type not in ("out_invoice", "out_refund")
else {
"date": p.date,
"name": p.name,
......
......@@ -43,17 +43,17 @@
<attribute name="string">Date de cotisation</attribute>
</xpath>
<xpath expr="//field[@name='user_id']" position="attributes">
<attribute name="invisible">True</attribute>
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='team_id']" position="attributes">
<attribute name="invisible">True</attribute>
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='beneficiary_id']" position="attributes">
<attribute name="invisible">True</attribute>
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='team_id']" position="attributes">
<attribute name="invisible">True</attribute>
<attribute name="invisible">1</attribute>
</xpath>
</field>
</record>
......@@ -70,24 +70,29 @@
position="before"
>
<field name="partner_member_number" readonly="1" />
</xpath>
<xpath
expr="//field[@name='invoice_partner_display_name'][2]"
position="attributes"
>
<attribute name="string">Adhérent</attribute>
<field
name="invoice_partner_display_name"
string="Adhérent"
option="show"
/>
<field
name="invoice_date"
string="Date de cotisation"
option="show"
/>
</xpath>
<xpath expr="//field[@name='invoice_origin']" position="after">
<field name="type_contribution_id" optional="hide" />
<field name="year" optional="hide" />
</xpath>
<xpath expr="//field[@name='invoice_date']" position="attributes">
<attribute name="string">Date de cotisation</attribute>
<xpath expr="//field[@name='activity_ids']" position="attributes">
<attribute name="optional">hide</attribute>
</xpath>
<xpath expr="//field[@name='company_id']" position="attributes">
<attribute name="invisible">True</attribute>
<attribute name="optional">hide</attribute>
</xpath>
<xpath expr="//field[@name='invoice_origin']" position="attributes">
<attribute name="invisible">True</attribute>
<attribute name="optional">hide</attribute>
</xpath>
<xpath expr="//field[@name='state']" position="after">
<field name="is_sdd" invisible="1" />
......
......@@ -54,14 +54,16 @@
<!-- Boutons de vérification IBAN et mandats -->
<xpath expr="//notebook" position="before">
<field name="mandate_validity" invisible="1" />
<button name="view_wrong_iban"
<button
name="view_wrong_iban"
type="object"
string="Voir les IBAN à corriger"
class="btn-danger"
attrs="{'invisible': [('sepa', '=', True)]}"
style="margin-right: 10px;"
/>
<button name="view_wrong_mandate"
<button
name="view_wrong_mandate"
type="object"
string="Voir les Mandats non valides"
class="btn-danger"
......
# © 2020 Le Filament (<http://www.le-filament.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import models, fields, api, _
from odoo import fields, models
class AccountPaymentLineCreate(models.TransientModel):
......
......@@ -4,15 +4,20 @@
<record id="account_payment_line_create_form" model="ir.ui.view">
<field name="name">account_payment_line_create.form</field>
<field name="model">account.payment.line.create</field>
<field name="inherit_id" ref="account_payment_order.account_payment_line_create_form"/>
<field
name="inherit_id"
ref="account_payment_order.account_payment_line_create_form"
/>
<field name="arch" type="xml">
<xpath expr="//field[@name='due_date']" position="before">
<field name="start_date"
<field
name="start_date"
attrs="{'invisible': [('date_type', '!=', 'due')]}"
/>
</xpath>
<xpath expr="//field[@name='journal_ids']" position="after">
<field name="ur_ids"
<field
name="ur_ids"
widget="many2many_tags"
options="{'no_create': 1, 'no_edit': 1}"
placeholder="Laisser vide pour toutes les UR"
......
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