[IMP]GOLEM Member Minor : small enhancements around invoice partners

This commit is contained in:
Fabien BOURGEOIS 2018-11-01 19:48:58 +01:00
parent 596ec855e8
commit 1c156fe667
3 changed files with 7 additions and 8 deletions

View File

@ -19,7 +19,7 @@
{
'name': 'GOLEM members minor',
'summary': 'GOLEM non-profit members minor management',
'version': '10.0.1.3.1',
'version': '10.0.1.3.2',
'category': 'GOLEM',
'author': 'Fabien Bourgeois',
'license': 'AGPL-3',

View File

@ -25,5 +25,5 @@ class AccountInvoice(models.Model):
_inherit = 'account.invoice'
partner_ids = fields.Many2many('res.partner', string='Concerned partners',
auto_join=True)
index=True, auto_join=True)
is_minor_invoice = fields.Boolean()

View File

@ -35,15 +35,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</field>
</record>
<record id="account.invoice_supplier_form_inherited_member_minor" model="ir.ui.view">
<field name="name">account.invoice.supplier.form.iherited.member.minor</field>
<!-- Searches -->
<record id="account.invoice_filter_inherited_member_minor" model="ir.ui.view">
<field name="name">account.invoice.filter.iherited.member.minor</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_supplier_form" />
<field name="inherit_id" ref="account.view_account_invoice_filter" />
<field name="arch" type="xml">
<field name='partner_id' position='after'>
<field name='is_minor_invoice' invisible="1" />
<field name="partner_ids" widget="many2many_tags" readonly="1"
attrs="{'invisible': [('is_minor_invoice', '=', False)]}" />
<field name="partner_ids" />
</field>
</field>
</record>