Browse Source

Add country on main company as demo data (otherwize it blocks write on phone numbers).

pull/7/head
Alexis de Lattre 11 years ago
parent
commit
f5e2970291
  1. 1
      base_phone/__openerp__.py
  2. 18
      base_phone/base_phone_demo.xml

1
base_phone/__openerp__.py

@ -49,6 +49,7 @@ Please contact Alexis de Lattre from Akretion <alexis.delattre@akretion.com> for
'static/lib/js/*.js', 'static/lib/js/*.js',
], ],
'qweb': ['static/src/xml/*.xml'], 'qweb': ['static/src/xml/*.xml'],
'demo': ['base_phone_demo.xml'],
'images': [], 'images': [],
'installable': True, 'installable': True,
'active': False, 'active': False,

18
base_phone/base_phone_demo.xml

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2014 Alexis de Lattre
@author Alexis de Lattre <alexis@via.ecp.fr>
The licence is in the file __openerp__.py
-->
<openerp>
<data noupdate="1">
<!-- I need a country on the company, because otherwize it raises an error -->
<record id="base.main_company" model="res.company">
<field name="country_id" ref="base.fr"/>
</record>
</data>
</openerp>
Loading…
Cancel
Save