Skip to content

Commit

Permalink
[FIX] sale_order_validity: arreglo en una vista
Browse files Browse the repository at this point in the history
closes #672

Signed-off-by: jok-adhoc <jok@adhoc.com.ar>
  • Loading branch information
lav-adhoc committed Jun 21, 2023
1 parent 39dfcdd commit 8565d80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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.0.0",
'version': "16.0.1.1.0",
'category': 'Sales & Purchases',
'sequence': 14,
'author': 'ADHOC SA',
Expand Down
4 changes: 3 additions & 1 deletion sale_order_validity/views/sale_order_view.xml
Expand Up @@ -34,7 +34,9 @@
<field name="inherit_id" ref="view_order_form_validity"/>
<field name="arch" type="xml">
<field name="date_order" position="replace">
<label for="date_order" string="Quotation/Order Date" class="o_form_label" groups="!base.group_no_one"/>
<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>
Expand Down

0 comments on commit 8565d80

Please sign in to comment.