Skip to content

Commit

Permalink
[UPD] Prevent creation of industry_id records from partner form
Browse files Browse the repository at this point in the history
  • Loading branch information
Stéphan Sainléger authored and njeudy committed Mar 30, 2022
1 parent d633d21 commit 604f94e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lcc_members/views/res_partner_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@
<!-- page Membership -->
<page name="annuaire" string="Directory" attrs="{'invisible': [('is_company','=',False)]}" autofocus="autofocus">
<group name="classification" string="Classification (to find easily pro. in the directory)">
<field name="industry_id" string="Main activity" attrs="{'invisible': [('is_company', '=', False)]}" />
<field name="secondary_industry_ids" widget="many2many_tags" string="Others activities" attrs="{'invisible': [('is_company', '=', False)]}" />
<field name="industry_id" string="Main activity" attrs="{'invisible': [('is_company', '=', False)]}" create="False" />
<field name="secondary_industry_ids" widget="many2many_tags" options="{'no_create_edit': True}" string="Others activities" attrs="{'invisible': [('is_company', '=', False)]}" />
<field name="detailed_activity" placeholder="Detailled activy (Ex. lavender honey)" attrs="{'invisible': [('is_company', '=', False)]}" />
<field name="keywords" placeholder="keywords giving more information on activities. splite keyword using ;" attrs="{'invisible': [('is_company', '=', False)]}" />
<field name="itinerant" attrs="{'invisible': [('is_company', '=', False)]}" />
Expand Down

0 comments on commit 604f94e

Please sign in to comment.