Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
financing
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
credipaz
financing
Commits
fa060073
Commit
fa060073
authored
7 years ago
by
Santiago Said
Browse files
Options
Downloads
Patches
Plain Diff
[UPD] Credentials
parent
bd4f2e6e
No related branches found
Branches containing commit
No related tags found
2 merge requests
!5
[ADD] Add button to update a product's financings after changing lst_price field
,
!1
[ADD] Parse the request and response to ease debug
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
models/ws.py
+1
-1
1 addition, 1 deletion
models/ws.py
with
1 addition
and
1 deletion
models/ws.py
+
1
−
1
View file @
fa060073
...
...
@@ -26,7 +26,7 @@ class ws_request(models.Model):
ws_url
=
(
self
.
env
[
'
ir.config_parameter
'
].
sudo
().
get_param
(
'
financing.ws.url
'
)
or
'
http://servicioscpz.credipaz.com/wsMIL/wsMIL.asmx
'
)
+
'
?WSDL
'
ws_client
=
Client
(
ws_url
)
try
:
self
.
xml_res
=
ws_client
.
service
.
RegistrarVentaMil
(
sUsuario
=
'
odoo
'
,
sPassword
=
'
OdooP4sswd
'
,
sPin
=
'
20
'
,
xmlVenta
=
self
.
xml_req
)
self
.
xml_res
=
ws_client
.
service
.
RegistrarVentaMil
(
sUsuario
=
'
odoo
'
,
sPassword
=
'
OdooP4sswd
'
,
sPin
=
'
20
3
'
,
xmlVenta
=
self
.
xml_req
)
except
Exception
as
e
:
self
.
write
({
'
errors_ids
'
:
[(
0
,
0
,
{
'
name
'
:
_
(
'
Connection Error
'
),
'
desc
'
:
e
})]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment