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

I inherit from stock.picking.out to add some fields

_inherit = 'stock.picking.out'

_columns = {
    'transp_name':fields.char('Chauffeur', size=25,store=True),
    'transp_tel':fields.char('Téléphone',size=14,store=True,),
    'transp_cin': fields.char('CIN Chauffeur', size=8,store=True, ),
    'transp_matricule': fields.char('Matricule Camion', size=64,store=True,  ),
}
_defaults = {
    'transp_name':'/',
    'transp_cin': '/',
    'transp_matricule': '/',
}

_order = "origin desc"

and the view :

     <record id="view_inherits" model="ir.ui.view">
        <field name="name">inherits.form</field>
        <field name="type">form</field>
        <field name="model">stock.picking.out</field>
        <field name="inherit_id" ref="stock.view_picking_out_form"/>
        <field name="arch" type="xml">
            <field name="invoice_state" position="after">
              <field name="transp_name"/>
              <field name="transp_cin"/>
              <field name="transp_tel"/>
              <field name="transp_matricule"/>
            </field>
        </field>
    </record>

when I clic in the Save button the transp_* became '' NOT SAVING !

아바타
취소

Please copy the details of the error message ?

작성자

there's no errors in log this is the addons http://www.mediafire.com/?bijzw7r78tx48gv

the module works without any problem!! and all transp_* are saved

작성자

oups I will try in other DB

작성자

are you using Openerp 7 ? because it doesn't work in my server !!!!

yes .OpenERP7

작성자

weird, My server is mad !!!!

작성자

probmel solved (y)

베스트 답변

stock.picking.out is using the same table as stock.picking.in, namely the table stock.picking.

Did you add the same fields to the table/model stock.picking? I had issues when I added something to stock.picking, and not to stock.picking.out, that I could not save the data in my new field when using model stock.picking.out.

아바타
취소
작성자

thanks for helping I solved the problem (y)

작성자 베스트 답변

the problem was in the server version I downloaded an other version and it work well :)

아바타
취소
관련 게시물 답글 화면 활동
1
10월 23
1856
1
8월 23
2196
3
5월 25
1961
1
4월 25
1476
3
9월 24
14478