コンテンツへスキップ
Odoo メニュー
  • サインイン
  • 無料で15日試す
  • アプリ
    財務
    • 会計
    • 請求
    • 経費
    • スプレッドシート(BI)
    • ドキュメント管理
    • 署名
    販売
    • CRM
    • 販売
    • POS店舗
    • POSレストラン
    • サブスクリプション
    • レンタル
    ウェブサイト
    • ウェブサイトビルダー
    • eコマース
    • ブログ
    • フォーラム
    • ライブチャット
    • eラーニング
    サプライチェーン
    • 在庫
    • 製造
    • 製品ライフサイクル管理 (PLM)
    • 購買
    • 整備
    • 品質
    人事業務
    • 従業員管理
    • 採用
    • 休暇管理
    • 人事評価
    • リファラル
    • フリート
    マーケティング
    • ソーシャルマーケティング
    • メールマーケティング
    • SMSマーケティング
    • イベント
    • マーケティングオートメーション
    • アンケート調査
    サービス
    • プロジェクト管理
    • タイムシート
    • フィールドサービス
    • ヘルプデスク
    • 計画
    • アポイントメント
    生産性向上ツール
    • ディスカッション
    • 承認
    • IoT
    • VoIP
    • ナレッジ
    • WhatsApp
    サードパーティアプリ Odooスタジオ Odooクラウドプラットホーム
  • インダストリー(業種別ソリューション)
    小売
    • 書店
    • アパレルショップ
    • 家具専門店
    • 食料品店
    • 金物店
    • 玩具店
    飲食・ホスピタリティ業界
    • バー・パブ
    • レストラン
    • ファストフード
    • ゲストハウス
    • 飲料販売代理店
    • ホテル
    不動産
    • 不動産会社
    • 建築事務所
    • 建設
    • 不動産管理
    • 造園
    • 住宅所有者組合
    コンサルティング
    • 会計事務所
    • Odooパートナー
    • マーケティングエージェンシー
    • 法律事務所
    • 人材派遣
    • 監査・認証
    製造
    • テキスタイル
    • 金属
    • 家具
    • 飲食
    • 醸造所
    • コーポレートギフト
    ヘルス & フィットネス
    • スポーツクラブ
    • 眼鏡店
    • フィットネスセンター
    • ウェルネス専門家
    • 薬局
    • ヘアサロン
    業種
    • 便利屋
    • IT ハードウェア・サポート
    • 太陽エネルギーシステム
    • 靴メーカー
    • クリーニングサービス
    • 空調設備サービス
    その他
    • 非営利団体
    • 環境機関
    • ビルボードレンタル
    • 写真
    • 自転車リース
    • ソフトウェアリセラー
    すべての業種を見る
  • コミュニティ
    学ぶ
    • チュートリアル
    • ドキュメンテーション
    • 認定
    • トレーニング
    • ブログ
    • ポッドキャスト
    教育サポート
    • 教育プログラム
    • Scale Up! ビジネスゲーム
    • Odooオフィス訪問
    ソフトを入手
    • ダウンロード
    • エディションを比較
    • リリース
    コラボレーション
    • Github
    • フォーラム
    • イベント
    • 翻訳
    • パートナーになる
    • パートナー様向けサービス
    • 会計事務所を登録
    サービス利用
    • パートナー一覧
    • 会計事務所一覧
    • 今すぐ相談する
    • 導入支援サービス
    • お客様一覧
    • サポート
    • アップグレード
    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:

  • CRM
  • e-Commerce
  • 会計
  • 在庫
  • PoS
  • プロジェクト
  • MRP
All apps
コミュニティで交流するには登録する必要があります。
全てのポスト 人々 バッジ
タグ (全て表示)
odoo accounting v14 pos v15
このフォーラムについて
コミュニティで交流するには登録する必要があります。
全てのポスト 人々 バッジ
タグ (全て表示)
odoo accounting v14 pos v15
このフォーラムについて
ヘルプ

How do I customize only the Incoming Stock Move Line?

購読

この投稿に活動があった際に通知を受け取ります

この質問にフラグが付けられました
stockwarehousecustomizeincomingmove_lines
9193 ビュー
アバター
Stan Goldbraithe

Hey Everyone, So, I have been trying to make a change to the incoming shipments form only in the warehouse module. Basically, I am overloading the stock_view.xml inside my own module. I thought it would be a simple case of jst overloading the stock.action_picking_tree4 and the view.

However, I can either have the move_lines show the extra field (supplier_code) in all subitems for the 'Receive/Deliver By Orders' or else none of them. XML Code is below;

Regards S.

<record id="stock_view_move_picking2_in_tree" model="ir.ui.view">
    <field name="name">stock.move.in.tree</field>
    <field name="model">stock.move.in</field>
        <field eval="4" name="priority"/>
    <field name="arch" type="xml">
            <tree colors="grey:scrapped == True" string="Stock Moves">
                <field name="product_id" on_change="onchange_product_id(product_id,location_id,location_dest_id,parent.partner_id)"/>
                <field name="supplier_code"/>
                <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
                <field name="product_uom" string="Unit of Measure" groups="product.group_uom"/>
                <field name="product_uos" groups="product.group_uos"/>
                <field name="location_id" groups="stock.group_locations" invisible="1"/>
                <field name="picking_id" invisible="1" />
                <field name="create_date" invisible="1" />
                <field name="date_expected" invisible="1" />
                <button name="%(stock.move_scrap)d"
                   string="Scrap Products" type="action"
                   icon="terp-gtk-jump-to-ltr" context="{'scrap': True}"
                   states="draft,waiting,confirmed,assigned"
                   groups="base.group_user"/>
                <field name="scrapped" invisible="1"/>
                <field name="prodlot_id" groups="stock.group_production_lot"/>
                <button
                   name="%(stock.track_line)d"
                   string="Split in Serial Number"
                   groups="stock.group_production_lot"
                   type="action" icon="gtk-justify-fill"
                   states="draft,waiting,confirmed,assigned"/>
                 <field groups="stock.group_tracking_lot" name="tracking_id"/>
                 <button name="setlast_tracking" string="Put in current pack" type="object"
                    attrs="{'invisible': [('tracking_id','<>',False)]}"
                    icon="terp-accessories-archiver"
                    groups="stock.group_tracking_lot"
                    states="draft,assigned,confirmed"/>
                 <button name="%(stock.split_into)d" string="Put in a new pack" type="action"
                    groups="product.group_stock_packaging"
                    icon="terp-accessories-archiver+"
                    states="draft,assigned,confirmed"/>
                  <field name="location_dest_id" groups="stock.group_locations"/>
                  <field name="state"/>
            </tree>
        </field>
</record>

<record id="stock_view_move_picking2_in_form" model="ir.ui.view">
    <field name="model">stock.move</field>
    <field name="inherit_id" ref="stock.view_move_form"/>
    <field name="arch" type="xml">
         <field name="product_id" position="replace">
           <field name="product_id" on_change="onchange_product_id(product_id,location_id,location_dest_id,parent.partner_id)"/>
         </field>
         <xpath expr="//field[@name='product_id']" position="after">
           <field name="supplier_code" readonly="1"/>
         </xpath>
    </field>
</record>

<record id="stock_view_picking2_in_form" model="ir.ui.view">
        <field name="name">stock.picking.form</field>
        <field name="model">stock.picking</field>
        <field eval="12" name="priority"/>
        <field name="arch" type="xml">
            <form string="Internal Picking List" version="7.0">
            <header>
                <button name="draft_force_assign" states="draft" string="Confirm" type="object" class="oe_highlight" groups="base.group_user"/>
                <button name="draft_validate" states="draft" string="Confirm & Transfer" type="object" class="oe_highlight" groups="base.group_user"/>
                <!-- <button name="action_assign" states="confirmed" string="Check Availability" type="object"/> -->
                <button name="force_assign" states="confirmed" string="Force Availability" type="object" class="oe_highlight" groups="base.group_user"/>
                <button name="action_process" states="assigned" string="Confirm & Transfer" groups="stock.group_stock_user" type="object" class="oe_highlight"/>
                <button name="%(stock.action_stock_invoice_onshipping)d" string="Create Invoice/Refund"  attrs="{'invisible': ['|','|',('state','<>','done'),('invoice_state','=','invoiced'),('invoice_state','=','none')]}"  type="action" class="oe_highlight" groups="base.group_user"/>
                <button name="%(stock.act_stock_return_picking)d" string="Reverse Transfer" states="done" type="action" groups="base.group_user"/>
                <button name="button_cancel" states="assigned,confirmed,draft" string="Cancel Transfer" groups="base.group_user"/>
                <field name="state" widget="statusbar" statusbar_visible="draft,assigned,done" statusbar_colors='{"shipping_except":"red","invoice_except":"red","waiting_date":"blue"}'/>
            </header>
            <sheet>
                <h1>
                    <field name="name" class="oe_inline" attrs="{'invisible': [('name','=','/')]}" readonly="1"/>
                </h1>
                <group>
                    <group>
                        <field name="partner_id" on_change="onchange_partner_in(partner_id)"/>
                        <field name="backorder_id" readonly="1" attrs="{'invisible': [('backorder_id','=',False)]}"/>
                        <field name="invoice_state" string="Invoice Control" groups="account.group_account_invoice" attrs="{'invisible':[('invoice_state', '=', 'none')]}"/>
                        <field name="stock_journal_id" widget="selection" groups="account.group_account_user"/>
                        <field name="project_id"/>
                        <field name="inventory_code"/>
                        <field name="x_sitename"/>
                    </group>
                    <group>
                        <field name="date"/>
                        <field name="min_date" readonly="1" attrs="{'invisible': [('min_date','=',False)]}"/>
                        <field name="origin" placeholder="e.g. PO0032" class="oe_inline"/>
                    </group>
                </group>
                <notebook>
                    <page string="Products">
                        <field name="move_lines" context="{'address_in_id': partner_id, 'picking_type': 'in', 'form_view_ref':'stock_view_move_picking2_in_form', 'tree_view_ref':'stock_view_move_picking2_in_tree'}"/>
                        <field name="note" placeholder="Add an internal note..." class="oe_inline"/>
                    </page>
                    <page string="Additional Info">
                        <group>
                            <group>
                                <field name="move_type"/>
                                <field name="type" invisible="1"/>
                                <field name="auto_picking" groups="base.group_user"/>
                            </group>
                            <group>
                                <field name="company_id" groups="base.group_multi_company" widget="selection"/>
                                <field name="date_done" groups="base.group_no_one"/>
                            </group>
                        </group>
                    </page>
                </notebook>
            </sheet>
            </form>
        </field>
</record>

    <record id="stock.action_picking_tree4" model="ir.actions.act_window">
        <field name="name">Incoming Shipments</field>
        <field name="res_model">stock.picking.in</field>
        <field name="type">ir.actions.act_window</field>
        <field name="view_type">form</field>
        <field name="view_mode">tree,form,calendar</field>
        <field name="view_id" ref="stock_view_picking2_in_form"/>
        <field name="domain">[('type','=','in')]</field>
        <field name="context">{'contact_display': 'partner_address', 'default_type': 'in'}</field>
        <field name="help" type="html">
          <p class="oe_view_nocontent_create">
            Click to create an incoming shipment.
          </p><p>
            The Incoming Shipments is the list of all orders you will
            receive from your suppliers. An incoming shipment contains a
            list of products to be received according to the original
            purchase order.
          </p>
        </field>
    </record>
0
アバター
破棄
ディスカッションを楽しんでいますか?読むだけでなく、参加しましょう!

今すぐアカウントを作成して、限定機能を利用したり、素晴らしいコミュニティと交流しましょう!

登録
関連投稿 返信 ビュー 活動
How do I customize only Incoming Shipments Move lines in 7's Warehouse ?
warehouse shipment incoming move_lines
アバター
0
3月 15
4839
How do I customize only Incoming Shipments Move lines in 7's Warehouse ?
warehouse shipment incoming move_lines
アバター
0
3月 15
7054
Fraccionar lotes en / Splitting Lots in Odoo 18
stock warehouse
アバター
アバター
アバター
2
8月 25
1188
Inventory - How can I see stock levels at a specific date? How can I track product movements over time? 解決済
stock warehouse
アバター
アバター
2
8月 25
9036
The inventory module does not assign the next storage location but the central location.
stock warehouse
アバター
アバター
アバター
2
5月 25
1657
コミュニティ
  • チュートリアル
  • ドキュメンテーション
  • フォーラム
オープンソース
  • ダウンロード
  • 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、eコマース、会計、在庫管理、POS、プロジェクト管理など、企業のさまざまな業務を一つのシステムで管理できる、ベルギー発のオープンソースのERPソフトウェアです。

高機能で使いやすく、完全に統合されたERPとして、ユニークな価値を提供しています。

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