mirror of
https://github.com/NaN-tic/trytond-project_template.git
synced 2023-12-14 02:02:58 +01:00
PEP8 formatting
This commit is contained in:
parent
950a059025
commit
0c51f47fb9
4 changed files with 8 additions and 12 deletions
|
@ -1,6 +1,5 @@
|
|||
#The COPYRIGHT file at the top level of this repository contains the full
|
||||
#copyright notices and license terms.
|
||||
|
||||
# The COPYRIGHT file at the top level of this repository contains the full
|
||||
# copyright notices and license terms.
|
||||
from trytond.pool import Pool
|
||||
from .configuration import *
|
||||
from .work import *
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
#this repository contains the full copyright notices and license terms.
|
||||
# The COPYRIGHT file at the top level of this repository contains the full
|
||||
# copyright notices and license terms.
|
||||
from trytond.model import ModelView, ModelSQL, ModelSingleton, fields
|
||||
from trytond.pyson import Eval
|
||||
|
||||
|
@ -9,6 +9,7 @@ __all__ = ['Configuration']
|
|||
class Configuration(ModelSingleton, ModelSQL, ModelView):
|
||||
'Project Template Configuration'
|
||||
__name__ = 'project.template.configuration'
|
||||
|
||||
default_template = fields.Property(fields.Many2One('project.work',
|
||||
'Default Template', domain=[
|
||||
('company', 'in', [Eval('context', {}).get('company', 0)]),
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<!-- The COPYRIGHT file at the top level of this repository contains the full
|
||||
copyright notices and license terms. -->
|
||||
<tryton>
|
||||
<data>
|
||||
|
||||
<record model="ir.ui.view" id="project_template_configuration_view_form">
|
||||
<field name="model">project.template.configuration</field>
|
||||
<field name="type">form</field>
|
||||
|
|
5
work.xml
5
work.xml
|
@ -1,9 +1,8 @@
|
|||
<?xml version="1.0"?>
|
||||
<!-- The COPYRIGHT file at the top level of this repository contains the full
|
||||
copyright notices and license terms. -->
|
||||
copyright notices and license terms. -->
|
||||
<tryton>
|
||||
<data>
|
||||
|
||||
<record model="ir.ui.view" id="work_template_view_tree">
|
||||
<field name="model">project.work</field>
|
||||
<field name="type">tree</field>
|
||||
|
@ -23,7 +22,6 @@
|
|||
<field name="name">work_template_form</field>
|
||||
</record>
|
||||
|
||||
|
||||
<record model="ir.action.act_window" id="project.act_work_tree">
|
||||
<field name="domain">[('parent', '=', None),('template', '=', False)]</field>
|
||||
</record>
|
||||
|
@ -94,6 +92,5 @@
|
|||
<field name="model">project.work,-1</field>
|
||||
<field name="action" ref="wizard_project_template_create"/>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</tryton>
|
||||
|
|
Loading…
Reference in a new issue