# -*- coding: utf-8 -*-
from ecore import api, fields, models

class BaseConfigSettings(models.TransientModel):

    _inherit = "base.config.settings"

    default_print_provider = fields.Many2one('print.provider', string='Default Print Provider')

    @api.model
    def get_default_print_provider(self, fields):
        default_provider = False
        if 'default_print_provider' in fields:
            default_provider = self.env['ir.values'].get_default('print.order', 'provider_id')
        return {
            'default_print_provider': default_provider
        }

    @api.multi
    def set_default_print_provider(self):
        for wizard in self:
            self.env['ir.values'].sudo().set_default('print.order', 'provider_id', wizard.default_print_provider.id)

b519aff2706aeeea3cf08feb22bd71bd5f541ee6
<mask token>


class BaseConfigSettings(models.TransientModel):
    <mask token>
    <mask token>

    @api.model
    def get_default_print_provider(self, fields):
        default_provider = False
        if 'default_print_provider' in fields:
            default_provider = self.env['ir.values'].get_default('print.order',
                'provider_id')
        return {'default_print_provider': default_provider}
    <mask token>

<mask token>


class BaseConfigSettings(models.TransientModel):
    <mask token>
    <mask token>

    @api.model
    def get_default_print_provider(self, fields):
        default_provider = False
        if 'default_print_provider' in fields:
            default_provider = self.env['ir.values'].get_default('print.order',
                'provider_id')
        return {'default_print_provider': default_provider}

    @api.multi
    def set_default_print_provider(self):
        for wizard in self:
            self.env['ir.values'].sudo().set_default('print.order',
                'provider_id', wizard.default_print_provider.id)

<mask token>


class BaseConfigSettings(models.TransientModel):
    _inherit = 'base.config.settings'
    default_print_provider = fields.Many2one('print.provider', string=
        'Default Print Provider')

    @api.model
    def get_default_print_provider(self, fields):
        default_provider = False
        if 'default_print_provider' in fields:
            default_provider = self.env['ir.values'].get_default('print.order',
                'provider_id')
        return {'default_print_provider': default_provider}

    @api.multi
    def set_default_print_provider(self):
        for wizard in self:
            self.env['ir.values'].sudo().set_default('print.order',
                'provider_id', wizard.default_print_provider.id)

from ecore import api, fields, models


class BaseConfigSettings(models.TransientModel):
    _inherit = 'base.config.settings'
    default_print_provider = fields.Many2one('print.provider', string=
        'Default Print Provider')

    @api.model
    def get_default_print_provider(self, fields):
        default_provider = False
        if 'default_print_provider' in fields:
            default_provider = self.env['ir.values'].get_default('print.order',
                'provider_id')
        return {'default_print_provider': default_provider}

    @api.multi
    def set_default_print_provider(self):
        for wizard in self:
            self.env['ir.values'].sudo().set_default('print.order',
                'provider_id', wizard.default_print_provider.id)

# -*- coding: utf-8 -*-
from ecore import api, fields, models

class BaseConfigSettings(models.TransientModel):

    _inherit = "base.config.settings"

    default_print_provider = fields.Many2one('print.provider', string='Default Print Provider')

    @api.model
    def get_default_print_provider(self, fields):
        default_provider = False
        if 'default_print_provider' in fields:
            default_provider = self.env['ir.values'].get_default('print.order', 'provider_id')
        return {
            'default_print_provider': default_provider
        }

    @api.multi
    def set_default_print_provider(self):
        for wizard in self:
            self.env['ir.values'].sudo().set_default('print.order', 'provider_id', wizard.default_print_provider.id)
