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.
 
 

35 lines
1.1 KiB

# -*- 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')