Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Coopdevs OCB mirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Coopdevs
Odoo
Coopdevs OCB mirror
Commits
2b7e8d8e
Commit
2b7e8d8e
authored
14 years ago
by
Viral Rami
Browse files
Options
Downloads
Patches
Plain Diff
[MOD] point_of_sale : small changes
bzr revid: vir@tinyerp.com-20100722095417-vqxon8qjyv6in94m
parent
f9410727
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
addons/point_of_sale/wizard/pos_payment.py
+7
-3
7 additions, 3 deletions
addons/point_of_sale/wizard/pos_payment.py
with
7 additions
and
3 deletions
addons/point_of_sale/wizard/pos_payment.py
+
7
−
3
View file @
2b7e8d8e
...
...
@@ -158,8 +158,8 @@ class pos_make_payment(osv.osv_memory):
if
order
.
invoice_id
:
inv_ids
.
append
(
order
.
invoice_id
.
id
)
# continue
#
if not make_obj.partner_id:
#
raise osv.except_osv(_('Error'), _('Please provide a partner for the sale.'))
if
not
make_obj
.
partner_id
:
raise
osv
.
except_osv
(
_
(
'
Error
'
),
_
(
'
Please provide a partner for the sale.
'
))
acc
=
make_obj
.
partner_id
.
property_account_receivable
.
id
inv
=
{
'
name
'
:
'
Invoice from POS:
'
+
order_name
,
...
...
@@ -224,7 +224,11 @@ class pos_make_payment(osv.osv_memory):
if
order_obj
.
browse
(
cr
,
uid
,
[
active_id
]):
if
make_obj
.
partner_id
and
make_obj
.
invoice_wanted
:
order_obj
.
write
(
cr
,
uid
,
[
active_id
],{
'
state
'
:
'
paid
'
})
return
{}
if
context
.
get
(
'
return
'
):
order_obj
.
write
(
cr
,
uid
,
[
active_id
],{
'
state
'
:
'
done
'
})
else
:
order_obj
.
write
(
cr
,
uid
,
[
active_id
],{
'
state
'
:
'
paid
'
})
return
self
.
print_report
(
cr
,
uid
,
ids
,
context
)
# return self.create_invoice(cr, uid, ids, context)
else
:
context
.
update
({
'
flag
'
:
True
})
...
...
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