Skip to content

Commit

Permalink
Merge pull request #81 from akretion/16-fix-warnings
Browse files Browse the repository at this point in the history
[FIX] warnings : add dummy security rule for sale.channel.importer + …
  • Loading branch information
florian-dacosta authored Feb 26, 2024
2 parents 60de22c + f54a0ee commit 234bfe2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions sale_import_base/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
],
"license": "AGPL-3",
"data": [
"security/ir.model.access.csv",
"data/sale_exception.xml",
"views/sale_channel_view.xml",
"views/payment_provider_view.xml",
Expand Down
2 changes: 2 additions & 0 deletions sale_import_base/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_sale_channel_importer,access_sale_channel_importer,model_sale_channel_importer,base.group_user,1,0,0,0
2 changes: 1 addition & 1 deletion sale_import_rest/services/sale_import_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def default(self, obj): # pylint: disable=E0202,arguments-differ
return super(JSONEncoder, self).default(obj)


class SaleImportService(models.TransientModel):
class SaleImportService(models.AbstractModel):
_name = "sale.import.service.sale"
_description = "Sale Import Service Sale"

Expand Down

0 comments on commit 234bfe2

Please sign in to comment.