bi_sql_editor_server_actions precommit - generate setup files

pull/561/head
Valentin 2021-12-16 09:44:42 +01:00
parent 88a2a24d47
commit 77f5715a03
6 changed files with 19 additions and 8 deletions

View File

@ -2,7 +2,7 @@
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import SUPERUSER_ID, _, api, fields, models
from odoo import fields, models
class BiSQLView(models.Model):

View File

@ -2,7 +2,7 @@
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import _, api, fields, models
from odoo import fields, models
class IrActionsServer(models.Model):

View File

@ -1,7 +1,6 @@
# Copyright 2017 Onestein (<http://www.onestein.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo.exceptions import AccessError, UserError
from odoo.tests.common import SingleTransactionCase, at_install, post_install

View File

@ -11,11 +11,16 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
<field name="inherit_id" ref="bi_sql_editor.view_bi_sql_view_form" />
<field name="arch" type="xml">
<notebook position="inside">
<page string="Server actions" attrs="{'invisible': [('state', 'in', ['draft', 'sql_valid'])]}">
<field name="server_action_ids"
<page
string="Server actions"
attrs="{'invisible': [('state', 'in', ['draft', 'sql_valid'])]}"
>
<field
name="server_action_ids"
nolabel="1"
colspan="4"
context="{'default_model_id': model_id}"/>
context="{'default_model_id': model_id}"
/>
</page>
</notebook>
</field>

View File

@ -0,0 +1 @@
../../../../bi_sql_editor_server_actions

View File

@ -0,0 +1,6 @@
import setuptools
setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)