Advertisement
rht_odoo

[QW][4345877] add_fields_quick_create

Dec 24th, 2024 (edited)
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.86 KB | None | 0 0
  1. <data>
  2.     <!--
  3.    # Done by RHT on the 24/12/2024
  4.    # Need : no quick create for the contact (VAT is mandatory) & fill in the type of revenue and the deadline (mandatory fields) even when doing a quick create
  5.    # Task : https://www.odoo.com/odoo/project/17391/tasks/4345877
  6.    # Pastebin : https://pastebin.com/97cwWPjc
  7.    -->
  8.     <xpath expr="//field[@name='partner_id']" position="attributes">
  9.         <attribute name="options">{"no_quick_create":true}</attribute>
  10.     </xpath>
  11.     <xpath expr="//field[@name='phone']" position="after">
  12.         <field name="x_studio_revenue_capture_type" placeholder="Choisissez le type : PRI, PRR ou BDT" required="True"/>
  13.     </xpath>
  14.     <xpath expr="//field[@name='company_currency']" position="before">
  15.         <field name="date_deadline" placeholder="par ex. 31/12/2025" required="True"/>
  16.     </xpath>
  17. </data>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement