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

i have project module in which there are stages  of task like "done", cancel etc. now i want to add some more stages. module name "project.task.type"  how it could be possible.
this how it appear in my peoject.task module 

the are stages of my task like ongoing and inactive was created by myself through configuration setting now i want that these to be created when project module would be install 

아바타
취소
베스트 답변

Hi,

If you need to add new stages to the project module you can use the code and try to add the code to the data folder and keep it as a data file

<?xml version="1.0" encoding="utf-8"?>

<odoo>

    <data noupdate="1">

               <record id="stage_id" model="project.project.stage">

                <field name="sequence">15</field>

                <field name="name">In Progress</field>

              </record>

    </data>

</odoo>

   



or do you need to override the existing stages you can use this method - the project_project_stage_0 id is already added in the demo file for the stage  To Do you can replace it with Draft

<record id="project.project_project_stage_0" model="project.project.stage"> style="background-color:#fafafa;font-size:11pt;">
            <field name="name">Draft</field>
            <field name="sequence">10</field>
    </record>

   


Hope it helps

아바타
취소
관련 게시물 답글 화면 활동
4
7월 24
4907
0
9월 24
5432
0
12월 21
2366
0
12월 20
3074
2
8월 25
3753