From bbcac303420eca6a3eb9cafc44b61dbd8673d51d Mon Sep 17 00:00:00 2001 From: Victor Feyens Date: Mon, 7 Feb 2022 14:44:30 +0000 Subject: [PATCH] [FIX] payment,sale(_*): typos closes odoo/odoo#84094 Signed-off-by: Victor Feyens (vfe) --- addons/payment/models/payment_acquirer.py | 2 +- addons/payment_authorize/models/authorize_request.py | 2 +- addons/sale/models/account_move_line.py | 2 +- addons/sale/models/sale_order.py | 2 +- addons/sale/models/sale_order_line.py | 8 ++++---- addons/sale_mrp/models/sale.py | 2 +- addons/sale_stock/models/sale_order.py | 8 ++++---- addons/sale_stock/models/stock.py | 2 +- 8 files changed, 14 insertions(+), 14 deletions(-) diff --git a/addons/payment/models/payment_acquirer.py b/addons/payment/models/payment_acquirer.py index dcae4ba6b13..a00151254a3 100644 --- a/addons/payment/models/payment_acquirer.py +++ b/addons/payment/models/payment_acquirer.py @@ -434,7 +434,7 @@ class PaymentAcquirer(models.Model): def _neutralize_fields(self, provider, fields): """ Helper to neutralize API keys for a specific provider :param str provider: name of provider - :param list fields: list of fiels to nullify + :param list fields: list of fields to nullify """ self.flush() self.invalidate_cache() diff --git a/addons/payment_authorize/models/authorize_request.py b/addons/payment_authorize/models/authorize_request.py index bc2fc5c2474..619d09572de 100644 --- a/addons/payment_authorize/models/authorize_request.py +++ b/addons/payment_authorize/models/authorize_request.py @@ -271,7 +271,7 @@ class AuthorizeAPI: def capture(self, transaction_id, amount): """Capture a previously authorized payment for the given amount. - Capture a previsouly authorized payment. Note that the amount is required + Capture a previously authorized payment. Note that the amount is required even though we do not support partial capture. :param str transaction_id: id of the authorized transaction in the diff --git a/addons/sale/models/account_move_line.py b/addons/sale/models/account_move_line.py index f5562f77e19..c9fc6af130c 100644 --- a/addons/sale/models/account_move_line.py +++ b/addons/sale/models/account_move_line.py @@ -74,7 +74,7 @@ class AccountMoveLine(models.Model): if not sale_order: continue - # raise if the sale order is not currenlty open + # raise if the sale order is not currently open if sale_order.state != 'sale': message_unconfirmed = _('The Sales Order %s linked to the Analytic Account %s must be validated before registering expenses.') messages = { diff --git a/addons/sale/models/sale_order.py b/addons/sale/models/sale_order.py index 02bcac966f6..a49c06dcecf 100644 --- a/addons/sale/models/sale_order.py +++ b/addons/sale/models/sale_order.py @@ -1001,7 +1001,7 @@ class SaleOrder(models.Model): self.write({'state': 'sale'}) def _action_confirm(self): - """ Implementation of additionnal mecanism of Sales Order confirmation. + """ Implementation of additional mechanism of Sales Order confirmation. This method should be extended when the confirmation should generated other documents. In this method, the SO are in 'sale' state (not yet 'done'). """ diff --git a/addons/sale/models/sale_order_line.py b/addons/sale/models/sale_order_line.py index 215b5db712c..bd004609b82 100644 --- a/addons/sale/models/sale_order_line.py +++ b/addons/sale/models/sale_order_line.py @@ -21,13 +21,13 @@ class SaleOrderLine(models.Model): """ Compute the invoice status of a SO line. Possible statuses: - no: if the SO is not in status 'sale' or 'done', we consider that there is nothing to - invoice. This is also hte default value if the conditions of no other status is met. + invoice. This is also the default value if the conditions of no other status is met. - to invoice: we refer to the quantity to invoice of the line. Refer to method `_compute_qty_to_invoice()` for more information on how this quantity is calculated. - upselling: this is possible only for a product invoiced on ordered quantities for which we delivered more than expected. The could arise if, for example, a project took more time than expected but we decided not to invoice the extra cost to the client. This - occurs onyl in state 'sale', so that when a SO is set to done, the upselling opportunity + occurs only in state 'sale', so that when a SO is set to done, the upselling opportunity is removed from the list. - invoiced: the quantity invoiced is larger or equal to the quantity ordered. """ @@ -611,7 +611,7 @@ class SaleOrderLine(models.Model): def _prepare_procurement_values(self, group_id=False): """ Prepare specific key for moves or other components that will be created from a stock rule - comming from a sale order line. This method could be override in order to add other custom key that could + coming from a sale order line. This method could be override in order to add other custom key that could be used in move/po creation. """ return {} @@ -768,7 +768,7 @@ class SaleOrderLine(models.Model): def _check_line_unlink(self): """ - Check wether a line can be deleted or not. + Check whether a line can be deleted or not. Lines cannot be deleted if the order is confirmed; downpayment lines who have not yet been invoiced bypass that exception. diff --git a/addons/sale_mrp/models/sale.py b/addons/sale_mrp/models/sale.py index 18f1cdd9c9d..45146b92046 100644 --- a/addons/sale_mrp/models/sale.py +++ b/addons/sale_mrp/models/sale.py @@ -89,7 +89,7 @@ class SaleOrderLine(models.Model): dropship = True # We fetch the BoMs of type kits linked to the order_line, # the we keep only the one related to the finished produst. - # This bom shoud be the only one since bom_line_id was written on the moves + # This bom should be the only one since bom_line_id was written on the moves relevant_bom = boms.filtered(lambda b: b.type == 'phantom' and (b.product_id == order_line.product_id or (b.product_tmpl_id == order_line.product_id.product_tmpl_id and not b.product_id))) diff --git a/addons/sale_stock/models/sale_order.py b/addons/sale_stock/models/sale_order.py index 9534884ea9d..ceb67754d6a 100644 --- a/addons/sale_stock/models/sale_order.py +++ b/addons/sale_stock/models/sale_order.py @@ -350,7 +350,7 @@ class SaleOrderLine(models.Model): @api.depends('product_id', 'route_id', 'order_id.warehouse_id', 'product_id.route_ids') def _compute_is_mto(self): """ Verify the route of the product based on the warehouse - set 'is_available' at True if the product availibility in stock does + set 'is_available' at True if the product availability in stock does not need to be verified, which is the case in MTO, Cross-Dock or Drop-Shipping """ self.is_mto = False @@ -378,7 +378,7 @@ class SaleOrderLine(models.Model): def _compute_qty_delivered_method(self): """ Stock module compute delivered qty for product [('type', 'in', ['consu', 'product'])] For SO line coming from expense, no picking should be generate: we don't manage stock for - thoses lines, even if the product is a storable. + those lines, even if the product is a storable. """ super(SaleOrderLine, self)._compute_qty_delivered_method() @@ -467,7 +467,7 @@ class SaleOrderLine(models.Model): def _prepare_procurement_values(self, group_id=False): """ Prepare specific key for moves or other components that will be created from a stock rule - comming from a sale order line. This method could be override in order to add other custom key that could + coming from a sale order line. This method could be override in order to add other custom key that could be used in move/po creation. """ values = super(SaleOrderLine, self)._prepare_procurement_values(group_id) @@ -529,7 +529,7 @@ class SaleOrderLine(models.Model): def _action_launch_stock_rule(self, previous_product_uom_qty=False): """ - Launch procurement group run method with required/custom fields genrated by a + Launch procurement group run method with required/custom fields generated by a sale order line. procurement group will launch '_run_pull', '_run_buy' or '_run_manufacture' depending on the sale order line product rule. """ diff --git a/addons/sale_stock/models/stock.py b/addons/sale_stock/models/stock.py index 0a3c081ad02..65ce97dc2d2 100644 --- a/addons/sale_stock/models/stock.py +++ b/addons/sale_stock/models/stock.py @@ -115,7 +115,7 @@ class StockPicking(models.Model): def _log_less_quantities_than_expected(self, moves): """ Log an activity on sale order that are linked to moves. The - note summarize the real proccessed quantity and promote a + note summarize the real processed quantity and promote a manual action. :param dict moves: a dict with a move as key and tuple with