Skip to Content
Odoo เมนู
  • ลงชื่อเข้าใช้
  • ทดลองใช้ฟรี
  • แอป
    การเงิน
    • ระบบบัญชี
    • ระบบการออกใบแจ้งหนี้
    • ระบบบัญชีรายจ่าย
    • ระบบการจัดการข้อมูลผ่านสเปรดชีต (BI)
    • เอกสาร
    • ระบบลงลายเซ็น
    การขาย
    • ลูกค้าสัมพันธ์
    • การขาย
    • POS ร้านค้า
    • POS ร้านอาหาร
    • ระบบสมัครสมาชิก
    • การเช่า
    การจัดการเว็บไซต์
    • เครื่องมือสร้างเว็บไซต์
    • ระบบการขายออนไลน์
    • บล็อก
    • ฟอรั่ม
    • ไลฟ์แชท
    • ระบบการอบรมออนไลน์
    ซัพพลายเชน
    • คลังสินค้า
    • ระบบการผลิต
    • PLM
    • ระบบการจัดซื้อ
    • การซ่อมบำรุง
    • ระบบจัดการคุณภาพ
    ทรัพยากรบุคคล
    • ข้อมูลพนักงาน
    • ระบบสรรหาบุคลากร
    • ระบบการลา
    • การประเมิน
    • ระบบการแนะนำพนักงาน
    • ระบบจัดการยานพาหนะ
    การตลาด
    • โซเชียลมาร์เก็ตติ้ง
    • การตลาดผ่านอีเมล
    • ระบบการตลาดผ่าน SMS
    • ระบบการจัดงานอีเวนต์
    • การตลาดแบบอัตโนมัติ
    • ระบบแบบสำรวจ
    การบริการ
    • โปรเจกต์
    • ระบบบันทึกเวลา
    • ระบบการจัดการบริการภาคสนาม
    • ระบบดูแลช่วยเหลือ
    • การวางแผน
    • การนัดหมาย
    ประสิทธิผล
    • ระบบแสดงความคิดเห็น
    • ระบบการอนุมัติ
    • ไอโอที
    • VoIP
    • คลังข้อมูล
    • WhatsApp
    แอปพลิเคชันของบุคคลที่สาม Odoo สตูดิโอ แพลตฟอร์มคลาวด์ของ Odoo
  • อุตสาหกรรม
    การค้าปลีก
    • ร้านขายหนังสือ
    • ร้านขายเสื้อผ้า
    • ร้านขายเฟอร์นิเจอร์
    • ร้านขายของชำ
    • ร้านขายฮาร์ดแวร์
    • ร้านขายของเล่น
    Food & Hospitality
    • บาร์และผับ
    • ร้านอาหาร
    • อาหารฟาสต์ฟู้ด
    • Guest House
    • ตัวแทนจำหน่ายเครื่องดื่ม
    • Hotel
    อสังหาริมทรัพย์
    • Real Estate Agency
    • บริษัทสถาปัตยกรรม
    • บริษัทรับเหมา
    • การจัดการอสังหาริมทรัพย์
    • การจัดสวน
    • สมาคมเจ้าของอสังหาริมทรัพย์
    ปรึกษา
    • สำนักงานบัญชี
    • Odoo พาร์ทเนอร์
    • เอเจนซี่การตลาด
    • สำนักงานกฎหมาย
    • บริการสรรหาบุคลากร
    • การตรวจสอบและการรับรอง
    ระบบการผลิต
    • Textile
    • เหล็ก
    • เฟอร์นิเจอร์
    • อาหาร
    • Brewery
    • ของขวัญขององค์กร
    สุขภาพ & ฟิตเนส
    • ชมรมกีฬา
    • ร้านขายแว่นตา
    • ฟิตเนส
    • ผู้ประกอบวิชาชีพด้านสุขภาพ
    • ร้านขายยา
    • ร้านทำผม
    Trades
    • ช่างซ่อม
    • ฮาร์ดแวร์และการสนับสนุนด้านไอที
    • ระบบพลังงานแสงอาทิตย์
    • ช่างทำรองเท้า
    • บริการทำความสะอาด
    • HVAC Services
    อื่น ๆ
    • Nonprofit Organization
    • สำนักงานสิ่งแวดล้อม
    • ร้านเช่าป้ายโฆษณา
    • การถ่ายภาพ
    • ร้านเช่าจักรยาน
    • ตัวแทนจำหน่ายซอฟต์แวร์
    Browse all Industries
  • คอมมูนิตี้
    ศึกษา
    • บทเรียน
    • เอกสารกำกับโปรแกรม
    • การรับรอง
    • การฝึกอบรม
    • บล็อก
    • พอดแคสต์
    เพิ่มศักยภาพให้กับการศึกษา
    • โปรแกรมการศึกษา
    • Scale Up! Business Game
    • เยี่ยมชม Odoo
    รับซอฟต์แวร์
    • ดาวน์โหลด
    • เปรียบเทียบรุ่น
    • เผยแพร่
    ทำงานร่วมกัน
    • Github
    • ฟอรั่ม
    • ระบบการจัดงานอีเวนต์
    • การแปล
    • ร่วมเป็นพาร์ทเนอร์
    • Services for Partners
    • ลงทะเบียนเพื่อสร้างบัญชีบริษัทของคุณ
    รับบริการ
    • ค้นหาพาร์ทเนอร์
    • ค้นหานักบัญชี
    • พบกับที่ปรึกษา
    • บริการติดตั้งระบบเพื่อใช้งาน
    • ข้อมูลอ้างอิงลูกค้า
    • การสนับสนุน
    • อัปเกรด
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    รับการสาธิต
  • ราคา
  • ช่วยเหลือ

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • ลูกค้าสัมพันธ์
  • e-Commerce
  • ระบบบัญชี
  • สินค้าคงคลัง
  • PoS
  • โปรเจกต์
  • MRP
All apps
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
All Posts คน เหรียญรางวัล
แท็ก (View all)
odoo accounting v14 pos v15
เกี่ยวกับฟอรั่มนี้
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
All Posts คน เหรียญรางวัล
แท็ก (View all)
odoo accounting v14 pos v15
เกี่ยวกับฟอรั่มนี้
ช่วยเหลือ

Programming error

ติดตาม

รับการแจ้งเตือนเมื่อมีกิจกรรมในโพสต์นี้

คำถามนี้ถูกตั้งค่าสถานะ
errorviewsqlprogramming
5202 มุมมอง
อวตาร
MALLE SOULEYMANE

Hi, I create a tree view based in the sql view, I don't know the source of this error:

Client Traceback (most recent call last): File "/home/openerp/workspace/sankofa/openerp/addons/web/http.py", line 203, in dispatch response["result"] = method(self, **self.params) File "/home/openerp/workspace/sankofa/openerp/addons/web/controllers/main.py", line 1055, in search_read return self.do_search_read(req, model, fields, offset, limit, domain, sort) File "/home/openerp/workspace/sankofa/openerp/addons/web/controllers/main.py", line 1078, in do_search_read req.context) File "/home/openerp/workspace/sankofa/openerp/addons/web/session.py", line 43, in proxy result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw) File "/home/openerp/workspace/sankofa/openerp/addons/web/session.py", line 31, in proxy_method result = self.session.send(self.service_name, method, *args) File "/home/openerp/workspace/sankofa/openerp/addons/web/session.py", line 104, in send raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info) Server Traceback (most recent call last): File "/home/openerp/workspace/sankofa/openerp/addons/web/session.py", line 90, in send return openerp.netsvc.dispatch_rpc(service_name, method, args) File "/home/openerp/workspace/sankofa/openerp/netsvc.py", line 293, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File "/home/openerp/workspace/sankofa/openerp/service/web_services.py", line 626, in dispatch res = fn(db, uid, *params) File "/home/openerp/workspace/sankofa/openerp/osv/osv.py", line 188, in execute_kw return self.execute(db, uid, obj, method, *args, **kw or {}) File "/home/openerp/workspace/sankofa/openerp/osv/osv.py", line 131, in wrapper return f(self, dbname, *args, **kwargs) File "/home/openerp/workspace/sankofa/openerp/osv/osv.py", line 197, in execute res = self.execute_cr(cr, uid, obj, method, *args, **kw) File "/home/openerp/workspace/sankofa/openerp/osv/osv.py", line 185, in execute_cr return getattr(object, method)(cr, uid, *args, **kw) File "/home/openerp/workspace/sankofa/openerp/osv/orm.py", line 2354, in search return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count) File "/home/openerp/workspace/sankofa/openerp/osv/orm.py", line 4856, in _search cr.execute('SELECT "%s".id FROM ' % self._table + from_clause + where_str + order_by + limit_str + offset_str, where_clause_params) File "/home/openerp/workspace/sankofa/openerp/sql_db.py", line 161, in wrapper return f(self, *args, **kwargs) File "/home/openerp/workspace/sankofa/openerp/sql_db.py", line 226, in execute res = self._obj.execute(query, params) ProgrammingError: relation "transfert_movement" does not exist LINE 1: SELECT "transfert_movement".id FROM "transfert_movement" ORDER BY "transfert_m... ^

My xml code is:

    <record id="view_transfert_movement_search" model="ir.ui.view">
        <field name="name">transfert.movement.search</field>
        <field name="model">transfert.movement</field>
        <field name="arch" type="xml">
            <search string="transfert movements">
                 <filter string="No.Transfert" domain="[]"  context="{'group_by':'name'}"/>
                 <filter string="Respo. Chargeur" domain="[]"  context="{'group_by':'partner_id'}"/>
                 <filter string="Chauffeur" domain="[]"  context="{'group_by':'material_driver_partner_id'}"/>
                 <filter string="Camion" domain="[]"  context="{'group_by':'material_license_plate'}"/>
                 <filter string="Date du transfert" domain="[]"  context="{'group_by':'date'}"/>
                 <filter string="Material" domain="[]"  context="{'group_by':'product_id'}"/>
                 <filter string="Source" domain="[]"  context="{'group_by':'sourcelocation'}"/>
                 <filter string="Destination" domain="[]"  context="{'group_by':'destinationlocation'}"/>
                 <filter string="Statut" domain="[]"  context="{'group_by':'state'}"/>
            </search>
        </field>
    </record>

    <record id="view_transfert_movement_report_tree_new" model="ir.ui.view">
        <field name="name">transfert.movement.tree</field>
        <field name="model">transfert.movement</field>
        <field name="arch" type="xml">
            <tree string="Out movements" create='false'>
                <field name="name"/>
                <field name="partner_id"/>
                <field name="material_driver_partner_id"/>
                <field name="material_license_plate"/>
                <field name="date"/>
                <field name="product_id"/>
                <field name="product_qty"/>
                <field name="sourcelocation"/>
                <field name="destinationlocation"/>
                <field name="state"/>
            </tree>
        </field>
    </record>
 
    <record id="action_transfert_movement_report_new" model="ir.actions.act_window">
        <field name="name">transfert movements</field>
        <field name="res_model">transfert.movement</field>
        <field name="view_type">form</field>
<!--         <field name="search_view_id" ref="view_transfert_movement_search"/> -->
        <field name="view_mode">tree</field>
    </record>
    <menuitem name="Mouvements" id="menu_transfert_mouvement_new" parent="menu_material_transfert" action="action_transfert_movement_report_new" sequence="20"/>

and my .py code is:

class transfert_movement(osv.osv):
    _name = "transfert.movement"
    _description = "transfert movement"
    _auto = False
    _columns = {
        'name': fields.char('No. Transfert', size=128),
        'partner_id': fields.many2one('res.partner', 'Respo Chargeur'),
        'material_driver_partner_id': fields.many2one('res.partner', 'Chauffeur'),
        'material_license_plate': fields.char('Camion', size=128),
        'date': fields.date('Date de transfert'),
        'product_id': fields.many2one('product.product', 'Material'),
        'product_qty': fields.integer('Quantity'),
        'sourcelocation': fields.char('Source', size=128),
        'destinationlocation': fields.char('Destination', size=128),
        'state': fields.selection(
            [('draft', 'Draft'),
            ('cancel', 'Cancelled'),
            ('auto', 'Waiting Another Operation'),
            ('confirmed', 'Waiting Availability'),
            ('assigned', 'Ready to Transfer'),
            ('done', 'Transferred'),
            ], 'Status'),
    }

    def init(self, cr):
        tools.drop_view_if_exists(cr, self._table)
        cr.execute("""CREATE or REPLACE VIEW %s as (select distinct sm.id as id, sp.name, sp.partner_id,
        sp.material_driver_partner_id, sp.material_license_plate, sp.date, sm.product_id,
        sm.product_qty, sl_source.name as sourcelocation, sl_dest.name as destinationlocation,
        sp.state
        from
        stock_picking sp, stock_move sm, stock_location sl_source, stock_location sl_dest  
        where
        sp.pickingmaterialtype='materialtransfert' and sp.id = sm.picking_id and
        sl_dest.id = sm.location_dest_id and sl_source.id = sm.location_id)
         """ % (self._table))

Help me please, Thanks...

0
อวตาร
ละทิ้ง
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!

สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!

ลงชื่อ
Related Posts ตอบกลับ มุมมอง กิจกรรม
How to find this view in odoo18 from frontend, I need the related steps(navigation)? I am a beginner, I need simply explanation
error treeview view
อวตาร
อวตาร
อวตาร
3
ธ.ค. 25
375
Error: Field is restricted to the group(s) base.group_no_one in view definition แก้ไขแล้ว
error view odoo16features
อวตาร
อวตาร
อวตาร
2
ต.ค. 24
9174
ValidateError Une erreur est apparue lors de la validation du/des champ(s) arch: Invalid XML for View Architecture! แก้ไขแล้ว
error view validateerror
อวตาร
อวตาร
2
ม.ค. 24
16450
Fix the Error ==> "Canot be located in parent view"
error view parent
อวตาร
อวตาร
อวตาร
5
มิ.ย. 17
7807
Error in view file in openerp 7
error view file
อวตาร
อวตาร
อวตาร
7
เม.ย. 15
7963
คอมมูนิตี้
  • บทเรียน
  • เอกสารกำกับโปรแกรม
  • ฟอรั่ม
โอเพนซอร์ส
  • ดาวน์โหลด
  • Github
  • Runbot
  • การแปล
บริการ
  • โฮสติ้ง odoo.sh เซิร์ฟเวอร์
  • การสนับสนุน
  • อัปเกรด
  • การพัฒนาที่กำหนดเอง
  • การศึกษา
  • ค้นหานักบัญชี
  • ค้นหาพาร์ทเนอร์
  • ร่วมเป็นพาร์ทเนอร์
เกี่ยวกับเรา
  • บริษัทของเรา
  • ทรัพย์สินในรูปของเครื่องหมายการค้า
  • ติดต่อเรา
  • งาน
  • ระบบการจัดงานอีเวนต์
  • พอดแคสต์
  • บล็อก
  • ลูกค้า
  • กฎหมาย • ความเป็นส่วนตัว
  • ความปลอดภัย
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo เป็นชุดแอปธุรกิจแบบเปิดที่ครอบคลุมทุกความต้องการของบริษัทของคุณ อาธิ CRM eCommerce ระบบบัญชี ระบบสินค้าคงคลัง ระบบการขายหน้าร้าน โปรเจกต์ และ อีกมากมาย

ความเหนือกว่าอันเป็นเอกลักษณ์ของ Odoo คือการใช้งานที่ง่ายดายและผสานการทำงานอย่างสมบูรณ์แบบในเวลาเดียวกัน

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now