small refactoring

This commit is contained in:
Youssef Elouahby 2018-10-12 17:16:44 +01:00
parent ace87392db
commit 1bcb4ff5bb
1 changed files with 3 additions and 7 deletions

View File

@ -39,18 +39,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<field name="arch" type="xml">
<form>
<group>
<group>
<field name="name"/>
<field name="parent_id"/>
<field name="root_id"/>
<field name="area_street_ids">
<tree editable="bottom">
<field name="name"/>
</tree>
</field>
</group>
<group>
<field name="parent_id"/>
<field name="sub_territorie_ids" widget="many2many_tags"/>
</group>
</group>
</form>
</field>
@ -67,7 +63,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<filter name="sub_territories" string="Sub Territories"
domain="[('parent_id', '!=', False)]"/>
<filter name="parent_territories" string="Parent Territories"
domain="[('sub_territorie_ids', '!=', False)]"/>
domain="[('parent_id', '=', False)]"/>
</search>
</field>
</record>