mirror of
https://github.com/NaN-tic/trytond-analytic_line_state.git
synced 2023-12-14 03:33:02 +01:00
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:
|
if analytic_lines:
|
||||||
line.analytic_lines = analytic_lines
|
line.analytic_lines = analytic_lines
|
||||||
return lines
|
return lines
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def view_attributes(cls):
|
||||||
|
return super(InvoiceLine, cls).view_attributes() + [
|
||||||
|
('/form/notebook/page[@id="analytic_accounts"]', 'states', {
|
||||||
|
'invisible': True,
|
||||||
|
}),
|
||||||
|
]
|
||||||
|
|
12
invoice.xml
Normal file
12
invoice.xml
Normal file
|
@ -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
|
company
|
||||||
extras_depend:
|
extras_depend:
|
||||||
account_invoice
|
account_invoice
|
||||||
|
analytic_invoice
|
||||||
xml:
|
xml:
|
||||||
account.xml
|
account.xml
|
||||||
analytic.xml
|
analytic.xml
|
||||||
|
invoice.xml
|
||||||
messages.xml
|
messages.xml
|
||||||
|
|
9
view/invoice_line_form.xml
Normal file
9
view/invoice_line_form.xml
Normal file
|
@ -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 a new issue