[FIX] payment,sale(_*): typos

closes odoo/odoo#84094

Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
This commit is contained in:
Victor Feyens
2022-02-07 16:22:54 +00:00
parent 31f29e5742
commit bbcac30342
8 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -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()
@@ -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
+1 -1
View File
@@ -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 = {
+1 -1
View File
@@ -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').
"""
+4 -4
View File
@@ -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.
+1 -1
View File
@@ -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)))
+4 -4
View File
@@ -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.
"""
+1 -1
View File
@@ -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