|
# -*- coding: utf-8 -*-
|
|
|
|
from odoo import models, fields, api
|
|
from odoo.exceptions import UserError, ValidationError
|
|
from psycopg2 import sql, DatabaseError
|
|
from odoo.tools.safe_eval import safe_eval, datetime
|
|
|
|
from werkzeug import utils
|
|
|
|
|
|
|
|
class opendons_partnerdraft(models.Model):
|
|
_name = 'opendons.partnerdraft'
|
|
_description = 'import draft partner'
|
|
|
|
external_id=fields.Integer(string='external id',required=True)
|
|
source=fields.Char(String='source file',required=True)
|
|
name=fields.Char(string='name',required=True)
|
|
firstname=fields.Char(string='firstname')
|
|
phone = fields.Char(string='phone')
|
|
mobile = fields.Char(string='mobile')
|
|
email = fields.Char(string='email')
|
|
complement_ident = fields.Char(string='N° appartment,floor')
|
|
complement_geo = fields.Char(string='entry,tower,bat')
|
|
street = fields.Char(string='street')
|
|
street2 = fields.Char(string='street2')
|
|
city = fields.Char(string='city')
|
|
zip = fields.Char(string='zip code')
|
|
country = fields.Char(string='country')
|
|
|
|
|
|
|
|
|
|
|
|
|