[IMP] *: update form views
*account,purchase,sale Make them use widget mail_many2one_avatar. Part of task 2195254 closes odoo/odoo#49345 Related: odoo/enterprise#10074 Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
This commit is contained in:
@@ -995,7 +995,7 @@
|
||||
attrs="{'invisible': [('move_type', 'not in', ('out_invoice', 'out_refund'))]}">
|
||||
<label for="ref" string="Customer Reference" />
|
||||
<field name="ref" nolabel="1"/>
|
||||
<field name="invoice_user_id" domain="[('share', '=', False)]"/>
|
||||
<field name="invoice_user_id" domain="[('share', '=', False)]" widget="many2one_avatar_user"/>
|
||||
<field name="invoice_origin" string="Source Document" force_save="1"
|
||||
attrs="{'invisible': [('invoice_origin', '=', False)]}"/>
|
||||
<field name="partner_bank_id"
|
||||
|
||||
@@ -348,7 +348,7 @@
|
||||
</div>
|
||||
</group>
|
||||
<group name="other_info">
|
||||
<field name="user_id" domain="[('share', '=', False)]"/>
|
||||
<field name="user_id" domain="[('share', '=', False)]" widget="many2one_avatar_user"/>
|
||||
<field name="invoice_status" attrs="{'invisible': [('state', 'in', ('draft', 'sent', 'to approve', 'cancel'))]}"/>
|
||||
<field name="payment_term_id" attrs="{'readonly': ['|', ('invoice_status','=', 'invoiced'), ('state', '=', 'done')]}" options="{'no_create': True}"/>
|
||||
<field name="fiscal_position_id" options="{'no_create': True}" attrs="{'readonly': ['|', ('invoice_status','=', 'invoiced'), ('state', '=', 'done')]}"/>
|
||||
|
||||
@@ -657,7 +657,7 @@
|
||||
<page string="Other Info" name="other_information">
|
||||
<group>
|
||||
<group name="sales_person" string="Sales">
|
||||
<field name="user_id" domain="[('share', '=', False)]"/>
|
||||
<field name="user_id" domain="[('share', '=', False)]" widget="many2one_avatar_user"/>
|
||||
<field name="team_id" kanban_view_ref="%(sales_team.crm_team_view_kanban)s" options="{'no_create': True}"/>
|
||||
<field name="company_id" options="{'no_create': True}" groups="base.group_multi_company"/>
|
||||
<field name="require_signature"/>
|
||||
|
||||
Reference in New Issue
Block a user