콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

Hi, I am trying to put 'Product Category' to the POS Order Analysis. Still very new to OpenERP. So far I did:

In 'pos_order_report.py' add

'categ_id': fields.many2one('product.category','Category of Product', readonly=True),

to the pos_order_report class, and then

pt.categ_id as categ_id,
...
group by
...
pt.categ_id

in the SQL

In 'pos_order_report_view.xml' add

<field name="categ_id" invisible="1"/>

in the view_report_pos_order_tree and

 <field name="categ_id"/>

in view_report_pos_order_search

The Error it shows when I try to filter by "Category of Product" is:

ProgrammingError: Column report_pos_order.categ_id does not exist

LINE 1: ...HERE (("report_pos_order"."year" = '2013') AND ("report_po...

What am I doing wrong?

아바타
취소
작성자 베스트 답변

Ok, the problem was I had to update the database

openerp-server.exe -d my_database_name -u point_of_sell

Problem solved!

아바타
취소
관련 게시물 답글 화면 활동
1
3월 15
3747
1
1월 24
4828
What's the context? 해결 완료
9
3월 24
118656
2
5월 23
3231
1
6월 20
12029