Move the analytics fields of supplier invoices to General tab of invoice line. Task 040379
This commit is contained in:
parent
00a4f43d3b
commit
ec6c3137a7
|
@ -30,3 +30,11 @@ class InvoiceLine(metaclass=PoolMeta):
|
|||
if analytic_lines:
|
||||
line.analytic_lines = analytic_lines
|
||||
return lines
|
||||
|
||||
@classmethod
|
||||
def view_attributes(cls):
|
||||
return super(InvoiceLine, cls).view_attributes() + [
|
||||
('/form/notebook/page[@id="analytic_accounts"]', 'states', {
|
||||
'invisible': True,
|
||||
}),
|
||||
]
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<tryton>
|
||||
<data>
|
||||
<record model="ir.ui.view" id="invoice_line_view_form">
|
||||
<field name="model">account.invoice.line</field>
|
||||
<field name="inherit" ref="account_invoice.invoice_line_view_form"/>
|
||||
<field name="name">invoice_line_form</field>
|
||||
</record>
|
||||
</data>
|
||||
</tryton>
|
|
@ -6,7 +6,9 @@ depends:
|
|||
company
|
||||
extras_depend:
|
||||
account_invoice
|
||||
analytic_invoice
|
||||
xml:
|
||||
account.xml
|
||||
analytic.xml
|
||||
invoice.xml
|
||||
messages.xml
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<data>
|
||||
<xpath expr="/form/notebook/page[@id='general']/field[@name='taxes']"
|
||||
position="after">
|
||||
<field name="analytic_accounts" colspan="4"/>
|
||||
</xpath>
|
||||
</data>
|
Loading…
Reference in New Issue