-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d69f578
commit ade7b38
Showing
6 changed files
with
72 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# -*- coding: utf-8 -*- | ||
from . import ote | ||
from . import res_partner | ||
from . import res_company |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,82 @@ | ||
<?xml version="1.0"?> | ||
<odoo> | ||
<data> | ||
<record id="partner_view_form_info" model="ir.ui.view"> | ||
<field name="name">partner.view.info.form.inherit</field> | ||
<record id="partner_form_view_ec" model="ir.ui.view"> | ||
<field name="name">OTE view_partner_form inherit</field> | ||
<field name="model">res.partner</field> | ||
<field name="inherit_id" ref="base.view_partner_form"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//field[@name='street2']" position="after"> | ||
<field name="country_id" class="oe_no_button" placeholder="Country" | ||
options="{'no_quick_create':True,'no_create_edit':True}"/> | ||
</xpath> | ||
<xpath expr="//field[@name='city']" position="replace"> | ||
<field name="state_id" class="oe_no_button" placeholder="State" | ||
<!-- partner view --> | ||
<field name='country_id' position="replace"> | ||
<field name="city" placeholder="City" class="o_address_city" | ||
attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}"/> | ||
</field> | ||
<field name="city" position="replace"> | ||
<field name="country_id" placeholder="Country" class="o_address_country" | ||
options='{"no_open": True, "no_create": True}' | ||
attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}"/> | ||
</field> | ||
<field name="state_id" position="replace"> | ||
<field name="state_id" placeholder="State" options='{"no_open": True}' | ||
domain="[('country_id', '=', country_id)]" | ||
options="{'no_quick_create':True,'no_create_edit':True}"/> | ||
</xpath> | ||
<xpath expr="//field[@name='state_id']" position="replace"> | ||
<field name="canton_id" | ||
attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}" | ||
context="{'country_id': country_id, 'zip': zip}"/> | ||
<field name="canton_id" placeholder="Canton" | ||
domain="[('state_id', '=', state_id)]" | ||
class="oe_no_button" | ||
placeholder="Canton" | ||
options="{'no_quick_create':True,'no_create_edit':True}"/> | ||
</xpath> | ||
<xpath expr="//field[@name='zip']" position="replace"> | ||
<field name="parish_id" class="oe_no_button" placeholder="Parish" | ||
context="{'state_id': state_id}" options='{"no_open": True, "no_create": True}'/> | ||
<field name="parish_id" class="o_address_state" placeholder="Parish" | ||
domain="[('canton_id', '=', canton_id)]" | ||
options="{'no_quick_create':True,'no_create_edit':True}"/> | ||
context="{'canton_id': canton_id}" options='{"no_open": True, "no_create": True}'/> | ||
</field> | ||
<!-- contact view --> | ||
<xpath expr="//div[@name='div_address']" position="replace"> | ||
<div class="o_address_format" name="div_address"> | ||
<field name="street" placeholder="Street..." class="o_address_street"/> | ||
<field name="street2" placeholder="Street 2..." class="o_address_street"/> | ||
<field name="country_id" placeholder="Country" class="o_address_country" | ||
options='{"no_open": True, "no_create": True}'/> | ||
<field name="state_id" placeholder="State" options='{"no_open": True}' | ||
domain="[('country_id', '=', country_id)]" | ||
context="{'country_id': country_id, 'zip': zip}"/> | ||
<field name="canton_id" placeholder="Canton" | ||
domain="[('state_id', '=', state_id)]" | ||
context="{'state_id': state_id}" options='{"no_open": True, "no_create": True}'/> | ||
<field name="parish_id" class="o_address_state" placeholder="Parish" | ||
domain="[('canton_id', '=', canton_id)]" | ||
context="{'canton_id': canton_id}" options='{"no_open": True, "no_create": True}'/> | ||
<field name="zip" placeholder="ZIP" class="o_address_zip"/> | ||
<field name="city" placeholder="City" class="o_address_city"/> | ||
</div> | ||
</xpath> | ||
</field> | ||
</record> | ||
<record id="partner_address_form_view_ec" model="ir.ui.view"> | ||
<field name="name">OTE view_partner_address_form inherit</field> | ||
<field name="model">res.partner</field> | ||
<field name="inherit_id" ref="base.view_partner_address_form"/> | ||
<field name="arch" type="xml"> | ||
<field name='country_id' position="replace"> | ||
<field name="city" placeholder="City" class="o_address_city" | ||
attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}"/> | ||
</field> | ||
<field name="city" position="replace"> | ||
<field name="country_id" placeholder="Country" class="o_address_country" | ||
options='{"no_open": True, "no_create": True}' | ||
attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}"/> | ||
</field> | ||
<field name="state_id" position="replace"> | ||
<field name="state_id" placeholder="State" options='{"no_open": True}' | ||
domain="[('country_id', '=', country_id)]" | ||
attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}" | ||
context="{'country_id': country_id, 'zip': zip}"/> | ||
<field name="canton_id" placeholder="Canton" | ||
domain="[('state_id', '=', state_id)]" | ||
context="{'state_id': state_id}" options='{"no_open": True, "no_create": True}'/> | ||
<field name="parish_id" class="o_address_state" placeholder="Parish" | ||
domain="[('canton_id', '=', canton_id)]" | ||
context="{'canton_id': canton_id}" options='{"no_open": True, "no_create": True}'/> | ||
</field> | ||
</field> | ||
</record> | ||
</data> | ||
</odoo> |