Skip to content

Commit

Permalink
[MIG] sale_order_type_ux: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasperalta1 committed Dec 26, 2023
1 parent e334f24 commit 30c6fd5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions sale_order_type_ux/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ Sale Order Type Ux
* Also add tracking to same field.
* Add new behavior to the onchage sale type in invoice, to change the company.
* Set in Invoice view form the field "Sale Type" readonly to states different than "draft".
* Add fiscal position on sale types
* Allows select journal from another company
* Add fiscal position on sale types.
* Allows select journal from another company.
* Integration between Portal and Sale Order Type module:

- New access record to sale type model for portal users
Expand All @@ -31,7 +31,7 @@ Installation

To install this module, you need to:

#. Only need to install the module
#. Only need to install the module.

Configuration
=============
Expand Down
4 changes: 2 additions & 2 deletions sale_order_type_ux/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Sale Order Type Ux',
'version': "16.0.1.2.0",
'version': "17.0.1.0.0",
'category': 'Accounting',
'sequence': 14,
'author': 'ADHOC SA',
Expand All @@ -37,7 +37,7 @@
],
'demo': [
],
'installable': False,
'installable': True,
'auto_install': False,
'application': False,
}
2 changes: 1 addition & 1 deletion sale_order_type_ux/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ def _onchange_journal(self):
if new_currency != self.currency_id:
self.currency_id = new_currency
self._compute_currency_rate()
if self.state == 'draft' and self._get_last_sequence(lock=False) and self.name and self.name != '/':
if self.state == 'draft' and self._get_last_sequence() and self.name and self.name != '/':
self.name = '/'

2 changes: 1 addition & 1 deletion sale_order_type_ux/views/sale_order_type_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<field name="fiscal_position_id"/>
</field>
<group position="before">
<widget name="web_ribbon" title="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/>
<widget name="web_ribbon" title="Archived" bg_color="bg-danger" invisible="active"/>
</group>
<form>
<field name="active" invisible="1"/>
Expand Down

0 comments on commit 30c6fd5

Please sign in to comment.