Skip to content

Commit

Permalink
[FIX] sale_order_validity: fix view
Browse files Browse the repository at this point in the history
  • Loading branch information
lav-adhoc committed Sep 5, 2023
1 parent 6486150 commit 417ccbd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sale_order_validity/__manifest__.py
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Sale Order Validity',
'version': "16.0.1.1.0",
'version': "16.0.1.2.0",
'category': 'Sales & Purchases',
'sequence': 14,
'author': 'ADHOC SA',
Expand Down
4 changes: 2 additions & 2 deletions sale_order_validity/views/sale_order_view.xml
Expand Up @@ -37,8 +37,8 @@
<div class="o_td_label" groups="!base.group_no_one" attrs="{'invisible': [('state', 'in', ['sale', 'done', 'cancel'])]}">
<label for="date_order" string="Quotation/Order Date"/>
</div>
<field name="date_order" nolabel="1" groups="base.group_no_one, !sales_team.group_sale_manager" readonly="1" attrs="{'invisible': [('state', 'in', ['sale', 'done', 'cancel'])]}"/>
<field name="date_order" nolabel="1" groups="base.group_no_one, sales_team.group_sale_manager" readonly="0" attrs="{'invisible': [('state', 'in', ['sale', 'done', 'cancel'])]}"/>
<field name="date_order" nolabel="1" groups="!sales_team.group_sale_manager" readonly="1" attrs="{'invisible': [('state', 'in', ['sale', 'done', 'cancel'])]}"/>
<field name="date_order" nolabel="1" groups="sales_team.group_sale_manager" readonly="0" attrs="{'invisible': [('state', 'in', ['sale', 'done', 'cancel'])]}"/>
</field>
<field name="validity_date" position="replace">
<field name="validity_date" readonly="0" attrs="{'invisible': [('state', 'in', ['sale', 'done'])], 'readonly': [('state', 'not in', ['draft','sent'])]}" groups="sales_team.group_sale_manager"/>
Expand Down

0 comments on commit 417ccbd

Please sign in to comment.