Skip to content
Extraits de code Groupes Projets
Valider a9be9063 rédigé par jordan's avatar jordan
Parcourir les fichiers

[fix] remove too restricted domain on invoice in form view

parent cd36a22f
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -84,10 +84,9 @@
<field name="currency_id" invisible="1"/>
<field name="credit" widget="monetary" string="Montant" attrs="{'invisible': [('type', '=', 'inv')]}"/>
<field name="debit" widget="monetary" string="Montant" attrs="{'invisible': [('type', '!=', 'inv')]}"/>
<field name="amount_residual" widget="monetary"
attrs="{'invisible': [('type', '!=', 'inv')]}"/>
<field name="amount_residual" widget="monetary" attrs="{'invisible': [('type', '!=', 'inv')]}"/>
<field name="invoice_id"
domain="[('partner_id', '=', partner_id), ('type', '=', 'inv'), ('amount_residual', '>', 0)]"
domain="[('partner_id', '=', partner_id), ('type', '=', 'inv')]"
options="{'no_create': True, 'no_edit': True}"
attrs="{'invisible': [('type', '=', 'inv')]}"
help="Les cotisations disponibles sont celles liées à la coop pour lesquelles le reste à payer est positif."/>
......
......@@ -80,10 +80,9 @@
<field name="currency_id" invisible="1"/>
<field name="credit" widget="monetary" string="Montant" attrs="{'invisible': [('type', '=', 'inv')]}"/>
<field name="debit" widget="monetary" string="Montant" attrs="{'invisible': [('type', '!=', 'inv')]}"/>
<field name="amount_residual" widget="monetary"
attrs="{'invisible': [('type', '!=', 'inv')]}"/>
<field name="amount_residual" widget="monetary" attrs="{'invisible': [('type', '!=', 'inv')]}"/>
<field name="invoice_id"
domain="[('partner_id', '=', partner_id), ('type', '=', 'inv'), ('amount_residual', '>', 0)]"
domain="[('partner_id', '=', partner_id), ('type', '=', 'inv')]"
options="{'no_create': True, 'no_edit': True}"
attrs="{'invisible': [('type', '=', 'inv')]}"
help="Les factures disponibles sont celles liées à la coop pour lesquelles le reste à payer est positif."/>
......
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