[IMP]GOLEM Member Minor : small enhancements around invoice partners
This commit is contained in:
parent
596ec855e8
commit
1c156fe667
@ -19,7 +19,7 @@
|
|||||||
{
|
{
|
||||||
'name': 'GOLEM members minor',
|
'name': 'GOLEM members minor',
|
||||||
'summary': 'GOLEM non-profit members minor management',
|
'summary': 'GOLEM non-profit members minor management',
|
||||||
'version': '10.0.1.3.1',
|
'version': '10.0.1.3.2',
|
||||||
'category': 'GOLEM',
|
'category': 'GOLEM',
|
||||||
'author': 'Fabien Bourgeois',
|
'author': 'Fabien Bourgeois',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
|
@ -25,5 +25,5 @@ class AccountInvoice(models.Model):
|
|||||||
_inherit = 'account.invoice'
|
_inherit = 'account.invoice'
|
||||||
|
|
||||||
partner_ids = fields.Many2many('res.partner', string='Concerned partners',
|
partner_ids = fields.Many2many('res.partner', string='Concerned partners',
|
||||||
auto_join=True)
|
index=True, auto_join=True)
|
||||||
is_minor_invoice = fields.Boolean()
|
is_minor_invoice = fields.Boolean()
|
||||||
|
@ -35,15 +35,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="account.invoice_supplier_form_inherited_member_minor" model="ir.ui.view">
|
<!-- Searches -->
|
||||||
<field name="name">account.invoice.supplier.form.iherited.member.minor</field>
|
<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="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="arch" type="xml">
|
||||||
<field name='partner_id' position='after'>
|
<field name='partner_id' position='after'>
|
||||||
<field name='is_minor_invoice' invisible="1" />
|
<field name="partner_ids" />
|
||||||
<field name="partner_ids" widget="many2many_tags" readonly="1"
|
|
||||||
attrs="{'invisible': [('is_minor_invoice', '=', False)]}" />
|
|
||||||
</field>
|
</field>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user