FIX my previous commit: related_sudo -> compute_sudo
This commit is contained in:
@@ -14,7 +14,7 @@ class SaleOrderLine(models.Model):
|
|||||||
# Also defined in bi_sale_company_currency
|
# Also defined in bi_sale_company_currency
|
||||||
company_currency_id = fields.Many2one(
|
company_currency_id = fields.Many2one(
|
||||||
related='order_id.company_id.currency_id',
|
related='order_id.company_id.currency_id',
|
||||||
readonly=True, store=True, related_sudo=True, string='Company Currency')
|
readonly=True, store=True, compute_sudo=True, string='Company Currency')
|
||||||
standard_price_company_currency = fields.Float(
|
standard_price_company_currency = fields.Float(
|
||||||
string='Cost Price in Company Currency', readonly=True,
|
string='Cost Price in Company Currency', readonly=True,
|
||||||
digits=dp.get_precision('Product Price'),
|
digits=dp.get_precision('Product Price'),
|
||||||
@@ -108,7 +108,7 @@ class SaleOrder(models.Model):
|
|||||||
|
|
||||||
# Also defined in bi_sale_company_currency
|
# Also defined in bi_sale_company_currency
|
||||||
company_currency_id = fields.Many2one(
|
company_currency_id = fields.Many2one(
|
||||||
related='company_id.currency_id', readonly=True, store=True, related_sudo=True,
|
related='company_id.currency_id', readonly=True, store=True, compute_sudo=True,
|
||||||
string="Company Currency")
|
string="Company Currency")
|
||||||
margin_sale_currency = fields.Monetary(
|
margin_sale_currency = fields.Monetary(
|
||||||
string='Margin in Sale Currency',
|
string='Margin in Sale Currency',
|
||||||
|
|||||||
Reference in New Issue
Block a user