콘텐츠로 건너뛰기
Odoo 메뉴
  • 로그인
  • 무료 체험하기
  • 앱
    재무 관리
    • 회계
    • 청구서 관리
    • 비용 관리
    • 스프레드시트 (BI)
    • 문서
    • 전자 서명
    판매
    • CRM
    • 판매
    • POS 스토어
    • POS 레스토랑
    • 구독
    • 렌탈
    웹사이트
    • 웹사이트 빌더
    • 이커머스
    • 블로그
    • 포럼
    • 실시간 채팅
    • 온라인 학습 관리
    공급망
    • 재고 관리
    • 제조 관리
    • 제품 수명주기 관리 (PLM)
    • 매입
    • 유지관리
    • 품질
    인적자원 관리
    • 직원
    • 채용
    • 휴가 관리
    • 인사 평가
    • 인재 추천
    • 차량 관리
    마케팅
    • 소셜 마케팅
    • 이메일 마케팅
    • SMS 마케팅
    • 행사
    • 마케팅 자동화
    • 설문 조사
    서비스
    • 프로젝트
    • 작업 기록
    • 현장 서비스
    • 헬프데스크
    • 일정 관리
    • 일정 예약
    생산성
    • 메일 및 채팅
    • 전자 결재
    • IoT
    • VoIP
    • 지식 센터
    • WhatsApp
    타사 앱 Odoo 스튜디오 Odoo 클라우드 플랫폼
  • 인더스트리
    리테일
    • 서점
    • 의류 매장
    • 가구점
    • 식료품점
    • 철물점
    • 장난감 가게
    식음료 & 숙박업
    • 바 & 펍
    • 레스토랑
    • 패스트푸드
    • 게스트 하우스
    • 음료 유통업체
    • 호텔
    부동산
    • 부동산 중개업체
    • 건축 회사
    • 건설
    • 부동산 관리
    • 가드닝
    • 부동산 소유자 협회
    컨설팅
    • 회계 법인
    • Odoo 파트너
    • 마케팅 대행사
    • 법률 사무소
    • 인재 영입
    • 감사 및 인증
    제조 관리
    • 텍스타일
    • 메탈
    • 가구
    • 푸드
    • 양조장
    • 기업용 선물
    건강 & 피트니스
    • 스포츠 클럽
    • 안경점
    • 피트니스 센터
    • 웰니스 전문가
    • 약국
    • 미용실
    사업
    • 핸디맨
    • IT 하드웨어 및 지원 서비스
    • 태양 에너지 시스템
    • 제화업체
    • 클리닝 서비스
    • HVAC 서비스
    기타
    • 비영리 단체
    • 환경 에이전시
    • 광고판 임대
    • 사진
    • 자전거 임대
    • 소프트웨어 리셀러
    전체 인더스트리 찾아보기
  • 커뮤니티
    학습
    • 튜토리얼
    • 문서
    • 인증
    • 훈련
    • 블로그
    • 팟캐스트
    교육 역량 강화
    • 교육 프로그램
    • Scale-Up! 경영관리 게임
    • Odoo에 방문해보세요
    소프트웨어 신청
    • 다운로드
    • 버전 살펴보기
    • 릴리즈 내역
    협업
    • Github
    • 포럼
    • 행사
    • 번역
    • 파트너 등록
    • 파트너 대상 서비스
    • 회계 법인 정보 등록
    서비스 신청
    • 파트너 검색
    • 회계사 검색
    • 전문 상담 예약
    • 구현 서비스
    • 고객 정보
    • 고객 지원
    • 업그레이드
    Github 유튜브 트위터 링크드인 인스타그램 페이스북 스포티파이
    +1 (650) 691-3277
    데모 예약하기
  • 요금제
  • 고객 지원

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • 회계
  • 재고 관리
  • PoS
  • 프로젝트
  • MRP
All apps
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
모든 게시물 사용자 배지
태그 (모두 보기)
odoo accounting v14 pos v15
게시판 정보
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
모든 게시물 사용자 배지
태그 (모두 보기)
odoo accounting v14 pos v15
게시판 정보
도움말

Create multiple fixed price pricelists

구독

이 게시물에 활동이 있으면 알림 받기

신고된 질문입니다
pricelist
3 답글
22969 화면
아바타
mamak111

I have 3 pricelists for a company as follows:

  1. Wholesale bulk (Whole cases are sold to large retailers)
  2. Wholesale less than a case( Cases are broken up for smaller retailers)
  3. Retail (price direct to consumer)

My question is this, how do I define the different price lists as I have to do a CSV import of over 2400 items? Normally pricelists have rules that define the markup as a formula from the cost or the previous pricelist. The problem is that the difference in pricing does not follow a fixed markup across the entire product range. For eg. lists will have the following price structure:

  • Item A- Cost $1.00 Price 1: $1.50 Price 2: $1.75 Price 3: $2.25
  • Item B- Cost $2.00 Price 1: $2.50 Price 2: $2.75 Price 3: $3.25
  • Item C- Cost $6.00 Price 1: $8.50 Price 2: $9.75 Price 3: $12.25
  • Item D- Cost $4.00 Price 1: $5.50 Price 2: $6.75 Price 3: $8.25

As you can see there is no fixed %markup. Pricing is done according to market dictates. It is a competitive market with price fluctuations according to supply and demand.

4
아바타
취소
아바타
Yannick Payot
베스트 답변

If you have multiple prices without any kind of relation between them, what you need to do is adding multiple price fields on your product object.

Then you create a price type setting Product Field for each product Sale price field you created.

Sales -> Configuration -> Pricelist -> Price type

And in your pricelists you select the price type and then it will be based on the field.

This way you will have independent pricelists.

So you will have:


  • Product1

    • Sale price1: 1$
    • Sale price2: 42$

  • Price Type1

    • Product Field: Sale price1

  • Price Type2

    • Product Field: Sale price2

  • Pricelist1

    • Pricelist Type: Price Type 1

  • Pricelist2

    • Pricelist Type: Price Type 2
4
아바타
취소
mamak111
작성자

Thanks will give it a go

mamak111
작성자

I am having a bit of trouble creating the fields. I have browsed the fields in the database structure. There are several relationships that need to be defined. Also which are the specific default files that I need to duplicate. Obviously I will have to rename and relabel the fields. I also need to know how many and which different types of fields to create per price. I would really appreciate the help. Thanks in advance.

Yannick Payot

Hello mamak111, in my exemple, Sale price1 and Sale price2 are 2 fields. But as you already have an existing Sale price you just need to create one. And for one field you will have one Price Type.

Yannick Payot

I just corrected a typo. You will have 2 resulting pricelists not only one.

아바타
Matthew Laney
베스트 답변

There is an easy way to accomplish this using the built in pricing formula. The first option in the formula is a discount off the base price. Just enter a -1 (negative 1) in this box. By doing this you get Base Price * (1 + -1), so it multiplies by 0 and the Base Price is removed from the equation.

3
아바타
취소
mamak111
작성자

Dear Mathew

mamak111
작성자

Hi Mathew. Could you please explain this a bit more. How will I then add Price 2 and price 3 to the product?

Matthew Laney

You create a different pricelist version for each. Within each CSV import, you want to have items_id/price_discount be -1 for everything and have items_id/price_surcharge be the fixed price. That is how you prevent each pricelist version from be dependent on the others, because it does (1 + -1) * base price + surcharge, so it multiplies by 0 and you are left with only the surcharge.

To get a good idea, manually create two pricelist versions with just 3 or 4 products in each then export them so you can see the correct format.

Dale

Great Matthew. Thanks for this, useful, simple advice

아바타
patrick
베스트 답변

Another way is to use scripts, which will add the prices to the correct pricelist (and ignoring all prices on the product). This way, you can specify the period the price(s) is/are valid, so you can keep track of the history.

Script

To use the script, I have installed openerp-client-lib

I use a CSV-file, which has at least the productcode (unique), and the new price

import openerplib
import datetime

################################################################################
## default values
################################################################################
# To store data
h = "192.168.1.1"
db= "database_name"
u = "admin"
p = "adminpw"

line = '-' *45 + '\n'
file_prijslijst = 'pricelist.csv'
f_error = 'importError.csv'
f_result = 'importResult.txt'
namePartner = 'name of the partner/pricelist'

################################################################################
## VARIOUS ROUTINES
################################################################################
def printHeading():
  f_res.write(line)
  dateX = str(datetime.datetime.now())
  f_res.write('-' * 10 + dateX+'\n')

def initConnection(h, db, u, p):
  printHeading()
  f_res.write('Connecting to %s \nuser: %s\ndatabase: %s\n' %(h, u, db))
  return openerplib.get_connection(
    hostname=h, database=db, login=u, password=p)

def addValsToDB(c, m, vals):
  printHeading()
  f_res.write('Adding data to %s\n' %(m))
  print 'Adding data to', m
  model = c.get_model(m)
  result = []
  i = 0
  for v in vals:
    result.append(model.create(v))
    i += 1
    x, y = divmod(i, 100)
    if y == 0:
      f_res.write('Added already %d records to %s\n' %(x*100, m))
      print 'Added already %d records to %s' %(x*100, m)
  f_res.write('Number of records added: %d\n' %(len(result)))
  print 'Number of records added: %d' %(len(result))
  return result

################################################################################
## Start of the script
################################################################################
f_res = open(f_result,'w')
f_fout = open(f_error, 'w')

connection = initConnection(h, db, u, p)

f_fout.write('Code;Omschrijving\n')

################################################################################
## PRODUCT.PRICELIST
## PRODUCT.PRICELIST.VERSION
## PRODUCT.PRICELIST.ITEM
################################################################################
f_lijst = open(file_prijslijst)
heading = f_lijst.readline()

# pricelist for namePartner
m = "product.pricelist"
print 'Creating', m, namePartner

vals = []
vals.append({
'name': namePartner,
'company_id': 1,
'version_id': [],
'currency_id': 1, #this is EURO
'commrate': 0,
'active': True,
'type': 'sale'
})
myPriceList = addValsToDB(connection, m, vals)
myPriceList = myPriceList[0] #to get the ID, instead of [id]

# Pricelist Version
m = "product.pricelist.version"
vals = []
vals.append({
'items_id': [],
'name': namePartner + ' - version',
'date_end': '2013-12-31',
'date_start': '2013-01-01',
'active': True,
'pricelist_id': myPriceList,
})
res = addValsToDB(connection, m, vals)

# Pricelist item
m = "product.pricelist.item"

prod_obj = connection.get_model('product.product')
vals = []
for l in f_lijst:
  res = l.replace('\n','').split(';')
  #zoek productID, adhv code
  prodID = prod_obj.search([('default_code', '=', res[1])])
  if prodID == []:
#    print 'ERROR, niet te vinden:', l
    f_fout.write('ERROR;product %s-%s, %s niet te vinden\n' %(res[1], res[2],res[4]))
    continue
  vals.append({
  'price_round': 0.0,
  'price_discount': -1.0,
  'base_pricelist_id': 1,
  'sequence': 25,
  'price_max_margin': 0.0,
  'product_tmpl_id': False,
  'product_id': prodID[0], #Product to use
  'base': 1,
  'price_version_id': myPriceList,
  'min_quantity': 0,
  'price_surcharge': float(res[8]), # 0.0, #From the file
  'price_min_margin': 0.0,
  'categ_id': False,
  'name': '%s-%s, %s' %(res[1], res[2], res[4]),
  })
# add a reference to DEFAULT pricelist, so articles which are not defined are used from DEFAULT
vals.append({
  'price_round': 0.0,
  'price_discount': 0.0,
  'base_pricelist_id':  1, #DEFAULT
  'sequence': 50,
  'price_max_margin': 0.0,
  'product_tmpl_id': False,
  'base': -1,
  'price_version_id': myPriceList,
  'min_quantity': 0,
  'price_surcharge': 0,
  'price_min_margin': 0.0,
  'categ_id': False,
  'name': 'Alle andere producten',
})
res = addValsToDB(connection, m, vals)

f_lijst.close()

################################################################################
## END OF THE SCRIPT
################################################################################
f_res.write(line)
printHeading()
f_res.close()
f_fout.close()
print line
print 'Einde'
# vim:expandtab:smartindent:tabstop=2:softtabstop=2:shiftwidth=2:
2
아바타
취소
mamak111
작성자

Thanks I will really appreciate having a sample to work with.

patrick

Example will be posted after my holidays.... I'll change my answer to include it.

mamak111
작성자

Thanks in advance

mamak111
작성자

Thanks for the sample script. However I fear that this is a bit above my skill set. I am trying to work with it in a demo company and will hopefully understand it. Appreciate the effort, thanks

patrick

@Mamak, feel free to contact me directly if you need help. Can tell you more by email.

토론이 재미있으신가요? 직접 참여해보세요!

지금 바로 가입하여 독점 서비스를 이용해보고 특별한 커뮤니티와 소통하세요!

가입
관련 게시물 답글 화면 활동
Price list update
pricelist
아바타
아바타
1
6월 25
1555
'Discount' Pricelist not show up in Product detail page
pricelist
아바타
2
4월 25
1711
Pricelist Changes Unexpectedly During Contact Duplication in Multi-Company Setup
pricelist
아바타
0
1월 25
1731
Update the default pricing list for a company in Sales 해결 완료
pricelist
아바타
아바타
1
12월 24
3308
how to add product category field into product pricelist report in odoo
pricelist
아바타
0
4월 24
1781
커뮤니티
  • 튜토리얼
  • 문서
  • 포럼
오픈 소스
  • 다운로드
  • Github
  • Runbot
  • 번역
서비스
  • Odoo.sh 호스팅
  • 고객 지원
  • 업그레이드
  • 맞춤 개발
  • 학습
  • 회계사 검색
  • 파트너 검색
  • 파트너 등록
회사 소개
  • 회사 소개
  • 브랜드 자산
  • 상담 문의
  • 인재 채용
  • 행사
  • 팟캐스트
  • 블로그
  • 고객 사례
  • 법적고지 • 개인정보
  • 보안
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo는 CRM, 이커머스, 회계, 재고, POS, 프로젝트 관리 등 기업의 모든 요구 사항을 충족하도록 설계된 오픈 소스 기반의 통합 비즈니스 앱 제품군입니다.

Odoo의 간편한 UI와 완벽하게 통합된 기능을 직접 확인해 보세요.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now