Hi,
please consider to use the tryton-dev[1] group for development related
questions.
Am Freitag, den 02.07.2010, 16:46 +0300 schrieb Elver Loho:
> Hi,
> I'm trying to remove the "streetbis" field from party.address in both
> form and tree views. It's not necessary for my client.
[...]
> My questions are:
> 1. What special things do I need to do to remove "streetbis" from the
> party.address treeviews EVERYWHERE?
You just need to remove the field in all ir.ui.views, where it is
defined. Maybe you just forget to remove it in the tree definition
_inside_ the form definition (tryton 1.4):
34 <record model="ir.ui.view" id="party_view_form">
35 <field name="model">party.party</field>
36 <field name="type">form</field>
37 <field name="arch" type="xml">
38 <![CDATA[
39 <form string="Party" col="6">
[...]
46 <notebook colspan="6">
47 <page string="General" id="general">
48 <field name="addresses"
mode="form,tree" colspan="4">
49 <tree string="Addresses"
sequence="sequence"
50 fill="1">
51 <field name="name"/>
52 <field name="street"/>
-----8<------
53 <field name="streetbis"/>
-----8<------
54 <field name="zip"/>
55 <field name="city"/>
56 <field name="country"/>
57 <field name="subdivision"/>
58 </tree>
59 </field>
For an appropriate x-path example take a look in
account_invoice/party.xml
> 2. Why is there an inconsistency between removing a field from every
> party.address form view (which works) and removing a field from every
> party.address tree view (which doesn't work)? Is this a bug? Should I
> file a bug report?
I can not see an inconsistency so far, since you may forget to remove
the field from the right place.
[1] http://groups.google.de/group/tryton-dev
Cheers
--
Udo Spallek
------------------------------------
virtual things
Preisler & Spallek GbR
Munich - Aix-la-Chapelle
Windeckstr. 77
81375 Munich - Germany
Tel: +49 (89) 710 481 55
Fax: +49 (89) 710 481 56
[email protected]
http://www.virtual-things.biz
--
[email protected] mailing list