mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
update hatch
This commit is contained in:
@@ -7,6 +7,7 @@ class SaleOrder(models.Model):
|
|||||||
_inherit = "sale.order"
|
_inherit = "sale.order"
|
||||||
|
|
||||||
def _get_default_weight_uom_name(self):
|
def _get_default_weight_uom_name(self):
|
||||||
|
# todo: 此处没有处理翻译,后续调整
|
||||||
get_param = self.env['ir.config_parameter'].sudo().get_param
|
get_param = self.env['ir.config_parameter'].sudo().get_param
|
||||||
product_weight_in_lbs_param = get_param('product.weight_in_lbs')
|
product_weight_in_lbs_param = get_param('product.weight_in_lbs')
|
||||||
if product_weight_in_lbs_param == '1':
|
if product_weight_in_lbs_param == '1':
|
||||||
|
|||||||
Reference in New Issue
Block a user