diff --git a/partner_street_number/__init__.py b/partner_street_number/__init__.py
index 55fd67147..40481b593 100644
--- a/partner_street_number/__init__.py
+++ b/partner_street_number/__init__.py
@@ -36,7 +36,7 @@ def post_init_hook(cr, registry):
cr.execute(
'SELECT id, street FROM res_partner '
'WHERE street IS NOT NULL and street_name IS NULL'
- )
+ )
partner_obj = registry['res.partner']
for partner in cr.fetchall():
partner_obj.write(
diff --git a/partner_street_number/__openerp__.py b/partner_street_number/__openerp__.py
index e6fdebe85..29afbc3bc 100644
--- a/partner_street_number/__openerp__.py
+++ b/partner_street_number/__openerp__.py
@@ -21,17 +21,18 @@
{
"name": "Street name and number",
"summary": "Introduces separate fields for street name and street number.",
- "version": "8.0.0.1.0",
+ "version": "9.0.0.1.0",
"author": "Therp BV,Odoo Community Association (OCA)",
"website": "https://github.com/oca/partner-contact",
"category": 'Tools',
"depends": [
- 'base'
- ],
+ 'web',
+ ],
"data": [
'views/res_partner.xml',
- ],
- 'installable': False,
+ 'views/assets.xml',
+ ],
+ 'installable': True,
'license': 'AGPL-3',
'post_init_hook': 'post_init_hook',
}
diff --git a/partner_street_number/static/src/css/field.css b/partner_street_number/static/src/css/field.css
new file mode 100644
index 000000000..910918673
--- /dev/null
+++ b/partner_street_number/static/src/css/field.css
@@ -0,0 +1,11 @@
+.o_address_street_name {
+ float: left !important;
+ margin-right: 2% !important;
+ width: 75% !important;
+ }
+
+.o_address_street_number {
+ margin-right: 0% !important;
+ width: 25% !important;
+ }
+
\ No newline at end of file
diff --git a/partner_street_number/views/assets.xml b/partner_street_number/views/assets.xml
new file mode 100644
index 000000000..f4b0f49e9
--- /dev/null
+++ b/partner_street_number/views/assets.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/partner_street_number/views/res_partner.xml b/partner_street_number/views/res_partner.xml
index 148b0f8c6..784b87a25 100644
--- a/partner_street_number/views/res_partner.xml
+++ b/partner_street_number/views/res_partner.xml
@@ -7,46 +7,63 @@
res.partner
-
-
-
-
-
-
-
1
-
-
-
-
-
-
1
- {'default_parent_id': active_id, 'default_street_name': street_name, 'default_street_number': street_number, 'default_street2': street2, 'default_city': city, 'default_state_id': state_id, 'default_zip': zip, 'default_country_id': country_id, 'default_supplier': supplier, 'default_customer': customer, 'default_use_parent_address': True}
+ {'default_parent_id': active_id, 'default_street_name': street_name, 'default_street_number': street_number, 'default_street2': street2, 'default_city': city, 'default_state_id': state_id, 'default_zip': zip, 'default_country_id': country_id, 'default_supplier': supplier, 'default_customer': customer}
+
+
+ Add separate fields for street name and number in address form
+ res.partner
+
+
+
+
+
+
+
+ 1
+
+
+
+