Merge PR #149 into 8.0

Signed-off-by rousseldenis
This commit is contained in:
OCA-git-bot
2019-12-24 09:23:35 +00:00
4 changed files with 13 additions and 15 deletions

View File

@@ -1,14 +1,12 @@
language: python
sudo: false
cache:
apt: true
directories:
- $HOME/.cache/pip
cache: pip
python:
- "2.7"
addons:
postgresql: "9.6"
apt:
packages:
- expect-dev # provides unbuffer utility
@@ -19,21 +17,20 @@ addons:
env:
global:
- VERSION="8.0" TESTS="0" LINT_CHECK="0" TRANSIFEX="0"
- TRANSIFEX_USER='transbot@odoo-community.org'
- secure: HgKcIRHgUR14+T9TRJvGAd2jn9cSChN87zrYPSZ2p63i/6+MU+WaK3lFf6T0NIjHQUvMMpZ1Cu+OFymvjbIEtvPeglaBVUA9ZED5vrW6ED2p24c09ADdQa3LeBoqLxholaYtbbaQrLNWEnZF0pY4Qk9ZQsHkj2LTpV+M+tOYwpM=
- VERSION="8.0" TESTS="0" LINT_CHECK="0" MAKEPOT="0"
- WKHTMLTOPDF_VERSION="0.12.5"
- PHANTOMJS_VERSION="latest"
matrix:
- LINT_CHECK="1"
- TRANSIFEX="1"
- TESTS="1" ODOO_REPO="odoo/odoo"
- TESTS="1" ODOO_REPO="odoo/odoo" MAKEPOT="1"
- TESTS="1" ODOO_REPO="OCA/OCB"
virtualenv:
system_site_packages: true
install:
- git clone https://github.com/OCA/maintainer-quality-tools.git $HOME/maintainer-quality-tools
- export PATH=$HOME/maintainer-quality-tools/travis:$PATH
- git clone --depth=1 https://github.com/OCA/maintainer-quality-tools.git ${HOME}/maintainer-quality-tools
- export PATH=${HOME}/maintainer-quality-tools/travis:${PATH}
- travis_install_nightly
script:

View File

@@ -22,7 +22,7 @@
{
'name': 'CRM RMA Claim Make Claim',
'version': '8.0.1.0.0',
'author': 'Vauxoo',
'author': 'Vauxoo, Odoo Community Association (OCA)',
'website': 'http://www.vauxoo.com/',
'license': 'AGPL-3',
'category': '',

View File

@@ -19,8 +19,8 @@ msgstr ""
#: help:crm.claim,claim_ids:0
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."
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."
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."
#. module: crm_rma_claim_make_claim
#: model:ir.model,name:crm_rma_claim_make_claim.model_crm_claim

View File

@@ -20,6 +20,7 @@
##############################################################################
from openerp.tests.common import TransactionCase
from odoo.tools.safe_eval import safe_eval
class TestCrmRmaClaimMakeClaim(TransactionCase):
@@ -73,5 +74,5 @@ class TestCrmRmaClaimMakeClaim(TransactionCase):
def test_01_claim_make_claim(self):
claim_id = self.create_customer_claim()
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))