Migrate to version 3.8

(grafted from e34f9d18dc5631f1bbcf21f734d615f7df4ea477)
This commit is contained in:
Sergi Almacellas Abellana 2016-01-10 20:03:24 +01:00
parent 65b8730936
commit 0ad4730147
6 changed files with 22 additions and 20 deletions

View File

@ -1,3 +1,4 @@
Version 3.8.0 - 2015-12-09
Version 3.4.0 - 2014-11-03
Version 3.2.0 - 2014-06-02

View File

@ -3,22 +3,12 @@
# copyright notices and license terms.
import unittest
import trytond.tests.test_tryton
from trytond.tests.test_tryton import test_view, test_depends
from trytond.tests.test_tryton import ModuleTestCase
class TestCase(unittest.TestCase):
class TestCase(ModuleTestCase):
'Test module'
def setUp(self):
trytond.tests.test_tryton.install_module('project_task_invoice')
def test0005views(self):
'Test views'
test_view('project_task_invoice')
def test0006depends(self):
'Test depends'
test_depends()
module = 'project_task_invoice'
def suite():

View File

@ -1,5 +1,5 @@
[tryton]
version=3.4.0
version=3.8.0
depends:
project_invoice
extras_depend:

View File

@ -2,7 +2,7 @@
<!-- This file is part of Tryton Module project_task_invoice. The COPYRIGHT file at the top level of this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="/tree/field[@name='total_effort']" position="after">
<xpath expr="/tree/field[@name='product']" position="before">
<field name="party"/>
<field name="project_invoice_method"/>
</xpath>

View File

@ -29,8 +29,8 @@ class Work:
cls.party.depends.append('type')
if 'parent' not in cls.party.depends:
cls.party.depends.append('parent')
if 'invisible' in cls.effort.states:
del cls.effort.states['invisible']
if 'invisible' in cls.effort_duration.states:
del cls.effort_duration.states['invisible']
if hasattr(cls, 'invoice_standalone'):
cls.invoice_standalone.states['invisible'] = (

View File

@ -2,11 +2,22 @@
<!-- This file is part of Tryton Module project_task_invoice. 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="work_view_list2">
<record model="ir.ui.view" id="work_view_tree">
<field name="model">project.work</field>
<field name="inherit" ref="project.work_view_list2"/>
<field name="name">work_list2</field>
<field name="inherit" ref="project.work_view_tree"/>
<field name="name">work_list_invoice</field>
</record>
<record model="ir.ui.view" id="work_view_list">
<field name="model">project.work</field>
<field name="inherit" ref="project.work_view_list"/>
<field name="name">work_list_invoice</field>
</record>
<record model="ir.ui.view" id="work_view_list_children">
<field name="model">project.work</field>
<field name="inherit" ref="project.work_view_list_children"/>
<field name="name">work_list_invoice</field>
</record>
</data>
</tryton>