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

Hi,

I'm developing a module that links openerp to a warehouse management system (Accellos One). I need to prevent sales orders from being edited while the orders are processed by the warehouse management system.

The module adds two fields to the sales order view. One of these fields is boolean. When this field is set to true, I need to remove the Edit button, When false, it need to be visible.

I can hide the edit button in the view.xml:

<xpath expr='//form[@string="Sale Order"]' position='attributes'>
     <attribute name="edit">false</attribute>
</xpath>

How do I hide the edit button when my filed is set to true?

Many thanks, Tony.

아바타
취소

What do you mean with this question? By default, when an order is confirmed, you cannot edit anything, except the customer reference and the notes on the order. What causes you to want to remove the Edit-button?

작성자

Thanks Patrick, you right, nothing of any importance can be edited after the order has been confirmed. What i need to do is to stop modifications to the Delivery Orders. Our warehouse software takes care of this.

In that case you want to remove the edit-rights of every one regarding stock.picking en stock.move. But do not remove create, because they need to create the Delivery order.....

베스트 답변

You can use Access Rights and Groups instead of hide edit button.

See Following Links,

Security in OpenERP: users, groups

아바타
취소

But his question is about people who have access rights, and want to hide the edit, depending on a valiue of the boolean-field.

베스트 답변

Hey Tony, I'd like to know if you have certain answer for this since I'm still looking for an answer.

아바타
취소
관련 게시물 답글 화면 활동
1
5월 25
1128
3
3월 25
1294
1
5월 24
3862
2
3월 23
10249
2
3월 23
2565