0
나는 사용자 정의 모듈과 같은 새로운 stock.location
에 정의한 이 같은 새로운 API, 상기 default
속성으로전화 특정 재고 위치 Odoo v9의 커뮤니티는
x_location_src_id = fields.Many2one('stock.location', string=u'Ubicacion Origen de Productos', required=True,
readonly=False, default='ReparacionUnidades',
help="Location where the system will look for components.")
x_location_dest_id = fields.Many2one('stock.location', string=u'Ubicacion Destino de Productos', required=True,
readonly=False, default='ReparacionUnidades',
help="Location where the system will look for components.")
, 지금,이 순간,이 양식에 빈 나타납니다. 이 경우에
ref="stock.stock_location_locations_virtual"
:
분명히, 나는 무슨 일이의 등가 수, 더 나은 것 올바른 방법으로 위치를 호출, 그래서 내가 호출하는 방법, 또는 아니에요?
나는 stock_location
DB 테이블을 검색했지만 정말로 실마리가 없습니다.
아이디어가 있으십니까?
def _static_location(self):
return ReparacionUnidades
그런 다음,
default
속성에이
_static_location
개체를 호출하지만,
ReparacionUnidades
분명히 정의되지 않은 :
편집
나는 또한이 같은 시도했습니다.
LoL, 임마, 나는 그것을 어떻게 알아 차리지 못했습니까, 정말 고마워요. – NeoVe