mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-24 09:32:04 +02:00
14 lines
492 B
Python
14 lines
492 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import models
|
|
|
|
|
|
class ResCurrency(models.Model):
|
|
_inherit = 'res.currency'
|
|
|
|
def _activate_group_multi_currency(self):
|
|
# for Sale/ POS - Multi currency flows require pricelists
|
|
super()._activate_group_multi_currency()
|
|
group_user = self.env.ref('base.group_user').sudo()
|
|
group_user._apply_group(self.env.ref('product.group_product_pricelist'))
|