Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2492 Lượt xem

I'm currently trying to extend the default view that comes with the Barcode application to show additional information on the kanban cards. The extra fields which I want to display are a relation of sale_id which is a field of the stock.picking model but it is a many2one relation from the sale.order model.

This is my current xml file:

<?xml version="1.0" encoding="utf-8"?>
<odoo>
  <record id="barcode_inherit" model="ir.ui.view">
    <field name="name">stock.barcode.kanban.inherit</field>
    <field name="model">stock.picking</field>
    <field name="type">kanban</field>
    <field name="inherit_id" ref="stock.stock_picking_kanban"/>
    <field name="arch" type="xml">
        <field name="partner_id" position="after">
            <field name="sale_id"/>
        </field>
    </field>
  </record>
</odoo>

This throws a sale_id field cannot be found error.

Ảnh đại diện
Huỷ bỏ
Tác giả

Adding more information to my question sale_id is a many2one field from the sale.order model

Câu trả lời hay nhất

Hi,

Refer to this video:

https://www.youtube.com/watch?v=8HED8CIgsCc

Regards

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 10 24
736
0
thg 2 25
1392
1
thg 1 25
1781
0
thg 12 24
46
0
thg 12 24
1222