-
-
Notifications
You must be signed in to change notification settings - Fork 601
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG]pos_customer_required_fields: Migration to 16.0
- Loading branch information
1 parent
68288ca
commit e4196f2
Showing
16 changed files
with
144 additions
and
341 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
75 changes: 0 additions & 75 deletions
75
pos_customer_required_fields/i18n/pos_customer_required_fields.pot
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# Copyright 2022 Moka Tourisme (https://www.mokatourisme.fr). | ||
# @author Pierre Verkest <pierreverkest84@gmail.com> | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
from . import res_partner | ||
# from . import res_partner | ||
from . import res_config_settings | ||
from . import pos_config | ||
from . import res_partner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
pos_customer_required_fields/models/res_config_settings.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Copyright 2022 Moka Tourisme (https://www.mokatourisme.fr). | ||
# @author Pierre Verkest <pierreverkest84@gmail.com> | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
from odoo import fields, models | ||
|
||
|
||
class ResConfigSettings(models.TransientModel): | ||
_inherit = "res.config.settings" | ||
|
||
pos_res_partner_required_fields_ids = fields.Many2many( | ||
related="pos_config_id.res_partner_required_fields_ids", | ||
string="Partner required fields", | ||
readonly=False, | ||
) | ||
pos_res_partner_required_fields_names = fields.Char( | ||
related="pos_config_id.res_partner_required_fields_names", | ||
string="Partner required fields names", | ||
readonly=False, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.