diff --git a/views/scop_cotisation_idf.xml b/views/scop_cotisation_idf.xml index cc13b3e74428609422ca18b5fb86cc5b04aea488..6ead489f3b04afad52f1b473bd2f3eb3c72669d6 100644 --- a/views/scop_cotisation_idf.xml +++ b/views/scop_cotisation_idf.xml @@ -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."/> diff --git a/views/scop_invoice_idf.xml b/views/scop_invoice_idf.xml index 5a43fda9d14ad828045eab6cbf69b32c2c95eb3d..ff125ec88bd2eb52b20ff6cd956e17acfd97a80d 100644 --- a/views/scop_invoice_idf.xml +++ b/views/scop_invoice_idf.xml @@ -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."/>