Skip to content

Commit

Permalink
[MIG] sale_order_type_automation: Migration to 15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vib-adhoc committed Aug 8, 2022
1 parent 0d2227d commit da7468e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
5 changes: 2 additions & 3 deletions sale_order_type_automation/__manifest__.py
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Sale Order Type Automation',
'version': '13.0.1.0.0',
'version': "15.0.1.0.0",
'author': 'ADHOC SA',
'website': 'www.adhoc.com.ar',
'license': 'AGPL-3',
Expand All @@ -30,14 +30,13 @@
# queremos que el pago creado sea un payment group
'account_payment_group',
'stock_ux',
'sale_multic_fix',
],
'category': 'Sale Management',
'demo': [
],
'data': [
'views/sale_order_type_views.xml',
],
'installable': False,
'installable': True,
'auto_install': True,
}
4 changes: 2 additions & 2 deletions sale_order_type_automation/models/sale_order_type.py
Expand Up @@ -79,8 +79,8 @@ class SaleOrderType(models.Model):
domain="[('type','in', ['cash', 'bank']), "
"('company_id', '=', invoice_company_id), "
# "('company_id', '=', company_id), "
"('inbound_payment_method_ids.code', '=', 'manual')]",
help='Jouranl used only with payment_automation. As manual payment '
"('inbound_payment_method_line_ids.code', '=', 'manual')]",
help='Journal used only with payment_automation. As manual payment '
'method is used, only journals with manual method are shown.'
)
book_id = fields.Many2one(
Expand Down
4 changes: 2 additions & 2 deletions sale_order_type_automation/models/stock_picking.py
Expand Up @@ -8,10 +8,10 @@
class StockPicking(models.Model):
_inherit = 'stock.picking'

def action_done(self):
def _action_done(self):
"""
On picking confirmation we check if invoice should be created
"""
res = super().action_done()
res = super()._action_done()
self.sudo().mapped('sale_id').run_invoicing_atomation()
return res
Expand Up @@ -38,7 +38,7 @@ def test_sale_order_confirm(self):
'name': self.product.name,
'product_uom_qty': 1.0,
'product_uom': self.product.uom_id.id,
'price_unit': self.product.lst_price,
'price_unit': self.product.list_price,
}
vals = {
'partner_id': self.partner.id,
Expand Down

0 comments on commit da7468e

Please sign in to comment.