[IMP] sale,stock,website_sale: texts update

- Renames "DHL"/"DHL USA Connector" into "DHL Express Connector";
- Changes the orderpoint's constraint message when the user's trying to
create an orderpoint who already exists.

task-2581265

Part-of: odoo/odoo#74695
This commit is contained in:
Vishal Thacker
2021-11-26 15:10:24 +00:00
committed by svs-odoo
parent 5537090f1c
commit b43ac31f70
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ class ResConfigSettings(models.TransientModel):
], string='Customer Account', default='b2b', config_parameter='auth_signup.invitation_scope')
module_delivery = fields.Boolean("Delivery Methods")
module_delivery_dhl = fields.Boolean("DHL USA Connector")
module_delivery_dhl = fields.Boolean("DHL Express Connector")
module_delivery_fedex = fields.Boolean("FedEx Connector")
module_delivery_ups = fields.Boolean("UPS Connector")
module_delivery_usps = fields.Boolean("USPS Connector")
+1 -1
View File
@@ -31,7 +31,7 @@ class ResConfigSettings(models.TransientModel):
stock_mail_confirmation_template_id = fields.Many2one(related='company_id.stock_mail_confirmation_template_id', readonly=False)
module_stock_sms = fields.Boolean("SMS Confirmation")
module_delivery = fields.Boolean("Delivery Methods")
module_delivery_dhl = fields.Boolean("DHL USA Connector")
module_delivery_dhl = fields.Boolean("DHL Express Connector")
module_delivery_fedex = fields.Boolean("FedEx Connector")
module_delivery_ups = fields.Boolean("UPS Connector")
module_delivery_usps = fields.Boolean("USPS Connector")
+1 -1
View File
@@ -99,7 +99,7 @@ class StockWarehouseOrderpoint(models.Model):
_sql_constraints = [
('qty_multiple_check', 'CHECK( qty_multiple >= 0 )', 'Qty Multiple must be greater than or equal to zero.'),
('product_location_check', 'unique (product_id, location_id, company_id)', 'The combination of product and location must be unique.'),
('product_location_check', 'unique (product_id, location_id, company_id)', 'A replenishment rule already exists for this product on this location.'),
]
@api.depends('warehouse_id')
@@ -230,7 +230,7 @@
<field name="module_delivery_dhl" widget="upgrade_boolean"/>
</div>
<div class="o_setting_right_pane">
<label string="DHL" for="module_delivery_dhl"/>
<label string="DHL Express Connector" for="module_delivery_dhl"/>
<div class="text-muted" id="website_delivery_dhl">
Compute shipping costs and ship with DHL
</div>