mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
19
.travis.yml
19
.travis.yml
@@ -1,14 +1,12 @@
|
|||||||
language: python
|
language: python
|
||||||
sudo: false
|
sudo: false
|
||||||
cache:
|
cache: pip
|
||||||
apt: true
|
|
||||||
directories:
|
|
||||||
- $HOME/.cache/pip
|
|
||||||
|
|
||||||
python:
|
python:
|
||||||
- "2.7"
|
- "2.7"
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
|
postgresql: "9.6"
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
- expect-dev # provides unbuffer utility
|
- expect-dev # provides unbuffer utility
|
||||||
@@ -19,21 +17,20 @@ addons:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- VERSION="8.0" TESTS="0" LINT_CHECK="0" TRANSIFEX="0"
|
- VERSION="8.0" TESTS="0" LINT_CHECK="0" MAKEPOT="0"
|
||||||
- TRANSIFEX_USER='transbot@odoo-community.org'
|
- WKHTMLTOPDF_VERSION="0.12.5"
|
||||||
- secure: HgKcIRHgUR14+T9TRJvGAd2jn9cSChN87zrYPSZ2p63i/6+MU+WaK3lFf6T0NIjHQUvMMpZ1Cu+OFymvjbIEtvPeglaBVUA9ZED5vrW6ED2p24c09ADdQa3LeBoqLxholaYtbbaQrLNWEnZF0pY4Qk9ZQsHkj2LTpV+M+tOYwpM=
|
- PHANTOMJS_VERSION="latest"
|
||||||
matrix:
|
matrix:
|
||||||
- LINT_CHECK="1"
|
- LINT_CHECK="1"
|
||||||
- TRANSIFEX="1"
|
- TESTS="1" ODOO_REPO="odoo/odoo" MAKEPOT="1"
|
||||||
- TESTS="1" ODOO_REPO="odoo/odoo"
|
|
||||||
- TESTS="1" ODOO_REPO="OCA/OCB"
|
- TESTS="1" ODOO_REPO="OCA/OCB"
|
||||||
|
|
||||||
virtualenv:
|
virtualenv:
|
||||||
system_site_packages: true
|
system_site_packages: true
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- git clone https://github.com/OCA/maintainer-quality-tools.git $HOME/maintainer-quality-tools
|
- git clone --depth=1 https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
|
||||||
- export PATH=$HOME/maintainer-quality-tools/travis:$PATH
|
- export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
|
||||||
- travis_install_nightly
|
- travis_install_nightly
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
{
|
{
|
||||||
'name': 'CRM RMA Claim Make Claim',
|
'name': 'CRM RMA Claim Make Claim',
|
||||||
'version': '8.0.1.0.0',
|
'version': '8.0.1.0.0',
|
||||||
'author': 'Vauxoo',
|
'author': 'Vauxoo, Odoo Community Association (OCA)',
|
||||||
'website': 'http://www.vauxoo.com/',
|
'website': 'http://www.vauxoo.com/',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
'category': '',
|
'category': '',
|
||||||
|
|||||||
@@ -19,8 +19,8 @@ msgstr ""
|
|||||||
#: help:crm.claim,claim_ids:0
|
#: help:crm.claim,claim_ids:0
|
||||||
msgid " - For a Vendor Claim means the RMA-C that generate the current RMA-V.\n"
|
msgid " - For a Vendor Claim means the RMA-C that generate the current RMA-V.\n"
|
||||||
" - For a Custtomer Claim means the RMA-V generated to fullfill the current RMA-C."
|
" - For a Custtomer Claim means the RMA-V generated to fullfill the current RMA-C."
|
||||||
msgstr " - Para un reclamo a proveedor corresponde a los reclamos a cliente relacionados con él.\n
|
msgstr " - Para un reclamo a proveedor corresponde a los reclamos a cliente relacionados con él.\n"
|
||||||
- Para un reclamo a cliente, corresponde a los reclamos a proveedor que fueron generados a partir de él."
|
" - Para un reclamo a cliente, corresponde a los reclamos a proveedor que fueron generados a partir de él."
|
||||||
|
|
||||||
#. module: crm_rma_claim_make_claim
|
#. module: crm_rma_claim_make_claim
|
||||||
#: model:ir.model,name:crm_rma_claim_make_claim.model_crm_claim
|
#: model:ir.model,name:crm_rma_claim_make_claim.model_crm_claim
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
from openerp.tests.common import TransactionCase
|
from openerp.tests.common import TransactionCase
|
||||||
|
from odoo.tools.safe_eval import safe_eval
|
||||||
|
|
||||||
|
|
||||||
class TestCrmRmaClaimMakeClaim(TransactionCase):
|
class TestCrmRmaClaimMakeClaim(TransactionCase):
|
||||||
@@ -73,5 +74,5 @@ class TestCrmRmaClaimMakeClaim(TransactionCase):
|
|||||||
def test_01_claim_make_claim(self):
|
def test_01_claim_make_claim(self):
|
||||||
claim_id = self.create_customer_claim()
|
claim_id = self.create_customer_claim()
|
||||||
res = claim_id.claim_line_ids.button_create_line_rma_vendor()
|
res = claim_id.claim_line_ids.button_create_line_rma_vendor()
|
||||||
lines_added = eval(res[0]['domain'])[0][2]
|
lines_added = safe_eval(res[0]['domain'])[0][2]
|
||||||
self.assertEquals(len(claim_id.claim_line_ids), len(lines_added))
|
self.assertEquals(len(claim_id.claim_line_ids), len(lines_added))
|
||||||
|
|||||||
Reference in New Issue
Block a user