Hi, for educational reasons I made a small toy project. I wanted to add a field to the invoice_line. It worked for the model, but unfortunately the field does not show up in the form.
I made a new project account_invoice_anteile. I followed the standard
project analytic_invoice, because that does exactly that, it displays
the analytic account in the form.
I adjusted my project accordingly and updated the module and upgraded
the database, and started the client with the --dev option.
In the logs I did not find any hint. How can I debug such a problem?
The invoice.xml in the module root:
<?xml version="1.0"?>
<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.xml</field>
</record>
</data>
</tryton>
and in the "view" directory the invoice_line_form.xml:
<?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/field[@name='taxes']"
position="before">
<field name="anteil_sabine"/>
</xpath>
</data>
tryton.cfg:
[tryton]
version=3.2.3
depends:
ir
account
account_invoice
xml:
invoice.xml
all project files are here:
http://gregor-horvath.com/account_invoice_anteile.zip
Thank you for help.
Gregor
signature.asc
Description: PGP signature
