コンテンツへスキップ
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
このフォーラムについて
ヘルプ

Custom Forms In Website Builder

購読

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

この質問にフラグが付けられました
formcustomizationwebsite_crm
2 返信
11317 ビュー
アバター
Anthony Gardiner

I've spent many an hour trying to resolve this issue, your help shall be appreciated.

I followed this post https://www.odoo.com/forum/help-1/question/how-to-do-custom-forms-in-v8-website-62623

You can find my portal at http://119.9.27.63:8069/page/website.contactus it has been customized to have more fields, named as per crm.leads forms

I want to remove the "Mandatory Comments" 

I cannot find where the code or fields are demanding this field to be completed.

It becomes a secondary problem in that I have a second form with minimal fields being shown, yet because the comments is mandatory it stops the second form working again that link is here http://119.9.27.63:8069/page/website-referral

 <?xml version="1.0"?>
<data name="Contact Form" inherit_id="website.contactus" customize_show="False">
    <xpath expr="//div[@name='mail_button']" position="replace">
        <form action="/crm/contactus" method="post" class="form-horizontal mt32" enctype="multipart/form-data">
            <div t-attf-class="form-group #{error and 'contact_name' in error and 'has-error' or ''}">
                <label class="col-md-3 col-sm-4 control-label" for="contact_name">Contact</label>
                <div class="col-md-7 col-sm-8">
                    <input type="text" class="form-control" name="contact_name" required="False" t-attf-value="#{contact_name or ''}"/>
                </div>
			</div>
            <div name="email_from_container" t-attf-class="form-group #{error and 'email_from' in error and 'has-error' or ''}">
                <label class="col-md-3 col-sm-4 control-label" for="email_from">Email</label>
                <div class="col-md-7 col-sm-8">
                    <input type="email" class="form-control" name="email_from" required="False" t-attf-value="#{email_from or ''}"/>
                </div>	
            </div>
            <div t-attf-class="form-group #{error and 'phone' in error and 'has-error' or ''}">
                <label class="col-md-3 col-sm-4 control-label" for="phone">Phone Number</label>
                <div class="col-md-7 col-sm-8">
                    <input type="text" class="form-control" name="phone" placeholder="" t-attf-value="#{phone or ''}"/>
                </div>
				</div>
            <div t-attf-class="form-group #{error and 'phone' in error and 'has-error' or ''}">
                <label class="col-md-3 col-sm-4 control-label" for="mobile">Mobile</label>
                <div class="col-md-7 col-sm-8">
                    <input type="text" class="form-control" name="mobile" placeholder="" t-attf-value="#{phone or ''}"/>
                </div>
			</div>
            <div t-attf-class="form-group #{error and 'name' in error and 'has-error' or ''}">
                <label class="col-md-3 col-sm-4 control-label" for="name">Street</label>
                <div class="col-md-7 col-sm-8">
                    <input type="text" class="form-control" name="name" t-attf-value="#{name or ''}"/>
                </div>
			</div>
			
						<div t-attf-class="form-group #{error and 'name' in error and 'has-error' or ''}">
                <label class="col-md-3 col-sm-4 control-label" for="city">Suburb</label>
                <div class="col-md-7 col-sm-8">
                    <input type="text" class="form-control" name="city" t-attf-value="#{name or ''}"/>
                </div>
			</div>

            <div t-attf-class="form-group #{error and 'name' in error and 'has-error' or ''}">
                <label class="col-md-3 col-sm-4 control-label" for="zip">Postcode</label>
                <div class="col-md-7 col-sm-8">
                    <input type="text" class="form-control" name="zip" t-attf-value="#{name or ''}"/>
                </div>	
            </div>
                
            <div t-attf-class="form-group #{error and 'name' in error and 'has-error' or ''}">
                <label class="col-md-3 col-sm-4 control-label" for="referred">Referral Email</label>
                <div class="col-md-7 col-sm-8">
                    <input type="text" class="form-control" name="referred" t-attf-value="#{name or ''}"/>
                </div> 
	    </div>
                		 <div t-attf-class="form-group #{error and 'description' in error and 'has-error' or ''}">
                <label class="col-md-3 col-sm-4 control-label" for="description">Comments</label>
                <div class="col-md-7 col-sm-8">
                    <textarea class="form-control" name="description" style="min-height: 120px"><t t-attf-value="#{name or ''}"/></textarea>
                </div>    
            </div>
            <div class="form-group">
                <div class="col-md-offset-3 col-sm-offset-4 col-sm-8 col-md-7">
                    <button class="btn btn-primary btn-lg">Send</button>
                </div>
            </div>
        </form>
    </xpath>
</data>
1
アバター
破棄
アバター
Jérémy Kersten (jke)
最善の回答

Hello


The required field is setted in python code directly: 

@http.route(['/crm/contactus'], type='http', auth="public", website=True)
def contactus(self, **kwargs):
_TECHNICAL = ['show_info', 'view_from', 'view_callback']
_BLACKLIST = ['id', 'create_uid', 'create_date', 'write_uid', 'write_date', 'user_id', 'active']
_REQUIRED = ['name', 'contact_name', 'email_from', 'description']


so if you don't want description file in your form, add this input with a type='hidden' and a default value like a . or nbsp.

0
アバター
破棄
アバター
michel Guénard
最善の回答

The various pages of the web site are accessible through the "backend".

Configuration>>technical>> user >> views.

There make a seach for "web". You should be able to find out the pages of interest for your issue.

Having said that, It might be also that some parts are coded into the python lines, somewhere else.

For instance I have not yet find out some comments appearing on my web pages thatI would be willing to eliminate.

0
アバター
破棄
ディスカッションを楽しんでいますか?読むだけでなく、参加しましょう!

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

登録
関連投稿 返信 ビュー 活動
Odoo10 Custom Form Doesn't Save
form customization odoov10
アバター
0
5月 19
4212
How to set default value of website form field?
form defaults website_crm
アバター
アバター
アバター
アバター
3
9月 17
12318
Select input not working in contact form 解決済
form contacts selection customization
アバター
アバター
1
9月 21
4463
How send/get multiple checkboxes with the same name from website form to odoo 解決済
form controller checkbox website_crm
アバター
アバター
5
1月 24
14580
How to solve Parse Error: Error While Validating the Constraint; Field does not exist
form customer customization odoo10
アバター
アバター
アバター
アバター
3
3月 18
24693
コミュニティ
  • チュートリアル
  • ドキュメンテーション
  • フォーラム
オープンソース
  • ダウンロード
  • 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