You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

38 lines
1.5 KiB

<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<!--website inherited views-->
<record id="view_website_form" model="ir.ui.view">
<field name="name">website.view.form.inherit.website.restrict.country
</field>
<field name="model">website</field>
<field name="inherit_id" ref="website.view_website_form"/>
<field name="arch" type="xml">
<xpath expr="//notebook" position="inside">
<page name="countries_selection" string="Countries">
<h5 class="text-muted">SELECT COUNTRIES
</h5>
<br/>
<group>
<group>
<field name="country_ids" widget="many2many_tags"
options="{'no_create': True, 'no_open': True}"/>
</group>
</group>
<group>
<field name="default_country_id"
domain="[('id','in', country_ids)]"
required="country_ids == True"/>
</group>
<br/>
<h5 class="text-muted">WHEN A PRODUCT IS NOT AVAILABLE IN A
COUNTRY, MESSAGES ARE DISPLAYED
</h5>
<br/>
<group>
<field name="cart_message"/>
</group>
</page>
</xpath>
</field>
</record>
</odoo>