123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163 |
- # -*- coding: utf-8 -*-
- # 说明:Selection,如果被引用,则为字符串字段。因此,不能设置默认值,否则新建报错
- # odoo14中selection的tuple[0]位置要求是str格式,否则 AssertionError: Field jc_bill_base.bill_state with non-str value in selection
- PRODUCT_NAME = 'Z2'
- bill_state = [('1', u'未审核'), ('10', u'已审核'), ('20', u'已完毕'), ('-1', u'已作废')]
- create_type = [('1', u'不生成'), ('10', u'未审核'), ('20', u'已审核')]
- create_type2 = [('1', u'不生成'), ('10', u'未确认'), ('20', u'已确认')]
- available = [('1', u'不启用'), ('10', u'启用')]
- # 销售流程状态:
- SALE_STATE_NOTIFIED_MINUS_1 = '-1'
- SALE_STATE_NOT_CHECKED_1 = '1'
- SALE_STATE_APPROVING_4 = '4'
- SALE_STATE_REFUSED_7 = '7'
- SALE_STATE_CHECKED_10 = '10'
- SALE_STATE_DO_TRAFFIC_14 = '14'
- SALE_STATE_LOADED_20 = '20'
- SALE_STATE_SECOND_WEIGHT_30 = '30'
- SALE_STATE_WAITING_PAY_40 = '40'
- SALE_STATE_INVOICED_50 = '50'
- SALE_STATE_TURN_OUT_STOCK_60 = '60'
- SALE_STATE_DO_FINISHED_70 = '70'
- SALE_STATE_REMIND_80 = '80'
- process_state = [(SALE_STATE_NOTIFIED_MINUS_1, u'已作废'), (SALE_STATE_NOT_CHECKED_1, u'未审核'),
- (SALE_STATE_APPROVING_4, u'审批中'), (SALE_STATE_REFUSED_7, u'已驳回'), (SALE_STATE_CHECKED_10, u'已审核'),
- (SALE_STATE_DO_TRAFFIC_14, u'已过磅'), (SALE_STATE_LOADED_20, u'已装货'),
- (SALE_STATE_SECOND_WEIGHT_30, u'已复磅'),
- (SALE_STATE_WAITING_PAY_40, u'待付款'), (SALE_STATE_INVOICED_50, u'已开票'),
- (SALE_STATE_TURN_OUT_STOCK_60, u'转出库'), (SALE_STATE_DO_FINISHED_70, u'已完毕'),
- (SALE_STATE_REMIND_80, u'提醒')]
- process_state_dic = {
- SALE_STATE_NOTIFIED_MINUS_1: u'已作废',
- SALE_STATE_NOT_CHECKED_1: u'未审核',
- SALE_STATE_APPROVING_4: u'审批中',
- SALE_STATE_REFUSED_7: u'已驳回',
- SALE_STATE_CHECKED_10: u'已审核',
- SALE_STATE_DO_TRAFFIC_14: U'已过磅',
- SALE_STATE_LOADED_20: u'已装货',
- SALE_STATE_SECOND_WEIGHT_30: u'已复磅',
- SALE_STATE_WAITING_PAY_40: u'待付款',
- SALE_STATE_INVOICED_50: u'已开票',
- SALE_STATE_TURN_OUT_STOCK_60: u'转出库',
- SALE_STATE_DO_FINISHED_70: u'已完毕',
- SALE_STATE_REMIND_80: u'提醒',
- }
- # 活禽采购流程状态:
- process_state_poultry_purchase = [('1', u'未确认'), ('10', u'已确认')]
- # 价格单类型
- CLASS_PRICE_1 = '1' # 分类价
- PROMOTION_PRICE_2 = '2' # 促销单价
- PRICE_BILL_TYPE = [
- # 销售
- (CLASS_PRICE_1, u'分类价'),
- (PROMOTION_PRICE_2, u'促销单价'),
- ]
- # 生产状态:
- produce_state1 = [('1', u'未审核'), ('10', u'已审核'), ('20', u'生产中'), ('30', u'已完工')]
- produce_state2 = [('1', u'未审核'), ('10', u'已审核'), ('20', u'已接收'), ('30', u'已完工')]
- # 上班标志
- working_flag = [('1', u'上班'), ('10', u'休班')]
- # 打卡标志 # 说明:'20'-->'193'; '30'-->'199'
- punch_mark = [('0', u'未打卡'), ('1', u'上班'), ('10', u'迟一'), ('102', u'迟二'), ('103', u'迟三'), ('104', u'迟四'),
- ('105', u'迟五'),
- ('130', u'中午早三'), ('131', u'中午早二'), ('132', u'中午早一'), ('139', u'中午下班'),
- ('170', u'中午上班'), ('177', u'中午迟一'), ('178', u'中午迟二'), ('179', u'中午迟三'),
- ('191', u'早三'), ('192', u'早二'), ('193', u'早一'), ('199', u'下班')]
- punch_mark_dic = {'0': u'未打卡', '1': u'上班', '10': u'迟一', '102': u'迟二', '103': u'迟三', '104': u'迟四', '105': u'迟五',
- '130': u'中午早三', '131': u'中午早二', '132': u'中午早一', '139': u'中午下班',
- '170': u'中午上班', '177': u'中午迟一', '178': u'中午迟二', '179': u'中午迟三',
- '191': u'早三', '192': u'早二', '193': u'早一', '199': u'下班'}
- # 产品分类
- goods_type_select = [('-1', u'产品分类'), ('1', u'产品分类1'), ('2', u'产品分类2'), ('3', u'产品分类3'), ('4', u'产品分类4'),
- ('5', u'产品分类5'), ('6', u'产品分类6')]
- goods_type_select_2 = [('goods_type_id', u'产品分类'), ('goods_type1_id', u'产品分类1'), ('goods_type2_id', u'产品分类2'),
- ('goods_type3_id', u'产品分类3'), ('goods_type4_id', u'产品分类4'), ('goods_type5_id', u'产品分类5'),
- ('goods_type6_id', u'产品分类6')]
- # 核销状态
- verify_state = [('1', u'未核销完成'), ('10', u'核销完成')]
- # 是否导出
- whether_export = [('true', u'是'), ('false', u'否')]
- # 考勤机
- attendance_state = [('1', u'打卡'), ('20', u'未打卡')]
- # 审批状态
- approve_state = [('1', u'未提交'), ('10', u'审批中'), ('20', u'审批完成')]
- # 审批操作
- approve_operate = [('1', u'提交'), ('5', u'撤回提交'), ('10', u'审批'), ('20', u'驳回'), ('30', u'撤回')]
- approve_1_COMMIT = '1' # u'提交'
- approve_5_BACK = '5' # u'撤回提交'
- approve_10_AGREE = '10' # u'审批'
- approve_20_REFUSE = '20' # u'驳回'
- approve_30_UN_AGREE = '30' # u'撤回'
- approve_operate_dic = {
- approve_1_COMMIT: u'提交',
- approve_5_BACK: u'撤回提交',
- approve_10_AGREE: u'审批',
- approve_20_REFUSE: u'驳回',
- approve_30_UN_AGREE: u'撤回'
- }
- # 员工/组
- staff_or_group = [('1', u'员工'), ('10', u'组')]
- # 默认每页打印行数
- DEFAULT_PRINT_LINE_COUNT_PER_PAGE = '6'
- # 单价/金额
- COMPUTE_PRICE = '1'
- COMPUTE_MONEY = '10'
- price_or_money = [(COMPUTE_PRICE, u'计算单价'), (COMPUTE_MONEY, u'计算金额')]
- # 成本方式
- COST_TYPE_INDEX_AVERAGE = '1'
- COST_TYPE_INDEX_FIFO = '10'
- cost_type = [(COST_TYPE_INDEX_AVERAGE, u'加权平均'), (COST_TYPE_INDEX_FIFO, u'先进先出')]
- # 审批
- APPROVE = '10'
- REFUSE = '12'
- APPROVE_SUCCESS = '14'
- ABNORMAL = '20'
- MESSAGE_TYPE = [
- (APPROVE, u'审批提醒'),
- (REFUSE, u'驳回提醒'),
- (APPROVE_SUCCESS, u'审批完成提醒'),
- (ABNORMAL, u'异常报警'),
- ]
- APPROVE_MODEL = ['jc_supply_chain.sale_order']
- ANALYSE = '1'
- ER_WEI = '10'
- CHART = '20'
- REPORT_TYPE = [(ANALYSE, u'分析表'), (ER_WEI, u'二维表'), (CHART, u'图表')]
- SINGLE_HEAD = '1'
- DOUBLE_HEAD = '10'
- TABLE_HEAD_TYPE = [
- (DOUBLE_HEAD, '双表头'),
- (SINGLE_HEAD, '单表头')
- ]
- LINE = '1'
- BAR = '10'
- CHART_TYPE = [(LINE, u'曲线图'), (BAR, u'柱状图')]
|